使用横向、小型页面和双列后,列宽会扩展页面

使用横向、小型页面和双列后,列宽会扩展页面

我正在写一份两栏报告:纵向页面。对于某些页面,我使用了横向。在这一页中,一个图形占据了整个页面的宽度(29 厘米)。在这个图形下,我放了两栏文本。下一页应该是正常的纵向格式和两栏,但列的宽度与横向页面一样宽,比纵向页面的列宽得多,而且列会扩展页面。我怎样才能将列宽重新设置为正常宽度:纵向列而不是横向列?

在代码中:

    \documentclass[11pt,twocolumn]{article}
    \usepackage{fancyhdr,graphicx,subfigure,amsmath,hyperref,float,url,multirow,color,
    colortbl,lastpage,totcount,rotating,pdflscape,tabularx,eurosym}
    \usepackage[latin1]{inputenc}
    \usepackage[left=1.2cm,right=1.2cm,top=2cm,bottom=1.8cm]{geometry}
    \setlength{\columnsep}{0.5cm}%between columns
    \graphicspath{{./fig/}}\regtotcounter{page}

    \pagestyle{fancy}%header
    \setlength\headsep{0.5cm}\setlength\topskip{0cm}
    \hypersetup{colorlinks=true, linkcolor=blue,urlcolor=blue}

    \begin{document}
    \title{something}\author{someone}
    %\pagestyle{empty} %No headings for the first pages.
    \headheight=14.5pt%\maketitle
    \lhead{\scriptsize\textit{\leftmark: \rightmark}}
\rhead{\scriptsize\textit{ \thepage/\total{page}}}
    \lfoot{\scriptsize\textit{\today}}
\cfoot{\scriptsize\textit{\copyright society}}
\rfoot{\scriptsize \textit{My Report}}
    %\begin{Indent}{1.7cm}\begin{IndentR}{1.7cm}%1column
    \setlength{\parindent}{0.6cm} \setlength{\parskip}{0.2cm}
    \newcommand{\chapter}[1]{\section{#1}}%report=>article

    Portrait oriented two column text  
    Portrait oriented two column text  
    Portrait oriented two column text  
    Portrait oriented two column text  
    Portrait oriented two column text  

        \begin{landscape}
 here comes the figure width 27cm
        \begin{minipage}{\columnwidth}
        \twocolumn 
    Landscape oriented two column text
    Landscape oriented two column text
    Landscape oriented two column text
    Landscape oriented two column text
    Landscape oriented two column text
\end{minipage}                                                                  
        \end{landscape}

        %Next page should have normal portrait
% columns instead of landscape columns but it is not.

        \section{Bla Bla bla bla}

        Bla bla blaBla bla blaBla bla blaBla 
bla blaBla bla blaBla bla blaBla bla bla
      \end{document}

答案1

在此处输入图片描述

您可以使用\rotateboxandmulticols而不是landscapeand \twocolumn

 \documentclass[11pt,twocolumn]{article}
    \usepackage{fancyhdr,graphicx,subfigure,amsmath,hyperref,float,url,multirow,color,
    colortbl,lastpage,totcount,rotating,pdflscape,tabularx,eurosym,multicol}
    \usepackage[latin1]{inputenc}
    \usepackage[left=1.2cm,right=1.2cm,top=2cm,bottom=1.8cm]{geometry}
    \setlength{\columnsep}{0.5cm}%between columns
    \graphicspath{{./fig/}}\regtotcounter{page}

    \pagestyle{fancy}%header
    \setlength\headsep{0.5cm}\setlength\topskip{0cm}
    \hypersetup{colorlinks=true, linkcolor=blue,urlcolor=blue}

    \begin{document}
    \title{something}\author{someone}
    %\pagestyle{empty} %No headings for the first pages.
    \headheight=14.5pt%\maketitle
    \lhead{\scriptsize\textit{\leftmark: \rightmark}}
\rhead{\scriptsize\textit{ \thepage/\total{page}}}
    \lfoot{\scriptsize\textit{\today}}
\cfoot{\scriptsize\textit{\copyright society}}
\rfoot{\scriptsize \textit{My Report}}
    %\begin{Indent}{1.7cm}\begin{IndentR}{1.7cm}%1column
    \setlength{\parindent}{0.6cm} \setlength{\parskip}{0.2cm}
    \newcommand{\chapter}[1]{\section{#1}}%report=>article

    Portrait oriented two column text  
    Portrait oriented two column text  
    Portrait oriented two column text  
    Portrait oriented two column text  
    Portrait oriented two column text  

\clearpage
\onecolumn
\noindent\rotatebox{90}{%
\begin{minipage}{\textheight}
\begin{multicols}{2}
    Landscape oriented two column text    Landscape oriented two column text
    Landscape oriented two column text    Landscape oriented two column text
    Landscape oriented two column text    Landscape oriented two column text
    Landscape oriented two column text    Landscape oriented two column text
    Landscape oriented two column text    Landscape oriented two column text
    Landscape oriented two column text    Landscape oriented two column text
\end{multicols}
\end{minipage}%
}%
\clearpage
\twocolumn

        %Next page should have normal portrait
% columns instead of landscape columns but it is not.

        \section{Bla Bla bla bla}

        Bla bla blaBla bla blaBla bla blaBla 
bla blaBla bla blaBla bla blaBla bla bla
      \end{document}

相关内容