Text FormattingTwocolumn in AMS Class

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Firate
Posts: 7
Joined: Thu Apr 21, 2011 10:31 am

Twocolumn in AMS Class

Post by Firate »

Hi;

I want to prepare a tex file in twocolumn with ams class. My expect is, the title, author's name and abstract are in single line and the other sections are in twocloumn.

I put "twocolumn" command in documentclass, but it makes all of the paper in twocolumn not in my style.

What can I do for this purpose?

please let me know

Thanks you in advance

Firat

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Twocolumn in AMS Class

Post by localghost »

Consider to use another class. The packages of AMSLaTeX can also be included into other classes.


Best regards and welcome to the board
Thorsten
Firate
Posts: 7
Joined: Thu Apr 21, 2011 10:31 am

Re: Twocolumn in AMS Class

Post by Firate »

Thanks for your answer. I am not expert in latex. I would like to benefit from your experiences. Is there any way to do it in twocolumn after abstract section?
or
Can I do it in article class?

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

Twocolumn in AMS Class

Post by localghost »

I forgot that the abstract shows the same behaviour in the »article« class as in the »amsart« class. So you can use the latter one with the same settings. It will require the multicol package to get the desired result.

Code: Select all

\documentclass[11pt,a4paper,english]{amsart}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{multicol}
\usepackage{blindtext}

\title{A double-columned document with single-column abstract}
\author{Firate}

\begin{document}
  \maketitle

  \begin{abstract}
    \blindtext
  \end{abstract}

  \begin{multicols}{2}
    \blinddocument
  \end{multicols}
\end{document}
The actual content of your document has to be inserted within the multicols environment.

The blindtext package is only for creating dummy text thus not part of the solution.
Firate
Posts: 7
Joined: Thu Apr 21, 2011 10:31 am

Re: Twocolumn in AMS Class

Post by Firate »

Thanks for your kindly help.

I used multicols command as you say. But I have some problems in figure. They did not seem. For this problem I used figure* command. It works but the figures settled in a single line by breaking the column.

Some of my figures are suitable for this appearance. But others should be placed in one of the column as a text.

Is it possible?

Thanks

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

Twocolumn in AMS Class

Post by localghost »

Float objects don't work in a multi-column environment. But you can load the caption package and use its \captionof command to position figures and tables in a column.

Code: Select all

\documentclass[11pt,a4paper,english]{amsart}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=3cm]{geometry}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{multicol}
\usepackage{blindtext}

\title{A double-columned document with single-column abstract}
\author{Firate}

\begin{document}
  \begin{abstract}
    \blindtext
  \end{abstract}
  \maketitle

  \begin{multicols}{2}
    \blindtext

    \medskip
    \noindent
    \begin{minipage}{\linewidth}
      \centering
      \rule{0.75\linewidth}{0.5\linewidth}
      \captionof{figure}{Dummy figure}\label{fig:dummy}
    \end{minipage}

    \medskip
    \blindtext

    \medskip
    \noindent
    \begin{minipage}{\linewidth}
      \captionof{table}{Dummy table}\label{tab:dummy}
      \centering
      \rule{0.75\linewidth}{0.5\linewidth}
    \end{minipage}

    \bigskip
    \blindtext[2]
  \end{multicols}
\end{document}
As you can see, this might end up in fiddling to place the objects appropriately. Furthermore you have to take care for suitable vertical spaces before and after.
Firate
Posts: 7
Joined: Thu Apr 21, 2011 10:31 am

Re: Twocolumn in AMS Class

Post by Firate »

Thanks for your answers.They expanded my horizons.

I used multicol as you said and its worked. I saw that multicol command is balanced last page of the article. So, I used twocolumn command with

\twocolumn[
\begin{@twocolumnfalse}
\begin{abstract}

\end{abstract}
\maketitle
\end{@twocolumnfalse}]

lines. In my article there is a figure like as follow

\begin{document}
\includegraphics[width=0.15\textwidth]{Dummy}} \\
\title{Title of the Manuscript}

above the title. When I used twocolumn it settled my figure in a new page before title. Can I solved this problem?

If you give me a chance, I would like to ask one more question.

Again in my article there is a side by side figure and I want to placed it in a sigle line in two column. Is it possible? I want to put it second or third page, not last page.

thanks in advance

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

Twocolumn in AMS Class

Post by localghost »

Firate wrote:[…] I saw that multicol command is balanced last page of the article. So, I used twocolumn command with

\twocolumn[
\begin{@twocolumnfalse}
\begin{abstract}

\end{abstract}
\maketitle
\end{@twocolumnfalse}]

lines. In my article there is a figure like as follow

\begin{document}
\includegraphics[width=0.15\textwidth]{Dummy}} \\
\title{Title of the Manuscript}

above the title. When I used twocolumn it settled my figure in a new page before title. Can I solved this problem? […]
I don't understand these code snippets. Out of context they are useless. Please provide a full but minimal example that is compilable as provided for others in the same way I did [1]. And please use the »Code« environment to tag code like I did for better recognition of code between normal text. For unbalanced columns you can use the multicols* environment.
Firate wrote:[…] If you give me a chance, I would like to ask one more question.

Again in my article there is a side by side figure and I want to placed it in a sigle line in two column. Is it possible? I want to put it second or third page, not last page. […]
Can be done with a package that supports sub-figures like »subcaption« (from caption), floatrow or subfig. But apriori we will fix the first issue.

[1] View topic: Avoidable mistakes
Firate
Posts: 7
Joined: Thu Apr 21, 2011 10:31 am

Twocolumn in AMS Class

Post by Firate »

Excuse me for my mistake. I post two example about my desired scheme. I am open to any proposal in this regard.

In first template, I used twocolumn. There is a two problem here according to me.
First is, I want to put a figure above the article title. But it produce a blank page. Second is I want to put a side by side figure anywhere in article, not at top of the last page

In the second example, I used multicol. There is a one problem here and this is same as the second problem above the first template.

Thanks for your interest

*In these examples, I put a table after \begin{document} for include a Figure at the top of the Title page.

Code: Select all

\documentclass[10pt,a4paper,reqno,twocolumn,english]{amsart}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[dvips]{graphicx}
\usepackage{multirow,url}
\usepackage{blindtext}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}


\makeatletter
\newenvironment{tablehere}
  {\def\@captype{table}}
  {}
\newenvironment{figurehere}
  {\def\@captype{figure}}
  {}
\makeatother

\addtolength{\textwidth}{4cm} 
\addtolength{\textheight}{2cm}
\addtolength{\hoffset}{-2.0cm}
\addtolength{\voffset}{-1.5cm}

\begin{document}

\begin{tabular}{ll}
{\scriptsize I want to put here a Figure} & \hspace{6cm} \multirow{2}{*}{%
\includegraphics[width=0.15\textwidth]{Dummy}} \\ 
 & \\ & 
\end{tabular}

\title{Title of the Manuscript}

\author[First Author's Name]{First Author's Name$^a$ \\
$^a$Department of Name, University Name \\
Email: First Author's Email}    

\thanks{The author is supported by ...}

\date{January 1, 2011 and, in revised form, June 22, 2011.}

\twocolumn[
\begin{@twocolumnfalse}
\begin{abstract}

\blindtext

\end{abstract}
\maketitle
\end{@twocolumnfalse}]

\section{Introduction}

\blindtext

\section{Tables Subsections}

\begin{tablehere}
\caption{A simple table}
  \begin{center}
    \begin{tabular}{| l c r |}
    \hline
    1 & 2 & 3 \\
    4 & 5 & 6 \\
    7 & 8 & 9 \\
    \hline
    \end{tabular}
  \end{center}
\end{tablehere}

\section{Figures Subsection}
 
\begin{figurehere}
    \centering
    \includegraphics[width=6.5cm,height=4.5cm]{Dummy figure}
    \caption{Simulation Results}
    \label{simulationfigure}
\end{figurehere}

\begin{figure*}[ht]
\begin{center}$
\begin{array}{c@{\hspace{0.5in}}c}
\multicolumn{1}{l}{\mbox{}} &
\multicolumn{1}{l}{\mbox{}} \\
\includegraphics[width=2.5in]{figure1.eps} &
\includegraphics[width=2.5in]{figure1.eps} \\
\mbox{\bf (a)} & \mbox{\bf (b)}
\end{array}$
\end{center}
\caption{Comparison of figure}
\label{figure1}
\end{figure*}

\blindtext

\end{document}

Code: Select all

\documentclass[10pt,a4paper,reqno]{amsart}

\usepackage[dvips]{graphicx}
\usepackage{amssymb,amsmath,amsfonts}
\usepackage{multirow,url}
\usepackage{multicol}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{blindtext}

\makeatletter
\newenvironment{tablehere}
  {\def\@captype{table}}
  {}
\newenvironment{figurehere}
  {\def\@captype{figure}}
  {}
\makeatother
\addtolength{\textwidth}{4cm} 
\addtolength{\textheight}{2cm}
\addtolength{\hoffset}{-2.0cm}
\addtolength{\voffset}{-1.5cm}

\begin{document}

\begin{tabular}{ll}
{\scriptsize I want to put here a Figure} & \hspace{6cm} \multirow{2}{*}{%
\includegraphics[width=0.15\textwidth]{Dummy}} \\ 
 & \\ & 
\end{tabular}

\vspace{2cm}

\title{Title of the Manuscript}

\author[First Author's Name]{First Author's Name$^a$ \\
$^a$Department Name, University Name \\
Email: First Author's Email }
    
\thanks{The author is supported by ...}

\date{January 1, 2011 and, in revised form, June 22, 2011.}

\begin{abstract}
\blindtext
\end{abstract}
\maketitle

\begin{multicols}{2}

\section{Introduction}

\blindtext

\section{Tables Subsections}
\blindtext

\begin{tablehere}
\caption{A simple table}
  \begin{center}
    \begin{tabular}{| l c r |}
    \hline
    1 & 2 & 3 \\
    4 & 5 & 6 \\
    7 & 8 & 9 \\
    \hline
    \end{tabular}
  \end{center}
\end{tablehere}
\section{Figures Subsection}

\blindtext

\begin{figurehere}
    \centering
    \includegraphics[width=6.5cm,height=4.5cm]{figure1}
    \caption{Simulation Results}
    \label{simulationfigure}
\end{figurehere}

\begin{figure*}[!ht]
\begin{center}$
\begin{array}{c@{\hspace{0.5in}}c}
\multicolumn{1}{l}{\mbox{}} &
\multicolumn{1}{l}{\mbox{}} \\
\includegraphics[width=2.5in]{figure1.eps} &
\includegraphics[width=2.5in]{figure1.eps} \\
\mbox{\bf (a)} & \mbox{\bf (b)}
\end{array}$
\end{center}
\caption{Comparison of Figures}
\label{figure1}
\end{figure*}

\blindtext

\end{multicols}


\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Twocolumn in AMS Class

Post by localghost »

Firate wrote:[…] First is, I want to put a figure above the article title. But it produce a blank page. Second is I want to put a side by side figure anywhere in article, not at top of the last page […]
Based on my earlier examples the below code should solve these and all other problems you presented here*.

Code: Select all

\documentclass[11pt,a4paper,english]{amsart}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage[font=footnotesize]{subcaption}
\usepackage{multicol}
\usepackage{blindtext}

\title{
  \rule{6.4cm}{3.6cm}\\[\bigskipamount]
  A double-columned document with single-column abstract
}
\author{Firate}

\begin{document}
  \begin{abstract}
    \blindtext
  \end{abstract}
  \maketitle

  \begin{multicols*}{2}
    \blindtext

    \medskip
    \noindent
    \begin{minipage}{\linewidth}
      \centering
      \rule{0.75\linewidth}{0.5\linewidth}
      \captionof{figure}{Dummy figure}\label{fig:dummy}
    \end{minipage}

    \medskip
    \blindtext

    \medskip
    \noindent
    \begin{minipage}{\linewidth}
      \captionof{table}{Dummy table}\label{tab:dummy}
      \centering
      \rule{0.75\linewidth}{0.5\linewidth}
    \end{minipage}

    \bigskip
    \blindtext

    \begin{figure*}[!ht]
      \centering
      \begin{subfigure}[t]{\columnwidth}
        \centering
        \rule{0.75\linewidth}{0.5\linewidth}
        \caption{Dummy sub-figure}\label{subfig-1:dummy}
      \end{subfigure}
      \hfill
      \begin{subfigure}[t]{\columnwidth}
        \centering
        \rule{0.75\linewidth}{0.5\linewidth}
        \caption{Dummy sub-figure}\label{subfig-2:dummy}
      \end{subfigure}
      \caption{Dummy tables}\label{fig:dummy-subs}
    \end{figure*}

    \blindtext[2]
  \end{multicols*}
\end{document}
The graphics in the title is just embedded into the corresponding command. Regarding the figure in the document you may take a look at the cuted package from the sttools bundle. I just inserted some code to demonstrate how to typeset a figure with sub-figures


*I'm just too lazy and short in time to incorporate some of the code you use.
Post Reply