Tag Info

14

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 ...

13

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

Put these lines in your preamble: \usepackage{etoolbox} \AtBeginEnvironment{itemize}{\begin{multicols}{2}} \AtEndEnvironment{itemize}{\end{multicols}} This will change all itemize environments in to two columns (assuming that is what you want). \documentclass{article} \usepackage{etoolbox} ...

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 ...

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 ...

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

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 ...

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: ...

7

I've defined a new option for numbers, called outside. It prints numbers in the left margin if you are on the left column and in the right margin if you are on the right column. This is the relevant code: \makeatletter \lst@Key{numbers}{none}{% \let\lst@PlaceNumber\@empty \lstKV@SwitchCases{#1}% {none&\\% ...

7

The error happens when \pr@\end@dblfloat is being executed, which uses \end@dblfloat. Let's compare the definitions of \end@dblfloat in the kernel and in fixltx2e: latex.ltx \def\end@dblfloat{% \if@twocolumn \@endfloatbox \ifnum\@floatpenalty <\z@ \@largefloatcheck \@cons\@dbldeferlist\@currbox \fi \ifnum \@floatpenalty =-\@Mii ...

6

Yes, you are right; they are basically the same; the widetext package defines its widetext environment using strip from cuted.sty, but adds the rules. In fact, the author of widetext says in the .sty file: %% This package just defines the widetext environment and the rules. The other difference is that widetext gives you indentation for the first line ...

6

Your problem can be solved with “widetext.sty”. This package mimicing the mechanism with the same name from RevTeX4 was written by Anjishnu Sarkar. Alas, the original home went away. Luckily, we can get a copy from a svn site of Einstein Toolkit, because they have used it for a document (direct link): ...

6

This is a way to span the tikzpicture across two column. adjustbox package is used where the width is set to \linewidth for the span. width=\columnwidth would back to regular result. Code \documentclass[twocolumn,11pt]{article} \usepackage{tikz} \usepackage{lipsum,adjustbox} \usetikzlibrary{calc,positioning} \begin{document} \definecolor ...

6

Double column floats always go on the next page at the earliest (they can't be placed on the current page as the first column may already have been set full height, so in a real document you just need to move the figure* environment earlier in the source, so that it is seen before the text that ends on that page. In the rare cases that you want the float at ...

6

memoir offers facilities which I think provide the information you want (p25 of the documentation). \documentclass[12pt,twocolumn]{memoir} \usepackage{lipsum} \settypeoutlayoutunit{mm}% note: needs to come *first* to have any effect (documentation is wrong) \typeoutlayout \typeoutstandardlayout \begin{document} \lipsum \end{document} Then the output ...

6

There's nothing special to do: just enclose the \includegraphics in braces, so the ] in its optional argument is not mistaken for the closing one of the optional argument to \twocolumn: \documentclass{article} \usepackage{graphicx} \begin{document} \twocolumn[% {\includegraphics[width=12cm]{foo.png}}% ] \end{document} Don't forget to protect the end ...

6

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, ...

6

In www.latextemplates.com there are 3 nice general LaTeX templates for articles. One of these made with the scrartcl class have this layout: Another good source is www.sharelatex.com. Among the 76 articles templates for submission to scientific journals or proceedings, several have a two column format. You can download or open and compile in ShareLaTeX. ...

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

The columns environment internally uses minipage, so you can simply use minipages in your document; a simple example (I added some frames just as visual guidelines). The \Colsep length can be used to control the separation between the minipages: \documentclass{article} \usepackage{lipsum} \newlength\Colsep \setlength\Colsep{10pt} \begin{document} ...

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

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}

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

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

You basically have a choice between breaking the equation so it does fit in one column, for example by including \usepackage{amsmath} then \begin{align} long math= this\\ &= that\\ &= the other \end{align} Or to make the formula a full width float at the top of some page \begin{figure*} $long expression here$ \end{figure*} ...

5

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 ...

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