Quick LaTeX Tutorial

Quick LaTeX Tutorial

Referencing in LaTex Recall the following method of referencing Rolando V. Raqueo 1 Friday, January 31, 2020 Making references in LaTeX (fish.tex) \documentclass{article} \begin{document} \emph{My mother} is a \ underline{fish} \cite{WF}.

\begin{thebibliography}{99} \bibitem{WF} William Falkner, \emph{As I Lay Dying} \end{thebibliography} \end{document} 2 Rolando V. Raqueo Friday, January 31, 2020 Need to compile the document twice Because we are using symbolic references, e.g., \cite{WF}, a second pass is necessary The second pass will resolve references

Rolando V. Raqueo 3 Friday, January 31, 2020 Rolando V. Raqueo 4 Friday, January 31, 2020 Problem with this method User is burdened with deciding how to format article titles, journal names,

proceeding references Difficult to reuse references in other documents Rolando V. Raqueo 5 Friday, January 31, 2020 Quick BibTex Tutorial Rolando V. Raqueo 6

Friday, January 31, 2020 BibTex Tutorial Why do you want to learn BibTex? Nuts and Bolts of BibTex Examples Rolando V. Raqueo 7 Friday, January 31, 2020 Why you want to learn BibTex Complements LaTeX documents by managing bibliography and references

Minimizes the drudgery of formatting, numbering, and referencing Disadvantage: Steep Learning Curve Rolando V. Raqueo 8 Friday, January 31, 2020 The BibTex Process 1. Create a BibTex file with Rerefence entries 2. Get a *.bst file (bibliographic style file) 3. Compile or Build your LaTeX document to create an *.aux file

4. Run BibTeX on your LaTeX file 5. Run LaTeX twice on your updated file 6. View the dvi or pdf file Rolando V. Raqueo 9 Friday, January 31, 2020 Types of Documents BibTex can handle

ARTICLE BOOK BOOKLET INBOOK INCOLLECTION INPROCEEDINGS MANUAL Rolando V. Raqueo 10

MISC PHDTHESIS PROCEEDINGS TECHREPORT UNPUBLISHED Friday, January 31, 2020

Each Document type can have the following entries

address author booktitle

chapter crossref edition editor howpublished institution journal key language Rolando V. Raqueo 11 month note

number organization pages publisher school series title type=Ph.D. dissertation volume year Friday, January 31, 2020 Sample BibTex Book Entry (mybib.bib)

@BOOK{Press, author="W.H. Press", title="Numerical Recipes in C: The Art of Scientific Computing", publisher="Cambridge University Press", year=1992, } Rolando V. Raqueo 12 Friday, January 31, 2020 Sample BibTex Technical Report Entry @TECHREPORT{Berk,

author="Lex A. Berk and L.S. Bernstein and D.C. Robertson", title="MODTRAN: a moderate resolution model for LOWTRAN 7", number="GL-TR-89-0122", institution="Spectral Science", address = "Burlington, MA", year = 1989 } Rolando V. Raqueo 13 Friday, January 31, 2020 Sample BibTex

Ph.D. Dissertation Entry @PHDTHESIS{Kuo, author="Jan-Tai Kuo", title="The Influence of Hydrodynamic Transport on Phytoplankton Dynamics in Homogeneous Lakes", school="Cornell University", address="Ithaca, NY", year=1981, } Rolando V. Raqueo 14 Friday, January 31, 2020

Sample BibTex Masters Thesis Entry @MASTERSTHESIS{Knobelspiesse, author="Kirk D. Knobelspiesse", title="Atmospheric Compensation for SeaWIFS Images of Lake Superior Utilizing Spatial Information", school="Rochester Institute of Technology", addess="Rochester, NY", month=Sep, year=2000, } Rolando V. Raqueo 15

Friday, January 31, 2020 Sample BibTex Article Entry @ARTICLE{Vodacek, author="Anthony Vodacek and F.E. Hoge and R.N. Swift and J.K. Yungel and E.T. Peltzer and N.V. Blough", title="The use of in situ and airborne fluorescence measurements to determine UV absorption coefficients and DOC concentrations in surface waters", journal="Limnology and Oceanography", volume=40, number=2, year=1995, pages="411--415", }

Rolando V. Raqueo 16 Friday, January 31, 2020 Sample BibTex Booklet Entry @BOOKLET{Sherwood, author="D.A. Sherwood", title="Phosphorus Loads Entering Long Pond, A Small Embayment of Lake Ontario near Rochester, New York", howpublished="USGS Fact Sheet 128-99", pages=4,

month="November", year=1999, } Rolando V. Raqueo 17 Friday, January 31, 2020 Sample BibTex Proceedings Entry @INPROCEEDINGS{Stoermer, author="E.F. Stoermer", title="Nearshore phytoplankton populations in the Grand Haven, Michigan vicinity during thermal bar conditions",

booktitle="Proceedings of the 11th Conference on Great Lakes Research", pages="137--150", year=1968, } Rolando V. Raqueo 18 Friday, January 31, 2020 Sample BibTex Manual Entry @MANUAL{RSI, author="RSI",

title="ENVI User's Guide", publisher="Reasearch Systems Incorporated", organization="Research Systems Incorporated", howpublished="PDF File", address="Boulder, CO", month="September", year=2001, } Rolando V. Raqueo 19 Friday, January 31, 2020 Different Formatting Styles To invoke a particular style, go to

http://www.ctan.org Document styles are defined in *.sty files mla.sty bmsplain.sty Bibliography styles are defined in *.bst files mla.bst amsplain.bst Rolando V. Raqueo 20 Friday, January 31, 2020

To invoke these styles in your document Copy them to your current working directory with your LaTeX and BibTex document Edit your LaTeX file to appropriately reference these style guides Rolando V. Raqueo 21 Friday, January 31, 2020 Sample LaTeX document listing Bibliography in

MLA Style (bib.tex) \documentclass{report} \usepackage{mla} \begin{document} \bibliographystyle{mla} \bibliography{mybib} \nocite{*} \end{document} Rolando V. Raqueo 22 Friday, January 31, 2020 Commands to Build and View Document

To use xdvi viewer % % % % % Rolando V. Raqueo latex bib.tex bibtex bib.aux latex bib.tex latex bib.tex xdvi bib.dvi 23

Friday, January 31, 2020 Rolando V. Raqueo 24 Friday, January 31, 2020 Sample LaTeX document listing Bibliography in AMS Style (bib.tex) \documentclass{report} \begin{document} \bibliographystyle{amsplain} \bibliography{mybib} \nocite{*}

\end{document} 25 Rolando V. Raqueo Friday, January 31, 2020 Rolando V. Raqueo 26 Friday, January 31, 2020 To include only cited articles we remove the \nocite{*} command \documentclass{report}

\begin{document} We want to get the documents \ cite{RSI} and \cite{Kuo} for our collection \bibliographystyle{amsplain} \bibliography{mybib} \end{document} Rolando V. Raqueo 27 Friday, January 31, 2020 Rolando V. Raqueo 28

Friday, January 31, 2020 Cross-referencing in Proceedings @PROCEEDINGS{Narayanan, editor="Ram Mohan Narayanan and James E. Kalshoven, Jr.", title="Advances in Laser Remote Sensing for Terrestrial and Oceanographic Applications", booktitle="Proceeding of SPIE", publisher="SPIE", volume=3059, year=1997, }

Rolando V. Raqueo 29 Friday, January 31, 2020 Article in Proceedings @INPROCEEDINGS{Ulrich, author="B.L. Ulrich and P. Lacovara and S.E. Moran and M.J. DeWeert", title="Recent results in imaging lidar", crossref="Narayanan", pages="95--108", } Rolando V. Raqueo

30 Friday, January 31, 2020 Rolando V. Raqueo 31 Friday, January 31, 2020 Miscellaneous LaTeX Topics Rolando V. Raqueo 32

Friday, January 31, 2020 Comments in LaTeX % Ignores the rest of the line Rolando V. Raqueo 33 Friday, January 31, 2020 To protect special characters Use the \ character e.g.

My\_Cat.raw To typeset a section as typed \begin{verbatim} \end{verbatim} Rolando V. Raqueo 34 Friday, January 31, 2020 Verbatim command OK for small sections that can be typed into document What about including entire source code of programs

Use verbatim package Rolando V. Raqueo 35 Friday, January 31, 2020 Including Source code in LaTeX documents \documentclass{article} \usepackage{verbatim} \begin{document} \begin{equation} \label{E:sum} s = \sum_{i=1}^{n}x_{i} \end{equation}

The code as implemented in idl in vectorized form looks like \verbatiminput{sum.pro} \end{document} Rolando V. Raqueo 36 Friday, January 31, 2020 Rolando V. Raqueo 37 Friday, January 31, 2020

Including image graphics into you LaTeX document Need to convert your image graphics into EPS For images, use pnmtops, e.g. % pnmtops norotate nosetpage MyCat.pgm > MyCat.ps -norotate keeps from auto-rotating the image -nosetpage keeps from setting to a specific device Need to include an extension package to LaTeX called graphics using command \usepackage{graphics} Rolando V. Raqueo

38 Friday, January 31, 2020 Image Graphics Example (image.tex) \documentclass{article} \usepackage{graphics} \begin{document} \begin{figure} \includegraphics{MyCat.ps} \caption{This is My Cat} \ label{F:MyCat} \end{figure} \end{document} Rolando V. Raqueo

39 Friday, January 31, 2020 Rolando V. Raqueo 40 Friday, January 31, 2020 Flowchart Figures Create Flowchart in PowerPoint Export as a bmp file Convert from bmp to postscript % bmptoppm figure.bmp | pnmtops

norotate nosetpage > figure.ps OR User xfig because it will export to EPS Shareware utility called WMF2EPS Windows clipboard objects to EPS Rolando V. Raqueo 41 Friday, January 31, 2020 Because current pdflatex cannot include Encapsulated Postscript Files (EPS) Need to go from dvi to postscript to pdf

using the following commands % dvips image.dvi % ps2pdf image.ps Some degradation in quality is observed Rolando V. Raqueo 42 Friday, January 31, 2020 Rolando V. Raqueo 43 Friday, January 31, 2020

Rolando V. Raqueo 44 Friday, January 31, 2020

Recently Viewed Presentations

  • Consent and Confidentiality for Children in New Mexico

    Consent and Confidentiality for Children in New Mexico

    Emancipation. The term emancipation refers to the state of living independently from one's parents. A minor can ask a court to declare that he or she is an emancipated minor. Minors inquiring about emancipation must already be living and functioning...
  • Using ReplayIt to submit photos

    Using ReplayIt to submit photos

    The Jostens ReplayIt® app is the best way to share photos with your school community while making them available for your school's yearbook. After going through moderation, your photos are viewable by school community members for tagging, liking and sharing.
  • Title Line SubTitle Date - iowa-braille.k12.ia.us

    Title Line SubTitle Date - iowa-braille.k12.ia.us

    Target - Transition. Increase to 100% the students who have transition goals and outcomes in place by age 16 including appropriate measurable postsecondary goals that are annually updated and based upon an age appropriate transition assessment, transition services, including courses...
  • Copyright  2002 VERITAS Software Corporation. All Rights Reserved.

    Copyright 2002 VERITAS Software Corporation. All Rights Reserved.

    Introduction Paul Dominjon Solutions Marketing Manager Storage Management Clustering & Replication Backup & Recovery Source : Gartner Group 2004 Market Share Reports, Internal VERITAS Revenue Reports Storage Software Données Applications Infrastructure Temps Budget Ressources Limiter la croissance des serveurs Exchange...
  • Department Overview http://www.ece.pdx.edu/ The Department of Electrical and

    Department Overview http://www.ece.pdx.edu/ The Department of Electrical and

    Heng Xiao Image Processing Ph.D. 1999, Portland State University The Department of Electrical and Computer Engineering at Portland State University, established in 1982, offers bachelor's, master's, and PhD degrees. The department's facilities are located on the PSU campus in downtown...
  • Click to edit Master subtitle style 07 |

    Click to edit Master subtitle style 07 |

    Bridge Port Bridge is a proxy server that abstracts TCP connection bindings between the client and the server in a Service Bus interaction. Means, with Port Bridge, you no longer have to build WCF interfaces for the service, but instead...
  • Ch 2 Properties of Matter

    Ch 2 Properties of Matter

    Ch 2 Properties of Matter 2.1 Matter Has Observable Properties 1. Physical 2. Chemical * * Physical Properties Describe a Substance Physical properties—can be observed without changing the identity of the substance Density—relationship between mass & volume Mass Color Volume...
  • The New Initiative MCCVLC Advisory Council Meeting November

    The New Initiative MCCVLC Advisory Council Meeting November

    On the horizon… MCCVLC Next Generation Task Force Outcomes. Quality - Student focused. Collaboration - Resource maximization strategy. Market Share - Shift from courses to credentials of value and address the unmet/untapped potential