GeneralSection title not fitting in one line

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Shukie
Posts: 8
Joined: Fri Dec 14, 2007 6:19 am

Section title not fitting in one line

Post by Shukie »

Hi all,

I'm having a problem with my section title. It breaks off in the middle and starts a new line, here's a picture to show what I mean:

Image

It seems to me there's plenty of room for the title to just be on one single line. How can I make that happen?

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

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

Section title not fitting in one line

Post by gmedina »

It seems to me, looking at the attachment, that you are using the twocolumn class option in your document. If this is so, then your section title won't fit in a single line, as the following example shows (I assumed your language is German, sorry if it is not):

Code: Select all

\documentclass[twocolumn]{article}
\usepackage[ngerman]{babel}
\usepackage{blindtext}

\begin{document}

\section{Rekenen met complexe getallen}
  \Blindtext

\end{document}
If you want the title to appear in a single line, maybe you could try using the multicol package, as the following example suggests:

Code: Select all

\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\usepackage{multicol}

\begin{document}

\section{Rekenen met complexe getallen}
  \begin{multicols}{2}
  \Blindtext
  \end{multicols}

\end{document}
The blindtext package was loaded only to automatically generate some text.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Shukie
Posts: 8
Joined: Fri Dec 14, 2007 6:19 am

Section title not fitting in one line

Post by Shukie »

That's the thing, I'm not using columns. I'll show you a larger image:

Image

The placement of the other text below the 'Product' stuff is just fine, but above that it seems to act as a column.

It's Dutch, by the way :)
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Section title not fitting in one line

Post by gmedina »

Shukie wrote: That's the thing, I'm not using columns. I'll show you a larger image:

Image

The placement of the other text below the 'Product' stuff is just fine, but above that it seems to act as a column.

Please post some relevant parts of your code (in the spirit of a minimal working example) showing this undesired behaviour.
Shukie wrote: It's Dutch, by the way :)

I supossed so. "met" and "mit". Anyway, I'm sorry.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Shukie
Posts: 8
Joined: Fri Dec 14, 2007 6:19 am

Re: Section title not fitting in one line

Post by Shukie »

I was preparing the code for which you asked when I found my problem. It was a picture on the bottom right of the previous page that must have somehow carried over to the next page. When I removed it, the section title became just one single line again.

Thanks for your help :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Section title not fitting in one line

Post by localghost »

The snapshot lets me wonder if you are using the wrapfig package or something similar.
Post Reply