Hot answers tagged

8

The twoside option is not about placing text in a multicolumn fashion. While oneside is typical for articles and reports, the twoside option is loaded when you want to have a double-sided document, allowing you to set the margins, asymmetrically, in order to bind the document as a book. If you want to place text in multiple columns, you can: add the ...


7

Here is a solution. we set \setcounter{topnumber}{1} and then restore its value \documentclass[twocolumn]{article} \usepackage{mwe} \edef\mttopnumber{\arabic{topnumber}} \setcounter{topnumber}{1} \begin{document} \begin{table}[tp] \centering \caption{A table} \begin{tabular}{|c|c|} \hline 12 & 13 \\ \hline 10 & 11 \\ \hline \end{tabular} ...


6

Use a list \documentclass{article} \usepackage{enumitem} \begin{document} \begin{description}[font=\normalfont\itshape,leftmargin=4cm,labelwidth=!] \item[Elastic modulus, \textbf{E}] Steel is easy to bend \textit{elastically} means that it springs back when released. Its resistance to bending, \textit{elastic stiffness}, is set by shape and the property, ...


6

I had some issues with that template, so here's a solution with the article class. I have used 10pt to fit the example in a single page, but you can use 12pt too, for example. Please note that I don't speak Fārsī, so there might be mistakes in the title, author or even the date, although I tried to check to the best of my abilities and everything seems OK. ...


6

With longtable \documentclass{article} \usepackage{array,longtable} \usepackage{lipsum} \begin{document} \begin{center} \bfseries\Large Curriculum Vitae \end{center} \begin{longtable}{@{}>{\raggedleft}p{0.25\linewidth}| p{\dimexpr0.75\linewidth-2\tabcolsep-\arrayrulewidth\relax}@{}} Address & Some address \\ ...


5

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


5

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


5

There are many ways of doing it. A sample with paracol \documentclass{article} \usepackage{paracol} \usepackage{kantlipsum} \usepackage[margin=.5in]{geometry} \begin{document} \begin{paracol}{2} \kant[1-2] \switchcolumn \kant[3-4] \end{paracol} \end{document} With parcolumns: \documentclass{article} \usepackage{parcolumns} ...


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


5

you have specified that the first column (which only has a word or two) is X which allows line breaking, and the second two columns are l which are single line. You don't appear to have any data in the third column at all so perhaps {lX} instead of {Xll}


5

A weird approach with a figure* environment which spans both columns and nested tabular environments to get the alignment. The filling depends on the size of the table and the image of course. (the \hlines are just for checking, not for real output) \documentclass[twocolumn]{article} \usepackage{tabularx} \usepackage[demo]{graphicx} \usepackage{caption} ...


4

Treat the coordinate data as a URL, and define your own breakpoints. I use numbers as breakpoints in the MWE. I don't add hyphens when line-breaking, but the package allows that option. EDITED to show with and without a leading indent. \documentclass{article} \usepackage[obeyspaces,spaces]{url} \urlstyle{rm} ...


4

I have found that when using the stfloats package with ieeetran.cls V1.8a/b I also get this error. When I remove the \include{stfloats} package, the error is resolved.


4

Here is an option using xtab (since longtable is not happy with column layout) and paracol: \documentclass{article} \usepackage{xtab} \usepackage{paracol} \def\rowcontent{% 1 & 2 \\ 1 & 2 \\ 1 & 2 \\ 1 & 2 \\ 1 & 2 \\ 1 & 2 \\ 1 & 2 \\ 1 & 2 \\ 1 & 2 \\ end & here } \setlength{\textheight}{3cm} \begin{document} ...


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

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


3

Have you tried a minipage with multicols? \documentclass[11pt,a4paper]{moderncv} \moderncvstyle{casual} \moderncvcolor{blue} \usepackage{layout} \usepackage{multicol} \usepackage{lmodern} \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage[utf8]{inputenc} \usepackage[top=1in, bottom=1.25in, left=1.25in, right=1.25in]{geometry} ...


3

Insert > Float > Figure. Inside float figure: Insert > Box > Frameless. Inside Frameless: Add your first image, then Insert > Caption to add the caption. Inside float figure (but outside the first frameless box): Insert > Box > Frameless. Inside frameless: Add your second image, then Insert > Caption to add the caption. Right click on the frameless box, ...


3

Not precisely what the O.P. wants to have (not twocolumn mode and automatically), but parallel with parallel package: \documentclass{article} \usepackage{parallel} \usepackage{mathtools} \usepackage{amsthm} \newtheorem{definition}{Definition} \newtheorem{example}{Example} \begin{document} \begin{Parallel}{0.4\textwidth}{0.4\textwidth} \ParallelLText{% ...


3

All floats must be after \end{article}, using the starred form if two-column mode is used. This is clearly stated in the instruction manual: \documentclass[final]{pnastwo} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{article} In Table~\ref{test} we see \end{article} \begin{table*} \caption{TESTING} \label{test} ...


3

This answer defines a new command \Chapter which links entries in the contents with chapter pages using navigator rather than hyperref. Used in overly creative ways, this will certainly break things. Used in fairly standard ways, however, I think it may be helpful. Caveat emptor... By default, loading navigator has no effect on your document (as far as I ...


3

This is because you are using r (right align) as a column specifier. Use l (left align) instead. MWE: \documentclass[twocolumn]{article} \usepackage{booktabs} \begin{document} \begin{table*} \centering \begin{tabular*}{\textwidth}{@{\extracolsep{\stretch{1}}}*{1}{l}@{}} \toprule we must bare+in+mind the community as+a+whole. \\ nous devons ...


3

This uses basically the paracol package which provides for parallel setting and easy switching of columns. Longer column content is maintained in the corresponding column(s) of the next page(s) (See the red and blue text to demonstrate this) \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{ragged2e} \usepackage{paracol} \usepackage{blindtext} ...


3

A variant, also with makecell and siunitx, and booktabs and caption: \documentclass{acm_proc_article-sp} \usepackage{lipsum} \usepackage{multirow, tabularx, caption, booktabs} \usepackage{makecell} \renewcommand\cellalign{rc} \usepackage{siunitx} \sisetup{table-format=1.1} \begin{document} \lipsum[2]% \begin{table}[! htbp]\captionsetup{font=bf} ...


3

If two columns may be obtained in a different manner, a solution is easy: %\documentclass[twocolumn]{book} \documentclass{book} \usepackage{multicol} %\setlength\columnseprule{1pt} \usepackage{lipsum} \setlength\columnseprule{1pt} \begin{document} \begin{multicols}{2} \lipsum[1] \end{multicols} \end{document}


3

One option using \@outputdblcol: \documentclass[twocolumn]{article} \usepackage{lipsum} \usepackage{showframe} \newlength\Fcolumnseprule \setlength\Fcolumnseprule{0.4pt} \makeatletter \def\@outputdblcol{% \if@firstcolumn \global \@firstcolumnfalse \global \setbox\@leftcolumn \box\@outputbox \else \global \@firstcolumntrue ...


3

You can find the complete code here. Just copy all the parts you need in order to get your CV written. The base is a scrartcl class which should be installed on your system. You will need LuaLaTeX in order to run this. There is no sense in redesigning a class which is called "Two Column Curriculum Vitae" into a single column document. This is a lot of ...



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