Tag Info

Hot answers tagged

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


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


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

\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

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

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

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

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


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

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

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

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


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

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

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


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

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


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

\cvline{Microsoft}{\begin{tabular}[t]{ l @{\hskip 0.5in} l } %%%


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

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

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