Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing...
Transcript of Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing...
![Page 1: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/1.jpg)
Preparing documents and presentations usingLATEX
Mandar Mitra
Indian Statistical Institute
M. Mitra (ISI) LATEX and Beamer 1 / 55
![Page 2: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/2.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 2 / 55
![Page 3: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/3.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 3 / 55
![Page 4: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/4.jpg)
Preamble
\documentclass{beamer}
\usepackage{helvet}
\usefonttheme{professionalfonts}
\usecolortheme[rgb={0.2,0.5,0.5}]{structure}
\AtBeginSection[]{
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
}
\title[\LaTeX\ and Beamer]{Preparing documents ...}
\author[M.\ Mitra]{Mandar Mitra}
\institute[ISI]{Indian Statistical Institute}
\date{}
\begin{document}
\maketitle
M. Mitra (ISI) LATEX and Beamer 4 / 55
![Page 5: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/5.jpg)
Preamble
\documentclass{beamer}
\usepackage{helvet}
\usefonttheme{professionalfonts}
\usecolortheme[rgb={0.2,0.5,0.5}]{structure}
\AtBeginSection[]{
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
}
\title[\LaTeX\ and Beamer]{Preparing documents ...}
\author[M.\ Mitra]{Mandar Mitra}
\institute[ISI]{Indian Statistical Institute}
\date{}
\begin{document}
\maketitle
M. Mitra (ISI) LATEX and Beamer 4 / 55
![Page 6: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/6.jpg)
Preamble
\documentclass{beamer}
\usepackage{helvet}
\usefonttheme{professionalfonts}
\usecolortheme[rgb={0.2,0.5,0.5}]{structure}
\AtBeginSection[]{
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
}
\title[\LaTeX\ and Beamer]{Preparing documents ...}
\author[M.\ Mitra]{Mandar Mitra}
\institute[ISI]{Indian Statistical Institute}
\date{}
\begin{document}
\maketitle
M. Mitra (ISI) LATEX and Beamer 4 / 55
![Page 7: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/7.jpg)
Preamble
\documentclass{beamer}
\usepackage{helvet}
\usefonttheme{professionalfonts}
\usecolortheme[rgb={0.2,0.5,0.5}]{structure}
\AtBeginSection[]{
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
}
\title[\LaTeX\ and Beamer]{Preparing documents ...}
\author[M.\ Mitra]{Mandar Mitra}
\institute[ISI]{Indian Statistical Institute}
\date{}
\begin{document}
\maketitle
M. Mitra (ISI) LATEX and Beamer 4 / 55
![Page 8: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/8.jpg)
Preamble
\documentclass{beamer}
\usepackage{helvet}
\usefonttheme{professionalfonts}
\usecolortheme[rgb={0.2,0.5,0.5}]{structure}
\AtBeginSection[]{
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
}
\title[\LaTeX\ and Beamer]{Preparing documents ...}
\author[M.\ Mitra]{Mandar Mitra}
\institute[ISI]{Indian Statistical Institute}
\date{}
\begin{document}
\maketitle
M. Mitra (ISI) LATEX and Beamer 4 / 55
![Page 9: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/9.jpg)
Useful environments
Frames\begin{frame}[fragile,t]{Preamble} . . . \end{frame}..
Code, etc.\begin{verbatim} . . . \end{verbatim}\begin{semiverbatim} . . . \end{semiverbatim}
Blocks\begin{block}{Example} . . . \end{block}
.Example........This is an example block.
M. Mitra (ISI) LATEX and Beamer 5 / 55
![Page 10: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/10.jpg)
Useful environments
Frames\begin{frame}[fragile,t]{Preamble} . . . \end{frame}..
Code, etc.\begin{verbatim} . . . \end{verbatim}\begin{semiverbatim} . . . \end{semiverbatim}
Blocks\begin{block}{Example} . . . \end{block}
.Example........This is an example block.
M. Mitra (ISI) LATEX and Beamer 5 / 55
![Page 11: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/11.jpg)
Useful environments
Columns
.Column 1..
......
Hereisonecolumn.
.Column 2..
......
M. Mitra (ISI) LATEX and Beamer 6 / 55
![Page 12: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/12.jpg)
Useful environments
Columns
\begin{columns}[t]
\column[T]{0.45\textwidth}
\begin{block}{Column 1}
Here
is
one
column.
\end{block}
\column[T]{0.45\textwidth}
\begin{block}{Column 2}
\includegraphics[width=0.95\textwidth]{figs/alignment.png}
\end{block}
\end{columns}
M. Mitra (ISI) LATEX and Beamer 6 / 55
![Page 13: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/13.jpg)
Useful commands
\alert{}
\only, \uncover, \visible
\onlyenv, \uncoverenv, \visibleenv
\pause
\section, \subsection, \subsubsection (in between frames)
\verb
M. Mitra (ISI) LATEX and Beamer 7 / 55
![Page 14: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/14.jpg)
References
A Beamer Tutorial in Beamerhttp://www.uncg.edu/cmp/reu/presentations/Charles%20Batts%20-%
20Beamer%20Tutorial.pdf
A Beamer Quickstart http://www.math.umbc.edu/~rouben/beamer/
Norm Matloff’s Quick Tutorialhttp://heather.cs.ucdavis.edu/~matloff/beamer.html
Beamer by Examplehttp://www.tug.org/pracjourn/2005-4/mertz/mertz.pdf
Beamer v3.0 Guidehttp://research.microsoft.com/en-us/um/people/saikat/ref/beamer_
guide.pdf
Beamer User Guidehttp://www.tug.org/tetex/tetex-texmfdist/doc/latex/beamer/
beameruserguide.pdfM. Mitra (ISI) LATEX and Beamer 8 / 55
![Page 15: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/15.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 9 / 55
![Page 16: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/16.jpg)
Where to get them
Packages provided by your (GNU/Linux) distributiontexlive-generic-recommended
texlive-latex-recommended
texlive-latex-extra
etc.
TEX Live installation from scratchinstallation: http://www.tug.org/texlive/quickinstall.html
package manager: tlmgrtlmgr install <pkgname>
MikTeX (Windows only?)
M. Mitra (ISI) LATEX and Beamer 10 / 55
![Page 17: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/17.jpg)
Where to get them
The Comprehensive TEX Archive Network http://ctan.org/
1 Download the package.http://www.ctan.org/tex-archive/support/ctantools
2 Extract the files: run LATEX on the .ins file.
3 Create the documentation: run LATEX on the .dtx file.
4 Install the files.
M. Mitra (ISI) LATEX and Beamer 11 / 55
![Page 18: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/18.jpg)
Private installation
Put files in ~/latex or ~/texmf
Setup paths for TEX and LATEXexport MYLATEX="/home/mandar/latex"
export BSTINPUTS=":$MYLATEX" # Bibliography style files
export MFINPUTS=":$MYLATEX/fonts/source"
export TEXINPUTS="$MYLATEX:$MYLATEX/tikz:$MYLATEX/images:"
export PKFONTS=":$MYLATEX/fonts/pk"
export TEXFONTS=":$MFINPUTS:$MYLATEX/fonts:$MYLATEX/fonts/pk"
export TEXPKS=":$MYLATEX/fonts/pk"
Can use a standard macros.tex
M. Mitra (ISI) LATEX and Beamer 12 / 55
![Page 19: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/19.jpg)
Private installation
Put files in ~/latex or ~/texmf
Setup paths for TEX and LATEXexport MYLATEX="/home/mandar/latex"
export BSTINPUTS=":$MYLATEX" # Bibliography style files
export MFINPUTS=":$MYLATEX/fonts/source"
export TEXINPUTS="$MYLATEX:$MYLATEX/tikz:$MYLATEX/images:"
export PKFONTS=":$MYLATEX/fonts/pk"
export TEXFONTS=":$MFINPUTS:$MYLATEX/fonts:$MYLATEX/fonts/pk"
export TEXPKS=":$MYLATEX/fonts/pk"
Can use a standard macros.tex
M. Mitra (ISI) LATEX and Beamer 12 / 55
![Page 20: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/20.jpg)
Private installation
Put files in ~/latex or ~/texmf
Setup paths for TEX and LATEXexport MYLATEX="/home/mandar/latex"
export BSTINPUTS=":$MYLATEX" # Bibliography style files
export MFINPUTS=":$MYLATEX/fonts/source"
export TEXINPUTS="$MYLATEX:$MYLATEX/tikz:$MYLATEX/images:"
export PKFONTS=":$MYLATEX/fonts/pk"
export TEXFONTS=":$MFINPUTS:$MYLATEX/fonts:$MYLATEX/fonts/pk"
export TEXPKS=":$MYLATEX/fonts/pk"
Can use a standard macros.tex
M. Mitra (ISI) LATEX and Beamer 12 / 55
![Page 21: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/21.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 13 / 55
![Page 22: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/22.jpg)
Basics
tabular environment
\begin{tabular}{ l c r }
1 & 2 & 3 \\
14 & 25 & 36 \\
147 & 258 & 369 \\
\end{tabular}
1 2 314 25 36147 258 369
M. Mitra (ISI) LATEX and Beamer 14 / 55
![Page 23: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/23.jpg)
Basics
Commands \multicolumn, \cline
\begin{tabular}{ l c r }
\multicolumn{3}{c}{Heading} \\
1 & 2 & 3 \\
14 & 25 & 36 \\
147 & 258 & 369 \\\cline{1-2}
\end{tabular}
Heading1 2 314 25 36147 258 369
M. Mitra (ISI) LATEX and Beamer 15 / 55
![Page 24: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/24.jpg)
Basics
Commands \multicolumn, \cline
\begin{tabular}{ l c r }
\multicolumn{3}{c}{Heading} \\
1 & 2 & 3 \\
14 & 25 & 36 \\
147 & 258 & 369 \\\cline{1-2}
\end{tabular}
Heading1 2 314 25 36147 258 369
M. Mitra (ISI) LATEX and Beamer 15 / 55
![Page 25: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/25.jpg)
“Professional” tables
Tables in LATEX 2ε: Packages and Methods, Lapo Filippo Mori
Good style: Avoid vertical lines, horizontal lines in body, doublelines, etc.
Requirementslines and spacing
horizontal and vertical alignment
Packagestabularx
tabulary
ctable (includes packages array, tabularx and booktabs)
tabu
multirow
M. Mitra (ISI) LATEX and Beamer 16 / 55
![Page 26: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/26.jpg)
“Professional” tables
Tables in LATEX 2ε: Packages and Methods, Lapo Filippo Mori
Good style: Avoid vertical lines, horizontal lines in body, doublelines, etc.
Requirementslines and spacing
horizontal and vertical alignment
Packagestabularx
tabulary
ctable (includes packages array, tabularx and booktabs)
tabu
multirow
M. Mitra (ISI) LATEX and Beamer 16 / 55
![Page 27: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/27.jpg)
Lines and spacing
Use ctable or booktabs
\toprule, \bottomrule, \midrule, \cmidrule
\newcommand{\otoprule}{\midrule[\heavyrulewidth]}
\begin{tabular}{ l c r }\toprule
1 & 2 & 3 \\\otoprule
14 & 25 & 36 \\[1em]
147 & 258 & 369 \\\bottomrule
\end{tabular}
1 2 3
14 25 36
147 258 369
Don’t use!
M. Mitra (ISI) LATEX and Beamer 17 / 55
![Page 28: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/28.jpg)
Lines and spacing
Use ctable or booktabs
\toprule, \bottomrule, \midrule, \cmidrule
\newcommand{\otoprule}{\midrule[\heavyrulewidth]}
\begin{tabular}{ l c r }\toprule
1 & 2 & 3 \\\otoprule
14 & 25 & 36 \\[1em]
147 & 258 & 369 \\\bottomrule
\end{tabular}
1 2 3
14 25 36
147 258 369
Don’t use!
M. Mitra (ISI) LATEX and Beamer 17 / 55
![Page 29: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/29.jpg)
Lines and spacing
Use ctable or booktabs
\toprule, \bottomrule, \midrule, \cmidrule
\newcommand{\otoprule}{\midrule[\heavyrulewidth]}
\begin{tabular}{ l c r }\toprule
1 & 2 & 3 \\\otoprule
14 & 25 & 36 \\[1em]
147 & 258 & 369 \\\bottomrule
\end{tabular}
1 2 3
14 25 36
147 258 369
Don’t use!
M. Mitra (ISI) LATEX and Beamer 17 / 55
![Page 30: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/30.jpg)
Packages
tabularx
Force Force is a vector quantity defined asthe rate of change of the momentumof the body that would be induced bythat force acting alone.
Moment of a force Moment of a force with respect to anorigin is defined as the cross prod-uct of the position vector (with re-spect to the same origin) and theforce.
M. Mitra (ISI) LATEX and Beamer 18 / 55
![Page 31: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/31.jpg)
Packages
tabularx
\begin{tabularx}{0.85\textwidth}{>{\bfseries}lX} \toprule
Force &
Force is a vector quantity defined as the rate of change of
the momentum of the body that would be induced by that
force acting alone.\\\midrule
Moment of a force &
Moment of a force with respect to an origin is
defined as the cross product of the position vector (with
respect to the same origin) and the force.\\\bottomrule
\end{tabularx}
M. Mitra (ISI) LATEX and Beamer 18 / 55
![Page 32: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/32.jpg)
tabularx
Total width of table has to be specified and is fixed
All X columns of equal width; relatively hard to change columnwidths
C, L, R column types have to be defined\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
Relatively easy to change vertical alignment globally\renewcommand{\tabularxcolumn}[1]{>{\arraybackslash}t{#1}} % top
\renewcommand{\tabularxcolumn}[1]{>{\arraybackslash}m{#1}} % middle
\renewcommand{\tabularxcolumn}[1]{>{\arraybackslash}b{#1}} % bottom
M. Mitra (ISI) LATEX and Beamer 19 / 55
![Page 33: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/33.jpg)
tabulary
Total width of table is indicative and a maximum
Relatively better column width allocation
C, L, R column types pre-defined
Vertical alignment has to be changed per cell\parbox[position (t|m|b)][height][inner-pos]{width}{text}
To change horizontal alignment per cell\makebox[width][lcr]{text}
M. Mitra (ISI) LATEX and Beamer 20 / 55
![Page 34: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/34.jpg)
ctable
Combines advantages of tabularx, tabulary\ctable[caption = An example,pos = h]{rlcc}
{\tnote{1 degree${} = \pi/180$ radians.}}
{\FL
&
& $\fam0 H(Mu)+F_2$
& $\fam0 H(Mu)+Cl_2$ \ML
&$\beta$(H) & $80.9\circ$\tmark & $83.2\circ$
\NN
&$\beta$(Mu) & $86.7\circ$
& $87.7\circ$
\LL
}
\setupctable{%
botcap, % topcap or sidecap
captionskip=2pt, % space between caption and table
mincapwidth=2in, % minimum width of caption
}
M. Mitra (ISI) LATEX and Beamer 21 / 55
![Page 35: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/35.jpg)
ctable
Combines advantages of tabularx, tabulary
H(Mu) + F2 H(Mu) + Cl2
β(H) 80.9◦a 83.2◦β(Mu) 86.7◦ 87.7◦
a 1 degree = π/180 radians.
Table: An example
\setupctable{%
botcap, % topcap or sidecap
captionskip=2pt, % space between caption and table
mincapwidth=2in, % minimum width of caption
}
M. Mitra (ISI) LATEX and Beamer 21 / 55
![Page 36: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/36.jpg)
ctable
Combines advantages of tabularx, tabulary
H(Mu) + F2 H(Mu) + Cl2
β(H) 80.9◦a 83.2◦β(Mu) 86.7◦ 87.7◦
a 1 degree = π/180 radians.
Table: An example
\setupctable{%
botcap, % topcap or sidecap
captionskip=2pt, % space between caption and table
mincapwidth=2in, % minimum width of caption
}
M. Mitra (ISI) LATEX and Beamer 21 / 55
![Page 37: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/37.jpg)
tabu
Name Address Legal status
DAIICT Gandhinagar Near Indroda Circle,Gandhinagar 382007.
University.
Indian StatisticalInstitute, Kolkata
203 BT Road, Kolkata700 108.
Autonomous in-stitute.
National LawUniversity, Odisha
Brajbiharipur, NearNaraj Bridge CDA,Cuttack 753015.
University.
M. Mitra (ISI) LATEX and Beamer 22 / 55
![Page 38: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/38.jpg)
tabu
\tabulinesep=8pt
\begin{tabu} to 1.0\linewidth {| X[l,1.8] | X[l,1.8] | X[1.2] |}\tabucline-
\everyrow{\tabucline-}
\rowfont[l]{\bfseries}
Name & Address & Legal status \\
DAIICT Gandhinagar &
Near Indroda Circle, \linebreak Gandhinagar 382007. &
University.\\
Indian Statistical Institute, Kolkata &
203 BT Road, Kolkata 700 108. &
Autonomous institute.\\
...
\end{tabu}
M. Mitra (ISI) LATEX and Beamer 23 / 55
![Page 39: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/39.jpg)
tabu
\tabucline[line style]{start-stop}
\everyrow{code}
\rowfont[alignment]{font spec}
M. Mitra (ISI) LATEX and Beamer 24 / 55
![Page 40: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/40.jpg)
Common problems
\begin{tabular}{ccc}
\mc{3}{c}{Experimental results} \\
x & x & x
\end{tabular}
\begin{tabular}{*{3}{>{\centering}p{1cm}}}
\mc{3}{c}{Experimental results} \\
x & x & x
\end{tabular}
Experimental resultsx x x
Experimental resultsx x x
M. Mitra (ISI) LATEX and Beamer 25 / 55
![Page 41: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/41.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 26 / 55
![Page 42: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/42.jpg)
Unnumbered lists
\begin{itemize}
\item The first item
\item The second item
\item The third etc \ldots
\end{itemize}
The first item
The second item
The third etc . . .
M. Mitra (ISI) LATEX and Beamer 27 / 55
![Page 43: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/43.jpg)
Unnumbered lists
\begin{itemize}
\item The first item
\item The second item
\item The third etc \ldots
\end{itemize}
The first item
The second item
The third etc . . .
M. Mitra (ISI) LATEX and Beamer 27 / 55
![Page 44: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/44.jpg)
Unnumbered lists
M. Mitra (ISI) LATEX and Beamer 28 / 55
![Page 45: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/45.jpg)
Unnumbered lists
Changing labels
Manually for each entry, e.g., \item[$\star$]
Label commands\labelitemi, \labelitemii, \labelitemiii, \labelitemiv
Globally via \renewcommand
\renewcommand{\labelitemi}{\textgreater}
\renewcommand{\labelitemii}{$\star$}
M. Mitra (ISI) LATEX and Beamer 29 / 55
![Page 46: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/46.jpg)
Numbered lists
\begin{enumerate}
\item The first item
\item The second item
\item The third etc \ldots
\end{enumerate}
1 The first item
2 The second item
3 The third etc . . .
M. Mitra (ISI) LATEX and Beamer 30 / 55
![Page 47: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/47.jpg)
Numbered lists
\begin{enumerate}
\item The first item
\item The second item
\item The third etc \ldots
\end{enumerate}
1 The first item
2 The second item
3 The third etc . . .
M. Mitra (ISI) LATEX and Beamer 30 / 55
![Page 48: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/48.jpg)
Numbered lists
M. Mitra (ISI) LATEX and Beamer 31 / 55
![Page 49: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/49.jpg)
Numbered lists
Changing labels
Label commands\labelenumi, \labelenumii, \labelenumiii, \labelenumiv
Via \renewcommand
% changes cross-references
\renewcommand{\theenumi}{\Roman{enumi}}
% changes appearance
\renewcommand{\labelenumi}{(\theenumi)}
\renewcommand{\theenumii}{\alph{enumii}}
\renewcommand{\labelenumii}{\theenumi.~\theenumii}
Styles: alph, Alph, arabic, roman, Roman
M. Mitra (ISI) LATEX and Beamer 32 / 55
![Page 50: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/50.jpg)
Numbered lists
Changing labels - I
\usepackage{enumerate}
\begin{enumerate}[style] ... \end{enumerate}
Style options: A, a, I, i and 1
To use any of the style options without the special meaning, use {}e.g. \begin{enumerate}[{A}1] ... \end{enumerate}
May cause problems with Beamer
M. Mitra (ISI) LATEX and Beamer 33 / 55
![Page 51: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/51.jpg)
Numbered lists
Changing labels - II
\usepackage[newenum,olditem]{paralist}
Also provides\begin{inparaenum}[(1)] ... \end{inparaenum}
M. Mitra (ISI) LATEX and Beamer 34 / 55
![Page 52: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/52.jpg)
Numbered lists
Changing labels - III
\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 53: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/53.jpg)
Numbered lists
Changing labels - III
\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 54: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/54.jpg)
Numbered lists
Changing labels - III
\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 55: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/55.jpg)
Numbered lists
Changing labels - III\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
Standard enumeration
\begin{enumerate}
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 56: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/56.jpg)
Numbered lists
Changing labels - III\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
Customised enumeration 1
\begin{enumerate}[topsep=0mm,label=\emph{\alph*})]
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 57: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/57.jpg)
Numbered lists
Changing labels - III\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
Customised enumeration 2
\begin{enumerate}[topsep=0mm, leftmargin=15mm]
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 58: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/58.jpg)
Numbered lists
Changing labels - III\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
Standard itemize
\begin{itemize}
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 59: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/59.jpg)
Numbered lists
Changing labels - III\usepackage[inline,shortlabels]{enumitem}
Useful parameters: topsep, itemsep
Example: \begin{enumerate}[i), itemsep=1mm]
More examples (Truman Collins: [email protected]):
Customised itemize
\begin{itemize}[topsep=0mm, label=$\boxempty$]
M. Mitra (ISI) LATEX and Beamer 35 / 55
![Page 60: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/60.jpg)
Numbered lists
Changing numbering
Counters (incremented by \item before use):enumi, enumii, enumiii, enumiv
To change value, use \setcounter{enumi}{4}
M. Mitra (ISI) LATEX and Beamer 36 / 55
![Page 61: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/61.jpg)
Description
M. Mitra (ISI) LATEX and Beamer 37 / 55
![Page 62: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/62.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 38 / 55
![Page 63: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/63.jpg)
Page layout
Use the geometry package\usepackage[options]{geometry}
\usepackage[text={7in,10in},centering]{geometry}
\usepackage[margin=1.5in]{geometry}
\usepackage[top=,bottom=,left=,right=]{geometry}
M. Mitra (ISI) LATEX and Beamer 39 / 55
![Page 64: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/64.jpg)
Line spacing
Use \linespread{factor}\selectfont
\linespread{1.3} = “one and a half” line spacing
\linespread{1.6} = “double” line spacing
To change fontsize and spacing, use:\fontsize{size}{skip}\selectfont
(Thumb rule: skip should be 1.2 times the font size)
Use package setspace
handles footnotes, captions, etc. correctly
environments: doublespace, onehalfspace, singlespace,spacing{ factor }
M. Mitra (ISI) LATEX and Beamer 40 / 55
![Page 65: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/65.jpg)
Line spacing
Use \linespread{factor}\selectfont
\linespread{1.3} = “one and a half” line spacing
\linespread{1.6} = “double” line spacing
To change fontsize and spacing, use:\fontsize{size}{skip}\selectfont
(Thumb rule: skip should be 1.2 times the font size)
Use package setspace
handles footnotes, captions, etc. correctly
environments: doublespace, onehalfspace, singlespace,spacing{ factor }
M. Mitra (ISI) LATEX and Beamer 40 / 55
![Page 66: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/66.jpg)
Line spacing
Use \linespread{factor}\selectfont
\linespread{1.3} = “one and a half” line spacing
\linespread{1.6} = “double” line spacing
To change fontsize and spacing, use:\fontsize{size}{skip}\selectfont
(Thumb rule: skip should be 1.2 times the font size)
Use package setspace
handles footnotes, captions, etc. correctly
environments: doublespace, onehalfspace, singlespace,spacing{ factor }
M. Mitra (ISI) LATEX and Beamer 40 / 55
![Page 67: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/67.jpg)
Lengths
Change default lengths\setlength{parameter}{length}
\addtolength{parameter}{length}
\settowidth{parameter}{some text}
\settoheight{parameter}{some text} ...\settodepth{parameter}{some text} ...Also, \newlength{parameter}
Paragraph indentation and spacing\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}
indent, noindent
M. Mitra (ISI) LATEX and Beamer 41 / 55
![Page 68: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/68.jpg)
Lengths
Change default lengths\setlength{parameter}{length}
\addtolength{parameter}{length}
\settowidth{parameter}{some text}
\settoheight{parameter}{some text} ....
maximum heightof “some text” incurrent font
\settodepth{parameter}{some text} ...Also, \newlength{parameter}
Paragraph indentation and spacing\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}
indent, noindent
M. Mitra (ISI) LATEX and Beamer 41 / 55
![Page 69: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/69.jpg)
Lengths
Change default lengths\setlength{parameter}{length}
\addtolength{parameter}{length}
\settowidth{parameter}{some text}
\settoheight{parameter}{some text} ...\settodepth{parameter}{some text} ....
distance belowthe baseline of“some text” incurrent font
Also, \newlength{parameter}
Paragraph indentation and spacing\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}
indent, noindent
M. Mitra (ISI) LATEX and Beamer 41 / 55
![Page 70: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/70.jpg)
Lengths
Change default lengths\setlength{parameter}{length}
\addtolength{parameter}{length}
\settowidth{parameter}{some text}
\settoheight{parameter}{some text} ...\settodepth{parameter}{some text} ...Also, \newlength{parameter}
Paragraph indentation and spacing\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}
indent, noindent
M. Mitra (ISI) LATEX and Beamer 41 / 55
![Page 71: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/71.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 42 / 55
![Page 72: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/72.jpg)
Dia
.
...... https://live.gnome.org/Dia
M. Mitra (ISI) LATEX and Beamer 43 / 55
![Page 73: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/73.jpg)
Dia: examples
5V
10V
49K
3K
V0
T
Re = 1K
M. Mitra (ISI) LATEX and Beamer 44 / 55
![Page 74: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/74.jpg)
Dia: examples
I2 I1
R2
I1I2
R1
S
L = 0.45H
E
A
B
M. Mitra (ISI) LATEX and Beamer 45 / 55
![Page 75: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/75.jpg)
Tgif
.
...... http://bourbon.usc.edu:8001/tgif/index.html
Shapes: lines, arcs, rectangles / squares, polygons, ellipses /circles, etc.
Move, rotate, flip objects
Text
Filling regions with patterns
Formatting of elements
M. Mitra (ISI) LATEX and Beamer 46 / 55
![Page 76: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/76.jpg)
Tgif
Ca
Ra
Ca
Ra
Rb
CbRb
Cb
M. Mitra (ISI) LATEX and Beamer 47 / 55
![Page 77: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/77.jpg)
Tgif
a
x C
M. Mitra (ISI) LATEX and Beamer 48 / 55
![Page 78: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/78.jpg)
Tgif
30o 60o
A
B
C
M. Mitra (ISI) LATEX and Beamer 49 / 55
![Page 79: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/79.jpg)
Tgif
k1k2
A B
Px
6m
M. Mitra (ISI) LATEX and Beamer 50 / 55
![Page 80: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/80.jpg)
Tgif
Oil
h
M. Mitra (ISI) LATEX and Beamer 51 / 55
![Page 81: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/81.jpg)
Ipe
.
...... http://ipe7.sourceforge.net/
M. Mitra (ISI) LATEX and Beamer 52 / 55
![Page 82: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/82.jpg)
Outline
1 PreliminariesBeamer
2 PackagesTablesListsSpacing
3 Diagrams
4 Misc. questions
M. Mitra (ISI) LATEX and Beamer 53 / 55
![Page 83: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/83.jpg)
Questions
Can we open terminal from latex presentation?
Click here
\href{http://www.isical.ac.in/~mandar/script.sh}{Click here}
How to embed animations or video files in a a) Beamer slidepresentation b) pdf file generated by Latex (If at all possible)?
\movie[externalviewer]{\includegraphics{figs/figure.jpg}}{movie.mp4}
A movie
M. Mitra (ISI) LATEX and Beamer 54 / 55
![Page 84: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/84.jpg)
Questions
Can we open terminal from latex presentation?
Click here
\href{http://www.isical.ac.in/~mandar/script.sh}{Click here}
How to embed animations or video files in a a) Beamer slidepresentation b) pdf file generated by Latex (If at all possible)?
\movie[externalviewer]{\includegraphics{figs/figure.jpg}}{movie.mp4}
A movie
M. Mitra (ISI) LATEX and Beamer 54 / 55
![Page 85: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/85.jpg)
Questions
Can we open terminal from latex presentation?
Click here
\href{http://www.isical.ac.in/~mandar/script.sh}{Click here}
How to embed animations or video files in a a) Beamer slidepresentation b) pdf file generated by Latex (If at all possible)?
\movie[externalviewer]{\includegraphics{figs/figure.jpg}}{movie.mp4}
A movie
M. Mitra (ISI) LATEX and Beamer 54 / 55
![Page 86: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/86.jpg)
Questions
Can we open terminal from latex presentation?
Click here
\href{http://www.isical.ac.in/~mandar/script.sh}{Click here}
How to embed animations or video files in a a) Beamer slidepresentation b) pdf file generated by Latex (If at all possible)?
\movie[externalviewer]{\includegraphics{figs/figure.jpg}}{movie.mp4}
A movie
M. Mitra (ISI) LATEX and Beamer 54 / 55
![Page 87: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/87.jpg)
Questions
Can we open terminal from latex presentation?
Click here
\href{http://www.isical.ac.in/~mandar/script.sh}{Click here}
How to embed animations or video files in a a) Beamer slidepresentation b) pdf file generated by Latex (If at all possible)?
\movie[externalviewer]{\includegraphics{figs/figure.jpg}}{movie.mp4}
A movie
M. Mitra (ISI) LATEX and Beamer 54 / 55
![Page 88: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/88.jpg)
Questions
Can we open terminal from latex presentation?
Click here
\href{http://www.isical.ac.in/~mandar/script.sh}{Click here}
How to embed animations or video files in a a) Beamer slidepresentation b) pdf file generated by Latex (If at all possible)?
\movie[externalviewer]{\includegraphics{figs/figure.jpg}}{movie.mp4}
A movie
M. Mitra (ISI) LATEX and Beamer 54 / 55
![Page 89: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/89.jpg)
Questions
If one need to show a big table of values in Beamer slidepresentation is there any smarter way of doing that than justelement wise copy paste?
http://extensions.openoffice.org/en/project/calc2latex-macro-
converting-openofficeorg-calc-spreadsheets-latex-tables
Use awkawk ’BEGIN{OFS= " & "}{print $1, $2, $3}’
Gnumeric / Emacs org mode
Suppose some one wants put multiple figures in a single page inarbitrary locations in the page and also the dimension of differentfigure may be different, more over there may be sentencesinterlaced between figures......how to do this in smart way?
Use the pstricks package
How to design customized and personalized Latex themes?
M. Mitra (ISI) LATEX and Beamer 55 / 55
![Page 90: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/90.jpg)
Questions
If one need to show a big table of values in Beamer slidepresentation is there any smarter way of doing that than justelement wise copy paste?
http://extensions.openoffice.org/en/project/calc2latex-macro-
converting-openofficeorg-calc-spreadsheets-latex-tables
Use awkawk ’BEGIN{OFS= " & "}{print $1, $2, $3}’
Gnumeric / Emacs org mode
Suppose some one wants put multiple figures in a single page inarbitrary locations in the page and also the dimension of differentfigure may be different, more over there may be sentencesinterlaced between figures......how to do this in smart way?
Use the pstricks package
How to design customized and personalized Latex themes?
M. Mitra (ISI) LATEX and Beamer 55 / 55
![Page 91: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/91.jpg)
Questions
If one need to show a big table of values in Beamer slidepresentation is there any smarter way of doing that than justelement wise copy paste?
http://extensions.openoffice.org/en/project/calc2latex-macro-
converting-openofficeorg-calc-spreadsheets-latex-tables
Use awkawk ’BEGIN{OFS= " & "}{print $1, $2, $3}’
Gnumeric / Emacs org mode
Suppose some one wants put multiple figures in a single page inarbitrary locations in the page and also the dimension of differentfigure may be different, more over there may be sentencesinterlaced between figures......how to do this in smart way?
Use the pstricks package
How to design customized and personalized Latex themes?
M. Mitra (ISI) LATEX and Beamer 55 / 55
![Page 92: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/92.jpg)
Questions
If one need to show a big table of values in Beamer slidepresentation is there any smarter way of doing that than justelement wise copy paste?
http://extensions.openoffice.org/en/project/calc2latex-macro-
converting-openofficeorg-calc-spreadsheets-latex-tables
Use awkawk ’BEGIN{OFS= " & "}{print $1, $2, $3}’
Gnumeric / Emacs org mode
Suppose some one wants put multiple figures in a single page inarbitrary locations in the page and also the dimension of differentfigure may be different, more over there may be sentencesinterlaced between figures......how to do this in smart way?
Use the pstricks package
How to design customized and personalized Latex themes?
M. Mitra (ISI) LATEX and Beamer 55 / 55
![Page 93: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/93.jpg)
Questions
If one need to show a big table of values in Beamer slidepresentation is there any smarter way of doing that than justelement wise copy paste?
http://extensions.openoffice.org/en/project/calc2latex-macro-
converting-openofficeorg-calc-spreadsheets-latex-tables
Use awkawk ’BEGIN{OFS= " & "}{print $1, $2, $3}’
Gnumeric / Emacs org mode
Suppose some one wants put multiple figures in a single page inarbitrary locations in the page and also the dimension of differentfigure may be different, more over there may be sentencesinterlaced between figures......how to do this in smart way?
Use the pstricks package
How to design customized and personalized Latex themes?
M. Mitra (ISI) LATEX and Beamer 55 / 55
![Page 94: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/94.jpg)
Questions
If one need to show a big table of values in Beamer slidepresentation is there any smarter way of doing that than justelement wise copy paste?
http://extensions.openoffice.org/en/project/calc2latex-macro-
converting-openofficeorg-calc-spreadsheets-latex-tables
Use awkawk ’BEGIN{OFS= " & "}{print $1, $2, $3}’
Gnumeric / Emacs org mode
Suppose some one wants put multiple figures in a single page inarbitrary locations in the page and also the dimension of differentfigure may be different, more over there may be sentencesinterlaced between figures......how to do this in smart way?
Use the pstricks package
How to design customized and personalized Latex themes?
M. Mitra (ISI) LATEX and Beamer 55 / 55
![Page 95: Preparing documents and presentations using LaTeXmandar/misc/latex-and-beamer.pdf · Preparing documents and presentations using LATEX Mandar Mitra Indian Statistical Institute M.](https://reader037.fdocuments.in/reader037/viewer/2022100222/5a78a8ce7f8b9a21538b80bb/html5/thumbnails/95.jpg)
Questions
If one need to show a big table of values in Beamer slidepresentation is there any smarter way of doing that than justelement wise copy paste?
http://extensions.openoffice.org/en/project/calc2latex-macro-
converting-openofficeorg-calc-spreadsheets-latex-tables
Use awkawk ’BEGIN{OFS= " & "}{print $1, $2, $3}’
Gnumeric / Emacs org mode
Suppose some one wants put multiple figures in a single page inarbitrary locations in the page and also the dimension of differentfigure may be different, more over there may be sentencesinterlaced between figures......how to do this in smart way?
Use the pstricks package
How to design customized and personalized Latex themes?
M. Mitra (ISI) LATEX and Beamer 55 / 55