Difference between revisions of "LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English-timed"
From Script | Spoken-Tutorial
Jyotisolanki (Talk | contribs) |
Jyotisolanki (Talk | contribs) |
||
Line 237: | Line 237: | ||
|- | |- | ||
|04:48 | |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 | + | |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. |
|- | |- |
Revision as of 13:28, 22 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. |
04:21 | 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. |