Text FormattingFrom two Columns to one Column

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
aquafina
Posts: 8
Joined: Tue Apr 12, 2011 10:30 am

From two Columns to one Column

Post by aquafina »

Hello,

Any help would really be great.
I have been given this template for a 2 columns paper.

The first line of the latex file is:
\documentclass[twocolumn]{article}

Everything is fine as far as 2 columns are concerned but now I have to insert a big table which is not accommodating, so I have to change to 1 column.

I was going through some previous forum questions and the given solution is:

Code: Select all

\documentclass{article}
\usepackage{multicol}
\usepackage{blindtext}

\begin{document}
  \begin{multicols}{1}[\textbf{Example for a one column text}]
    \blindtext
  \end{multicols}




Somehow, this doesn't work for me. Is there any other way around when the documentclass is already predefined with option [twocolumn] ?

Thanks

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

From two Columns to one Column

Post by localghost »

Take a look at the (quite old) cuted package from the sttools bundle.


Thorsten
aquafina
Posts: 8
Joined: Tue Apr 12, 2011 10:30 am

Re: From two Columns to one Column

Post by aquafina »

Thanks for your reply.
It seems that when using cuted, the entire page changes to one column. My aim was to have one column and two columns in the same page itself.
Can cuted be used in that case ?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

From two Columns to one Column

Post by localghost »

Somehow I can't see that. I only get a mass of warnings about "bad boxes" (underfull vbox).

Code: Select all

\documentclass[11pt,twocolumn,english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{cuted}
\usepackage{blindtext}

\begin{document}
  \blindtext[2]

  \begin{strip}
    \blindtext
  \end{strip}

  \blindtext[2]
\end{document}
Perhaps you can clarify what you mean.
aquafina
Posts: 8
Joined: Tue Apr 12, 2011 10:30 am

Re: From two Columns to one Column

Post by aquafina »

I am sorry. Since I don't know latex much, I am finding hard to explain.
Anyhow, I ran this above script and it ACTUALLY works.

My only question now is, I do not want to use blindtext.

Suppose I have this text say "Sun rises in the east and sets in the west."

How can I use [2] in the above sentence to make it into 2 columns.

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

From two Columns to one Column

Post by localghost »

The packages babel (with its global language option) and blindtext are not part of the solution. They have only been used to create dummy text. This is a common practice to fill a document with content. If need be you can always read in the corresponding manual of a package what it does. Reading can safe a lot of time.

I don't really see the problem. Just think one simple step further. You can insert whichever text you want. And you also can center the content in the »strip« environment.

Code: Select all

\documentclass[12pt,twocolumn]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{cuted}

\begin{document}
  The packages »babel« (with its global language option) and »blindtext« are not part of the solution.they have only been used to create dummy text. This is a common practice to fill a document with content. If need be you can always read in the corresponding manual of a package what it does. Reading can safe a lot of time.

  \begin{strip}
    \centering
    Sun rises in the east and sets in the west.
  \end{strip}

  I don't really see the problem. Just think one simple step further. You can insert whichever text you want. And you also can center the content in the »strip« environment.
\end{document}
Post Reply