# Tag Info

12

This isn't too smart about multi-line interruptions near a page break, or interruptions too close together. Commented out you will see some code that records the vertical start and end positions in a .pos file at the end of the run, this could be used on a later pass to automatically move things around but that gets tricky and unstable, and possibly for ...

11

Package multicol \columnseprule only works inside environment multicols: \documentclass{article}% \usepackage{lipsum} \usepackage{multicol} \usepackage{color} \setlength{\columnseprule}{1pt} \renewcommand{\columnseprulecolor}{\color{red}} \begin{document} \begin{multicols}{2} \lipsum[1-5] \end{multicols} \end{document} LaTeX without package ...

9

For table* and figure*, the only available options are t (top of next page) or p (end of document). b and h have been disabled on purpose, there is probably a strong typographical reason behind it. Since you state that the placement on the bottom of the page is "not necessary", I suggest you use the [t] option instead of [b]. Note that the table may ...

9

It works if you remove \raggedright from the definition of \twocolfootfmtX. In my example I use the etoolbox package to do so. [Note: For justified two-column typesetting, loading the microtype package is strongly recommended. \documentclass{article} \usepackage{eledmac} \usepackage{etoolbox} \patchcmd{\twocolfootfmtX}{\raggedright}{}{}{} ...

8

You only need the single \maketitle within \twocolumn[...]: \documentclass[twocolumn]{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \title{TITLE} \author{NAMES} \date{} \begin{document} \twocolumn[{% \begin{@twocolumnfalse} \maketitle \begin{abstract} \lipsum[1-2] \end{abstract} \end{@twocolumnfalse} }] \lipsum ...

8

Your assumptions are wrong. In no case does Verbatim is "wrapped" to the column width. Example: \documentclass[12pt,twocolumn]{article} \setlength{\columnsep}{20pt} \setlength{\columnseprule}{0.01pt} \usepackage{fancyvrb} \begin{document} \begin{Verbatim} blablabla blablabla blablabla blablabla blablablx blablabla blablabla blablabla blablabla blablablx ...

8

For a two column figure you want the * form. remove the \onecolumn and \twocolumn and use \begin{figure*} \includegraphics[scale=0.75]{operatingprincipal.jpg} \caption{Pumped Hydro} \end{figure*} (don't use [h!] on figures as the main effect of that is to prevent the figure being placed in any available float area and so go to the end of the document. ...

8

\documentclass[12pt]{scrartcl} \usepackage{biblatex,lipsum,multicol} \addbibresource{biblatex-examples.bib} \appto{\bibfont}{\footnotesize} \appto{\bibsetup}{\raggedright} \begin{document} \nocite{*} \lipsum[1-2] \begin{multicols}{2} \printbibliography \end{multicols} \end{document} @Andrew: I usually try to keep the amount of explanation I add to my ...

8

You should be able to do this using the rotating package's sidewaystable environment: \documentclass[twocolumn]{article} \usepackage{rotating} \usepackage{booktabs} \usepackage{array} \usepackage{caption} \usepackage{kantlipsum} % for dummy text \begin{document} \begin{sidewaystable} \centering \begin{tabular}{*{22}{c}} \toprule A & B & C & D ...

7

You may want to take a look at the paracol package. Once loaded, you can execute commands such as \begin{paracol}{3} % specify three columns... <text in first column> \switchcolumn <text in next column> \switchcolumn <text in next column> \switchcolumn <text in next, i.e., first column> ... \end{paracol}

7

When using columnsets, your entire page design must be done using columnsets. So, if you want chapter or section heads to span the entire page, you will have to define a columnspan. For simple two column documents, you can use \startcolumns ... \stopcolumns, or its MkIV replacement \startmixedcolumns ... \stopmixedcolumns. Here is an example: ...

6

It's probably easier to use standard twocolumn for this rather than multicol as the global balancing makes it harder to know which column you are in. \documentclass[a4paper,twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage[left=15mm,right=15mm,top=15mm,bottom=15mm]{geometry} \usepackage[portuguese]{babel} \raggedbottom \usepackage{blindtext} ...

6

use as basic style a monofont or translate the hyphen to a shorter one (my second example): \documentclass[twocolumn]{article} \usepackage[T1]{fontenc} \usepackage[scaled=0.85]{beramono} \usepackage{listings} \lstset{numbers=left,numberstyle=\tiny,numbersep=5pt,language=Lisp, stringstyle=\ttfamily\small,basicstyle=\ttfamily\footnotesize, ...

6

I think the problem is where your \onecolumn is - it breaks the two-column setup so should come before your appendix. \documentclass[10pt,twocolumn]{article} \usepackage{lipsum} \usepackage{appendix} \begin{document} \lipsum% \newpage \onecolumn \appendix \appendixpage \section{Motivation} \label{appendixa} \lipsum% \end{document}

6

When using the geometry package to set your landscape and twocolumn mode, \maketitle behaves as expected: \documentclass{article} \usepackage[landscape,twocolumn]{geometry}% http://ctan.org/pkg/geometry \usepackage{lipsum}% http://ctan.org/pkg/lipsum \author{An author} \title{A title} \begin{document} \maketitle \lipsum \end{document}

5

This is the default of the article class. We can do a couple of patches to the \maketitle command (responsible for the title spanning the two columns) and to \@maketitle. The second set of patches is meant not to have the title vertically shifted down and start instead level with the second column. \documentclass[twocolumn,landscape]{article} ...

5

The original version is at the end, this version saves the page as well as line number in the position information sp it can cope with the line number being re-set \documentclass[letterpaper,12pt,twocolumn,landscape]{memoir} \usepackage{polyglossia} \usepackage[parapparatus]{eledmac} \usepackage{lipsum} \usepackage{verse} \setcounter{firstlinenum}{1} ...

5

You can use \noindent to remove the paragraph indentation which saves half the over-hang, and for the rest you can shrink the arrows a bit (I hope that doesn't change the meaning, my chemistry is a bit rusty) \documentclass[12pt,twocolumn]{article} \usepackage{chemfig} \usetikzlibrary{decorations.pathmorphing} \usepackage{lipsum} \begin{document} ...

5

For two-column figures, use the figure* environment. Also note that the placement of such figures is always delayed by one page (by default). The following MWE shows an arrangement that allows a top-floating one-column figure together with a bottom-floating two-column figure on the same page (with the aid of dblfloatfix): ...

5

Adding the option breaklines=true allows for line breaking: Notes: The showframe package was used just to show the page margins. Code: \documentclass{article} \usepackage{showframe} \usepackage{listings} \lstset{numbers=left, numberstyle=\tiny, stepnumber=1,firstnumber=1, numbersep=5pt,language=Lisp, stringstyle=\ttfamily, ...

5

You can do this easily with the multicol package: \documentclass{article} \usepackage{listings,caption,syntax} \newenvironment{BNF} {\captionsetup{type=lstlisting}} {} \usepackage{multicol} \begin{document} \begin{BNF} \caption{My Grammar} \label{grammar:my-grammar} \begin{multicols}{2} \begin{grammar} <f> ::= "p" \alt "true" \alt "false" \alt ...

5

The document multiple-span.txt explains how to use wrapfig with two-column cutouts. Three little examples showing the layout od the image in the question and two other possible configurations: \documentclass[twocolumn]{article} \usepackage{lipsum} \usepackage{wrapfig} \usepackage{graphicx} \begin{document} \vspace*{18\baselineskip}Nam dui ligula, ...

5

Use the after and aftersection keys to apply the column set for the given section. The after hook is injected between the section head and the content, aftersection at the end of the section. If column sets should not be applied to the entire document, you can define individual heads for the column text. Otherwise just redefine section using ...

5

Put the title material in the optional argument to \twocolumn. In the example I use only the specific packages needed. The only point to remark is the additional pair of braces because you have [] in the code. \documentclass[twocolumn]{article} \usepackage{array,url,kantlipsum} % \Mark is probably provided by spconf, that I don't have ...

4

Contrary to what the documentation says, it seems that \IEEEpubidadjcol has to be issued also in the first column. \documentclass[journal, a4paper]{IEEEtran} \usepackage{lipsum} % for mock text \title{Lorem ipsum dolor sit amet, consectetur adipiscing elit} \author{Martin Drozdik% \thanks{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ...

4

\documentclass[]{article} \usepackage{longtable} \usepackage{multicol} \usepackage{lipsum} \newcount\n \n=0 \def\tablebody{} \makeatletter \loop\ifnum\n<50 \advance\n by1 \protected@edef\tablebody{\tablebody \textbf{\number\n.}& shortText & longlonglonglonglong text longlonglonglonglong text ...

4

I'll reproduce the same problem than Lars, but with a different file as \input. It seems that in ConTeXt, as soon as \interlinespace is set, it pretty much takes over the whole document, regardless whether the reset option is specified later on. If this issue in fact, turns out to be a bug, I can't answer, but I can answer the question with a simple DEK's ...

4

balance redefines \cleardoublepage so emptypage does nothing. Just add the functionality to what balance is doing, that is \thispagestyle{empty}: \documentclass[twocolumn]{book} \usepackage{lipsum} \usepackage{emptypage} \usepackage{balance} \makeatletter \renewcommand{\@BAcleardblpage}{\clearpage\if@twoside \ifodd\c@page\else ...

4

\twocolumn is not supposed to work like this. However, the problem is that \if@nobreak is not reset correctly. Add it explicitly. \documentclass[twocolumn]{article} \usepackage{lipsum} \makeatletter \newcommand\resetnobreak{\@nobreakfalse} \begin{document} \twocolumn[\section{A very very very very very long title}\resetnobreak] The space after this ...

4

The look of the titles could be obtained with sectsty or titlesec packages. Without these packages is possible defining something as: \def\RULE{\noindent\rule{\linewidth}{.5ex}} \newcommand{\tmpsection}[1]{} \let\tmpsection=\section ...

Only top voted, non community-wiki answers of a minimum length are eligible