LaTeX is a markup language and is the standard way for writing papers in astronomy. While most journals will accept a Word document, LaTeX is generally used because of its abilities for representing math and formulas, figure placement, tables, and cross-referencing. There are a variety of TeX distributions and ways to work when writing a paper using LaTeX. Some of these are described below.
References
- TeX, LaTeX, and Friends - A collaboratively edited question and answer site for people who love TeX, LaTeX and other related typesetting systems.
- Detexify - find the LaTeX command for symbols by drawing it in your web browser.
LaTeX Editors
- How and Why to Use TextMate for LaTeX - detailed instructions for setting up the TextMate's LaTeX bundle.
-
- a free TeX editor and Previewer for Macs (see Wikipedia for details).
- uses pdftex and pdflatex which goes straight to PDF output rather than dvi output
- You can also use a "Tex & Ghostscript" typeset option to handle EPS figures (PDFTex requires PDF figures.)
- You can optionally download an entire latex package, or use with an existing install
- BibDesk - app to edit and manage your bibliography. It will keep track of both the bibliographic information and the associated files or web links for you. BibDesk instead of Papers
Installation Options
MacTeX
MacPorts
- MacPorts 101
- See comments on this post for details on installing latex with MacPorts
Related useful packages include:
-
Install TeX emulateapj:
-
Download emulateapj (just save on home directory for now). Then execute the following:
cd /sw/share/texmf-dist/tex/latex sudo mkdir emulateapj sudo mkdir apjfonts sudo cp ~/emulateapj.cls emulateapj/ sudo cp ~/apjfonts.sty apjfonts/ texconfig
-
-
LaTeXiT
- is included in MacTex install
- http://ktd.club.fr/programmation/latexit_en.php
- A convenient method of quickly typsetting equations using LaTeX so they can be easily dragged & dropped into presentations, documents, etc.
- See also a similar application called Equation Service.
-
Install AUCTeX and RefTex:
- http://www.gnu.org/software/auctex/
- http://www.gnu.org/software/auctex/reftex.html
- If you write your LaTeX documents in GNU Emacs or XEmacs then these packages will speed up the creation of LaTeX environments and help you manage your labels, references and citations.
LaTeX/BibTeX Tools
-
Manuscript preparation (blog post)
- Makefile (Ultimate LaTeX Makefile, latex-makefile, latexmk, rubber): run latex/bibtex/dvips/ps2pdf with one script
- submit_prepare.pl, prepforpub: prepare manuscript for submission to ArXiv or journal.
- emulateapj: stylefile to create ApJ-style document
-
Bibliography
- aux2bib, bibtool: create a smaller bib file, generate bikeys, ...
- ADS to BibDesk: add reference (along with the PDF) from web browser to BibDesk. Also keeps astro-ph articles up-to-date with their refereed versions.
- adsbib: create a bibliography directly from ADS (no local database needed)
- yahapj.bst: modernized ApJ style file with DOI hyperlinks and better treatment of ArXiv papers
- Papers2: keeps papers in PDF format along with metadata that can be exported to bibtex format
-
Making a LaTeX-readable list of publications for your CV (from Julianne Dalcanton via Alyson Brooks):
- Search on your name using the "refereed papers" flag (example).
- Press "Select All" at the bottom of the results page (and deselect any chaff like errata).
- Under "Retrieve the above records", select "Custom format" in the listing for "Return", and "date" for the listing under "Sort by".
- In the custom format box, type: %\zn. %\l %\Y, ``%\t'', {\\it %\J}, %\V, %\p. %\c citations\n
- Press "Retrieve selected records", and you'll get a list of your papers in a CV-friendly latex format, with current citation counts.
Possible tweaks:
- You can substitute "%\j" for "{\\it %\J}" in the above string if you'd rather have AASTeX journal macros instead of full journal names in italic format.
- Remove "%\zn." if you don't want your papers enumerated.
- Change "%\l" to "%\8l" if you want all papers with more than 8 authors to appear as "First Author, et al.", or to "%\8L" if you want all papers with more than 8 authors to appear as "First Author and # colleagues".