Page Layouttwocolumn with minipage over full width

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
camilstaps
Posts: 2
Joined: Sun Dec 02, 2012 11:12 am

twocolumn with minipage over full width

Post by camilstaps »

Hi all,

I'm trying to make something similar to http://ww1.microchip.com/downloads/en/a ... 00734b.pdf
I'm using the twocolumn option, and have defined my own \showtitle command:

Code: Select all

\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 formatting is OK, however, the second column starts at the top of the column, behind the title...
I tried it with minipage as well, not working.

Full code:

Code: Select all

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

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

\newcommand{\gettitle}{CBus}
\newcommand{\getsubtitle}{Protocol Specification}
\newcommand{\getauthor}{Camil Staps}
\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}
How can I solve this?

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

camilstaps
Posts: 2
Joined: Sun Dec 02, 2012 11:12 am

twocolumn with minipage over full width

Post by camilstaps »

Solved it, using

Code: Select all

\twocolumn[\showtitle]
Post Reply