Page Layout\previouspage command?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

\previouspage command?

Post by nlct »

It's just occurred to me that there's a much simpler solution:

Code: Select all

\documentclass{article}

\usepackage{lipsum}% dummy text for sample document

\begin{document}

\twocolumn[\parbox{\textwidth}{\lipsum[1-2]}]

\lipsum[3-5]

\begin{table*}
  \centering
  A very wide table
  \caption{Sample table}
\end{table*}

\lipsum[6-8]

\end{document}
Regards
Nicola Talbot

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

climatologist
Posts: 6
Joined: Tue Mar 29, 2011 7:25 pm

Re: \previouspage command?

Post by climatologist »

Brilliant, Nicola!

This was exactly the solution I needed.

I was still having some issues with words running beyond the width of the columns, but I even found a fix to that. Instead of your suggested \documentclass{article} I changed your code to \documentclass[twocolumn]{article}. Now everything is perfectly aligned--my floats do float, my colum-width and page-width figures and tables all work perfectly!

Thank you so much for your help!
Chad
Post Reply