Tag Info

Hot answers tagged

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


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

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

According to the LaTeX/Floats, Figures and Captions page on wikibooks figure* and table* by default "can be placed only at the top of a page or on their own page". Since LaTeX doesn't want to start the document with a float, and it can't place it at the bottom, it drifts to the next page where it is placed at the top. The dblfloatfix package solves this ...


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

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


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