Difference between revisions of "LaTeX"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with ''''You are here''': Main Page >> Spoken Tutorial Processes >> LaTeX ==Scripts for LaTeX== == Basic Level LaTeX == # Installing MikTeX #* Locate miktex.org, download, in…')
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''You are here''': [[Main Page]] >> [[Spoken Tutorial Processes]] >> LaTeX
+
__TOC__
==Scripts for LaTeX==
+
 
+
 
== Basic Level LaTeX ==
 
== Basic Level LaTeX ==
# Installing MikTeX
+
# LaTeX on Windows using TeXworks
#* Locate miktex.org, download, install
+
#* Installing MikTeX on Windows
#* Go to adobe.com, download free adobe reader, install
+
#* Writing basic LaTeX document using TeXworks editor
#* Go to texniccenter.org, download TexnicCenter, install
+
#* Configuring MikTeX to download missing packages
#* Configure TexnicCenter: give the path of adobe reader, use the default path of MikTeX
+
# Report Writing
#* Show TexnicCenter help, make fonts bigger
+
#*report style having chapter, section and subsection
#* Load a file hello.tex and compile using CTRL SHIFT F5 and display using adobe
+
#*article style having section, subsection and subsubsection
#* Shortcomings of adobe - after every compilation, shows the first page - difficult in case of long documents
+
#*Automatic generation of table of contents
#* This problem is overcome in pdf reader sumatra: download it from sumatra.org and install
+
#*toc file to store the information that goes into the table of contents
#* Change the browser path to sumatra in TexnicCenter
+
#*Automatic numbering of section numbers
#* Open pdf file with CTRL F7, show after every compilation that sumatra updates the document and stays in the current page
+
#*Appendix; its appearance in report and article style
# What is Compiling?
+
#*exiting from LaTeX when a compilation error occurs
#* Using an editor, open a new ''source'' file, hello.tex, add the following lines and save:
+
#* \documentclass[12pt]{article} hello world! \end{document}
+
#* Compile using ''pdflatex hello.tex'' and also using ''pdflatex hello''
+
#* Importance of saving before compilation
+
#* Importance of saving frequently
+
#* Screen arrangement to viewing three activities: editing, compiling and viewing the output
+
#* View the compiled file using a browser that shows the latest changes
+
#* Change the file, compile and demonstrate how the pdf file shows the changes
+
#* Why LaTeX is important
+
#* Summary of spoken tutorials available on LaTeX
+
#* Where to get more help
+
# MikTeX Updates
+
#* Two ways to update MikTeX
+
#* Package repositories
+
#* Proxy server: address, port number
+
#* Authentication in proxy server: name and password
+
#* Browsing all known packages
+
#* Two ways to download and install a package: Beamer example
+
#* Automatic installation of missing packages
+
#* Compiling a beamer file
+
 
# Letter Writing  
 
# Letter Writing  
#* Letter document class
+
#*Letter document class
#* 12pt and 11pt and 10pt font size
+
#* From address  
#* From address appearing in top right hand corner - remove and put it back
+
 
#* Automatic generation and format of date
 
#* Automatic generation and format of date
 
#* Starting a new line with double slash
 
#* Starting a new line with double slash
#* To address
+
#*To address
#* Opening statement
+
#*Starting a new paragraph with a blank line
#* Starting a new paragraph with a blank line
+
 
#* itemize environment for bullet points
 
#* itemize environment for bullet points
 
#* enumerate environment for numbered points
 
#* enumerate environment for numbered points
#* Closing statement
+
#*Closing statement
#* Signature  
+
#* Signature
#* Carbon copy
+
#* Carbon copy  
# Report Writing
+
#* report style having chapter, section and subsection
+
#* article style having section, subsection and subsubsection
+
#* Size of the above three are proportionate to each other and to the font size chosen
+
#* Blank lines do not change the appearance in the output
+
#* Automatic generation of table of contents
+
#* toc file to store the information that goes into the table of contents
+
#* Table of contents appearing in the place where tableofcontents command is given
+
#* Automatic numbering of section numbers
+
#* maketitle command to create title, author information and date
+
#* appendix command to create Appendix; its appearance in report and article style
+
#* exiting from LaTeX when a compilation error occurs
+
 
# Mathematical Typesetting  
 
# Mathematical Typesetting  
 
#* $ sign to begin and end mathematical expressions
 
#* $ sign to begin and end mathematical expressions
Line 91: Line 55:
 
#* Blank lines in the align environment is not permissible
 
#* Blank lines in the align environment is not permissible
 
# Tables and Figures  
 
# Tables and Figures  
 +
#* Creating tables and figures in Latex
 
# Beamer  
 
# Beamer  
 +
#* Creating a presentation using a Beamer
 
# Bibliography  
 
# Bibliography  
# Inside story of Bibliography  
+
#* Creaing Bibliography in Latex
 +
 
 +
 
 +
===XFig===
 +
Xfig is an interactive drawing tool which runs under X Window System on most UNIX-compatible platforms, including Mac OS X and any X server under Microsoft Windows.
 +
 
 +
In Xfig, figures may be drawn using objects such as circles, boxes, lines, spline curves, text, etc.  It is also possible to import images in formats such as GIF, JPEG, EPS, etc. Those objects can be created, deleted, moved or modified. Attributes such as colors or line styles can be selected in various ways. For text, many fonts are available.
 +
 
 +
A three button mouse is recommended to work with Xfig, although, one/two button mouse can also be configured to work with Xfig.
 +
 
 +
It is possible to embed LaTeX mathematical formulae in block diagrams created using Xfig.
 +
 
 +
http://linux.math.tifr.res.in/manuals/html/xfig/contents.html has the up-to-date information on Xfig.
 +
 
 +
The slides in this page make use of our project logo, available at [[File:ST_3T_Logo.pdf]].  We welcome readers to create additional spoken tutorials. 
 +
 
 +
#Simple block diagram
 +
#* Explain panel on left hand side, bottom, top left and canvas of Xfig worksheet
 +
#* Create a box, increase thickness through editing
 +
#* Create an arrow
 +
#* Change the font size of text, create text and move inside the box
 +
#* Change the attribute value and add lines with arrow head directly
 +
#* Save the file as block.fig and export the pdf file
 +
#Feedback control diagram 
 +
#* Open the .fig file created in the simple block diagram tutorial
 +
#* Copy the box
 +
#* Change the text justification to centre aligned
 +
#* Enter text directly into the box
 +
#* Put a dot from the logic library
 +
#* Create a circle, delete it and redraw it
 +
#* Explain the scroll bar on the right and also the mouse button indicators on top right corner
 +
#* Save the file as feedback.fig
 +
#Feedback diagram with Maths
 +
#* Open the .fig file saved in the feedback control tutorial
 +
#* Put $G(z) = \frac z{z-1}$ in the second block diagram
 +
#* Choose the special flag
 +
#* Save and export it as combined tex and pdf
 +
#* Show that if "special" is not chosen, we get only text
 +
#* Change /frac into /dfrac
 +
#* Show that at the time of compilation, dfrac unknown error
 +
#* Include \usepackage{amsmath} in the tex file
 +
#* Recompile it and show that the equation is now coming properly
 +
#* Use pdfcrop to trim the pdf file, mention Briss
 +
 
 +
 
 +
 
 
==Intermediate Level==
 
==Intermediate Level==
  
 
==Advanced Level==
 
==Advanced Level==

Revision as of 13:04, 18 May 2018

Basic Level LaTeX

  1. LaTeX on Windows using TeXworks
    • Installing MikTeX on Windows
    • Writing basic LaTeX document using TeXworks editor
    • Configuring MikTeX to download missing packages
  2. Report Writing
    • report style having chapter, section and subsection
    • article style having section, subsection and subsubsection
    • Automatic generation of table of contents
    • toc file to store the information that goes into the table of contents
    • Automatic numbering of section numbers
    • Appendix; its appearance in report and article style
    • exiting from LaTeX when a compilation error occurs
  3. Letter Writing
    • Letter document class
    • From address
    • Automatic generation and format of date
    • Starting a new line with double slash
    • To address
    • Starting a new paragraph with a blank line
    • itemize environment for bullet points
    • enumerate environment for numbered points
    • Closing statement
    • Signature
    • Carbon copy
  4. Mathematical Typesetting
    • $ sign to begin and end mathematical expressions
    • Creating alpha, beta, gamma and delta
    • Space being used as a terminator of symbols
    • Creating spaces in mathematical formulae
    • Difference in font of text and formula
    • Difference in the minus sign in text and in formula
    • frac command to create fractions
    • Subscripts and superscripts
    • Use of braces {} to demarcate arguments
    • Not equal to, greater than or equal to, less than or equal to, much less than
    • Right arrow, left arrow, left right arrow, up arrow
    • Integral sign, limits of an integral
    • Matrices of different rows and columns
  5. Equations
    • amsmath package and align and align* environments to create equations
    • Matrix differential equation
    • aligning two equations using &, with and without intervening text
    • Automatic numbering of equations using align
    • Labeling equations with the label command
    • Cross referencing equation numbers through the ref command
    • Inserting text between two aligned equations through the intertext command
    • Automatic generation of equation numbers at run time allows insertion and removal of an equation from a set of equations
    • Labeling sections and subsections for easy and fool-proof cross referencing
    • Breaking an equation into more than one line
    • Suppression of equation numbers in the align environment using the nonumber command
    • Use of backslash (\) to make braces appear as braces
    • left[, right] and also left[. (i.e. left bracking fullstop)
    • Blank lines in the align environment is not permissible
  6. Tables and Figures
    • Creating tables and figures in Latex
  7. Beamer
    • Creating a presentation using a Beamer
  8. Bibliography
    • Creaing Bibliography in Latex


XFig

Xfig is an interactive drawing tool which runs under X Window System on most UNIX-compatible platforms, including Mac OS X and any X server under Microsoft Windows.

In Xfig, figures may be drawn using objects such as circles, boxes, lines, spline curves, text, etc. It is also possible to import images in formats such as GIF, JPEG, EPS, etc. Those objects can be created, deleted, moved or modified. Attributes such as colors or line styles can be selected in various ways. For text, many fonts are available.

A three button mouse is recommended to work with Xfig, although, one/two button mouse can also be configured to work with Xfig.

It is possible to embed LaTeX mathematical formulae in block diagrams created using Xfig.

http://linux.math.tifr.res.in/manuals/html/xfig/contents.html has the up-to-date information on Xfig.

The slides in this page make use of our project logo, available at File:ST 3T Logo.pdf. We welcome readers to create additional spoken tutorials.

  1. Simple block diagram
    • Explain panel on left hand side, bottom, top left and canvas of Xfig worksheet
    • Create a box, increase thickness through editing
    • Create an arrow
    • Change the font size of text, create text and move inside the box
    • Change the attribute value and add lines with arrow head directly
    • Save the file as block.fig and export the pdf file
  2. Feedback control diagram
    • Open the .fig file created in the simple block diagram tutorial
    • Copy the box
    • Change the text justification to centre aligned
    • Enter text directly into the box
    • Put a dot from the logic library
    • Create a circle, delete it and redraw it
    • Explain the scroll bar on the right and also the mouse button indicators on top right corner
    • Save the file as feedback.fig
  3. Feedback diagram with Maths
    • Open the .fig file saved in the feedback control tutorial
    • Put $G(z) = \frac z{z-1}$ in the second block diagram
    • Choose the special flag
    • Save and export it as combined tex and pdf
    • Show that if "special" is not chosen, we get only text
    • Change /frac into /dfrac
    • Show that at the time of compilation, dfrac unknown error
    • Include \usepackage{amsmath} in the tex file
    • Recompile it and show that the equation is now coming properly
    • Use pdfcrop to trim the pdf file, mention Briss


Intermediate Level

Advanced Level

Contributors and Content Editors

Gaurav, Minal, Nancyvarkey, PoojaMoolya, Pravin1389