Tag Info

Hot answers tagged

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


4

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


3

Use a figure environment to keep picture and caption together, and to let the picture float. Without figure (if you don't want it to float), use a minipage environment to prevent a page break between picture and caption. No floating can result in bad page breaks though, such as much whitespace at the end of the previous page. Other possibilities: samepage ...


2

An empty page is usually created by \cleardoublepage, which is used by the document division commands (\chapter, ...). In case of class memoir there is also \cleartorecto and \cleartoverso. The following example (based on Malipivo's answer) patches these commands to reset the column rule width to zero. \documentclass[twocolumn]{memoir} \usepackage{lipsum} ...


2

This possible solution defines a new figure environment called figurehere to suppress the floating property and then seek help from tikz via current page node skill. Since the exact text height is unknown in advacne, some parameters many need to change accordingly. One may use current page.north or current page.south, for example, if the text height is ...


2

As David said to do. In this case, I placed the result in a tabular. I also made the listings in \tiny, so as to make two side-by-side listings fit in the margin width. In my case, I also placed them in boxes beforehand, so that my tabular code would look nice: \begin{tabular}{|c|c|} \hline \stackinset{l}{-5pt}{t}{13\llength}{$\bullet$}{\listingA} & ...


2

Your example generated errors because color was not loaded, but other than that it basically worked. You don't need the tabular just two `minipages are sufficient. Some of your lines are too ong to fit side by side, but that's a separate issue. \documentclass[english,a4paper,12pt]{report} \usepackage{mathpazo} \usepackage{graphicx} ...


2

h floats don't really make sense in two column. In the standard twocolumn mode the first column may already have been set to full height by the time the float is seen, and it can't be undone at that point, which is why the system always adds floats to the next page. b could have been supported with the same restrictions as t it just wasn't added. There are ...


2

The contents within \twocolumn's optional argument is set inside a \vbox, which gobbles page breaks. So, even though \maketitle technically issues a page break you can insert the contents before but inside \twocolumn: \documentclass[twocolumn]{article} \usepackage{lipsum}% Just for this example. \title{A Title} \author{An Author} \begin{document} ...


1

Combining answer link and surrounding abstract with colorbox: \documentclass[twoside]{article} \usepackage[sc]{mathpazo} \usepackage[T1]{fontenc} \linespread{1.05} % Palatino needs more space between lines \usepackage{microtype} \usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} \usepackage[font=it]{caption} \usepackage{paralist} ...


1

I enclose a patch to your problem by redefining the \newpage command and a preview of twelve pages. \documentclass[twocolumn]{memoir} \usepackage{lipsum} \setlength{\columnseprule}{6pt} \begin{document} \let\oldcdp=\newpage \def\newpage{% \setlength{\columnseprule}{0pt} \oldcdp \setlength{\columnseprule}{6pt}} \twocoltocetc \tableofcontents ...



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