Presentation is loading. Please wait.

Presentation is loading. Please wait.

An Introduction to the LaTex typesetting system

Similar presentations


Presentation on theme: "An Introduction to the LaTex typesetting system"— Presentation transcript:

1 An Introduction to the LaTex typesetting system
Not : Ziv Yaniv Last Modified October 2011

2 Who (Credit Where Credit is Due)
Tex late 70’s LaTex early 80’s Donald E. Knuth Leslie Lamport Pictures courtesy of wikipedia

3 What A typesetting system, not a word processor.
Pronounced “Lay-Tek” or “Lah-Tek”. Tex/LaTex central, Comprehensive TeX Archive Network (CTAN):

4 Samples of LaTex All samples taken from:

5 Where to Obtain Win, MikTex: http://www.miktex.org/
Unix/Linux, Tex Live: Mac, MacTex:

6 Book Recommendation Corner
Free online substitutes: The EOS 1918 edition: A (Not So) Short Guide to LaTeX2e :

7 Editors Specifically supporting LaTex
Win: WinEdt (shareware), TexnicCenter (freeware). Mac: TexShop Unix/Linux: emacs, Lyx

8 (auxiliary files for system use)
Files Galore *.tex *.cls (class file) *.sty (style file) *.bbl (bibliography file) (auxiliary files for system use) *.aux, *.idx, *.toc, *.log *.dvi *.ps *.pdf

9 Document Structure Preamble Document body.
document class [article, report, book…], packages [additional macros], your additional macro definitions. Document body.

10 Your First Document

11 Document Body \section{My first section}
\subsection{My first subsection} \chapter{My first chapter} \appendix \footnote{My first footnote} \label{firstLabel} \ref{firstLabel} Label-ref mechanism: When using labels and references you will need to run LaTex multiple times (remember those auxiliary files).

12 Your Second Document

13 Basic Formatting force new line and new page: \\ or \newline \newpage bold text: \bf or \textbf{} italicize text: \emph{} or \textit{} or \it underline text: \ul, \underline{} font sizes: \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, \Huge lists: \begin{itemize} \item The first item. \item The second item. \end{itemize} \begin{enumerate} \item The first item. \item The second item. \end{enumerate}

14 Basic Formatting

15 Math Two important packages that add many useful macros:
\usepackage{amsmath} \usepackage{amssymb}

16 Math

17 Floating objects (Tables and Figures)
Objects that cannot be broken across pages are referred to as floating: \begin{table} \end{table} \begin{figure} \end{figure} Table and Figure numbering are done for you. Referencing a floating object is done via the label-ref mechanism. Enhanced support of graphics, add \usepackage{graphicx} in preamble.

18 Floating objects (Tables and Figures)

19 Bibliography Manage bibliography using BibTex program.
In your *.tex file: \bibliographystyle{plain} \bibliography{mybibliography} *.bbl Bibliography style defined in a ASCII text file (*.bst).

20 Bibliography *.bib file – ASCII text file with entries in a human readable format. Entry @techreport…: @ARTICLE{yaniv2010c, author = {Ziv Yaniv}, title = {Evaluation of Spherical Fiducial Localization in {C-arm} Cone-Beam {CT} using Patient Data}, journal = {Med. Phys.}, year = {2010}, volume = {37}, pages = { }, number = {10}, } @INPROCEEDINGS{wiesner2007, author = {Stefan Wiesner and Ziv Yaniv}, title = {Monitoring Patient Respiration using a Single Optical Camera}, booktitle = {Int. Conf.of the IEEE Eng. Med. Biol.}, year = {2007}, pages = { },

21 JabRef GUI for bib file

22 LaTex + BibTex To obtain the final typeset file, with all references and citations numbered and in order run the following series of commands: Latex Bibtex

23 LaTex + BibTex @ARTICLE{banovac2005,
author = {Filip Banovac and Jonathan Tang and Sheng Xu and David Lindisch and Ho Young Chung and Elliot B. Levy and Thomas Chang and Michael F. McCullough and Ziv Yaniv and Bradford J. Wood and Kevin Cleary}, title = {Precision targeting of liver lesions using a novel electromagnetic navigation device in physiologic phantom and swine}, journal = {Med. Phys.}, year = {2005}, volume = {32}, pages = { }, number = {8}, } @ARTICLE{bansal2003, author = {Ravi Bansal and Lawrence H. Staib and Zhe Chen and Anand Rangarajan and Jonathan Knisely and Ravinder Nath and James S. Duncan}, title = {Entropy-Based, Dual-Portal-to-3{DCT} Registration Incorporating Pixel Correlation}, journal = {{IEEE} Trans. Med. Imag.}, year = {2003}, volume = {22}, pages = {29--49}, number = {1}, @ARTICLE{yaniv2010c, author = {Ziv Yaniv}, title = {Evaluation of Spherical Fiducial Localization in {C-arm} Cone-Beam {CT} using Patient Data}, year = {2010}, volume = {37}, pages = { }, number = {10},

24 Bringing It all Together
LaTex sources for: "Fiducial localization in C-arm based Cone-Beam CT", Z. Yaniv, SPIE Medical Imaging: Visualization, Image-Guided Procedures, and Display, 2009.

25 Presenting Your Work Embed latex into your power point presentations:
Insert formulas as pictures cannot change scale gracefully. Use TexPPT ( gracefully change scale. copy-paste from the paper you already wrote.

26 Summary This introduction has covered the basic functionality of LaTex and BibTex. These are standard tools in many scientific disciplines. Comprehensive TeX Archive Network (CTAN): Don’t start from scratch, base your documents on previous ones.

27 General Guidelines for Writing a Scientific Paper
Most conferences and journals provide style files both for the manuscript (*.cls, *.sty) and bibliography (*.bst). Do not forward reference figures and tables. Graphs: Use color and shape (i.e. red dotted line denotes X), as most often printing will be in black and white. Use the same scale for graphs corresponding to similar experiments. Do not display 3D scenes with black background (white is preferable for printing). Save your figures in a vector graphics format to enable scaling without loss of quality- formats include eps (encapsulated postscript), ps (postscript), pdf, svg, and wmf (windows meta file). Avoid raster/pixel file formats when possible(jpg, gif, bmp…).


Download ppt "An Introduction to the LaTex typesetting system"

Similar presentations


Ads by Google