Tag Info

Hot answers tagged

9

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


7

The error happens when \pr@\end@dblfloat is being executed, which uses \end@dblfloat. Let's compare the definitions of \end@dblfloat in the kernel and in fixltx2e: latex.ltx \def\end@dblfloat{% \if@twocolumn \@endfloatbox \ifnum\@floatpenalty <\z@ \@largefloatcheck \@cons\@dbldeferlist\@currbox \fi \ifnum \@floatpenalty =-\@Mii ...


6

memoir offers facilities which I think provide the information you want (p25 of the documentation). \documentclass[12pt,twocolumn]{memoir} \usepackage{lipsum} \settypeoutlayoutunit{mm}% note: needs to come *first* to have any effect (documentation is wrong) \typeoutlayout \typeoutstandardlayout \begin{document} \lipsum \end{document} Then the output ...


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

I don't think you have a much better option than this. Btw, you seem to use q_A for two different things. \documentclass[twocolumn]{ltxdoc} \usepackage{amsmath} \begin{document} \begin{equation} \sum_{q_\mathrm{tot}=0}^{Q_A+Q_B-2}\sum_{q_A=0}^{q_\mathrm{tot}}{\textstyle\binom{Q_A-1}{q_A}\binom{Q_B-1}{q_B}}x^{q_\mathrm{tot}}, \end{equation} where ...


6

Also IMHO, it's better left some margins than do this. But said that, you can obtain some similar to you example adding a phantom lettrine at the beginning of each page. In this MWE, the macro \stapler must be inserted after the last word of each page.(When the page end with an automatic hyphen, you can change this a manual hyphen followed by \stapler.). ...


6

You can use \begin{table*} ... \end{table*} to let a table span two columns. And to be honest, not much of your code is "needed to illustrate the current problem". For example, it has nothing to do with the SelfArx class you're using (and I first had to look for), and most of the other code you posted. Here's a much more minimal version of your code ...


5

Change the nesting order: put the columns environment inside the cvbox: \begin{cvbox}[frametitle={Adolphe Quetelet}] \begin{columns} \begin{column}{0.25\textwidth} \rule{\textwidth}{4cm} \end{column} \begin{column}{0.75\textwidth} Nachdem sein Vater 1803 früh verstorben war, musste Adolphe Quetelet sich schon in jungen Jahren mit dem Aufbau einer eigenen ...


5

If tcolorbox could be accepted as mdframed alternative. Next code shows a possible solution with a sidebyside box. \documentclass[ngerman]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{graphicx} \usepackage{xcolor} \usepackage{lmodern} \usepackage[most]{tcolorbox} \newtcolorbox{cvbox}[1]{sidebyside, lefthand ...


5

This is a known bug in latex: add \RequirePackage{fixltx2e} at the start of the document.


5

Here is one option using a stationary \captionof{table}{<caption>} (from caption or capt-of) and providing a manual split across table entries from one column to the next: \documentclass[twocolumn]{article} \usepackage{lipsum,caption,graphicx,tabularx} \begin{document} \lipsum[1-5] \begin{figure*}[ht] \centering ...


5

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


5

\documentclass{article} \usepackage{array,booktabs,siunitx,xcolor,colortbl} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}% \begin{document} \begin{table} \arrayrulecolor{blue!50} \centering \caption{jkhafj ahjfha hfjah fjahf jhasjf ha} \label{Table1} \begin{tabular}{ C{0.2\linewidth} C{0.2\linewidth} C{0.2\linewidth} C{0.2\linewidth} } ...


5

Your method won't work for thanks. Follow the method described here: \documentclass[twocolumn]{article} \usepackage{lipsum} \begin{document} \title{Something} \author{Name\thanks{}} \date{\today} \twocolumn[ \begin{@twocolumnfalse} \maketitle \begin{abstract} {\lipsum[1]} \end{abstract} \end{@twocolumnfalse} ] { ...


5

In two column mode abstract inserts a \section*{abstractname} and this disturbs the counter of minitoc. You can decrement the counter: \begin{abstract} \decrementstc and god said let there be light and there was light \end{abstract} (It looks like a bug to me, but the description regarding starred sections in the minitoc documentation is rather ...


4

Crampy, but with such equations in two column, you don't have options. \documentclass[11pt, twocolumn]{article} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \begin{itemize} \item $range(type)$ returns the value range of $type$. \item $related(key, type)$ returns a set of tuple ($key$, $type$) that is related to the input $key$ and $type$. ...


4

this just forces text page floats to the right, \clearpage still flushes all floats to the first available column. \documentclass[twocolumn]{article} \def\f{\begin{figure}\rule{1cm}{1cm}\caption{fff}\end{figure}} \def\t{one two three four five six sevn eight nine ten eleven} \def\tt{Red green \t. Blue yellow orange purple \t, \t, \t, \t.\par} \makeatletter ...


4

The class uses \LoadClass[fleqn]{article} to specify flush left equations, with no documented way of over-riding that. that is really the point of publisher specific classes, to remove flexibility to enforce a house style.


4

One way is to add some phantom text in both columns so that each bullet points "takes" up the same number of lines: Notes: Also added [t] to align the columns at the top Code: \documentclass{beamer} \begin{document} \begin{frame}{An Example of using columns in beamer} \begin{columns} \begin{column}[t]{0.48\textwidth} ...


4

You'll notice that the problem only shows itself for columns where you only use paragraph text. Those that have a section heading in them seem to be flush with the bottom... ...this is because you're not using LaTeX's \parskip rubber length properly. Forcing a empty line between paragraphs using \newline\newline technically still sets the two pieces of text ...


4

The Friggeri class uses the textpos package to absolutely position elements such as the side-bar on the page. These absolutely positioned elements thus also define the visual extent of the "page", and hence will be key if you want to align your footer over the entire "page" rather than just under the main text block. Custom Positioning of Sidebar Items: ...


4

May be this is what you are after: \documentclass[11pt,twocolumn,conference]{IEEEtran} \usepackage{amsmath,array,graphicx} \usepackage{kantlipsum} \begin{document} \kant[1-2] \begin{table}[htb] \caption{hello2 testing} \label{1234} \resizebox{\columnwidth}{!}{% \begin{tabular}{c*{5}{>{$}c<{$}}} & \text{LfdR} & \text{KLSRf} ...


4

This is a bug in revtex: figures should never break like that, you can work-around it by adding a minipage. Also never use [h] LaTeX normally warns about that and changes it to [ht] but better to include p as otherwise going to the end of the document is the most likely result, \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} ...


4

The cuted package (from the sttools bundle) can temporarily leave two columns mode with its strip environment. An example with the equation entered in the second column: \documentclass[twocolumn]{ltxdoc} \usepackage{mathtools, cuted} \usepackage{lipsum, color} \begin{document} \lipsum[1-2] \lipsum[1] \textsf{\color{red}Equation entered here: } ...


4

Here is what you may want your picture look like. If you need to center the figure caption as well, just add \usepackage{caption} in your preamble below \documentclass[journal]{IEEEtran}. I used the following MWE for brevity: \documentclass[journal]{IEEEtran} \usepackage{graphicx} \usepackage{lipsum} \begin{document} \title{Orthogonal Frequency ...


4

The error you get is due to the fact that you're embedding a floating environment like figure in a minipage and this is not allowed. To achieve what you want, when you are in a two-column document, simply issuing the command \onecolumn puts you in one-column mode. Also, to have centered contents inside the figure, use \centering instead of a center ...


4

\documentclass[fleqn,10pt,twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,array,graphicx} \usepackage{dcolumn,booktabs} \begin{document} \begin{table}[tbp]\centering \caption{Average measures of strains’ halos during the first five days} \noindent X\dotfill X \small \setlength\tabcolsep{3pt} \begin{tabular}{@{}r ...


4

The package stfloats allows to have bottom two column floats: \documentclass[twocolumn]{article} \usepackage{graphicx} \usepackage{stfloats} \usepackage{kantlipsum} \begin{document} \kant[1-3] \begin{figure*}[b] \centering \includegraphics[width=.8\textwidth,height=4cm]{example-image} \caption{A caption to this wonderful picture} \end{figure*} ...


4

Set the each of the blocks inside a minipage that is just wide enough to fit 50% of the text block minus half the width of the rule: \documentclass{article} \usepackage{amsmath,lipsum,calc} \begin{document} \lipsum[1] \noindent \makebox[\linewidth]{% \begin{minipage}[t]{\dimexpr0.5\linewidth-.2pt} \vspace{-\baselineskip} \begin{align*} ...


4

It's not perfect (I personally don't like how the code cuts mid tag) but it should do the job. Basically, I unpacked the tcblisting environment and added a multicols environment. \documentclass{report} \usepackage{tcolorbox} \tcbuselibrary{minted} \usepackage{blindtext} \usepackage{multicol} % added package \begin{document} \blindtext ...



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