Tag Info

Hot answers tagged

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


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


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

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

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

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

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


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

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

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} \begin{equation} \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}}, \end{equation} where ...


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


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

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

You could use the \splitrule macro of the mathtools package to split the numerator term into two parts. In the example below, that's what's done in the first equation. In the second equation, I suggest applying a few more modifications; adopt them as you see fit. \documentclass[a4paper,twocolumn]{article} \usepackage{mathtools} \begin{document} With just ...


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

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


4

The Friggeri class uses the textpos package to absolutely position elements such as the side-bar on the page. These absolutely positioned elements thus also define the visual extent of the "page", and hence will be key if you want to align your footer over the entire "page" rather than just under the main text block. Custom Positioning of Sidebar Items: ...


4

May be this is what you are after: \documentclass[11pt,twocolumn,conference]{IEEEtran} \usepackage{amsmath,array,graphicx} \usepackage{kantlipsum} \begin{document} \kant[1-2] \begin{table}[htb] \caption{hello2 testing} \label{1234} \resizebox{\columnwidth}{!}{% \begin{tabular}{c*{5}{>{$}c<{$}}} & \text{LfdR} & \text{KLSRf} ...


4

This is a bug in revtex: figures should never break like that, you can work-around it by adding a minipage. Also never use [h] LaTeX normally warns about that and changes it to [ht] but better to include p as otherwise going to the end of the document is the most likely result, \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} ...


4

You can achieve it simply with a description environment and with the help of the enumitem package. Code: \documentclass{article} \usepackage{enumitem} \begin{document} \noindent\textbf{Education} \begin{description}[font=\mdseries,leftmargin=1.5cm,style=sameline] \item[1996] Doctor of Philosophy \item[1986] Master of Science \item[1982] Bachelor ...


4

You can just copy the definition and comment out the offending bits: \documentclass[aps,prl,twocolumn,balance,superscriptaddress,floats,showpacs,a4paper]{revtex4} \usepackage{latexsym} \usepackage{dcolumn} \usepackage{amsmath} \usepackage{epsf} \usepackage{float} \usepackage{hyperref} \makeatletter \renewenvironment{widetext@grid}{% \par\ignorespaces ...


4

Next paragraph appears in page 11 from IEEEtran_HOWTO Another LATEX2ε limitation (patched with stfloats or not) is that double column floats will not appear on the same page where they are defined. So, the user will have to define such things prior to the page on which they are to (possibly) appear. So if you want that your figure be placed where ...


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

Since you want only this part in two columns, the best choice is the one you've made, in my opinion (use multicols). You have to use \reversemarginpar otherwise the margin par will be printed on the right. Also, adjusting the vertical offset through the second optional argument of \marginnote gives the correct positioning. MWE \documentclass{article} ...


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