Page Layoutgeophysics | Use of 'widetext' Environment

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Eino
Posts: 2
Joined: Sat Nov 10, 2012 1:16 pm

geophysics | Use of 'widetext' Environment

Post by Eino »

Hello,

the widetext environment, cut out of the class revtex, doesn't seem to work in the twocolumn mode of class geophysics.

The text simply continues in two-columned mode. Since that widetext environment works with class article, something isn't compatible with class geophysics?

Code: Select all

\documentclass[paper,twocolumn]{geophysics}
\usepackage{widetext}
\usepackage{lipsum}

\begin {document}

\begin{abstract}
abstract needed to switch into two column mode
\end{abstract}

before

\begin{widetext}
\lipsum[1]
\end{widetext}

after

\end{document}
class geophysics: http://sourceforge.net/projects/segtex/
widetext environment: can't access Anjishnu Sarkar's site any more, but
https://svn.einsteintoolkit.org/documen ... detext.sty

Thanks,
Eino

P.S: That class is used by the Society of Exploration Geophysicists for their journal Geophysics. I don't understand how it can typeset its journal, but I shall use its paper style for my report.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

geophysics | Use of 'widetext' Environment

Post by localghost »

After getting the necessary stuff from the sources you mentioned I have built a very simple example at first.

Code: Select all

\documentclass[paper,twocolumn]{geophysics}
\usepackage[T1]{fontenc}
\usepackage{lipsum}

\begin{document}
  \lipsum[1-2]
\end{document}
After compilation of exactly this example I face two problems.
  1. There is a warning in the log file about an unused global option.

    Code: Select all

    LaTeX Warning: Unused global option(s):
        [9pt].
    This is caused by the fact that the class tries to load the article class with the 9pt font size option. 9pt is not a valid option for the standard classes.
  2. In spite of the twocolumn option the text is typeset in single-columned mode. This is caused by the fact that the class loads the article class in onecolumn mode if even if twocolumn is specified in the option list.
Hence the class fails in two essential points. The flaws could be remedied by editing the critical part in the source of the class file. I suggest to contact the class maintainer to make him aware of the issue and give him a chance for a fix. This fix is not complicated. In line 65 of the class file (geophysics.cls) just replace 9pt with twocolumn. The problem then should vanish. In general it is not advisable to modify a class file. So the note to the maintainer is actually the way to go.


Best regards and welcome to the board
Thorsten
Eino
Posts: 2
Joined: Sat Nov 10, 2012 1:16 pm

Re: geophysics | Use of 'widetext' Environment

Post by Eino »

Hello Thorsten,

the modification looks so small, but I was thinking of anything but ...

Vielen Dank,
Eino
Post Reply