Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

LaTeX/C2/LaTeX-on-Windows-using-
TeXworks/English
From Script | Spoken-Tutorial

Title of script: LaTeX on Windows using TeXworks

Author: Rupak Rokade

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

Visual Cue Narration


Dear Friends,

On slide Welcome to the spoken tutorial on “LaTeX on Windows


using TeXworks”

On slide In this tutorial we will learn to,

1. Download and install MikTeX


2. Write basic LaTeX documents using TeXworks
3. Configure MikTeX to download missing packages

To record this tutorial, I am using Windows7 operating


On slide
system and MikTeX2.9
On slide Let us now see the salient features of TeXworks

1. It is platform independent
2. It has an embedded pdf reader
3. It supports Indian language typesetting

Before we start with TeXworks, we have to


install MikTeX.

On slide MikTeX is an up-to-date implementation


of TeX/LaTeXand related programs for Windows.

It contains the necessary packages to create basic


documents in LaTeX on Windows

Moreover, TeXworks is a default editor available


with MikTeX installation.

On the browser Go to the website www.miktex.org


Click on that link Click on the download link for
recommended MikTeXinstaller.

This will download the MikTeX installer.


https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 1/8
5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

Choose Desktop in Save location Download and save it on your Desktop.

It is a large file, about 154 mega bytes.

Hence, it will take some time to download.

Switch to the Desktop and point to the file. I have already downloaded this file. Here it is.
Double-click >> click Run Double click on this file to start the installation.

Check the check box and click on Next.

Choose all default options.

Show the installation process The installation will take around 5 to 10 minutes.

I have already installed MikTeX on my computer.

Hence I will not proceed with the installation.

After successfully installing MikTeX on your computer,

let us see how to use the TeXworks editor which comes


with MikTeX.

Click on the Windows start button.


Click on Windows>>All programs
>> MikTeX>>TeXworks
Click on All Programs.

Click on MikTeX2.9

Click on TeXworks

TeXworks editor will open.

Let me open an already existing LaTeX document.

I will click on File, then click on Open and choose the


directory.
Click on File >> Open >> hello.tex
Then I will open the file hello.tex.

You can see that the text written in the file is colored.
Point to some of the coloured text
This is called syntax highlighting.

Point also to the user content It helps the user differentiate between the user content and
the LaTeX syntax.

In case the LaTeX syntax is not highlighted, do the


following.
Click on Format In the TeXworks window, click on Format button
https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 2/8
5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

available on the Menu bar.


Select Syntax Colouring>>LaTeX. Select Syntax Colouring and then click on LaTeX.
If you want TeXworks to apply syntax highlighting every
time you create a LaTeX document, do the following
On the menu bar, click on Edit and then click
Click on Edit >> Preferences
on Preferences.
In the Editor tab, click on the dropdown button which
Editor tab>> dropdown>> Syntax Colouring
gives options for Syntax Colouring.
Choose LaTeX>>Ok Choose LaTeX and then click on Ok.
In this way, syntax highlighting will be applied to all
documents created in the future.
Now we are ready to compile our LaTeX document.
Press Ctrl+T keys Press Ctrl and t keys together to start the compilation.
Once the document is compiled without errors, the
resulting pdf will be opened.
Note that this pdf reader comes along with TeXworks.

Point to the pdf document


It is the default pdf reader used by TeXworks to display
the compiled pdf documents.

We have completed the basic installation of LATEX

This is sufficient for many formatting requirements

On slide You may now leave this tutorial

Practice the remaining LATEX tutorials on the playlist

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”
On slide
Here ABC is a file inside the package XYZ

ABC and XYZ will be specific to your case

On slide When you get such an error message, listen to the rest of
THIS tutorial

Two ways to solve that problem are explained in the rest of


this tutorial

At least one of them should work for you

https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 3/8
5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

Goodbye for now

Do you want to know how to solve a problem of the


following type:

“The required file ABC is missing. It is a part of the


On slide following package: XYZ”

Listen to the rest of this tutorial and practise with me

Now let us compile a Beamer document.


Beamer package by default is not included in
On slide the MikTeXsetup that we have installed.

This means that we have to

download it from some source and


add it to our current MikTeX distribution

There are two ways of installing a missing package.

One way is to install it on the fly while we are compiling


On slide a LaTeX document

This LaTeX document will typically require a package not


available in your MikTeX distribution.

Other way, is to manually choose and install a package


using Package Manager of MikTeX.

Let us see the first method.


We will

open and compile a LaTeX document,


which requires MikTeX
to install packages from the internet.

Close TeXworks First close the TeXworks editor.


It is required that we open the tex file with administrator
Click on Start>> All programs >> MikTeX privileges.

Click on the start button.

Then click on All programs.

Click on MikTeX2.9

Right-click TeXworks >> Run as Administrator Right click on TeXworks and choose Run as
Administrator
https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 4/8
5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

This will launch the TeXworks editor


with administratorprivileges.

Now click on File.

Click on File>> Open>> beamer.tex Then click on Open

Choose the file beamer.tex

Press Ctrl+T keys Press Ctrl and t keys together to start the compilation.
A Package Installation dialog box will open.
Dialog box
It will ask to install the missing package beamer.cls.

Click Change Click on Change button on this dialog box.


Dialog box Change Package Repository dialog box will open.
Choose the option Packages shall be installed from the
Choose as told
internet option.
Click Connection Settings Click on Connection Settings.
It will prompt you to configure the proxy settings.
If you are not on a proxy network then leave the Use
Point to Use proxy server option
proxy server checkbox unchecked.
Since i am on a proxy network, i will enable the option by
Click on the checkbox
clicking on the checkbox
Type proxy address I will enter the proxy address.
Type the port number I will enter proxy port number.
I will enable the option Authentication required by
Click on Authentication required checkbox
clicking on the corresponding checkbox
Click OK>>Next Click on Ok. And then click on Next
It will ask me the proxy username and password.
Enter proxy>>OK I will enter the information and click on OK.
It will show a list of various remote package repositories.
Choose one repository >> Finish
Choose one from the list and click on Finish.

Click on Install.
Click Install
It will install the beamer.cls package

Once again the Package Installation dialog box will


Dialog box
open.
Point to pgfcore.sty It will prompt to install the missing package pgfcore.sty.
You may uncheck the option Always show this dialog
before installing packages.
Uncheck the checkbox
If you do this, MikTeX will not prompt you again, if it
encounters a missing package.

https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 5/8
5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

Click Install Click on Install.


Now if there any more missing packages, it will
automatically install it, without asking for your
permission.
Once the installation completes, it will finish the
compilation and open the pdf output.
Point to the output side.
We can see that we have successfully compiled
a Beamerdocument.

Now let us see the second method of installing missing


Click on Start >>All programs >>MikTeX>> packages.
Maintenance(Admin) >> Package
Click on the Windows start button.
Manager(Admin)
Click on All Programs.

Click on MikTeX2.9

Click on Maintenance (Admin)

Cick on Package Manager (Admin)

It will show a list of various packages available

Now let us take a look at this list.

There are six columns in this list.

Point to the columns These are Name, Category, Size, Packaged date,
Installed on date and Title.

The Installed on column is very important to us.


The packages for which this column is blank indicates that
Point to the blank column entries
these packages are not installed.
Let us see how to install a particular package.
check this step of proxy authentication Let me choose the package abc, for example.
Notice that the moment I choose the package,
Point to the plus button
the plusbutton on the top left side gets enabled.
The plus button is the install button.
Click on the plus button
Click on the plus button.

A window will open which will list the number of


packages you have chosen to install or uninstall.
Click Proceed Click on Proceed.
Since I have configured a proxy network connection, it
Proxy dialog box
will prompt me for the proxy username and password.
Type proxy Let me type my username and password

https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 6/8
5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

Click Ok Click on Ok
Window A window will open which will show the download
progress of the package selected for installation.

It may happen that it fails to download the requested


package due to remote server connectivity issues.

In that case, change the package repository and try again.

We can see that the installation of selected package is


completed.
Click Close
Click on Close.

The package list will get refreshed.

Point to the entry Notice that 11 september 2013 appears in


the Installed oncolumn for package abc.

This completes the tutorial LaTeX on Windows using


TeXworks
On slide In this tutorial we learnt to -

Download and install MikTeX


Write a basic LaTeX document using TeXworks
Configure MikTeX to download missing packages
in 2 different ways

* Watch the video available at , http://spoken-


tutorial.org/What_is_a_Spoken_Tutorial

It summarizes the Spoken Tutorial project


On slide If you do not have good bandwidth, you can
download and watch it.

The Spoken Tutorial Project Team

Conducts workshops using spoken tutorials


On slide Gives certificates to those who pass an online test .
For more details, please write to contact@spoken-
tutorial.org

* Spoken Tutorial Project is a part of the Talk to a Teacher


project

It is supported by the National Mission on Education


On slide
through ICT, MHRD, Government of India.
More information on the same is available
at, http://spoken-tutorial.org /NMEICT-Intro

https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 7/8
5/14/2020 LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English - Script | Spoken-Tutorial

This is Rupak Rokade from IIT Bombay signing off.


Thanks for watchin

https://script.spoken-tutorial.org/index.php/LaTeX/C2/LaTeX-on-Windows-using-TeXworks/English 8/8

You might also like