Tag Info

Hot answers tagged

47

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


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


25

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)


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


24

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


20

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


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

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


18

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


18

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


18

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


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

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

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


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

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


13

Use the \twocolumn format, then you can use the package supertabular \documentclass[11pt,a4paper]{article} \usepackage{supertabular} \begin{document} \twocolumn \tablehead{Header of first column & Header of second column \\} \begin{supertabular}{ccc} Table cell 1, 1 & Table cell 1, 2 \ Table cell 2, 1 & Table cell 2, 2 \ Table cell 1, 1 ...


13

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


12

multicol package provides multicols environment. % \usepackage{multicol} \begin{multicols}{2} \begin{itemize} \item Lorem \item Ipsum \item Dolor \item Sit \item Amet \end{itemize} \end{multicols} You may want to add a \item[] at the end to obtain better spacing.


12

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


12

The bioinfo class loads the flushend package which (according to the UK TeX FAQ in a "somewhat dangerous" way) balances the columns at the end of a two-column document. You should be able to switch off balancing by adding \raggedend to your preamble.


12

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.


12

EDIT (July 25, 2012) There is a small bug concerning the column separating space in the version below. I fixed that and wrapped up the whole parcolumns patch in a tiny package named parcolsx, so that you can do something like: \documentclass{book} \usepackage{geometry} \usepackage{parcolumns} \usepackage{parcolsx} \usepackage{lipsum} \begin{document} ...


12

Here is a possible solution: each item is split into its two components. The enumitem package is optional, but with it it's easier to customize enumerated lists. With the ragged2e package text set ragged right can be hyphenated using \RaggedRight instead of the usual \raggedright. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...


11

You are most likely referring to the use of the starred float variant: \documentclass{IEEEtran} \usepackage{algorithm}% http://ctan.org/pkg/algorithms \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx \usepackage{lipsum}% http://ctan.org/pkg/lipsum \begin{document} \section{A section} \begin{algorithm*} \caption{Euclid’s ...


11

Here is a much more manual approach, but perhaps similar in style to @YiannisLazarides' answer, for inserting a pull quote. It uses the \parshape primitive to adjust the indentation (or line width) on a per-line basis: \documentclass{article} \usepackage[margin=1in]{geometry}% http://ctan.org/pkg/geometry \usepackage{graphicx}% ...


11

The theindex environment is defined in article.cls as follows: \newenvironment{theindex} {\if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi \twocolumn[\section*{\indexname}]% \@mkboth{\MakeUppercase\indexname}% ...



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