# Tag Info

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

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

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

Here is my code. it works for IEEE journal template (two columns journal template, bare_jrnl_compsoc, bare_jrnl, and so on). So one page-wide figure is in two columns setting paper. \begin{figure*} \center \includegraphics[width=\textwidth]{AAA.eps} \caption{PRF and pulses number comparison with eigenwaveform.} \label{AAA} \end{figure*} Hope ...

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

For the main toc Please read carefully again the linked answer and the KOMA-Script documentation1): By default in scrbook (and scrreprt) the toc is set in onecolumn modus. Only, when you want to have it in two columns, you need \unsettoc{toc}{onecolumn}. So, leaving it out is the solution here … For the minitoc Use \setchapterpreamble2). Note, you must ...

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

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

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

I don't think you have a much better option than this. Btw, you seem to use q_A for two different things. \documentclass[twocolumn]{ltxdoc} \usepackage{amsmath} \begin{document} $$\sum_{q_\mathrm{tot}=0}^{Q_A+Q_B-2}\sum_{q_A=0}^{q_\mathrm{tot}}{\textstyle\binom{Q_A-1}{q_A}\binom{Q_B-1}{q_B}}x^{q_\mathrm{tot}},$$ where ...

6

Also IMHO, it's better left some margins than do this. But said that, you can obtain some similar to you example adding a phantom lettrine at the beginning of each page. In this MWE, the macro \stapler must be inserted after the last word of each page.(When the page end with an automatic hyphen, you can change this a manual hyphen followed by \stapler.). ...

5

Here is one option using a stationary \captionof{table}{<caption>} (from caption or capt-of) and providing a manual split across table entries from one column to the next: \documentclass[twocolumn]{article} \usepackage{lipsum,caption,graphicx,tabularx} \begin{document} \lipsum[1-5] \begin{figure*}[ht] \centering ...

5

Column mode changes of LaTeX (without packages) are limited: Mode switches \onecolumn, \twocolumn start a new page. \twocolumn allows one column material at the top in the optional argument at least. Maximal number of columns is two. Package multicol implements several improvements: Column mode switches in the same page. More than two columns. ...

5

Just in case you want to try the multienum package. MWE \documentclass{article} \usepackage{multienum} \newenvironment{multiitem}{% \multienumerate\renewcommand{\labelname}{\textbullet}% }{% \endmultienumerate% } \begin{document} \begin{multiitem} \mitemxx{1}{2} \mitemxx{3}{4} \mitemxx{5}{6} \mitemxx{7}{8} \mitemxx{9}{10} \end{multiitem} ...

5

algorithm & algorithmic Wrap your algorithmic environment into a multicols one. No need to issue a \pagebreak. Reference: Placing a single algorithm in two columns \documentclass{article} \usepackage{lipsum} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{multicol} \begin{document} \lipsum[1] \begin{algorithm} ...

5

\documentclass{article} \usepackage{array,booktabs,siunitx,xcolor,colortbl} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}% \begin{document} \begin{table} \arrayrulecolor{blue!50} \centering \caption{jkhafj ahjfha hfjah fjahf jhasjf ha} \label{Table1} \begin{tabular}{ C{0.2\linewidth} C{0.2\linewidth} C{0.2\linewidth} C{0.2\linewidth} } ...

5

Your method won't work for thanks. Follow the method described here: \documentclass[twocolumn]{article} \usepackage{lipsum} \begin{document} \title{Something} \author{Name\thanks{}} \date{\today} \twocolumn[ \begin{@twocolumnfalse} \maketitle \begin{abstract} {\lipsum[1]} \end{abstract} \end{@twocolumnfalse} ] { ...

5

In two column mode abstract inserts a \section*{abstractname} and this disturbs the counter of minitoc. You can decrement the counter: \begin{abstract} \decrementstc and god said let there be light and there was light \end{abstract} (It looks like a bug to me, but the description regarding starred sections in the minitoc documentation is rather ...

4

Crampy, but with such equations in two column, you don't have options. \documentclass[11pt, twocolumn]{article} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \begin{itemize} \item $range(type)$ returns the value range of $type$. \item $related(key, type)$ returns a set of tuple ($key$, $type$) that is related to the input $key$ and $type$. ...

4

this just forces text page floats to the right, \clearpage still flushes all floats to the first available column. \documentclass[twocolumn]{article} \def\f{\begin{figure}\rule{1cm}{1cm}\caption{fff}\end{figure}} \def\t{one two three four five six sevn eight nine ten eleven} \def\tt{Red green \t. Blue yellow orange purple \t, \t, \t, \t.\par} \makeatletter ...

4

The class uses \LoadClass[fleqn]{article} to specify flush left equations, with no documented way of over-riding that. that is really the point of publisher specific classes, to remove flexibility to enforce a house style.

4

One way is to add some phantom text in both columns so that each bullet points "takes" up the same number of lines: Notes: Also added [t] to align the columns at the top Code: \documentclass{beamer} \begin{document} \begin{frame}{An Example of using columns in beamer} \begin{columns} \begin{column}[t]{0.48\textwidth} ...

4

min should be \min (never use math italic for multi-letter identifiers) and b^{'} should be b' and no need for \substack if you only have one line in the subscript. but other than that, the equation fits in a two column IEEE document: \documentclass{IEEEtran} \usepackage{amsmath} \begin{document} \noindent X\dotfill X \label{eq:3} \min ...

4

If I understand well your problem, you should use the cuted package (from the sttools bundle) and its strip environment. Here is an example: \documentclass[twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{ebgaramond} \usepackage[frenchb]{babel} \usepackage{cuted, xcolor} \usepackage{graphicx, caption, threeparttable} ...

4

\documentclass[twocolumn]{article} \usepackage{capt-of} \def\a{One two three four five six seven eight nine ten. } \def\b{\a\a\a\a\par\a Red green blue. \a\a\a Yellow. \a.\par} \title{zzz} \author{me} \begin{document} \maketitle \enlargethispage{-3.2cm} \noindent\begin{picture}(0,0) \put(0,-390){\begin{minipage}{\textwidth} \centering ...

4

You set \setlength\columnsep{40pt} on line 5 so you get 40pt of space between the columns

4

Floats in two-column documents don't really work or stick to columns the way the author intends it to. As such, you typically need to do some legwork to bend things your way. Below I've pushed the second "float" a little further in the code and delayed its output using afterpage. The allows it to be placed into the second page before all the roll-over text ...

4

You'll notice that the problem only shows itself for columns where you only use paragraph text. Those that have a section heading in them seem to be flush with the bottom... ...this is because you're not using LaTeX's \parskip rubber length properly. Forcing a empty line between paragraphs using \newline\newline technically still sets the two pieces of text ...

4

This is an attempt. The class icgg.cls loads hyperref. We create a new command \collabel which is executed each time a \label command is issued. If, for example, you issue \label{foo} a new label called col:foo is created at the same point of the document. if you want to know the column to which \label{foo} refers to, you have to use the command ...

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