Difference between revisions of "LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English-timed"

From Script | Spoken-Tutorial
Jump to: navigation, search
Line 1: Line 1:
 
{| border = 1
 
{| border = 1
 
 
|'''Time'''
 
|'''Time'''
 
|'''Narration'''
 
|'''Narration'''
  
 
|-
 
|-
| 00:01
+
|00:01
| Welcome to the spoken tutorial on '''LaTeX on Windows using TeXworks'''.
+
|Welcome to the spoken tutorial on '''LaTeX on Windows using TeXworks'''.
  
 
|-
 
|-
| 00:07
+
|00:07
| In this tutorial, we will learn to:  
+
|In this tutorial, we will learn to:  
  
 
|-
 
|-
| 00:09
+
|00:09
|* Download and install MikTeX  
+
|Download and install MikTeX  
  
 
|-
 
|-
| 00:11
+
|00:11
|* Write basic LaTeX documents using TeXworks   
+
|Write basic LaTeX documents using TeXworks   
  
 
|-
 
|-
| 00:15
+
|00:15
|* Configure MikTeX to download missing packages.  
+
|Configure MikTeX to download missing packages.  
  
 
|-
 
|-
| 00:19
+
|00:19
 
|To record this tutorial, I am using Windows7 operating system and MikTeX2.9.  
 
|To record this tutorial, I am using Windows7 operating system and MikTeX2.9.  
  
 
|-
 
|-
| 00:27
+
|00:27
 
|Let us now see the salient features of TeXworks.
 
|Let us now see the salient features of TeXworks.
  
 
|-
 
|-
 
|00:31
 
|00:31
|* It is platform independent.  
+
|It is platform independent.  
  
 
|-
 
|-
 
|00:33
 
|00:33
|* It has an embedded pdf reader.  
+
|It has an embedded pdf reader.  
  
 
|-
 
|-
| 00:36
+
|00:36
|* It supports Indian language typesetting.  
+
|It supports Indian language typesetting.  
  
 
|-
 
|-
| 00:39
+
|00:39
 
|Before we start with TeXworks, we have to install MikTeX.  
 
|Before we start with TeXworks, we have to install MikTeX.  
  
 
|-
 
|-
| 00:44
+
|00:44
 
|MikTeX is an up-to-date implementation of TeX or LaTeX and related programs for Windows.  
 
|MikTeX is an up-to-date implementation of TeX or LaTeX and related programs for Windows.  
  
 
|-
 
|-
| 00:52
+
|00:52
 
|It contains the necessary packages to create basic documents in LaTeX on Windows.  
 
|It contains the necessary packages to create basic documents in LaTeX on Windows.  
  
 
|-
 
|-
| 00:58
+
|00:58
 
|Moreover, TeXworks is a default editor available with MikTeX installation.  
 
|Moreover, TeXworks is a default editor available with MikTeX installation.  
  
Line 65: Line 64:
  
 
|-
 
|-
| 01:10
+
|01:10
 
|Click on the '''Download link''' for recommended MikTeX installer.  
 
|Click on the '''Download link''' for recommended MikTeX installer.  
  
 
|-
 
|-
| 01:15
+
|01:15
 
|This will download the MikTeX installer.  
 
|This will download the MikTeX installer.  
  
 
|-
 
|-
| 01:18
+
|01:18
| Download and '''save''' it on your Desktop.
+
|Download and '''save''' it on your Desktop.
  
 
|-
 
|-
Line 85: Line 84:
  
 
|-
 
|-
| 01:27
+
|01:27
 
|I have already downloaded this file. Here it is.  
 
|I have already downloaded this file. Here it is.  
  
 
|-
 
|-
| 01:32
+
|01:32
 
|Double click on this file to start the installation.  
 
|Double click on this file to start the installation.  
  
 
|-
 
|-
| 01:36
+
|01:36
| Check the check box and click on '''Next'''.  
+
|Check the check box and click on '''Next'''.  
  
 
|-
 
|-
| 01:40
+
|01:40
 
|Choose all default options.  
 
|Choose all default options.  
  
Line 113: Line 112:
  
 
|-
 
|-
| 01:54
+
|01:54
 
|After successfully installing MikTeX on your computer,  
 
|After successfully installing MikTeX on your computer,  
  
 
|-
 
|-
| 01:58
+
|01:58
 
|let us see how to use the '''TeXworks editor''' which comes with MikTeX.  
 
|let us see how to use the '''TeXworks editor''' which comes with MikTeX.  
  
 
|-
 
|-
| 02:03
+
|02:03
 
|Click on the Windows '''Start''' button.  
 
|Click on the Windows '''Start''' button.  
  
 
|-
 
|-
| 02:07
+
|02:07
| Click on '''All Programs'''.  
+
|Click on '''All Programs'''.  
  
 
|-
 
|-
Line 133: Line 132:
  
 
|-
 
|-
| 02:12
+
|02:12
| Click on '''TeXworks'''.  
+
|Click on '''TeXworks'''.  
  
 
|-
 
|-
| 02:15
+
|02:15
| '''TeXworks editor''' will open.  
+
|'''TeXworks editor''' will open.  
  
 
|-
 
|-
| 02:18
+
|02:18
| Let me open an already existing '''LaTeX document'''.  
+
|Let me open an already existing '''LaTeX document'''.  
  
 
|-
 
|-
| 02:21
+
|02:21
| I will click on '''File''', then click on '''Open''' and choose the directory.  
+
|I will click on '''File''', then click on '''Open''' and choose the directory.  
  
 
|-
 
|-
| 02:28
+
|02:28
 
|Then I will open the file "hello.tex".  
 
|Then I will open the file "hello.tex".  
  
 
|-
 
|-
| 02:32
+
|02:32
 
|You can see that the text written in this file is colored.   
 
|You can see that the text written in this file is colored.   
  
 
|-
 
|-
| 02:37
+
|02:37
 
|This is called syntax highlighting.  
 
|This is called syntax highlighting.  
  
 
|-
 
|-
| 02:41
+
|02:41
| It helps the user differentiate between the user content and the '''LaTeX syntax'''.  
+
|It helps the user differentiate between the user content and the '''LaTeX syntax'''.  
 
   
 
   
 
|-
 
|-
| 02:47
+
|02:47
| In case the LaTeX syntax is not highlighted, do the following.  
+
|In case the LaTeX syntax is not highlighted, do the following.  
  
 
|-
 
|-
| 02:52
+
|02:52
 
|In the TeXworks window, click on '''Format''' button available on the Menu bar.  
 
|In the TeXworks window, click on '''Format''' button available on the Menu bar.  
  
 
|-
 
|-
| 02:58
+
|02:58
 
|Select '''Syntax Colouring''' and then click on '''LaTeX'''.   
 
|Select '''Syntax Colouring''' and then click on '''LaTeX'''.   
  
 
|-
 
|-
| 03:03
+
|03:03
| If you want '''TeXworks''' to apply syntax highlighting every time you create a LaTeX document, do the following.  
+
|If you want '''TeXworks''' to apply syntax highlighting every time you create a LaTeX document, do the following.  
  
 
|-
 
|-
| 03:10
+
|03:10
| On the menu bar, click on '''Edit''' ,then click on '''Preferences'''.   
+
|On the menu bar, click on '''Edit''' ,then click on '''Preferences'''.   
  
 
|-
 
|-
| 03:16
+
|03:16
 
|In the '''Editor''' tab, click on the dropdown button which gives options for '''Syntax Colouring'''.  
 
|In the '''Editor''' tab, click on the dropdown button which gives options for '''Syntax Colouring'''.  
  
 
|-
 
|-
| 03:22
+
|03:22
 
|Choose '''LaTeX''' and then click on '''OK'''.
 
|Choose '''LaTeX''' and then click on '''OK'''.
  
 
|-
 
|-
| 03:26
+
|03:26
 
|In this way, syntax highlighting will be applied to all documents created in the future.   
 
|In this way, syntax highlighting will be applied to all documents created in the future.   
  
 
|-
 
|-
| 03:32
+
|03:32
 
|Now we are ready to compile our LaTeX document.  
 
|Now we are ready to compile our LaTeX document.  
  
 
|-
 
|-
| 03:36
+
|03:36
| Press '''Ctrl''' and '''t''' keys together to start the compilation.  
+
|Press '''Ctrl''' and '''t''' keys together to start the compilation.  
  
 
|-
 
|-
| 03:42
+
|03:42
 
|Once the document is compiled without errors, the resulting 'pdf' will be opened.  
 
|Once the document is compiled without errors, the resulting 'pdf' will be opened.  
  
 
|-
 
|-
| 03:49
+
|03:49
 
|Note that this pdf reader comes along with TeXworks.
 
|Note that this pdf reader comes along with TeXworks.
  
 
|-
 
|-
| 03:53
+
|03:53
 
|It is the default pdf reader used by TeXworks to display the compiled pdf document.  
 
|It is the default pdf reader used by TeXworks to display the compiled pdf document.  
 
   
 
   
 
|-
 
|-
| 03:59
+
|03:59
 
|Now let us compile a '''Beamer''' document.   
 
|Now let us compile a '''Beamer''' document.   
  
 
|-
 
|-
| 04:02
+
|04:02
| '''Beamer package''' by default is not included in the MikTeX setup that we have installed.  
+
|'''Beamer package''' by default is not included in the MikTeX setup that we have installed.  
  
 
|-
 
|-
| 04:08
+
|04:08
 
|This means that we have to  
 
|This means that we have to  
  
 
|-
 
|-
| 04:10
+
|04:10
 
|download  it from some source and add it to our current MikTeX distribution.  
 
|download  it from some source and add it to our current MikTeX distribution.  
  
 
|-
 
|-
| 04:15
+
|04:15
 
|There are two ways of installing a missing package.  
 
|There are two ways of installing a missing package.  
  
 
|-
 
|-
| 04:19
+
|04:19
| One way is to install it on the fly while we are compiling a LaTeX document.  
+
|One way is to install it on the fly while we are compiling a LaTeX document.  
  
 
|-
 
|-
| 04:24
+
|04:24
| This LaTeX document will typically require a package not available in your MikTeX distribution.   
+
|This LaTeX document will typically require a package not available in your MikTeX distribution.   
  
 
|-
 
|-
| 04:31
+
|04:31
 
|Other way, is to manually choose and install a package using '''Package Manager''' of MikTeX.  
 
|Other way, is to manually choose and install a package using '''Package Manager''' of MikTeX.  
  
 
|-
 
|-
| 04:37
+
|04:37
 
|Let us see the first method.  
 
|Let us see the first method.  
  
 
|-
 
|-
| 04:40
+
|04:40
 
|We will open and compile a LaTeX document which requires MikTeX to install packages from the internet.  
 
|We will open and compile a LaTeX document which requires MikTeX to install packages from the internet.  
  
 
|-
 
|-
| 04:47
+
|04:47
 
|First, close the '''TeXworks editor'''.  
 
|First, close the '''TeXworks editor'''.  
  
 
|-
 
|-
| 04:51
+
|04:51
 
|It is required that we open the 'tex file' with '''administrator''' privileges.  
 
|It is required that we open the 'tex file' with '''administrator''' privileges.  
  
 
|-
 
|-
| 04:56
+
|04:56
 
|Click on the '''Start''' button.  
 
|Click on the '''Start''' button.  
  
 
|-
 
|-
| 04:59
+
|04:59
| Then click on '''All programs'''.  
+
|Then click on '''All programs'''.  
  
 
|-
 
|-
| 05:02
+
|05:02
 
|Click on '''MikTeX2.9'''.
 
|Click on '''MikTeX2.9'''.
  
 
|-
 
|-
| 05:05
+
|05:05
 
|Right click on '''TeXworks''' and choose '''Run as Administrator'''.
 
|Right click on '''TeXworks''' and choose '''Run as Administrator'''.
  
 
|-
 
|-
| 05:11
+
|05:11
| This will launch the '''TeXworks editor''' with administrator privileges.  
+
|This will launch the '''TeXworks editor''' with administrator privileges.  
  
 
|-
 
|-
| 05:16
+
|05:16
 
|Now click on '''File'''.
 
|Now click on '''File'''.
  
 
|-
 
|-
| 05:19
+
|05:19
 
|Then click on '''Open.'''  
 
|Then click on '''Open.'''  
  
 
|-
 
|-
| 05:21
+
|05:21
 
|Choose the file '''beamer.tex'''.  
 
|Choose the file '''beamer.tex'''.  
  
 
|-
 
|-
| 05:24
+
|05:24
 
|Press '''Ctrl''' and '''t''' keys together to start the compilation.  
 
|Press '''Ctrl''' and '''t''' keys together to start the compilation.  
  
 
|-
 
|-
| 05:29
+
|05:29
 
|A '''Package Installation''' dialog box will open.  
 
|A '''Package Installation''' dialog box will open.  
  
 
|-
 
|-
| 05:33
+
|05:33
 
|It will ask to install the missing package '''beamer.cls'''.  
 
|It will ask to install the missing package '''beamer.cls'''.  
  
 
|-
 
|-
| 05:38
+
|05:38
 
|Click on '''Change''' button on this dialog box.  
 
|Click on '''Change''' button on this dialog box.  
  
 
|-
 
|-
| 05:43
+
|05:43
 
|'''Change Package Repository''' dialog box will open.  
 
|'''Change Package Repository''' dialog box will open.  
  
 
|-
 
|-
| 05:47
+
|05:47
 
|Choose the option '''Packages shall be installed from the internet'''.
 
|Choose the option '''Packages shall be installed from the internet'''.
  
 
|-
 
|-
| 05:52
+
|05:52
 
|Click on '''Connection Settings'''.  
 
|Click on '''Connection Settings'''.  
  
 
|-
 
|-
| 05:55
+
|05:55
 
|It will prompt you to configure the proxy settings.  
 
|It will prompt you to configure the proxy settings.  
  
 
|-
 
|-
| 05:59
+
|05:59
 
|If you are not on a proxy network then leave the '''Use proxy server''' check box unchecked.  
 
|If you are not on a proxy network then leave the '''Use proxy server''' check box unchecked.  
  
 
|-
 
|-
| 06:06
+
|06:06
 
|Since I am on a proxy network, I will enable the option by clicking on the check box.  
 
|Since I am on a proxy network, I will enable the option by clicking on the check box.  
  
 
|-
 
|-
| 06:12
+
|06:12
 
|I will enter the proxy '''address'''.  
 
|I will enter the proxy '''address'''.  
  
 
|-
 
|-
| 06:16
+
|06:16
 
|I will enter proxy '''Port''' number.  
 
|I will enter proxy '''Port''' number.  
  
 
|-
 
|-
| 06:19
+
|06:19
 
|I will enable the option '''Authentication required''' by clicking on the corresponding check box.  
 
|I will enable the option '''Authentication required''' by clicking on the corresponding check box.  
  
 
|-
 
|-
| 06:25
+
|06:25
 
|Click on '''OK'''. And then click on '''Next'''.
 
|Click on '''OK'''. And then click on '''Next'''.
  
 
|-
 
|-
| 06:30
+
|06:30
 
|It will ask me the proxy username and password.
 
|It will ask me the proxy username and password.
  
 
|-
 
|-
| 06:34
+
|06:34
 
|I will enter the information and click on '''OK'''.  
 
|I will enter the information and click on '''OK'''.  
  
 
|-
 
|-
| 06:39
+
|06:39
 
|It will show a list of various '''Remote Package Repositories'''.   
 
|It will show a list of various '''Remote Package Repositories'''.   
  
 
|-
 
|-
| 06:44
+
|06:44
 
|Choose one from the list and click on '''Finish'''.  
 
|Choose one from the list and click on '''Finish'''.  
 
   
 
   
 
|-
 
|-
| 06:48
+
|06:48
 
|Click on '''Install'''.  
 
|Click on '''Install'''.  
  
 
|-
 
|-
| 06:51
+
|06:51
 
|It will install the '''beamer.cls''' package.  
 
|It will install the '''beamer.cls''' package.  
  
 
|-
 
|-
| 06:55
+
|06:55
 
|Once again the '''Package Installation''' dialog box will open.  
 
|Once again the '''Package Installation''' dialog box will open.  
  
 
|-
 
|-
| 07:00
+
|07:00
 
|It will prompt to install the missing package '''pgfcore.sty'''.
 
|It will prompt to install the missing package '''pgfcore.sty'''.
  
 
|-
 
|-
| 07:06
+
|07:06
 
|You may uncheck the option. Always show this dialog before installing packages.  
 
|You may uncheck the option. Always show this dialog before installing packages.  
  
 
|-
 
|-
| 07:12
+
|07:12
 
|If you do this, MikTeX will not prompt you again, if it encounters a missing package.  
 
|If you do this, MikTeX will not prompt you again, if it encounters a missing package.  
  
 
|-
 
|-
| 07:19
+
|07:19
 
|Click on '''Install'''.
 
|Click on '''Install'''.
  
 
|-
 
|-
| 07:21
+
|07:21
 
|Now, if there are any more missing packages, it will automatically install it without asking for your permission.  
 
|Now, if there are any more missing packages, it will automatically install it without asking for your permission.  
  
 
|-
 
|-
| 07:31
+
|07:31
 
|Once the installation completes, it will finish the compilation and open the 'pdf' output.  
 
|Once the installation completes, it will finish the compilation and open the 'pdf' output.  
  
 
|-
 
|-
| 07:38
+
|07:38
 
|We can see that we have successfully compiled a '''Beamer document'''.  
 
|We can see that we have successfully compiled a '''Beamer document'''.  
  
 
|-
 
|-
| 07:42
+
|07:42
 
|Now, let us see the second method of installing missing packages.  
 
|Now, let us see the second method of installing missing packages.  
  
 
|-
 
|-
| 07:47
+
|07:47
 
|Click on the Windows '''Start''' button.  
 
|Click on the Windows '''Start''' button.  
  
 
|-
 
|-
| 07:50
+
|07:50
 
|Click on '''All Programs'''.  
 
|Click on '''All Programs'''.  
  
 
|-
 
|-
| 07:53
+
|07:53
 
|Click on '''MikTeX2.9'''.  
 
|Click on '''MikTeX2.9'''.  
  
 
|-
 
|-
| 07:55
+
|07:55
 
|Click on '''Maintenance (Admin)'''.  
 
|Click on '''Maintenance (Admin)'''.  
  
 
|-
 
|-
| 07:58
+
|07:58
 
|Cick on '''Package Manager (Admin)'''.  
 
|Cick on '''Package Manager (Admin)'''.  
  
 
|-
 
|-
| 08:02
+
|08:02
| It will show the list of various packages available.  
+
|It will show the list of various packages available.  
  
 
|-
 
|-
| 08:07
+
|08:07
 
|Now let us take a look at this list.  
 
|Now let us take a look at this list.  
  
 
|-
 
|-
| 08:10
+
|08:10
 
|There are six columns in this list.  
 
|There are six columns in this list.  
  
 
|-
 
|-
| 08:13
+
|08:13
 
|These are '''Name, Category, Size, Packaged date, Installed on date''' and '''Title'''.  
 
|These are '''Name, Category, Size, Packaged date, Installed on date''' and '''Title'''.  
  
 
|-
 
|-
| 08:21
+
|08:21
 
|The "Installed on column" is very important to us.  
 
|The "Installed on column" is very important to us.  
  
 
|-
 
|-
| 08:25
+
|08:25
 
|The packages for which this column is blank indicates that these packages are not installed.  
 
|The packages for which this column is blank indicates that these packages are not installed.  
  
 
|-
 
|-
| 08:32
+
|08:32
 
|Let us see how to install a particular package.  
 
|Let us see how to install a particular package.  
  
 
|-
 
|-
| 08:36
+
|08:36
 
|Let me choose the package "abc", for example.  
 
|Let me choose the package "abc", for example.  
  
 
|-
 
|-
| 08:41
+
|08:41
 
|Notice that the moment I choose the package, the plus button on the top left side gets enabled.  
 
|Notice that the moment I choose the package, the plus button on the top left side gets enabled.  
  
 
|-
 
|-
| 08:48
+
|08:48
 
|The plus button is the install button.  
 
|The plus button is the install button.  
  
 
|-
 
|-
| 08:51
+
|08:51
 
|Click on the '''plus''' button.  
 
|Click on the '''plus''' button.  
  
 
|-
 
|-
| 08:53
+
|08:53
 
|A window will open which will list the number of packages you have chosen to install or uninstall.  
 
|A window will open which will list the number of packages you have chosen to install or uninstall.  
  
 
|-
 
|-
| 09:00
+
|09:00
 
|Click on '''Proceed'''.  
 
|Click on '''Proceed'''.  
  
 
|-
 
|-
| 09:04
+
|09:04
 
|Since I have configured a proxy network connection, it will prompt me for the proxy username and password.  
 
|Since I have configured a proxy network connection, it will prompt me for the proxy username and password.  
  
 
|-
 
|-
| 09:11
+
|09:11
 
|Let me type my username and password.
 
|Let me type my username and password.
  
 
|-
 
|-
| 09:14
+
|09:14
 
|Click on '''OK'''.
 
|Click on '''OK'''.
  
 
|-
 
|-
| 09:16
+
|09:16
 
|A window will open which will show the download progress of the package selected for installation.  
 
|A window will open which will show the download progress of the package selected for installation.  
  
 
|-
 
|-
| 09:23
+
|09:23
 
|It may happen that it fails to download the requested package due to '''remote server connectivity''' issues.  
 
|It may happen that it fails to download the requested package due to '''remote server connectivity''' issues.  
  
 
|-
 
|-
| 09:29
+
|09:29
 
|In that case, change the '''package repository''' and try again.  
 
|In that case, change the '''package repository''' and try again.  
  
 
|-
 
|-
| 09:34
+
|09:34
 
|We can see that the installation of selected package is completed.  
 
|We can see that the installation of selected package is completed.  
  
 
|-
 
|-
| 09:39
+
|09:39
 
|Click on '''Close'''.  
 
|Click on '''Close'''.  
  
 
|-
 
|-
| 09:41
+
|09:41
 
|The package list will get refreshed.   
 
|The package list will get refreshed.   
  
 
|-
 
|-
| 09:44
+
|09:44
 
|Notice that 11 September 2013 appears in the "Installed on" column for package "abc".  
 
|Notice that 11 September 2013 appears in the "Installed on" column for package "abc".  
  
 
|-
 
|-
| 09:52
+
|09:52
 
|This completes the tutorial LaTeX on Windows using TeXworks.
 
|This completes the tutorial LaTeX on Windows using TeXworks.
  
 
|-
 
|-
| 09:58
+
|09:58
 
|In this tutorial we learnt to:   
 
|In this tutorial we learnt to:   
  
 
|-
 
|-
| 10:00
+
|10:00
|* Download and install MikTeX.  
+
|Download and install MikTeX.  
  
 
|-
 
|-
| 10:02
+
|10:02
|* Write basic LaTeX document using TeXworks.  
+
|Write basic LaTeX document using TeXworks.  
  
 
|-
 
|-
| 10:06
+
|10:06
|* Configure MikTeX to download missing packages in 2 different ways.   
+
|Configure MikTeX to download missing packages in 2 different ways.   
  
 
|-
 
|-
| 10:11
+
|10:11
 
|Watch the video available at the following link.
 
|Watch the video available at the following link.
  
 
|-
 
|-
| 10:14
+
|10:14
| It summarizes the Spoken Tutorial project.  
+
|It summarizes the Spoken Tutorial project.  
  
 
|-
 
|-
| 10:17
+
|10:17
| If you do not have good bandwidth, you can download and watch it.  
+
|If you do not have good bandwidth, you can download and watch it.  
  
 
|-
 
|-
| 10:21
+
|10:21
| The Spoken Tutorial Project Team:  
+
|The Spoken Tutorial Project Team:  
  
 
|-
 
|-
| 10:23
+
|10:23
| Conducts workshops using spoken tutorials.  
+
|Conducts workshops using spoken tutorials.  
  
 
|-
 
|-
| 10:27
+
|10:27
 
|Gives certificates to those who pass an online test .  
 
|Gives certificates to those who pass an online test .  
  
 
|-
 
|-
| 10:30
+
|10:30
 
|For more details, please write to contact@spoken-tutorial.org  
 
|For more details, please write to contact@spoken-tutorial.org  
  
 
|-
 
|-
| 10:36
+
|10:36
 
|Spoken Tutorial project is a part of the "Talk to a Teacher" project.  
 
|Spoken Tutorial project is a part of the "Talk to a Teacher" project.  
  
 
|-
 
|-
| 10:40
+
|10:40
 
|It is supported by the National Mission on Education through ICT, MHRD, Government of India.  
 
|It is supported by the National Mission on Education through ICT, MHRD, Government of India.  
  
 
|-
 
|-
| 10:48
+
|10:48
 
|More information on this mission is available at: http://spoken-tutorial.org /NMEICT-Intro.  
 
|More information on this mission is available at: http://spoken-tutorial.org /NMEICT-Intro.  
  
 
|-
 
|-
| 10:59
+
|10:59
 
|This is Rupak Rokade from IIT Bombay, signing off. Thanks for watching.
 
|This is Rupak Rokade from IIT Bombay, signing off. Thanks for watching.

Revision as of 10:48, 24 March 2017

Time Narration
00:01 Welcome to the spoken tutorial on LaTeX on Windows using TeXworks.
00:07 In this tutorial, we will learn to:
00:09 Download and install MikTeX
00:11 Write basic LaTeX documents using TeXworks
00:15 Configure MikTeX to download missing packages.
00:19 To record this tutorial, I am using Windows7 operating system and MikTeX2.9.
00:27 Let us now see the salient features of TeXworks.
00:31 It is platform independent.
00:33 It has an embedded pdf reader.
00:36 It supports Indian language typesetting.
00:39 Before we start with TeXworks, we have to install MikTeX.
00:44 MikTeX is an up-to-date implementation of TeX or LaTeX and related programs for Windows.
00:52 It contains the necessary packages to create basic documents in LaTeX on Windows.
00:58 Moreover, TeXworks is a default editor available with MikTeX installation.
01:04 Go to the website www.miktex.org
01:10 Click on the Download link for recommended MikTeX installer.
01:15 This will download the MikTeX installer.
01:18 Download and save it on your Desktop.
01:22 It is a large file, about 154 mega bytes.
01:25 Hence, it will take some time to download.
01:27 I have already downloaded this file. Here it is.
01:32 Double click on this file to start the installation.
01:36 Check the check box and click on Next.
01:40 Choose all default options.
01:43 The installation will take around 5 to 10 minutes.
01:47 I have already installed MikTeX on my computer.
01:50 Hence I will not proceed with the installation.
01:54 After successfully installing MikTeX on your computer,
01:58 let us see how to use the TeXworks editor which comes with MikTeX.
02:03 Click on the Windows Start button.
02:07 Click on All Programs.
02:09 Click on MikTeX2.9.
02:12 Click on TeXworks.
02:15 TeXworks editor will open.
02:18 Let me open an already existing LaTeX document.
02:21 I will click on File, then click on Open and choose the directory.
02:28 Then I will open the file "hello.tex".
02:32 You can see that the text written in this file is colored.
02:37 This is called syntax highlighting.
02:41 It helps the user differentiate between the user content and the LaTeX syntax.
02:47 In case the LaTeX syntax is not highlighted, do the following.
02:52 In the TeXworks window, click on Format button available on the Menu bar.
02:58 Select Syntax Colouring and then click on LaTeX.
03:03 If you want TeXworks to apply syntax highlighting every time you create a LaTeX document, do the following.
03:10 On the menu bar, click on Edit ,then click on Preferences.
03:16 In the Editor tab, click on the dropdown button which gives options for Syntax Colouring.
03:22 Choose LaTeX and then click on OK.
03:26 In this way, syntax highlighting will be applied to all documents created in the future.
03:32 Now we are ready to compile our LaTeX document.
03:36 Press Ctrl and t keys together to start the compilation.
03:42 Once the document is compiled without errors, the resulting 'pdf' will be opened.
03:49 Note that this pdf reader comes along with TeXworks.
03:53 It is the default pdf reader used by TeXworks to display the compiled pdf document.
03:59 Now let us compile a Beamer document.
04:02 Beamer package by default is not included in the MikTeX setup that we have installed.
04:08 This means that we have to
04:10 download it from some source and add it to our current MikTeX distribution.
04:15 There are two ways of installing a missing package.
04:19 One way is to install it on the fly while we are compiling a LaTeX document.
04:24 This LaTeX document will typically require a package not available in your MikTeX distribution.
04:31 Other way, is to manually choose and install a package using Package Manager of MikTeX.
04:37 Let us see the first method.
04:40 We will open and compile a LaTeX document which requires MikTeX to install packages from the internet.
04:47 First, close the TeXworks editor.
04:51 It is required that we open the 'tex file' with administrator privileges.
04:56 Click on the Start button.
04:59 Then click on All programs.
05:02 Click on MikTeX2.9.
05:05 Right click on TeXworks and choose Run as Administrator.
05:11 This will launch the TeXworks editor with administrator privileges.
05:16 Now click on File.
05:19 Then click on Open.
05:21 Choose the file beamer.tex.
05:24 Press Ctrl and t keys together to start the compilation.
05:29 A Package Installation dialog box will open.
05:33 It will ask to install the missing package beamer.cls.
05:38 Click on Change button on this dialog box.
05:43 Change Package Repository dialog box will open.
05:47 Choose the option Packages shall be installed from the internet.
05:52 Click on Connection Settings.
05:55 It will prompt you to configure the proxy settings.
05:59 If you are not on a proxy network then leave the Use proxy server check box unchecked.
06:06 Since I am on a proxy network, I will enable the option by clicking on the check box.
06:12 I will enter the proxy address.
06:16 I will enter proxy Port number.
06:19 I will enable the option Authentication required by clicking on the corresponding check box.
06:25 Click on OK. And then click on Next.
06:30 It will ask me the proxy username and password.
06:34 I will enter the information and click on OK.
06:39 It will show a list of various Remote Package Repositories.
06:44 Choose one from the list and click on Finish.
06:48 Click on Install.
06:51 It will install the beamer.cls package.
06:55 Once again the Package Installation dialog box will open.
07:00 It will prompt to install the missing package pgfcore.sty.
07:06 You may uncheck the option. Always show this dialog before installing packages.
07:12 If you do this, MikTeX will not prompt you again, if it encounters a missing package.
07:19 Click on Install.
07:21 Now, if there are any more missing packages, it will automatically install it without asking for your permission.
07:31 Once the installation completes, it will finish the compilation and open the 'pdf' output.
07:38 We can see that we have successfully compiled a Beamer document.
07:42 Now, let us see the second method of installing missing packages.
07:47 Click on the Windows Start button.
07:50 Click on All Programs.
07:53 Click on MikTeX2.9.
07:55 Click on Maintenance (Admin).
07:58 Cick on Package Manager (Admin).
08:02 It will show the list of various packages available.
08:07 Now let us take a look at this list.
08:10 There are six columns in this list.
08:13 These are Name, Category, Size, Packaged date, Installed on date and Title.
08:21 The "Installed on column" is very important to us.
08:25 The packages for which this column is blank indicates that these packages are not installed.
08:32 Let us see how to install a particular package.
08:36 Let me choose the package "abc", for example.
08:41 Notice that the moment I choose the package, the plus button on the top left side gets enabled.
08:48 The plus button is the install button.
08:51 Click on the plus button.
08:53 A window will open which will list the number of packages you have chosen to install or uninstall.
09:00 Click on Proceed.
09:04 Since I have configured a proxy network connection, it will prompt me for the proxy username and password.
09:11 Let me type my username and password.
09:14 Click on OK.
09:16 A window will open which will show the download progress of the package selected for installation.
09:23 It may happen that it fails to download the requested package due to remote server connectivity issues.
09:29 In that case, change the package repository and try again.
09:34 We can see that the installation of selected package is completed.
09:39 Click on Close.
09:41 The package list will get refreshed.
09:44 Notice that 11 September 2013 appears in the "Installed on" column for package "abc".
09:52 This completes the tutorial LaTeX on Windows using TeXworks.
09:58 In this tutorial we learnt to:
10:00 Download and install MikTeX.
10:02 Write basic LaTeX document using TeXworks.
10:06 Configure MikTeX to download missing packages in 2 different ways.
10:11 Watch the video available at the following link.
10:14 It summarizes the Spoken Tutorial project.
10:17 If you do not have good bandwidth, you can download and watch it.
10:21 The Spoken Tutorial Project Team:
10:23 Conducts workshops using spoken tutorials.
10:27 Gives certificates to those who pass an online test .
10:30 For more details, please write to contact@spoken-tutorial.org
10:36 Spoken Tutorial project is a part of the "Talk to a Teacher" project.
10:40 It is supported by the National Mission on Education through ICT, MHRD, Government of India.
10:48 More information on this mission is available at: http://spoken-tutorial.org /NMEICT-Intro.
10:59 This is Rupak Rokade from IIT Bombay, signing off. Thanks for watching.

Contributors and Content Editors

Jyotisolanki, PoojaMoolya, Pratik kamble, Sandhya.np14