Tag Info

Hot answers tagged multicol

7

In my opinion the argument to \myenv should be optional, so if it's not expressed it's taken to be one. However, the error is in the \end part, where \ifx\@firstoftwo is wrong. Also using \@tempa is wrong, because it turns out it is used by multicol, so it changes value before the \end part is evaluated. \documentclass{article} \usepackage{enumitem} ...

7

You had defined \subsection in terms of itself which would have been an infinite loop, but you also used a command \start that is undefined. You intended something more like this: \documentclass[11pt]{article} \usepackage{multicol} \let\origsubsection\subsection \renewcommand{\subsection}[1]{\end{multicols}\origsubsection{#1}\begin{multicols}{2}} ...

5

\begin{figure}[htb] \centering \begin{tabular}{@{}cc@{}} \includegraphics[scale=0.26]{error1.jpg} & \includegraphics[scale=0.26]{afperror1.jpg} \\ \includegraphics[scale=0.26]{error2.jpg} & \includegraphics[scale=0.26]{afperror2.jpg} \\ ...

4

You can achieve it simply with a description environment and with the help of the enumitem package. Code: \documentclass{article} \usepackage{enumitem} \begin{document} \noindent\textbf{Education} \begin{description}[font=\mdseries,leftmargin=1.5cm,style=sameline] \item[1996] Doctor of Philosophy \item[1986] Master of Science \item[1982] Bachelor ...

3

Don't use \boldsymbol but \bm from the bm package. \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} \usepackage{multicol} \usepackage{amsmath} \usepackage{bm} \setlength\columnsep{46pt} \begin{document} \begin{multicols*}{2} \begin{questions} \question The points with position vectors ...

3

Please always supply a test document. This is easy if you are prepared to add some space manually in the second column. The wide text is just placed naturally in the first column together with some negative space so that it overprints the second column. then you just need to add a \vspace to leave a gap. \documentclass{article} \usepackage{multicol} ...

3

hmm this does what you ask, showing the split in the scope of a local declaration and a nested enumerate environment. However if your real case is as you show with a single line it would be simpler to consider the full width text as part of the page heading and just use a custom page style. Then it would also work with automatic page breaking. ...

2

I can't get minted to run but just including it as text shows the same thing: You get warnings about this in the log (not in the terminal output) Overfull \hbox (15.33626pt too wide) in paragraph at lines 2--2 []\T1/lmtt/m/n/12 stracka(1,sg,ka). You need to have less columns or a smaller font or allow linebreaking. Increasing the column sep with ...

2

Idea is the same as in the other answer, however, the support for the starred varian and the optional argument was added: \makeatletter \let\subsection@old\subsection \def\subsection@pre{\end{multicols}} \def\subsection@post{\begin{multicols}{2}} \newcommand\subsection{\@ifnextchar*\subsection@star\subsection@nostar} ...

2

Code (only the problem code in question are provided) \question The points with position vectors\ $\displaystyle \boldsymbol{61i + 2j}$, $\displaystyle \boldsymbol{10i-9j,\,ai-12j }$ \ are collinear, if\ $\displaystyle \boldsymbol{a = }$ \begin{choices} \choice 1 \choice 2 \choice 3 \choice 4 \end{choices}

2


2

You could use the paracol package. \documentclass{article} \usepackage{paracol} \begin{document} Education \columnratio{0.2,0.8} \begin{paracol}{2} 1996\\ ~\\ 1983\\ \switchcolumn University A\\ University B\\ Univertity C\\ \end{paracol} Professional Experience \end{document}

2

Making the numbers bold does not make sense here. Usually only the vectors (including unit vectors) need bold faces. Instead of making a vector bold, we can also use \vec for vectors in general or \hat for unit vectors. Without bold \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...

1

I am not so sure what you want to accomplish, and please, vote down my answer if it's not helpful, but this is assuming that \bigskip is what you want, it seems as if you suppressed the glue of the otherwise nice columns, with an infamous \columnbreak. In other words, you cancelled the stretchability in which case \hskip-\lastskip ought to precede ...

1

Is this what you wanted?! I hope so. If you also want to change the spacing before section and subsection check this answer. I assumed that you have an article (and don't have any chapters). I also assumed that you want the entire stuff to be twocolumn, and stop it at every section and subsection command. Instead of the \begin{multicols} and ...

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