Hot answers tagged

6

When typesetting material in narrow columns, it's frequently advisable to give up on full justification and, instead, to go for a "ragged-right" (aka: flushleft) look. To achieve this look for the entire document, load the ragged2e package with the option document. \documentclass[10pt]{article} \usepackage[inner=1.1in,outer=.7in,top=.9in,bottom=1in, ...


4

A good deal of dirty tricks! \documentclass[twocolumn]{article} \usepackage[linesnumbered]{algorithm2e} \usepackage{multicol} \usepackage{graphicx} \usepackage{lipsum} \begin{document} \lipsum[1-3] \begin{figure*}% for getting a float \begingroup % trick algorithm2e into thinking we're in one column mode \csname @twocolumnfalse\endcsname \noindent ...


4

The tasks package is made for that. I addded enumitem, to easily customise the enumerate environment (wide option). Also, I simplifies your your code with everymath{\displaystyle}at the beginning of the enumerate environment. The labels can be easily customised with the counter-format key. Last, not least, if an item is longer than one column, it it is typed ...


4

Note that \centering is a command and not an environment. Use the center environment instead. KOMA-Script defines the commands \captionof, \captionaboveof and \captionbelowof for figures or tables etc. outside floats. I would suggest to use a minipage to ensure that there is no column break or page break between the caption and the table. \begin{center}% ...


3

Here : \documentclass[11pt]{report} \usepackage{graphicx} \usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm,headsep=1.6cm,landscape]{geometry} \usepackage{fancyhdr} \usepackage{multirow} \usepackage{array} \usepackage{epstopdf} \usepackage{adjustbox} \newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}} \newcolumntype{N}{@{}m{0pt}@{}} ...


3

I know it's not an answer to your questions, but here's how I'd typeset the table; I offer three alternatives: probably I'd choose the first way, without fixing the column width, so a mixture of 1 and 3, but the final decision depends on the actual table material. \documentclass{article} \usepackage[margin=1cm]{geometry} \usepackage{booktabs,array} ...


3

If you only need to place some text besides the image, you can use a couple of minipage environments. If you want the whole document text to wrap around the image, a different solution would be in order (\wrapfloat for example). Output Code \documentclass{article} \usepackage{graphicx} \usepackage{capt-of} \begin{document} \subsubsection{Geometrische ...


3

As often, microtype is your friend. A short explanation of what it does is there, you might want to look at the documentation, too (texdoc microtype comes with magnificent examples of what it does, if opened with a recent pdfviewer). \documentclass[10pt]{article} ...


2

The 'MWE' is quite hard to read,but the main issues are \begin{enumerate}\begin{multicols}{4} looks wrong → use it the other way round The \forloop is initialized with \ref{firstA}, which isn't expandable or provides something not being a real (integer) number. This loop is screwed up. In order to get the reference counter value, use \getrefnumber{firstA}, ...


2

If we assume that you are using unbalanced columns and want to have the column borders on all of the pages of your document, then you can insert them in the background as part of an overlay using eso-pic (or some other package; there are multiple options): \documentclass{article} \usepackage{lipsum,multicol} ...


2

If the multicols environment is no real demand, the tasks environment provides left to right alignment of the individual items. \documentclass{article} \usepackage{tasks} \begin{document} \begin{tasks}(3) \task A \task B \task C \task D \task E \task F \end{tasks} \end{document}


2

Package supertabular beside \tablehead{...} and \tablefirsthead{...}, which contain stuff to be repeated on each new page (or column) also define \tabletail{...} and \tablelasttail{...}. In your case you just add\tabletail{\hsline} after \tablehead definition in your table.


2

In have in remembrance, that multicol doesn't support floats. A solution seems to be something like this: \begin{centering} \begin{tabular}{lllll} & \multicolumn{2}{l}{XYZ} & \multicolumn{2}{l}{ABC} \\ & Sex & P & Sex & P \\ AGE1 & 0.5 & 1 & 0.6 ...


1

Something like this: After deleting surplus macros and adding \cline on the top of table, your MWE become: \documentclass[11pt]{report} \usepackage{graphicx} \usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm,headsep=1.6cm,landscape]{geometry} \usepackage{fancyhdr} \usepackage{array,multirow} \usepackage{soul}% <-- added for more spacing between ...



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