双列,带全宽小页面

双列,带全宽小页面

我正在尝试做类似的事情http://ww1.microchip.com/downloads/en/appnotes/00734b.pdf 我使用了 twocolumn 选项,并定义了我自己的 \showtitle 命令:

\newcommand{\showtitle}{
  \parbox[t]{\textwidth}{
  \flushright\textbf{\fontsize{50}{1}\selectfont\gettitle{}}
  \vbox {\vskip3mm\hrule width \hsize height 1.5pt\vskip1mm\hrule width \hsize height 4pt\vskip1mm} 
  \flushleft\textbf{\Huge{\getsubtitle}}
  \vbox {\vskip2mm\hrule width \hsize height 4pt\vskip1mm\hrule width \hsize height     1.5pt\vskip1mm} 
  \normalsize\normalfont}
}

格式没问题,但是第二列从列的顶部开始,在标题后面...我也尝试使用 minipage,但没有成功。

完整代码:

\documentclass[a4paper,twocolumn]{scrartcl}
\usepackage{lipsum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% General information
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\gettitle}{CBus}
\newcommand{\getsubtitle}{Protocol Specification}
\newcommand{\getauthor}{Keelan}
\newcommand{\getdate}{\today}

\title{\gettitle}
\subtitle{\getsubtitle}
\author{\getauthor}
\date{\getdate}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% General layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setlength{\columnsep}{6mm}
\setlength{\parindent}{0mm}

\renewcommand{\familydefault}{\sfdefault}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Special functions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\showtitle}{
  \parbox[t]{\textwidth}{
  \flushright\textbf{\fontsize{50}{1}\selectfont\gettitle{}}
  \vbox {\vskip3mm\hrule width \hsize height 1.5pt\vskip1mm\hrule width \hsize height     4pt\vskip1mm} 
  \flushleft\textbf{\Huge{\getsubtitle}}
  \vbox {\vskip2mm\hrule width \hsize height 4pt\vskip1mm\hrule width \hsize height     1.5pt\vskip1mm} 
  \normalsize\normalfont}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\showtitle{}

\section{Lipsum}
\lipsum[1-5]

\end{document}

我该如何解决这个问题?

答案1

命令\twocolumn是你的朋友

...
\begin{document}
\twocolumn[\showtitle]
...

相关内容