Referencing in LaTex - PowerPoint PPT Presentation

About This Presentation
Title:

Referencing in LaTex

Description:

Complements LaTeX documents by managing bibliography and references ... Copy them to your current working directory with your LaTeX and BibTex document ... – PowerPoint PPT presentation

Number of Views:1499
Avg rating:3.0/5.0
Slides: 45
Provided by: rolando1
Learn more at: https://www.cis.rit.edu
Category:

less

Transcript and Presenter's Notes

Title: Referencing in LaTex


1
Referencing in LaTex
  • Recall the following method of referencing

2
Making references in LaTeX(fish.tex)
  • \documentclassarticle
  • \begindocument
  • \emphMy mother is a \underlinefish \citeWF.
  • \beginthebibliography99
  • \bibitemWF
  • William Falkner, \emphAs I Lay Dying
  • \endthebibliography
  • \enddocument

3
Need 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)
5
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

6
Quick BibTex Tutorial
7
BibTex Tutorial
  • Why do you want to learn BibTex?
  • Nuts and Bolts of BibTex
  • Examples

8
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

9
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

10
Types of Documents BibTex can handle
  • ARTICLE
  • BOOK
  • BOOKLET
  • INBOOK
  • INCOLLECTION
  • INPROCEEDINGS
  • MANUAL
  • MISC
  • PHDTHESIS
  • PROCEEDINGS
  • TECHREPORT
  • UNPUBLISHED

11
Each 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

12
Sample 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,

13
Sample 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

14
Sample 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,

15
Sample 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,

16
Sample 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",

17
Sample 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,

18
Sample 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,

19
Sample 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,

20
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

21
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

22
Sample LaTeX document listing Bibliography in
MLA Style (bib.tex)
  • \documentclassreport
  • \usepackagemla
  • \begindocument
  • \bibliographystylemla
  • \bibliographymybib
  • \nocite
  • \enddocument

23
Commands 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)
25
Sample LaTeX document listing Bibliography in
AMS Style (bib.tex)
  • \documentclassreport
  • \begindocument
  • \bibliographystyleamsplain
  • \bibliographymybib
  • \nocite
  • \enddocument

26
(No Transcript)
27
To 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)
29
Cross-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,

30
Article 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)
32
Miscellaneous LaTeX Topics
33
Comments in LaTeX
  • Ignores the rest of the line

34
To protect special characters
  • Use the \ character
  • e.g.
  • My\_Cat.raw
  • To typeset a section as typed
  • \beginverbatim
  • \endverbatim

35
Verbatim command
  • OK for small sections that can be typed into
    document
  • What about including entire source code of
    programs
  • Use verbatim package

36
Including 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)
38
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 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

39
Image Graphics Example(image.tex)
  • \documentclassarticle
  • \usepackagegraphics
  • \begindocument
  • \beginfigure
  • \includegraphicsMyCat.ps
  • \captionThis is My Cat \labelFMyCat
  • \endfigure
  • \enddocument

40
(No Transcript)
41
Flowchart 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

42
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

43
(No Transcript)
44
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com