Title: Referencing in LaTex
1Referencing in LaTex
- Recall the following method of referencing
2Making references in LaTeX(fish.tex)
- \documentclassarticle
- \begindocument
- \emphMy mother is a \underlinefish \citeWF.
- \beginthebibliography99
- \bibitemWF
- William Falkner, \emphAs I Lay Dying
- \endthebibliography
- \enddocument
3Need to compile the document twice
- Because we are using symbolic references, e.g.,
\citeWF, - a second pass is necessary
- The second pass will resolve references
4(No Transcript)
5Problem with this method
- User is burdened with deciding how to format
article titles, journal names, proceeding
references - Difficult to reuse references in other documents
6Quick BibTex Tutorial
7BibTex Tutorial
- Why do you want to learn BibTex?
- Nuts and Bolts of BibTex
- Examples
8Why 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
9The BibTex Process
- Create a BibTex file with Rerefence entries
- Get a .bst file (bibliographic style file)
- Compile or Build your LaTeX document to
create an .aux file - Run BibTeX on your LaTeX file
- Run LaTeX twice on your updated file
- View the dvi or pdf file
10Types of Documents BibTex can handle
- ARTICLE
- BOOK
- BOOKLET
- INBOOK
- INCOLLECTION
- INPROCEEDINGS
- MANUAL
- MISC
- PHDTHESIS
- PROCEEDINGS
- TECHREPORT
- UNPUBLISHED
11Each Document type can have the following entries
- address
- author
- booktitle
- chapter
- crossref
- edition
- editor
- howpublished
- institution
- journal
- key
- language
- month
- note
- number
- organization
- pages
- publisher
- school
- series
- title
- typePh.D. dissertation
- volume
- year
12Sample BibTex Book Entry(mybib.bib)
- _at_BOOKPress,
- author"W.H. Press",
- title"Numerical Recipes in C The Art of
Scientific Computing", - publisher"Cambridge University Press",
- year1992,
13Sample BibTex Technical Report Entry
- _at_TECHREPORTBerk,
- 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
-
14Sample BibTex Ph.D. Dissertation Entry
- _at_PHDTHESISKuo,
- author"Jan-Tai Kuo",
- title"The Influence of Hydrodynamic Transport on
Phytoplankton Dynamics in Homogeneous Lakes", - school"Cornell University",
- address"Ithaca, NY",
- year1981,
15Sample BibTex Masters Thesis Entry
- _at_MASTERSTHESISKnobelspiesse,
- author"Kirk D. Knobelspiesse",
- title"Atmospheric Compensation for SeaWIFS
Images of Lake Superior Utilizing Spatial
Information", - school"Rochester Institute of Technology",
- addess"Rochester, NY",
- monthSep,
- year2000,
16Sample BibTex Article Entry
- _at_ARTICLEVodacek,
- 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",
- volume40,
- number2,
- year1995,
- pages"411--415",
17Sample BibTex Booklet Entry
- _at_BOOKLETSherwood,
- 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",
- pages4,
- month"November",
- year1999,
18Sample BibTex Proceedings Entry
- _at_INPROCEEDINGSStoermer,
- 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",
- year1968,
19Sample BibTex Manual Entry
- _at_MANUALRSI,
- author"RSI",
- title"ENVI User's Guide",
- publisher"Reasearch Systems Incorporated",
- organization"Research Systems Incorporated",
- howpublished"PDF File",
- address"Boulder, CO",
- month"September",
- year2001,
20Different 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
21To 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
22Sample LaTeX document listing Bibliography in
MLA Style (bib.tex)
- \documentclassreport
- \usepackagemla
- \begindocument
- \bibliographystylemla
- \bibliographymybib
- \nocite
- \enddocument
23Commands to Build and View Document
- To use xdvi viewer
- latex bib.tex
- bibtex bib.aux
- latex bib.tex
- latex bib.tex
- xdvi bib.dvi
24(No Transcript)
25Sample LaTeX document listing Bibliography in
AMS Style (bib.tex)
- \documentclassreport
- \begindocument
- \bibliographystyleamsplain
- \bibliographymybib
- \nocite
- \enddocument
26(No Transcript)
27To include only cited articles we remove the
\nocite command
- \documentclassreport
- \begindocument
- We want to get the documents \citeRSI and
\citeKuo for our collection - \bibliographystyleamsplain
- \bibliographymybib
- \enddocument
28(No Transcript)
29Cross-referencing in Proceedings
- _at_PROCEEDINGSNarayanan,
- 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",
- volume3059,
- year1997,
-
30Article in Proceedings
- _at_INPROCEEDINGSUlrich,
- 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",
-
31(No Transcript)
32Miscellaneous LaTeX Topics
33Comments in LaTeX
-
- Ignores the rest of the line
34To protect special characters
- Use the \ character
- e.g.
- My\_Cat.raw
- To typeset a section as typed
- \beginverbatim
- \endverbatim
35Verbatim command
- OK for small sections that can be typed into
document - What about including entire source code of
programs - Use verbatim package
36Including Source code in LaTeX documents
- \documentclassarticle
- \usepackageverbatim
- \begindocument
- \beginequation \labelEsum
- s \sum_i1nx_i
- \endequation
- The code as implemented in idl
- in vectorized form looks like
- \verbatiminputsum.pro
- \enddocument
37(No Transcript)
38Including 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 gt
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 - \usepackagegraphics
39Image Graphics Example(image.tex)
- \documentclassarticle
- \usepackagegraphics
- \begindocument
- \beginfigure
- \includegraphicsMyCat.ps
- \captionThis is My Cat \labelFMyCat
- \endfigure
- \enddocument
40(No Transcript)
41Flowchart Figures
- Create Flowchart in PowerPoint
- Export as a bmp file
- Convert from bmp to postscript
- bmptoppm figure.bmp pnmtops norotate
nosetpage gt figure.ps - OR User xfig because it will export to EPS
- Shareware utility called WMF2EPS
- Windows clipboard objects to EPS
42Because 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
43(No Transcript)
44(No Transcript)