SEGTeX: Difference between revisions

From Madagascar
Jump to navigation Jump to search
Nick (talk | contribs)
→‎Documentation: updated links
Nick (talk | contribs)
updated links
Line 46: Line 46:
The [http://rsf.svn.sourceforge.net/viewvc/segtex/trunk/tex/latex/seg/ tex/latex/seg] directory contains several example files.
The [http://rsf.svn.sourceforge.net/viewvc/segtex/trunk/tex/latex/seg/ tex/latex/seg] directory contains several example files.


* Manuscript style '''Geophysics''' paper [http://rsf.sourceforge.net/geophysics_example.pdf geophysics_example]  
* Manuscript style '''Geophysics''' paper [http://reproducibility.org/wikilocal/docs/geophysics_example.pdf geophysics_example]  
* Manuscript style '''Geophysics''' paper using <tt>endfloat</tt> [http://rsf.sourceforge.net/geophysics_endfloat.pdf geophysics_endfloat]
* Manuscript style '''Geophysics''' paper using <tt>endfloat</tt> [http://reproducibility.org/wikilocal/docs/geophysics_endfloat.pdf geophysics_endfloat]
* Publication style two-column '''Geophysics''' paper [http://rsf.sourceforge.net/geophysics_twocolumn.pdf geophysics_twolumn]
* Publication style two-column '''Geophysics''' paper [http://reproducibility.org/wikilocal/docs/geophysics_twocolumn.pdf geophysics_twolumn]
* '''SEG''' expanded abstract (with references) [http://rsf.sourceforge.net/segabs_example.pdf segabs_example]
* '''SEG''' expanded abstract (with references) [http://reproducibility.org/wikilocal/docs/segabs_example.pdf segabs_example]
* '''SEG''' expanded abstract (without references) [http://rsf.sourceforge.net/segabs_final.pdf segabs_final]
* '''SEG''' expanded abstract (without references) [http://reproducibility.org/wikilocal/docs/segabs_final.pdf segabs_final]
* Report style paper [http://rsf.sourceforge.net/geophysics_paper.pdf geophysics_paper]
* Report style paper [http://reproducibility.org/wikilocal/docs/geophysics_paper.pdf geophysics_paper]


== Tips and tricks ==
== Tips and tricks ==

Revision as of 17:14, 12 October 2008

Society of Exploration Geophysicists

SEGTeX is a LaTeX package for geophysical publications. It consists of

  • LaTeX2e class files for Geophysics papers, SEG expanded abstracts, etc
  • BibTeX style files seg.bst
  • BibTeX cumulative bibliography of geophysical publications SEG.bib
  • latex2html customizations

Downloading

Access SEGTeX through its SourceForge project by downloading the latest stable release.

Alternatively, use a Subversion client to acess the current working version, as follows:

  $ svn co https://segtex.svn.sourceforge.net/svnroot/segtex/trunk texmf 

You can also browse the Subversion repository.

Installation

To install, put the contents of the texmf folder where LaTeX can find it. Most systems recognize $HOME/texmf as one of the default places.

If your LaTeX installation is missing/incomplete, try installing TeX Live, install SEGTeX described in the previous paragraph, then run texconfig rehash .

SEG expanded abstracts

SEGTeX includes segabs.cls -- a LaTeX class for generating SEG expanded abstracts. Alternatively, you can download segabs-2007 -- a packaged expanded abstract template.

To generate an expanded abstract without references, as required by SEG, use two LaTeX files: one for the abstract itself, and the other for separating pages without references. Examples are segabs_example.ltx and segabs_final.ltx

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages={1-4}]{segabs_example}
\end{document}

This solution only works with pdflatex.

Alternatively, you can separate pages using an external program.

  • In Acrobat Pro, open the PDF file with referenes, select Document -> Pages -> Extract, and extract the reference page with the delete option (thanks to Norm Bleistein for the tip.)
  • Another useful program is pdftk (PDF toolkit.)

Documentation

The tex/latex/seg directory contains several example files.

Tips and tricks

  • Equations, citation commands, etc don't work inside \old.

Enclose citations in \mbox: Instead of \old{wrong citation \cite{wrong}}, use \old{wrong citation \mbox{\cite{wrong}}}.

Enclose equations in \parbox or minipage: Instead of

\old{wrong equation
\begin{equation}
2*2 = 5
\end{equation}}

use

\old{wrong equation \\
\begin{minipage}{\textwidth}
\begin{equation}
2*2 = 5
\end{equation}
\end{minipage}}

or

\old{wrong equation \\
\parbox{\textwidth}{
\begin{equation}
2*2 = 5
\end{equation}
}}

\parbox seems to work better with \eqnarray.

Thanks to Brad Artman and James Gunning for reporting this problem.

Communication

The SEGTeX development is discussed at the SEGTeX mailing list maintained by Joe Dellinger.

Reproducible papers

SEGTeX is used in the Madagascar package to produce reproducible research papers.

See a presentation on LaTeX and Web tools from the RSF School and Workshop, Vancouver_2006.

LaTeX references

News

SEG Technical Program Online
  • 07/04/2006 SEGTeX moved to SourceForge
  • 07/07/2006 version 0.8 released
  • 10/26/2006 version 0.8.1 released
  • 10/27/2006 version 0.8.2 released
  • 12/11/2006 version 0.8.3 and segabs-2007.1 released
  • 03/15/2007 version 0.8.4 and segabs-2007.2 released
  • 04/03/2007 version 0.8.5 and segabs-2007.3 released
  • 04/20/2008 version 0.8.6 and segabs-2008.1 released
  • 04/27/2008 version 0.8.7 and segabs-2008.2 released
  • 05/16/2008 version 0.8.8 released