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

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

Latest revision as of 11:42, 23 November 2017

Title of script: LaTeX on Windows using TeXworks

Author: Rupak Rokade

Keywords: video tutorial, LaTeX, TeXworks, windows, MikTeX,


Time Narration
00:01 Dear Friends, Welcome to the spoken tutorial on “LaTeX on Windows using TeXworks”
00:06 In this tutorial we will learn to, Download and install MikTeX .
00:12 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:34 It has an embedded pdf reader
00:36 It supports Indian language typesetting
00:40 Before we start with TeXworks, we have to install MikTeX.
00:45 MikTeX is an up-to-date implementation of TeX/LaTeX and related programs for Windows.
00:52 It contains the necessary packages to create basic documents in LaTeX on Windows ,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. This will download the MikTeX installer.
01:19 Download and save it on your Desktop..
01:22 It is a large file, about 154 mega bytes. Hence, it will take some time to download.
01:28 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:44 The installation will take around 5 to 10 minutes.
01:47 I have already installed MikTeX on my computer. Hence I will not proceed with the installation.
01:55 After successfully installing MikTeX on your computer,
01:58 let us see how to use the TeXworks editor which comes with MikTeX.
2:04 Click on the Windows start button.
02:07 Click on All Programs.
02:10 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:22 I will click on File, then click on Open and choose the directory. Then I will open the file hello.tex.
02:33 You can see that the text written in the file is colored.
02:38 This is called syntax highlighting. 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:59 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:11 On the menu bar, click on Edit and 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:27 In this way, syntax highlighting will be applied to all documents created in the future.
03:33 Now we are ready to compile our LaTeX document.
03:37 Press Ctrl and t keys together to start the compilation.
03:43 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 documents.
04:00 We have completed the basic installation of LATEX.
04:04 This is sufficient for many formatting requirements.
04:07 You may now leave this tutorial. Practice the remaining LATEX tutorials on the playlist
04:14 While practising other tutorials, you may get the following error message:“The required file ABC is missing. It is a part of the following package: XYZ”
04:25 Here ABC is a file inside the package XYZ
04:29 ABC and XYZ will be specific to your case.
04:33 When you get such an error message, listen to the rest of this tutorial.
04:38 Two ways to solve that problem are explained in the rest of this tutorial. At least one of them should work for you.
04:46 Goodbye for now
04:48 Do you want to know how to solve a problem of the following type: Listen to the rest of this tutorial and practise with me.
04:56 Now let us compile a Beamer document.
04:59 Beamer package by default is not included in the MikTeX setup that we have installed.
05:05 This means that we have to : download it from some source and add it to our current MikTeX distribution
05:12 There are two ways of installing a missing package.
05:16 One way is to install it on the fly while we are compiling a LaTeX document
05:21 This LaTeX document will typically require a package not available in your MikTeX distribution.
05:28 Other way, is to manually choose and install a package using Package Manager of MikTeX.
05:35 Let us see the first method.
05:37 We will open and compile a LaTeX document, which requires MikTeX to install packages from the internet.
05:44 First close the TeXworks editor.
05:48 It is required that we open the tex file with administrator privileges.
05:53 Click on the start button. Then click on All programs. Click on MikTeX2.9
06:02 Right click on TeXworks and choose Run as Administrator
06:08 This will launch the TeXworks editor with administrator privileges.
06:13 Now click on File. Then click on Open Choose the file beamer.tex
06:21 Press Ctrl and t keys together to start the compilation.
06:26 A Package Installation dialog box will open.
06:30 It will ask to install the missing package beamer.cls.
06:35 Click on Change button on this dialog box.
06:40 Change Package Repository dialog box will open.
06:44 Choose the option Packages shall be installed from the internet.
06:49 Click on Connection Settings.
06:52 It will prompt you to configure the proxy settings.
06:56 If you are not on a proxy network then leave the Use proxy server checkbox unchecked.
07:03 Since i am on a proxy network, i will enable the option by clicking on the checkbox
07:09 I will enter the proxy address.
07:13 I will enter proxy port number.
07:16 I will enable the option Authentication required by clicking on the corresponding checkbox
07:23 Click on Ok. And then click on Next
07:27 It will ask me the proxy username and password.
07:31 I will enter the information and click on OK.
07:36 It will show a list of various remote package repositories.
07:41 Choose one from the list and click on Finish.
07:45 Click on Install.
07:48 It will install the beamer.cls package
07:52 Once again the Package Installation dialog box will open.
07:57 It will prompt to install the missing package pgfcore.sty.
08:03 You may uncheck the option Always show this dialog before installing packages.
08:09 If you do this, MikTeX will not prompt you again, if it encounters a missing package.
08:16 Click on Install.
08:18 Now if there any more missing packages, it will automatically install it, without asking for your permission.
08:28 Once the installation completes, it will finish the compilation and open the pdf output.
08:35 We can see that we have successfully compiled a Beamer document.
08:39 Now let us see the second method of installing missing packages.
08:44 Click on the Windows start button.
08:47 Click on All Programs.
08:49 Click on MikTeX2.9
08:52 Click on Maintenance (Admin)
08:55 Cick on Package Manager (Admin)
09:00 It will show a list of various packages available.
09:04 Now let us take a look at this list.
09:07 There are six columns in this list.
09:10 These are Name, Category, Size, Packaged date, Installed on date and Title.
09:18 The Installed on column is very important to us.
09:22 The packages for which this column is blank indicates that these packages are not installed.
09:29 Let us see how to install a particular package.
09:33 Let me choose the package abc, for example.
09:38 Notice that the moment I choose the package, the plus button on the top left side gets enabled.
09:45 The plus button is the install button. Click on the plus button.
09:50 A window will open which will list the number of packages you have chosen to install or uninstall.
09:58 Click on Proceed.
10:01 Since I have configured a proxy network connection, it will prompt me for the proxy username and password.
10:08 Let me type my username and password
10:11 Click on Ok
10:13 A window will open which will show the download progress of the package selected for installation.
10:20 It may happen that it fails to download the requested package due to remote server connectivity issues.
10:26 In that case, change the package repository and try again.
10:31 We can see that the installation of selected package is completed.
10:36 Click on Close.
10:38 The package list will get refreshed.
10:41 Notice that 11 september 2013 appears in the Installed on column for package abc.
10:49 This completes the tutorial LaTeX on Windows using TeXworks
10:54 In this tutorial we learnt to - Download and install MikTeX.
10:59 Write a basic LaTeX document using TeXworks
11:03 Configure MikTeX to download missing packages in 2 different ways
11:08 Watch the video available at , http://spoken-tutorial.org/What_is_a_Spoken_Tutorial
11:12 It summarizes the Spoken Tutorial project, If you do not have good bandwidth, you can download and watch it.
11:18 The Spoken Tutorial Project Team Conducts workshops using spoken tutorials. Gives certificates to those who pass an online test .
11:28 For more details, please write to contact@spoken-tutorial.org
11:33 Spoken Tutorial Project is a part of the Talk to a Teacher project. It is supported by the National Mission on Education through ICT, MHRD, Government of India.
11:45 More information on the same is available at, http://spoken-tutorial.org /NMEICT-Intro
11:56 This is Rupak Rokade from IIT Bombay signing off. Thanks for watching.

Contributors and Content Editors

Jyotisolanki, PoojaMoolya, Pratik kamble, Sandhya.np14