Tag Info

Hot answers tagged

36

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


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


19

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


17

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

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


16

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


13

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


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


9

The songs package is a very versatile package that allows a user to create beautiful songbooks using the LaTeX. An example (taken from the package documentation): \documentclass{article} \usepackage[chorded]{songs} \newindex{titleidx}{titleidx} \noversenumbers \begin{document} \showindex{Complete Index of Songs}{titleidx} \songsection{Worship Songs} ...


9

I have a solution that works in combination with footmisc and its perpage option, zref-perpage and \zmakeperpage{footnote}, or perpage and \MakePerPage{footnote}. With the help of etoolbox's \preto each time \footnote is called it is checked wether it is used in the first or second column. If it is in the second column the footnote counter is reset if it ...


8

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


8

It may depend on your document class, but the usual way is to use table* in place of table. \documentclass[twocolumn]{article} \usepackage{lipsum} \begin{document} \begin{table*} \centering \begin{tabular}{|c|} \Large This table is so wide that it needs to use both columns. \end{tabular} \end{table*} \lipsum[1-10] \end{document}


8

I don't know if a two column partial toc is a good idea (long titles) might look odd. Anyway, below there's a possible solution. Some remarks: I used titletoc instead of minitoc. To produce the horizontal rules around the nulticol environment, I borrowed some code by Werner from his answer to Horizontal lines touching the multicol column separator rule. I ...


8

In the following example mathematical symbols and textual abbreviations are declared with \newmathsymb{<name>}{<symbol without $>}{<meaning>} \newtextsymb{<abbreviation/name>}{<meaning>} \newtextsymb[<name>]{<abbreviation>}{<meaning>} Example: \newmathsymb{approx}{\approx}{approximately equal to} ...


8

You may (mis)use the title field and insert a picture. To insert a caption, I used the \captionof from caption package as a floating figure there makes me uncomfortable! \documentclass[twocolumn]{article} \usepackage[demo]{graphicx} \usepackage{lipsum} \usepackage{caption} \title[The title]{% The Title\\[1em] \includegraphics[width=\textwidth]{logo}% ...


8

You only need the single \maketitle within \twocolumn[...]: \documentclass[twocolumn]{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \title{TITLE} \author{NAMES} \date{} \begin{document} \twocolumn[{% \begin{@twocolumnfalse} \maketitle \begin{abstract} \lipsum[1-2] \end{abstract} \end{@twocolumnfalse} }] \lipsum ...


7

Quoting Kopka and Daly, Guide to LaTeX, p. 54: \twocolumn[<header text>] Terminates the current page, starting a new one with two columns per page. The optional header text is written at the top of the page in one column with the width of the whole page. [...] The [standard class] option twocolumn automatically changes certain ...


7

Both your problems can be easily solved using the multicol package; you simply end the multicols environment, typeset one-column material and then start a new multicols environment. A little example (warning: floating environments cannot be placed inside the multicols environment): \documentclass{article} \usepackage{multicol} \usepackage{lipsum} ...


7

Because the documentclass is missing, I give an example for class report and for article. The redefinition for \tableofcontents merges the definitions of the original \tableofcontents with the definition for the environment theindex. The centering is done by smuggling in \centering. Example for report: \documentclass[twocolumn]{report} \makeatletter ...


7

To avoid entering the numbers by hand (as in Mico's answer) you could write as follows (but the solution is clearly less elegant than egreg's): \documentclass[12pt]{report} \usepackage{ragged2e} \begin{document} \newcounter{konj} \setcounter{konj}{1} \newcommand{\Konj}[2]{% \smallskip(\thekonj)\stepcounter{konj} &#1 &#2 } ...


7

As you wish to have the status aligned at the top, I suggest you put it in to the label of the item. The following increases the right margin of the list by a definable length \statuswidth and places a box centered in that column with the status: \documentclass{book} \usepackage{lipsum} \usepackage{enumitem} \newlength{\statuswidth} ...


7

It works if you remove \raggedright from the definition of \twocolfootfmtX. In my example I use the etoolbox package to do so. [Note: For justified two-column typesetting, loading the microtype package is strongly recommended. \documentclass{article} \usepackage{eledmac} \usepackage{etoolbox} \patchcmd{\twocolfootfmtX}{\raggedright}{}{}{} ...


6

Two tabular environments will go next to each other by default, you need to put a \par or other forced line break to stop that. Looks like you want them to align on the bottom so \begin{tabular}[b]{lll} big table \end{tabular} \begin{tabular}[b]{ll} small table \end{tabular}


6

Use either \linewidth or \columnwidth. You can also use \centering before the \includegraphics if the image size is smaller than \linewidth. \documentclass[twocolumn,a6paper]{article} \usepackage{graphicx} \usepackage{lipsum} \begin{document} \section{Higgs Boson} \lipsum[1] \begin{figure} \includegraphics[width=\columnwidth]{example-image-a} ...


6

It is the same as: \twocolumn[\@twocolumnfalse \centerline{\Large\bfseries This is my manually set ``wide'' title} \vspace{3ex} ] except that it (ab)uses \begin to execute \csname @twocolumnfalse\endcsname and so avoid messing around with \makeatletter. The optional argument to twocolumn is set in a full width box before the columns start. the ...


6

Here's one possible solution using the twocolumn class option and figure* and two minipages to typeset the listings (since figure* was used, the listings will appear on the top of the next page): \documentclass[twocolumn]{article} \usepackage{listings} \usepackage{lipsum} \begin{document} \lipsum[1-6] \begin{figure*} \begin{minipage}[t]{0.5\textwidth} ...


6

If I understand your setup and objectives correctly, you may be better off using a tabular environment, such as a tabularx environment. The following is an MWE that illustrates how this may be done. (Note: I've updated the code to incorporate Herbert's helpful comments.) \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...


6

You don't really need the figure environment since you are not providing captions (beamer, in any case, deactivates the floating mechanism); so you can simply say: \PassOptionsToPackage{demo}{graphicx} \documentclass[slidestop,compress,11pt,xcolor=dvipsnames]{beamer} \usefonttheme[onlymath]{serif} \definecolor{LHCblue}{RGB}{4, 114, 255} ...


6

It depends on the font if you can deactivate kerning: \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Latin Modern Roman} \setsansfont{Arial} \begin{document} AV Ta \textsf{AV Ta} {\fontspec[Kerning=Off]{Latin Modern Roman}AV Ta} %works {\fontspec[Kerning=Off]{Arial}AV Ta} %doesn't work \end{document} But actually I doubt very much that ...


6

This way: \documentclass[12pt,twocolumn]{article} \usepackage{float} \usepackage{lipsum} % provides just dummy text \begin{document} \twocolumn[{\begin{figure}[H] \setlength{\linewidth}{\textwidth} \setlength{\hsize}{\textwidth} \centering \rule{10cm}{5cm} % this is your image \caption{My first float} \end{figure}}] \lipsum % provides just dummy text ...



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