Tag Info

Hot answers tagged

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

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


5

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


5

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


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

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


5

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


5

You can use a list like itemize \documentclass{scrreprt} \usepackage{blindtext} \usepackage{graphicx} \usepackage{enumitem} \newcommand{\myicon}[1]{\smash{\raisebox{-0.85\height}{\includegraphics[width=15mm]{#1}}}} \begin{document} \blindtext \begin{itemize}[leftmargin=*] \item Test \item Test \end{itemize} \blindtext \begin{itemize} ...


5

Like this? \documentclass[11pt,addpoints,answers,twocolumn]{exam} \usepackage{graphicx,lastpage} \usepackage{fullpage} \usepackage{amsmath,amssymb} % rumus \newcommand\mylog[1]{\mathop{{}^{#1}\mathrm{log}}} \hyphenpenalty 10000 \usepackage{geometry} \flushbottom \usepackage[normalem]{ulem} \renewcommand\ULthickness{2pt} %%---> For changing thickness of ...


4

Set geometry up with the dimensions of the final pages you want and create a PDF normally. Then create a second document and include the first PDF using pdfpages. This has options for creating the booklet with the format you want. So I use a5paper, twoside with geometry for my first document. Then I use twoside,a4paper and \usepackage{pdfpages} ...


4

You could work out exactly which constraint is forcing the float to the next page, but such problems are exactly why [!] was added to LaTeX, just tell it to ignore the constraints here and the float stays on the first page. \documentclass[ twoside, reprint, aps, pra, a4paper ]{revtex4-1} \usepackage{lipsum} \usepackage[draft]{pgf} ...


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

The \begin{article}...\end{article} environment wrapper inside the body is needed for a twocolumn setup (strangely enough, however) The document class can be found at PNAS Author site \documentclass{pnastwo} \author{Miss Ann Elk\affil{1}{Ministry of Silly Walks}} \title{On Brontosaurs} \usepackage{blindtext} \begin{document} \maketitle \begin{article} ...


4

You should take into account How to keep a constant baselineskip when using minipages (or \parboxes)? and use \parbox[t]. Here's an implementation that also takes into account the possibility that the left box has more lines than the right box. \documentclass[10pt]{article} \usepackage{lipsum} \usepackage{forloop} \usepackage{geometry} ...


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

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

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

Try [onlytextwidth,t] instead of [T] (p. 125, beamer manual): \documentclass[t]{beamer} \usepackage{lipsum} \begin{document} \begin{frame} \lipsum[6] \end{frame} \begin{frame} \begin{columns}[onlytextwidth,t] \begin{column}{0.49\linewidth} \lipsum[6] \end{column} \begin{column}{0.49\linewidth} \lipsum[6] \end{column} ...


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

\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

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

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

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

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



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