Tag Info

Hot answers tagged

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

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

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

Resizebox should work. \documentclass[twocolumn]{ltxdoc} \usepackage{amsmath} \usepackage{lipsum} \usepackage{graphics} \begin{document} \lipsum[1] \begin{equation} ...


5

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


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


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

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

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


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

\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

If I understand well your problem, you should use the cuted package (from the sttools bundle) and its strip environment. Here is an example: \documentclass[twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{ebgaramond} \usepackage[frenchb]{babel} \usepackage{cuted, xcolor} \usepackage{graphicx, caption, threeparttable} ...


4

\documentclass[twocolumn]{article} \usepackage{capt-of} \def\a{One two three four five six seven eight nine ten. } \def\b{\a\a\a\a\par\a Red green blue. \a\a\a Yellow. \a.\par} \title{zzz} \author{me} \begin{document} \maketitle \enlargethispage{-3.2cm} \noindent\begin{picture}(0,0) \put(0,-390){\begin{minipage}{\textwidth} \centering ...


4

You set \setlength\columnsep{40pt} on line 5 so you get 40pt of space between the columns


4

min should be \min (never use math italic for multi-letter identifiers) and b^{'} should be b' and no need for \substack if you only have one line in the subscript. but other than that, the equation fits in a two column IEEE document: \documentclass{IEEEtran} \usepackage{amsmath} \begin{document} \noindent X\dotfill X \begin{equation} \label{eq:3} \min ...


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

Here is a solution via two new commands : \parallelcontent and \parallelitem. \documentclass{beamer} \newcommand\parallelcontent[2]{ \begin{columns}[t] \column{0.48\textwidth} #1 \column{0.48\textwidth} #2 \end{columns} } \newcommand\parallelitem[2]{ \parallelcontent {\begin{itemize} \item #1 \end{itemize}} {\begin{itemize} \item #2 ...


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

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

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

afterpage doesn't support twocolumn (I never thought anyone was going to use it at all:-) and making it do so would be quite a bit of work. If you use \onecolumn at the point where latex would have broken the text page had there been no table, you can then add the longtable in 1-column mode, then issue \twocolumn and resume the text. This is more hand ...


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


4

Add the following lines in your preamble: \makeatletter \let\oldmarginnote\marginnote \renewcommand*{\marginnote}[1]{% \begingroup% \ifodd\value{page} \if@firstcolumn\reversemarginpar\fi \else \if@firstcolumn\else\reversemarginpar\fi \fi \oldmarginnote{#1}% \endgroup% } \makeatother MWE: \documentclass[twoside]{article} ...


4

Floats in two-column documents don't really work or stick to columns the way the author intends it to. As such, you typically need to do some legwork to bend things your way. Below I've pushed the second "float" a little further in the code and delayed its output using afterpage. The allows it to be placed into the second page before all the roll-over text ...


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



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