Math & ScienceRevTeX4 — The widetext environment and the flow of text

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
thomasTC
Posts: 12
Joined: Wed Jun 02, 2010 9:28 am

RevTeX4 — The widetext environment and the flow of text

Post by thomasTC »

Dear board,

I am using RevTeX4 to write a two-column article for submission (my first serious attempt at such endeavours). In this article I will, unfortunately, need at least a couple of very long equations that cannot be split, and so requires the full width of both columns. I have searched the forums here as well as RevTeX's Author's Guide, and have found the widetext environment. I have included an MWE of its use below.

Code: Select all

\documentclass[a4paper,twocolumn,osajnl]{revtex4}
\usepackage{lipsum} %For the lipsum package

\begin{document}
%Setting up the header
\title{Requesting modified usage of \texttt{widetext}}
\author{ThomasTC}
\date{\today}
\begin{abstract} This document displays a \texttt{lipsum} example along with an equation typeset in the \texttt{widetext} enviroment \end{abstract}
\maketitle

%Main matter - This is where my issue is
\section{Main matter of my text}
\lipsum %Some text
\begin{widetext} 
Insert a very long equation using the \texttt{cases} environment for two separate definitions.
\end{widetext}
\lipsum %Some more text
\end{document}
What widetext does is that the text before the formula is typeset in two balanced columns; then the formula is printed along the full page width; and finally, the text following the formula is again typeset in two columns.
What my issue is with this is, that I think it breaks the flow of reading considerably. What I would like was, that the text preceding the formula was typeset in a column, then printed the formula - and continued afterwards in the same column - i.e. I do not want the text to be forced into two balanced columns just because I want a long equation. Since I find it somewhat difficult to describe accurately in text, I have drawn a little sketch from an example-article in my possession. I have marked the reading direction with green arrows.
Sketch of the desired text flow.
Sketch of the desired text flow.
latexexample.png (145.6 KiB) Viewed 11741 times
I would be very happy if anyone knows how to insert my formulas in the same manner as illustrated in the above picture. If it is possible to do with widetext - that would be great, if there is another possibility, then I am also interested in hearing about that.
If anything is not clear in the above, please let me know, and I will try to explain further.


Best regards,
Thomas

PS: I hope this is the appropriate sub-forum - I thought it was more related to math than it was to RevTeX.


Edit by localghost: Preferably no external links (see Board Rules). Attachments go onto the forum server.

Recommended reading 2024:

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

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

Lena123
Posts: 1
Joined: Fri Mar 18, 2022 2:29 pm

RevTeX4 — The widetext environment and the flow of text

Post by Lena123 »

Hi Thomas,

even if your question is several years old and nobody answerd you I am hoping that you got a solution.
I'm working on a publication and got the same issue. So if you have any, or of course anybody else, any advice for me, I would be thankful!

Best regards
Lena
Post Reply