Graphics, Figures & Tables ⇒ wide figures in 1st page for two column documents
wide figures in 1st page for two column documents
The figure* allows to include images spread across full width of two column documents. But it has some limitations. Only top(t) placement works, and does not appear on the same page where they are defined. I found stfloats package, which solves the top placement restriction, but it still demands to be defined 1 page prior.
Any suggestions on how to solve this?
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
wide figures in 1st page for two column documents
- For the first document with caption.
Code: Select all
\documentclass[11pt,a4paper,english]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{babel} \usepackage[font=small,labelfont=bf,tableposition=top]{caption} \usepackage{multicol} \usepackage{blindtext} \title{Two column document with figure underneath title} \author{abhijit8} \begin{document} \maketitle \noindent \begin{minipage}{\textwidth} \centering\noindent \rule{0.75\linewidth}{0.5\linewidth} \captionof{figure}{\blindtext} \end{minipage} \begin{multicols}{2} \blinddocument \end{multicols} \end{document}
- For the second document without caption.
For this case there is a second solution.
Code: Select all
\documentclass[11pt,a4paper,english]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{babel} \usepackage[font=small,labelfont=bf,tableposition=top]{caption} \usepackage{multicol} \usepackage{blindtext} \title{Two column document with image underneath title\\ \normalsize Approach 1} \author{abhijit8} \begin{document} \maketitle \noindent \begin{minipage}{\textwidth} \centering\noindent \rule{0.9\linewidth}{0.2\linewidth} \end{minipage} \begin{multicols}{2} \blinddocument \end{multicols} \end{document}
Code: Select all
\documentclass[11pt,a4paper,twocolumn,english]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{babel} \usepackage[font=small,labelfont=bf,tableposition=top]{caption} \usepackage{blindtext} \title{Two column document with image underneath title\\ \normalsize Approach 2} \author{abhijit8} \date{\rule{0.9\linewidth}{0.2\linewidth}} \begin{document} \maketitle \blinddocument \end{document}
Note that the blindtext package is only loaded for creating dummy text thus is not part of the solution.
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
wide figures in 1st page for two column documents
I have found an another solution, by the use of \begin{strip}..\end{strip} environment, included in the cuted package.
Code: Select all
\documentclass[11pt,a4paper,two column,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{blindtext}
\usepackage{cuted}
\title{Two column document with figure underneath title}
\author{abhijit8}
\begin{document}
\maketitle
\noindent
\begin{strip}
\centering\noindent
\rule{0.75\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}
\end{strip}
\blinddocument
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
wide figures in 1st page for two column documents
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
wide figures in 1st page for two column documents
./new.tex:0:Floats and marginpars not allowed inside `multicols'environment!.
Is there a way to use the standard floats inside multicols environment?
Otherwise, I am now able to get the desired output with the strip environment.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
wide figures in 1st page for two column documents
Perhaps you should be more precise about what you are after. The unstarred versions can't be used here. But if we are talking about figures and tables within one column of a multicolumn environment, you can use an approach that works with the caption package.abhijit8 wrote:[…] I was trying to say that I am not able to use standard figure/table (non-starred) in the multicols environment. […] Is there a way to use the standard floats inside multicols environment? […]
Code: Select all
\documentclass[11pt,a4paper,twocolumn,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{blindtext}
\usepackage{cuted}
\title{Two column document with figure underneath title}
\author{abhijit8}
\begin{document}
\maketitle
\begin{strip}
\centering\noindent
\rule{0.75\linewidth}{0.5\linewidth}
\captionof{figure}{\blindtext}
\end{strip}
\blindtext[2]
\medskip
\noindent
\begin{minipage}{\linewidth}
\centering
\rule{0.75\linewidth}{0.5\linewidth}
\captionof{figure}{The quick brown fox jumps over the lazy dog}
\end{minipage}
\medskip
\blindtext[4]
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10