Generallong equation in two-column article over and underlined

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

long equation in two-column article over and underlined

Post by pallav »

I have seen the topic "long equation across whole page in two-column document". What I need is exactly same as that but require solution in little different way.
My preamble contains

Code: Select all

\documentclass[twocolumn, runningheads]{article}
for which I cannot use every time

Code: Select all

 \begin{multicols}

 \end{multicols} 
I have a long equation, for example;

Code: Select all

\mathcal{R}^{(\text{d})}=
g_{\sigma_2}^e
\left(
   \frac{[\Gamma^Z(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2}
  +\frac{[\Gamma^Z(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2}
\right)
+ x_WQ_e
\left(
   \frac{[\Gamma^\gamma(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2}
  +\frac{[\Gamma^\gamma(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2}
\right)
I have to write this equation in one line and have to draw straight lines over and below the equation to separate it from texts. Please note, I have to write "twocolumn" in \documentclass according to the rule of the journal.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

long equation in two-column article over and underlined

Post by gmedina »

Hi,

perhaps you could enclose your equation inside a figure* environment:

Code: Select all

\documentclass[twocolumn]{article} 
\usepackage{amsmath} 
\usepackage{lipsum} % to generate some filler text

\begin{document} 

\lipsum[1-5]

\begin{figure*}
  \hrulefill
  \begin{equation}
  \mathcal{R}^{(\text{d})}=
    g_{\sigma_2}^e
    \left(
     \frac{[\Gamma^Z(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2}
      +\frac{[\Gamma^Z(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2}
    \right)
    + x_WQ_e
    \left(
     \frac{[\Gamma^\gamma(3,21)]_{\sigma_1}}{Q_{12}^2-M_W^2}
      +\frac{[\Gamma^\gamma(13,2)]_{\sigma_1}}{Q_{13}^2-M_W^2}
    \right)
  \end{equation}
  \hrulefill
\end{figure*}

\lipsum[1-10]

\end{document}
Notice, however, that this will cause the equation to be placed in the top of the next page and not in the exact position where you wrote it in your code; if this is not acceptable, let us know and we'll think about some alternative.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Re: long equation in two-column article over and underlined

Post by pallav »

It works fine. But the only problem that you have also mentioned that equations are not coming in proper place. I have lot of equations in my article, it is necessary to place them in proper place. Also I need all the equations aligned with the help of &=&. Please find a way for me to solve the problem. Thank you for all your effort. Thank you.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

long equation in two-column article over and underlined

Post by gmedina »

pallav wrote:It works fine. But the only problem that you have also mentioned that equations are not coming in proper place. I have lot of equations in my article, it is necessary to place them in proper place. Also I need all the equations aligned with the help of &=&. Please find a way for me to solve the problem. Thank you for all your effort. Thank you.
I don't think that an easy alternative solution can be found using article as the document class with the twocolumn option... can you use a different document class? (If I'm not mistaken, there's some class that allows switching between one and two columns in a more flexible way than the article class)

If you have a lot of long equations in your article, perhaps a twocolumn document isn't the best choice for you. What do you mean with the last part? All the equations in your article must be aligned, even if there are text paragraphs in-between them?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

long equation in two-column article over and underlined

Post by pallav »

No only equations need to be aligned,there is no equation. Two column is must for my springer journal, and

Code: Select all

\documentclass[twocolumn, runningheads]{svjour3}
where svjour3 is suplied by the journal is also necessary. Please help me in the above said environment.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

long equation in two-column article over and underlined

Post by gmedina »

pallav wrote:No only equations need to be aligned,there is no equation...
I don't understand.
pallav wrote:...Two column is must for my springer journal, and

Code: Select all

\documentclass[twocolumn, runningheads]{svjour3}
where svjour3 is suplied by the journal is also necessary. Please help me in the above said environment.
Have you seen the class user guide to see if it provides some environment to typeset long equations spanning both columns? Right now I won't be able to do some tests (I have to travel), but in 24 hours I will post a reply (if someone else hasn't done it by then).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

long equation in two-column article over and underlined

Post by gmedina »

I reply as I promised, but with no good news; after some tests, I haven't found a solution to the problem of writing equations spanning both columns when using the twocolumn class option other than using figure* or table*.

Perhaps someone else could suggest a solution.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

long equation in two-column article over and underlined

Post by pallav »

Thank you gmedina for all of your effort. I am in troble to solve the problem. I also requesting others for help in the above matter.
Post Reply