Text Formatting\twocolumn - gap penetration?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
BinaryBen
Posts: 15
Joined: Mon Feb 18, 2013 8:54 pm

\twocolumn - gap penetration?

Post by BinaryBen »

Hi all,
I'm not sure what is causing this - so I thought someone could point me in the direction of what is causing it.

Basically, I've added \twocolumn - and it works okay for most of the book - however, on occasion, I get the odd few words intersecting the column gap.

So any ideas what would cause this?

Thanx,

Ben
Attachments
columngap.jpg
columngap.jpg (33.7 KiB) Viewed 5877 times
Last edited by cgnieder on Tue Jul 08, 2014 11:14 am, 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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

\twocolumn - gap penetration?

Post by Johannes_B »

First be sure to load package babel with the matching language. In your case it seems to be \usepackage[english]{babel} (maybe american?).

Another thing is to load package microtype, which does some magic. Your whole text block will look more even.

If you need more help, try to prepare a minimal working example so we can better reproduce the problem.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
BinaryBen
Posts: 15
Joined: Mon Feb 18, 2013 8:54 pm

\twocolumn - gap penetration?

Post by BinaryBen »

Well I did a simple example, shown below - but it keeps happening - maybe it's the font size, indent, - not sure - any ideas?????


Code: Select all

\documentclass[9pt]{book}
\usepackage{amsmath,amssymb}
\pagestyle{plain}
\usepackage{lipsum}
\begin{document}

\twocolumn

\section{Introduction}
Once upon a time.

In the case of a collection of course documents or a connected series of articles---possibly including some on remote computers, it is convenient to use web-based access to the archived resources, as is in operation with the page you are now reading. Accordingly, the working example of this page is an easily understood template that you can modify to provide access to your

\lipsum[3-56]
\end{document}
Thanx,

Ben
Last edited by cgnieder on Tue Jul 08, 2014 11:15 am, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

\twocolumn - gap penetration?

Post by Johannes_B »

Best to use twocolumn as global option, if the whole document ist to be typeset in twocolumn mode or use package multicol if only parts should be twocolumn.

Code: Select all

\documentclass[%twocolumn,
9pt%not usable with standard book
]{book}
\usepackage{amsmath,amssymb}
\pagestyle{plain}
\usepackage{lipsum}
\usepackage[english]{babel}
\usepackage{microtype}
\usepackage{multicol}
\begin{document}

%\twocolumn
\begin{multicols}{2}
\section{Introduction}
Once upon a time.

In the case of a collection of course documents or a connected
series of articles---possibly including some on remote computers,
it is convenient to use web-based access to the archived
resources, as is in operation with the page you are now reading.
Accordingly, the working example of this page is an easily
understood template that you can modify to provide access to your

\lipsum[3-6]
\end{multicols}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
BinaryBen
Posts: 15
Joined: Mon Feb 18, 2013 8:54 pm

\twocolumn - gap penetration?

Post by BinaryBen »

Hey Johannes,
thanx for your help.

Eventually, I came across the '\sloppy' define for \twocolumn - which if I set, I can fix the overlapping of the gap - also the \tolerance define.

Thanx again,

Ben
Last edited by cgnieder on Tue Jul 08, 2014 11:15 am, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: \twocolumn - gap penetration?

Post by Johannes_B »

Please be aware of the meaning for sloppy. Thats what it is.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply