Tag Info

Hot answers tagged

7

Try \obeylines. \documentclass{article} \usepackage{fontspec} \usepackage{multicol} \begin{document} \begin{multicols}{2} \obeylines JPEG JPEG2000 PDF PNG PPM TIFF XBM ZIP \end{multicols} \end{document}


5

New answer based on extended MWE \documentclass{article} \usepackage{etoolbox} \usepackage{environ} \newtheorem{pr}{Problem} \newtheorem{solinn}{ad Problem} \newtoks\prsoltoks \NewEnviron{Solution}{% \global\prsoltoks=\expandafter{\the\prsoltoks\begin{solinn}}% \global\prsoltoks=\expandafter{\the\expandafter\prsoltoks\BODY\end{solinn}}% } ...


5

You can use tcolorbox instead of adjustbox then there won't be any problem. \documentclass{scrartcl} \usepackage{multicol,lipsum,pgffor} \usepackage{tcolorbox} \usepackage{showframe} \setlength\parindent{0pt} \setlength\parskip{1.5ex} \setlength\parsep{1.5\parskip} \begin{document} \setlength\columnseprule{0.4pt} \begin{multicols*}{2} \foreach \i in ...


4

You can't break equations inside aligned and since you have such strange requirements, here is an attempt with flalign*. \documentclass{article} \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} \usepackage{amsmath,amsfonts,amssymb,amsthm} \usepackage{enumitem} \usepackage{multicol} \setlength{\columnsep}{1cm} ...


4

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} %%%%%% additional packages \usepackage{multicol,etoolbox} %%%%%% \setcounter{tocdepth}{2} %set depth of printed table of contets. \makeatletter \patchcmd{\l@section} {\hfil} {\leaders\hbox{\normalfont$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill} {}{} ...


4

Close the multicols environment and reopen it after the environment. I use the etoolbox command \BeforeBeginEnvironment for doing something before the group opened by \begin{escapemulticol} is started and \aftergroup for delaying something after \end{escapemulticol} is finished. \documentclass{article} \usepackage{multicol,lipsum,etoolbox} \makeatletter ...


3

In this code I define a solutions environment, based on enumerate, but with the \item command patched with the help of the etoolbox package. I also changed some of the computation results, expressed in theinteger part fractionary part style with smaller fractions, either in the form, say, \tfrac{3}{4} or in the form \sfrac{3}{4} from the xfrac package: ...


3

Harrish showed a solution using a different package, but with respect to your initial example all that is needed is using the latest version of the multicol. I haven't tried to check when that got fixed or what the problem was with the version you used (might have been just with the latest update that reached CTAN just the other day) but if you use that ...


3

You need to use display math constructs to allow page breaking: \documentclass[,fleqn,leqno]{article} \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} \usepackage{amsmath,amsfonts,amssymb,amsthm} \usepackage{enumitem} \usepackage{multicol} \setlength{\columnsep}{1cm} \setlength{\columnseprule}{1pt} ...


2

As mentioned by Ulrike, you can try the tcolorbox. An example adopted from manual: \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{multicol} \usepackage{lipsum} \begin{document} \begin{multicols}{2} \lipsum[2] \begin{tcolorbox}[enhanced jigsaw,breakable,size=title, colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries, title=My ...


2

I don't know what version of multicol you are using but the problem is the interaction between multicol and bidi (the latter is probably loaded as part of polyglossia - I haven't checked). The bidi package loads a file called multicol-xetex-bidi.def that conains various overwrites of multicol code. Ihe problem is that this is a rather wide set of changes ...


1

A shorter, if sneakier, solution: \documentclass{article} \usepackage{multicol} \AtBeginDocument{\addtocontents{toc}{\protect\begin{multicols}{2}}} \AtEndDocument{\addtocontents{toc}{\protect\end{multicols}}} \begin{document} \tableofcontents \section{fee} \subsection{foo} \subsection{bar} \section{fie} \section{fo} \section{fum} \end{document}


1

Alas, it appears flowfram isn't as good at breaking lines as multicol. \documentclass[a4paper, 11pt, landscape]{article} \usepackage{xcolor} \usepackage{graphicx} \usepackage[margin=5mm]{geometry} \usepackage{flowfram} \usepackage{mwe} \newlength{\colwidth} \newlength{\colsep} \newlength{\twocol} \setlength{\colsep}{5mm} \setlength{\colwidth}{\dimexpr ...


1

This template should be easy to continue. \begin{document} \begin{tabular}{|c|l|*{15}{c|}} \hline &&\multicolumn{15}{c|}{c}\\ \cline{3-17} a&\multicolumn{1}{c|}{b}&\multicolumn{3}{c|}{d}&\multicolumn{3}{c|}{e}& \multicolumn{3}{c|}{f}&\multicolumn{3}{c|}{g}&\multicolumn{3}{c|}{h}\\ \cline{3-17} ...



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