0% found this document useful (0 votes)
17 views

Lecture 7

Uploaded by

Srijani Goswami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Lecture 7

Uploaded by

Srijani Goswami
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Technical document preparation with LaTeX?

With hands on experience

Kaushik Roy

West Bengal State University, Barasat


[email protected]

May 30, 2024

Kaushik Roy (WBSU) LaTeX May 30, 2024 1 / 18


Outline

1 Introduction to LATEX

2 Text formatting

3 Figure & Tables

4 Mathematics & Algorithm

5 Reference & Cross Reference

6 Advanced features of LATEX

7 Presentation using LATEX

8 Drawing Figures
Kaushik Roy (WBSU) LaTeX May 30, 2024 2 / 18
What are LATEXPackages?

• A basic TeX distribution doesn’t actually provide much


functionality.
• In most cases, creating a LaTeX document will require packages
that provide additional options or functionality.
• There is an extremely broad range of packages available, but they
generally fall into two categories:
• Packages that allow you to change the layout or structure of your
document, like multicol
• Packages that allow you to include new or enhanced content within
your document itself, like amsmath
• Packages required by a document are called in the preamble of
your LaTeX document, i.e. before the
\documentclass{document} statement. The syntax to do so is
\usepackage{. . . }, with the name of the package included in the
brackets.

Kaushik Roy (WBSU) LaTeX May 30, 2024 3 / 18


Syntax of LATEXPackages

Kaushik Roy (WBSU) LaTeX May 30, 2024 4 / 18


List of LATEXPackages?

• There are many useful LaTeX packages that can enhance the
functionality and appearance of your documents. Some popular
and widely used packages include:
1 amsmath: Provides numerous enhancements for typesetting
mathematical formulas.
2 graphicx: Allows for the inclusion of graphics in your documents.
3 hyperref: Enables the creation of hyperlinks within the document.
4 babel: Provides multilingual support for documents.
5 natbib: Assists with the formatting of citations and bibliography.
6 listings: Facilitates the inclusion of source code in the document.
7 fancyhdr: Allows for customization of headers and footers.
8 tikz: A powerful tool for creating graphics and diagrams directly
within LaTeX.
• These are just a few examples, and there are many other
packages available to suit a wide range of specific needs.

Kaushik Roy (WBSU) LaTeX May 30, 2024 5 / 18


Document Classes covered till now

• Article.
• Book.
• Report
• Other classes include
• CV,
• beamer,
• poster,
• Exam, etc.
• Beamer is used to prepare this presentation

Kaushik Roy (WBSU) LaTeX May 30, 2024 6 / 18


Multiple column in a page

\usepackage{multicol}

Output
The first part in single column.

The rest is in multiple The rest is in multiple coulmns.The rest is in


coulmns. The rest is coulmns. The rest is multiple coulmns.
in multiple coulmns. in multiple

Kaushik Roy (WBSU) LaTeX May 30, 2024 7 / 18


Mini page

This text is pro-


cessed in para-
any thing to
Look at this text, graph mode, and how strange!
be framed
then becomes an
inivisible text box.

Kaushik Roy (WBSU) LaTeX May 30, 2024 8 / 18


Theorem

Theorem
Theorem text

Theorem
Theorem text

Kaushik Roy (WBSU) LaTeX May 30, 2024 9 / 18


Multiple Column in presentation

%starting main multi-column enviornment


\begin{columns}
%starting sub multi-column enviornment
\begin{column}{0.5\textwidth}
some text here some text here some text
here some text here some text here Output
%ending sub multi-column enviornment some text here
\end{column} some text here
\begin{column}{0.5\textwidth} some text here
\begin{center} some text here
\includegraphics[width=0.5\textwidth]{Images/frog.jpg}
some text here
\end{center}
\end{column}
%ending main multi-column enviornment
\end{columns}

Kaushik Roy (WBSU) LaTeX May 30, 2024 10 / 18


CV

curve

Kaushik Roy (WBSU) LaTeX May 30, 2024 11 / 18


Organising a Large Document in LATEX?

• Writing a large document can make access to different parts


unwieldy.
• LATEXhas two commands to import files from one another
\input{file}, \include{file}.
• Both include the text in the file given as parameter as-is into the
main document.
• Both perform the same except that \include starts a new page
automatically.

Kaushik Roy (WBSU) LaTeX May 30, 2024 12 / 18


Organising a Large Document in LATEX(contd.)

main.tex proof.tex
\documentstyle{report} \chapter{The Proof of Correctness}
\begin{document} \section{Proof Outline}
\input{frontpage} We prove the correctness of chicken sort
\input{introduction} using a technique based on the Socratic
\input{proof} ⇛ method of discourse.
\input{conclusions} Let us start by assuming that Plato knew
\end{document} about this proof...

Alert
Note that although the files are assumed to be LATEXfiles, the .tex
extension is left out.

Kaushik Roy (WBSU) LaTeX May 30, 2024 13 / 18


Exam

Beamer

Kaushik Roy (WBSU) LaTeX May 30, 2024 14 / 18


Outline

1 Introduction to LATEX

2 Text formatting

3 Figure & Tables

4 Mathematics & Algorithm

5 Reference & Cross Reference

6 Advanced features of LATEX


LATEXPackages

7 Presentation using LATEX

8 Drawing Figures

Kaushik Roy (WBSU) LaTeX May 30, 2024 15 / 18


Outline

1 Introduction to LATEX

2 Text formatting

3 Figure & Tables

4 Mathematics & Algorithm

5 Reference & Cross Reference

6 Advanced features of LATEX


LATEXPackages

7 Presentation using LATEX

8 Drawing Figures

Kaushik Roy (WBSU) LaTeX May 30, 2024 16 / 18


Exercise

1 Prepare your CV using minipage and image.

Kaushik Roy (WBSU) LaTeX May 30, 2024 17 / 18


Conclusion

Kaushik Roy (WBSU) LaTeX May 30, 2024 18 / 18

You might also like