Tag Info

Hot answers tagged

52

There is now a package pullquote which allows to create various shapes of inserts. All you have to specify is the text which should "flow" plus some rectangular "object" which is inserted. Everything else is calculated automatically by the environment pullquote. In principle, every shape can be defined by providing an appropriate shape function macro. See ...


35

Rather than \columnwidth, the appropriate length to use is \linewidth, which will either be \columnwidth in two-column mode or \textwidth in one-column mode.


33

From the TUG faq: use the starred versions figure* and table*. Unfortunately, they're somewhat limited in positioning. Also, the same solution applies to equations. Just include them in a figure* environment. But I don't recommend doing this: it will look ugly and confusing. For an example, see this paper. (sorry, I couldn't find an example in arXiv)


30

It can be done with a lot of pain and hard labor. Firstly, you will need to build the page manually, like you would an html page. We build the page, in a long single column (effectively) and we position the text blocks absolutely (using the picture environment). You can also use pict2e or tikZ if you are more familiar with them. There is also a package ...


28

Use \setlength{\columnsep}{<width>} in the preamble of your document. Changing \columnsep also works if you use the multicol package.


28

Try \columnwidth as a drop-in replacement for \textwidth.


27

I wrote a package pullquote which allows to create circular as well as rectangular inserts. See Two-column text with circular insert.


25

You need to use the starred version * of the figure environment: \documentclass[twocolumn]{article} \usepackage[showframe]{geometry}% http://ctan.org/pkg/geometry \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage{graphicx}% http://ctan.org/pkg/graphicx \begin{document} \lipsum[1-2] \begin{figure*} ...


25

The multicol environment is not designed to support column floats. The concept of balancing makes this next to impossible to automatically provide correct results in the general case and therefore I decided not to extend multicolin this direction for 2e. For example, with multicol you can change the number of columns mid-page, how should that reflect on ...


24

For two-columns documents, a semi-manual solution is possible using the wrapfig package. It avoids cluttering the code with ad-hoc material as in Werner’s or Yiannis’ solutions. \documentclass{article} \usepackage{multicol}% for multiple columns \usepackage{wrapfig} \usepackage{calc}% for computations \begin{document} \pagestyle{empty} ...


21

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


20

Quoting Felici, The complete manual of typography, p. 128: [T]he gutters between columns have to be in tune with both the texture of the type---particularly the leading---and the widths of the margins [...]. The page should appear as a harmonious whole, and the columns should clearly relate to each other to create a sense of their being a unified ...


20

The widetext environment changes the formatting from two-column to one-column to better accommodate very long equations that are more easily read when typeset to the full width of the page: \documentclass[twocolumn]{revtex4-1} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{widetext} \[ a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p ...


20

The important issues to handle for such a project would be the handling of floats. Normally photo books or similar documents do not have a large amount of words and if you use floats and marginpars, the text will certainly end up in the wrong place. I would first choose a few page designs and then use minipages or better TeX vbox and hbox primitives to ...


19

use \newpage instead. A twocolumn document is for TeX the same as two half pages side by side


19

The memoir class provides three-column footnotes. In all it provides four kinds of footnote layouts: normal, two-column, three-column, and run together in a single paragraph. \documentclass{memoir} \threecolumnfootnotes \begin{document} \null\vfill% just for the example Some text.\footnote{Author 2001} Some more text.\footnote{Buthor 2002} And some ...


19

I don't think there are automated approached for this kind of thing in LaTeX. The procedure I've implemented is based on trial-and-error and uses \parshape. Here are the steps I followed: 0. Preliminaries \parshape <n> <i1> <w1> <i2> <w2> ... <in> <wn> The first "argument" to \parshape represents the number of ...


17

I'm not sure about Koma-Script in particular, but I've had reasonably good luck using the flushend package with a variety of conference-provided document classes. The use is pretty simple: \usepackage{flushend} and that's all it takes. There can occasionally be issues with pdf links being broken across columns.


17

The answer is in the listings documentation. \begin{lstlisting}[float=*] ... \end{lstlisting}


15

Use the switch option for the lineno package. \documentclass[twocolumn]{article} \usepackage[switch]{lineno} \usepackage{lipsum} %Creates example text \begin{document} \linenumbers \lipsum[1-20] \end{document}


15

The routine is described by Knuth in Appendix E: Example Formats, page 417. The macros were used for two-column formatting of Appendix I, the index. The algorithm is not to difficult to follow. Everything is placed in a tall box of a width equal to the column width and then split. For a page that is full this simple algorithm works quite well. The only ...


15

Parcolumns should work, but you need to wrap each question and answer in an environment to get good spacing: \documentclass{article} \usepackage{parcolumns} \newcommand{\question}[1]{\colchunk{\begin{description}\item[Q:]{#1}% \end{description}}} \newcommand{\answer}[1]{\colchunk{\begin{description}\item[A:]{#1}% \end{description}}\colplacechunks} ...


15

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


14

For multi-column typesetting of listings the listings package provides the multicols=n option, which in fact is a built-in interface to the multicol package. \documentclass{report} \usepackage{listings,multicol} \usepackage{lipsum} \begin{document} \chapter{foo} \lipsum[1] \begin{lstlisting}[numbers=left,xleftmargin=3em, multicols=2] First line. Second ...


14

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


14

As pointed out by Peter Wilson, memoir's code for three-column footnotes is based on that of the ledmac package. That is, one can enable such a layout also for other classes than memoir with the following caveats: Contrary to the standard classes, footnotes (here: the ones in the first column) won't be indented; The ledmac footnotes don't feature an ...


14

An option would be to use the ltxgrid package, developed by Arthur Ogawa as part of the revtex distribution that is used to typeset papers for the American Physics Society (aps.org) journals. The ltxgrid package was commissioned by the American Physical Society and is distributed under the terms of the LaTeX Project Public License, the same license under ...


14

Apparently, \addtocontents also works with the beamer class. Use \newpage (not \clearpage!) to force a column break. \documentclass{beamer} \usepackage{multicol} \begin{document} \begin{frame}{\contentsname} \begin{multicols}{2} \tableofcontents \end{multicols} \end{frame} \section{bla} \begin{frame}{bla} Some text. \end{frame} \section{blubb} ...


14

Use \setlength{\columnseprule}{0.4pt}. EDIT: Obviously, you may freely choose the thickness of the column-separating line. I suggested 0.4pt because standard LaTeX uses this value for rules above footnotes and around fboxes.


14

(I just learned about this recently:) This can be solved by loading the stfloats package and specifying a figure placement of [bp] as usual. (The p should always be included in case the bottom placement can never be achieved.)



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