Referencing in La Tex Recall the following method

  • Slides: 44
Download presentation
Referencing in La. Tex Recall the following method of referencing Rolando V. Raqueño 1

Referencing in La. Tex Recall the following method of referencing Rolando V. Raqueño 1 Thursday, November 5, 2020

Making references in La. Te. X (fish. tex) documentclass{article} begin{document} emph{My mother} is a

Making references in La. Te. X (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. Raqueño Thursday, November 5, 2020

Need to compile the document twice • Because we are using symbolic references, e.

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. Raqueño 3 Thursday, November 5, 2020

Rolando V. Raqueño 4 Thursday, November 5, 2020

Rolando V. Raqueño 4 Thursday, November 5, 2020

Problem with this method • User is burdened with deciding how to format article

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. Raqueño 5 Thursday, November 5, 2020

Quick Bib. Tex Tutorial Rolando V. Raqueño 6 Thursday, November 5, 2020

Quick Bib. Tex Tutorial Rolando V. Raqueño 6 Thursday, November 5, 2020

Bib. Tex Tutorial • Why do you want to learn Bib. Tex? • Nuts

Bib. Tex Tutorial • Why do you want to learn Bib. Tex? • Nuts and Bolts of Bib. Tex • Examples Rolando V. Raqueño 7 Thursday, November 5, 2020

Why you want to learn Bib. Tex • Complements La. Te. X documents by

Why you want to learn Bib. Tex • Complements La. Te. X documents by managing bibliography and references • Minimizes the drudgery of formatting, numbering, and referencing • Disadvantage: – Steep Learning Curve Rolando V. Raqueño 8 Thursday, November 5, 2020

The Bib. Tex Process 1. Create a Bib. Tex file with Rerefence entries 2.

The Bib. Tex Process 1. Create a Bib. Tex file with Rerefence entries 2. Get a *. bst file (bibliographic style file) 3. “Compile” or “Build” your La. Te. X document to create an *. aux file 4. Run Bib. Te. X on your La. Te. X file 5. Run La. Te. X twice on your updated file 6. View the dvi or pdf file Rolando V. Raqueño 9 Thursday, November 5, 2020

Types of Documents Bib. Tex can handle • • ARTICLE BOOKLET INBOOK INCOLLECTION INPROCEEDINGS

Types of Documents Bib. Tex can handle • • ARTICLE BOOKLET INBOOK INCOLLECTION INPROCEEDINGS MANUAL Rolando V. Raqueño • • • 10 MISC PHDTHESIS PROCEEDINGS TECHREPORT UNPUBLISHED Thursday, November 5, 2020

Each Document type can have the following entries • • • address author booktitle

Each Document type can have the following entries • • • address author booktitle chapter crossref edition editor howpublished institution journal key language Rolando V. Raqueño 11 • • • month note number organization pages publisher school series title type=“Ph. D. dissertation” volume year Thursday, November 5, 2020

Sample Bib. Tex Book Entry (mybib. bib) @BOOK{Press, author="W. H. Press", title="Numerical Recipes in

Sample Bib. Tex 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. Raqueño 12 Thursday, November 5, 2020

Sample Bib. Tex Technical Report Entry @TECHREPORT{Berk, author="Lex A. Berk and L. S. Bernstein

Sample Bib. Tex 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 } 13 Rolando V. Raqueño Thursday, November 5, 2020

Sample Bib. Tex Ph. D. Dissertation Entry @PHDTHESIS{Kuo, author="Jan-Tai Kuo", title="The Influence of Hydrodynamic

Sample Bib. Tex 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, } 14 Rolando V. Raqueño Thursday, November 5, 2020

Sample Bib. Tex Master’s Thesis Entry @MASTERSTHESIS{Knobelspiesse, author="Kirk D. Knobelspiesse", title="Atmospheric Compensation for Sea.

Sample Bib. Tex Master’s Thesis Entry @MASTERSTHESIS{Knobelspiesse, author="Kirk D. Knobelspiesse", title="Atmospheric Compensation for Sea. WIFS Images of Lake Superior Utilizing Spatial Information", school="Rochester Institute of Technology", addess="Rochester, NY", month=Sep, year=2000, } Rolando V. Raqueño 15 Thursday, November 5, 2020

Sample Bib. Tex Article Entry @ARTICLE{Vodacek, author="Anthony Vodacek and F. E. Hoge and R.

Sample Bib. Tex 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", 16 } Rolando V. Raqueño Thursday, November 5, 2020

Sample Bib. Tex Booklet Entry @BOOKLET{Sherwood, author="D. A. Sherwood", title="Phosphorus Loads Entering Long Pond,

Sample Bib. Tex 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. Raqueño 17 Thursday, November 5, 2020

Sample Bib. Tex Proceedings Entry @INPROCEEDINGS{Stoermer, author="E. F. Stoermer", title="Nearshore phytoplankton populations in the

Sample Bib. Tex 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 11 th Conference on Great Lakes Research", pages="137 --150", year=1968, } Rolando V. Raqueño 18 Thursday, November 5, 2020

Sample Bib. Tex Manual Entry @MANUAL{RSI, author="RSI", title="ENVI User's Guide", publisher="Reasearch Systems Incorporated", organization="Research

Sample Bib. Tex 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. Raqueño 19 Thursday, November 5, 2020

Different Formatting Styles • To invoke a particular style, go to – http: //www.

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. Raqueño 20 Thursday, November 5, 2020

To invoke these styles in your document • Copy them to your current working

To invoke these styles in your document • Copy them to your current working directory with your La. Te. X and Bib. Tex document • Edit your La. Te. X file to appropriately reference these style guides Rolando V. Raqueño 21 Thursday, November 5, 2020

Sample La. Te. X document listing Bibliography in MLA Style (bib. tex) documentclass{report} usepackage{mla}

Sample La. Te. X document listing Bibliography in MLA Style (bib. tex) documentclass{report} usepackage{mla} begin{document} bibliographystyle{mla} bibliography{mybib} nocite{*} end{document} Rolando V. Raqueño 22 Thursday, November 5, 2020

Commands to Build and View Document To use xdvi viewer % % % Rolando

Commands to Build and View Document To use xdvi viewer % % % Rolando V. Raqueño latex bib. aux latex bib. tex xdvi bib. dvi 23 Thursday, November 5, 2020

Rolando V. Raqueño 24 Thursday, November 5, 2020

Rolando V. Raqueño 24 Thursday, November 5, 2020

Sample La. Te. X document listing Bibliography in AMS Style (bib. tex) documentclass{report} begin{document}

Sample La. Te. X document listing Bibliography in AMS Style (bib. tex) documentclass{report} begin{document} bibliographystyle{amsplain} bibliography{mybib} nocite{*} end{document} Rolando V. Raqueño 25 Thursday, November 5, 2020

Rolando V. Raqueño 26 Thursday, November 5, 2020

Rolando V. Raqueño 26 Thursday, November 5, 2020

To include only cited articles we remove the nocite{*} command documentclass{report} begin{document} We want

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. Raqueño 27 Thursday, November 5, 2020

Rolando V. Raqueño 28 Thursday, November 5, 2020

Rolando V. Raqueño 28 Thursday, November 5, 2020

Cross-referencing in Proceedings @PROCEEDINGS{Narayanan, editor="Ram Mohan Narayanan and James E. Kalshoven, Jr. ", title="Advances

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. Raqueño 29 Thursday, November 5, 2020

Article in Proceedings @INPROCEEDINGS{Ulrich, author="B. L. Ulrich and P. Lacovara and S. E. Moran

Article in Proceedings @INPROCEEDINGS{Ulrich, author="B. L. Ulrich and P. Lacovara and S. E. Moran and M. J. De. Weert", title="Recent results in imaging lidar", crossref="Narayanan", pages="95 --108", } Rolando V. Raqueño 30 Thursday, November 5, 2020

Rolando V. Raqueño 31 Thursday, November 5, 2020

Rolando V. Raqueño 31 Thursday, November 5, 2020

Miscellaneous La. Te. X Topics Rolando V. Raqueño 32 Thursday, November 5, 2020

Miscellaneous La. Te. X Topics Rolando V. Raqueño 32 Thursday, November 5, 2020

Comments in La. Te. X % – Ignores the rest of the line Rolando

Comments in La. Te. X % – Ignores the rest of the line Rolando V. Raqueño 33 Thursday, November 5, 2020

To protect special characters • Use the  character – e. g. My_Cat. raw

To protect special characters • Use the character – e. g. My_Cat. raw • To typeset a section as typed begin{verbatim} end{verbatim} Rolando V. Raqueño 34 Thursday, November 5, 2020

Verbatim command • OK for small sections that can be typed into document •

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. Raqueño 35 Thursday, November 5, 2020

Including Source code in La. Te. X documents documentclass{article} usepackage{verbatim} begin{document} begin{equation} label{E: sum}

Including Source code in La. Te. X 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. Raqueño 36 Thursday, November 5, 2020

Rolando V. Raqueño 37 Thursday, November 5, 2020

Rolando V. Raqueño 37 Thursday, November 5, 2020

Including image graphics into you La. Te. X document • Need to convert your

Including image graphics into you La. Te. X document • Need to convert your image graphics into EPS • For images, use pnmtops, e. g. % pnmtops –norotate –nosetpage My. Cat. pgm > My. Cat. ps • -norotate keeps from auto-rotating the image • -nosetpage keeps from setting to a specific device • Need to include an extension package to La. Te. X called graphics using command usepackage{graphics} Rolando V. Raqueño 38 Thursday, November 5, 2020

Image Graphics Example (image. tex) documentclass{article} usepackage{graphics} begin{document} begin{figure} includegraphics{My. Cat. ps} caption{This is

Image Graphics Example (image. tex) documentclass{article} usepackage{graphics} begin{document} begin{figure} includegraphics{My. Cat. ps} caption{This is My Cat} label{F: My. Cat} end{figure} end{document} Rolando V. Raqueño 39 Thursday, November 5, 2020

Rolando V. Raqueño 40 Thursday, November 5, 2020

Rolando V. Raqueño 40 Thursday, November 5, 2020

Flowchart Figures • Create Flowchart in Power. Point • Export as a bmp file

Flowchart Figures • Create Flowchart in Power. Point • 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 WMF 2 EPS – Windows clipboard objects to EPS Rolando V. Raqueño 41 Thursday, November 5, 2020

Because current pdflatex cannot include Encapsulated Postscript Files (EPS)… • Need to go from

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 % ps 2 pdf image. ps • Some degradation in quality is observed Rolando V. Raqueño 42 Thursday, November 5, 2020

Rolando V. Raqueño 43 Thursday, November 5, 2020

Rolando V. Raqueño 43 Thursday, November 5, 2020

Rolando V. Raqueño 44 Thursday, November 5, 2020

Rolando V. Raqueño 44 Thursday, November 5, 2020