LaTeX forum ⇒ Page Layoutswitch from two-column to one-column page without pagebreak

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
pkladisios
Posts: 7
Joined: Sat Dec 26, 2015 8:49 pm

switch from two-column to one-column page without pagebreak

Postby pkladisios » Mon Dec 28, 2015 11:27 pm

I'm trying to find a way to switch a twocolumn article (\documentclass[twocolumn]{article}) temporarily to single column. The problem is that \onecolumn, \twocolumn page-break each time. The alternative of multicol is not acceptable since it allows only page-wide floats.

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4103
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Dec 29, 2015 12:04 am

This is a bit of a problem for LaTeX. You can place boxes like that only on the top of pages. Either bei using \twocolumn which is internally used for abstracts and the like; or you use a doublefloat in which you pack what you want/need.

  1. \documentclass[twocolumn]{article}
  2. \usepackage{xcolor}
  3. \usepackage{blindtext}
  4. \begin{document}
  5. \blindtext
  6. \twocolumn[\textcolor{red!60!black}\blindtext]
  7. \begin{figure*}
  8. \textcolor{blue!50!black}\blindtext
  9. \end{figure*}
  10. \blindtext
  11. \begin{table*}[bp]
  12. \textcolor{orange!50!black}\blindtext
  13. \end{table*}
  14.  
  15. \noindent\parbox{\textwidth}{\textcolor{green!50!black}\blindtext}
  16.  
  17. \blindtext[4]
  18. \end{document}


Look at the parbox with the green text. LaTeX cannot remember, that this place is already filled. Ask yourself a question: How would LaTeX decide if the first column above is typeset and then the other column above, the two at the bottom at the end. Or first column one top and bottom, and later column two top to bottom. How would the reader of a document decide which way to read?

Package stfloats extends the standard and allows floats at the bottom of pages.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

pkladisios
Posts: 7
Joined: Sat Dec 26, 2015 8:49 pm

Postby pkladisios » Tue Dec 29, 2015 7:22 pm

This is really strange. There's a massive amount of scientific papers doing what i'm asking for. Just to be precise, i want, right after the title, to insert a few page-length lines of information about authors,keywords,contact info etc. I tried to suppressing pagebreak for a single command but later on page-length text is overwritten by the second column text:

  1. \begingroup
  2. \let\clearpage\relax
  3. \onecolumn
  4. \endgroup


I'll keep searching among various templates and perhaps will find a solution. Really frustrating though...

User avatar
Johannes_B
Site Moderator
Posts: 4103
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Dec 29, 2015 8:03 pm

I bet you are generating the title using \maketitle. Don't; the standard title is quite ugly anyway.

Put the title as well as the abstract and the keywords in the optional argument of twocolumn.

  1. \documentclass[twocolumn]{article}
  2. \usepackage{blindtext}
  3. \begin{document}
  4. \twocolumn[{\centering{\Huge Why is this all
  5. happening?\par}\vspace{3ex}
  6. {\Large Crazy Cabybara\par}\vspace{2ex}
  7. \today\par\vspace{4ex}}
  8. {\centering\bfseries Abstract\par}
  9. \smallbreak
  10. \blindtext
  11. \medbreak
  12. Keywords: Ant, Bee, Penguin
  13. \par\vspace{2ex}]
  14. \blindtext[5]
  15. \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.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests