Exercises

Lab-1 For Self Assesment

  1. Compile and produce a pdf output of example1.tex.

  2. Modify example1.tex replacing LaTeX with {\LaTeX}.

  3. Add a title, author and date to the document.

  4. What happens if {\date} is replaced by {\date{IIT, Bombay}} ?

  5. Debug and compile examples 2, 3, 4, 5

  6. Provide a document (pdf and source) with a TOC, but has been compiled only once. Exercise for Debugging.

  7. What happens when you add the following {} code to the document from the previous question?

    \renewcommand{\contentsname}{What is Here?}
  8. Experiment with setting the secnumdepth counter to 1, 0, -1.

  9. Debug and compile example 6.

  10. Experiment with the options of {\documentclass}.

    • 10pt, 11pt, 12pt sets the size of the text of the document.
    • onecolumn, twocolumn
    • draft — makes {} highlight problems in typesetting to be looked at by a human.

Lab-2 For Self Assesment

  1. {\newpage} command adds a page break. Add some page breaks to example 6 and see how the command works.

  2. Try out the commands {\pagestyle} and {\thispagestyle} with the following parameters and look at the outputs obtained.

    • empty,
    • plain,
    • heading
  3. Add the following description list describing the options to {\includegraphics} command to a document and look at the output.

    \begin{description}
    \item[{\texttt{width=x}, \texttt{height=x}}]
    If only the height or width is specified, the image is scaled, maintaining the aspect ratio.
    
    \item[{\texttt{keepaspectratio}}]
    This parameter can either be set to true or false. When set to true, the image is scaled according to both width and height, without changing the aspect ratio, so that it does not exceed both the width and the height dimensions.
    
    \item[{\texttt{angle=x}}]
    This option can be used to rotate the image by \texttt{x} degrees, counter-clockwise.
    
    \end{description}
  4. {\ldots} is used to get ellipsis in {} documents.

  5. Read the manual of listings package and learn how to include a set of lines from a file into a {} document. Include a few lines from your previous lab exercises of ULT.

  6. To change the line spacing of your document {\usepackage{setspace}} and then specify the line spacing of your document, using {\doublespace}, {\onehalfspace}, etc.

  7. Debug and compile examples 9, 10

Lab-3 For Self Assesment

  1. Debug and compile example 7.
  2. BibTeX is another way of handling bibliography. Look at bibtex.rst and change draft.tex to use BibTeX.
  3. As you would’ve already observed, {} compilation produces a lot of other files along with the pdf output.
    • .log — gives a log of what happened during last compilation.
    • .toc — stores section headers. Edit this file and observe changes in this document to see how the compilation of {} works and why two compilations are required for table of contents to work.
    • .aux — used to share information between consecutive compiler runs.
  4. First, third and eighth page
  5. Prepare a presentation in beamer with solutions to any 10 problems from the Lab workbook.
  6. Debug and compile example 8.
  7. Finish the incomplete parts of the draft to obtain the complete output of the sample document that we started out to prepare.

Lab - 4 (For Submission)

  1. Generate the tex file for the files

    1. Pages First, Third and Eight
    2. Including headers, references
  2. Prepare a presentation in beamer with solutions to any 10 problems from the bash exercises using listings package (correctness of the answers is not relevent)

Note

  1. TeX file need not produce only three pages
  2. No Need Of
    1. The Elsevier image on the top left.
    2. The Systems and Control Letters image on the top right
    3. The Systems and Control letters text on the top middle.
    4. Bottom page charges information (of Elsevier)
    5. Required in just one column

Table Of Contents

Previous topic

Introduction

Next topic

Version Control

This Page