LyXTwo Column Article - Text rows vertically misaligned

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
wegweiser
Posts: 2
Joined: Tue Dec 18, 2012 3:56 am

Two Column Article - Text rows vertically misaligned

Post by wegweiser »

Hey everyone,

just tried to typeset an article with two-column layout and am now faced with the problem that the text rows on the right hand are not vertically aligned to the one on the left hand (probably because of section titles?).

Is there any option to force Lyx / Latex to ensure that the text rows are correctly aligned on both sides with respect to each other? This would look a lot more professional. Would be really thankful for your support :)

Preamble:

Code: Select all

\usepackage{natbib}
\usepackage{geometry}
\geometry{a4paper,left=25mm,right=25mm,top=20mm,bottom=20mm}

% wenn pdflatex benutzt wird:
\usepackage{ifpdf}
\ifpdf

% Fonts fuer huebschere PDF-Ansichten
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}

\fi % Ende von: wenn pdflatex benutzt wird

% Setzt den Link fuer Spruenge zu Gleitabbildungen
% auf den Anfang des Gleitobjekts und nicht aufs Ende
\usepackage[figure*]{hypcap}

% Ein PDF-Lesezeichen für das Inhaltsverzeichnis wird hinzugefügt
\let\myTOC\tableofcontents
\renewcommand{\tableofcontents}{%
 \pdfbookmark[1]{\contentsname}{}
 \myTOC }

% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
  L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
  {LyX}}
The text is just a lorem ipsum text withouth any specific formattings, only a title and a section title.
lyx_problem-800.jpg
lyx_problem-800.jpg (39.93 KiB) Viewed 4171 times
Last edited by cgnieder on Tue Dec 18, 2012 9:27 pm, edited 1 time in total.

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Two Column Article - Text rows vertically misaligned

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Yes, the section headings are also causing this, and further variable spacing. For perfectly aligned lines, such headings should have a height of a multiple of \baselineskip. Variable spaces such as \parskip should be made fixed.

Perhaps it's easier to use the multicol package with section headings spanning the whole width and two-column text enviromments.

If you plan to publish the article, I guess you may use a class of the publisher, which would take care of it.

Stefan
LaTeX.org admin
wegweiser
Posts: 2
Joined: Tue Dec 18, 2012 3:56 am

Re: Two Column Article - Text rows vertically misaligned

Post by wegweiser »

Thank you very much for your response. So far I don't plan to publish it but do you maybe have a Lyx template for me that ensures the perfect alignment which I could try to customise to my needs? I guess that also the Titles and spacings between sections have to be properly defined by the template.
Post Reply