Hot answers tagged

11

This is a viewer issue. Adobe Reader, Skim and Preview all pick up the first column, as you would expect. I can only reproduce the issue with old versions of Evince and Okular. I don't have a recent version of either of these viewers, but @Christian Hupfer and @gpoo have tested more up to date versions of Okular and Evince and found that they both work. For ...


9

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


9

Use a \parbox: \documentclass[twocolumn]{article} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \lipsum*[2] \begin{equation} \partial_{ab}(i,j)= \begin{cases} 0, & \parbox[t]{.5\displaywidth}{ \raggedright if $(j,i,a)$ is immediately followed by the same job that follows $(j,i,b)$} \\ 1, & \text{otherwise} \end{cases} ...


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

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


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


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


5

Here is a version with an additional optional argument to \section that holds the English version of the section name for the table of content. If the [...] is omitted, nothing is entered to the ftoc (meaning foreign toc). Use \tableofcontents for the traditional behaviour and \tableofcontents[ftoc] for the other language. The language settings are ...


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

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

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


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

Just drop those dreadful figure environments -- if it is not meant to float anyway, just use \includegraphics and a \captionof{figure}{caption text}\label{foo} etc. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{blindtext} \title{Theory on Ducks} \author{Paulo Roberto Massa Cereda (PhD. in Duckumentation)} \begin{document} ...


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

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

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

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


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

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

another variation on a list. \documentclass{article} \newlength\mylistindent \newcommand{\mylist}[1]{\par\addvspace{2pt} \noindent \hangindent\mylistindent \makebox[\mylistindent]{#1\hfill}\ignorespaces } \begin{document} \settowidth\mylistindent{the longest entry\qquad} \mylist{\textit{Elastic modulus, \textbf{E}}} Steel is easy to bend ...


3

You must migrate to reledmac and use the \bhooknoteX and \bhookgroupX commands. \documentclass[12pt]{article} \usepackage[doublespacing]{setspace} \usepackage{reledmac} \usepackage{etoolbox} \arrangementX[A]{twocol} \colalignX{\justifying} \makeatletter \bhooknoteX[A]{\setstretch {\setspace@singlespace}} \bhookgroupX[A]{\setstretch ...


3

Here is a demonstration of principle. The idea is to reduce the remaining space on the page to a multiple of \baselineskip. Note that \baselineskip could change between the figure creation and final location (not likely unless you like to change font sizes). \documentclass[twocolumn]{article} \usepackage{environ} \usepackage{mwe} % skip to the next grid ...


3

I would use sidewaystable*: \documentclass[10pt,twocolumn]{article} \usepackage{lipsum} \usepackage{rotating} \begin{document} \section{Heading} \lipsum[1-8] \begin{sidewaystable*} \centering \setlength{\tabcolsep}{6pt} \caption{Some Caption.} ...


3

Your code can't generate desired images, because (i) you empty lines between minipages you actually requires that they should be each in own line (ii) with use of minipages you will obtain 4 figures and not subfigures as is shown on example images. Try th following: \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \begin{document} ...


3

My answer is yes, but you'll have to do a lot of learning. Here are some places to start you off: See here on how to write a hebrew book in 2 columns. The black chapter markers are called Thumb-indexes and you can make them using fancyhdr package, info here. A bit more info about typesetting in hebrew


3

Beside of the figure* float, that have the already mentioned inconvenient that should be in the top of a page, you can use cuted to show the figure at any place on double-column pages. Note that cuted is not fully compatible with floats, so you should use some package as capt-of for captions without a figure environment. Note also that text flow in this way ...


3

As you already know the total width of your table, you can define the width of the columns as a fraction of \columnwidth \documentclass{article} \usepackage{tabularx} \begin{document} \begin{table} \centering \caption{Simulation parameters} \begin{tabularx}{\columnwidth}{p{.5\columnwidth}|p{.5\columnwidth}} \hline Key ...



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