Tag Info

Hot answers tagged

6

use as basic style a monofont or translate the hyphen to a shorter one (my second example): \documentclass[twocolumn]{article} \usepackage[T1]{fontenc} \usepackage[scaled=0.85]{beramono} \usepackage{listings} \lstset{numbers=left,numberstyle=\tiny,numbersep=5pt,language=Lisp, stringstyle=\ttfamily\small,basicstyle=\ttfamily\footnotesize, ...


5

Adding the option breaklines=true allows for line breaking: Notes: The showframe package was used just to show the page margins. Code: \documentclass{article} \usepackage{showframe} \usepackage{listings} \lstset{numbers=left, numberstyle=\tiny, stepnumber=1,firstnumber=1, numbersep=5pt,language=Lisp, stringstyle=\ttfamily, ...


5

For two-column figures, use the figure* environment. Also note that the placement of such figures is always delayed by one page (by default). The following MWE shows an arrangement that allows a top-floating one-column figure together with a bottom-floating two-column figure on the same page (with the aid of dblfloatfix): ...


5

For a two column figure you want the * form. remove the \onecolumn and \twocolumn and use \begin{figure*} \includegraphics[scale=0.75]{operatingprincipal.jpg} \caption{Pumped Hydro} \end{figure*} (don't use [h!] on figures as the main effect of that is to prevent the figure being placed in any available float area and so go to the end of the document. ...


4

The columns environment internally uses minipage, so you can simply use minipages in your document; a simple example (I added some frames just as visual guidelines). The \Colsep length can be used to control the separation between the minipages: \documentclass{article} \usepackage{lipsum} \newlength\Colsep \setlength\Colsep{10pt} \begin{document} ...


3

You can use the tabularx package and use a width of \columnwidth so your table will span the whole width of the column: \documentclass[twocolumn]{article} \usepackage{tabularx} \newcolumntype{Y}{>{\raggedleft\arraybackslash}X} \begin{document} \begin{table} \centering \begin{tabularx}{\columnwidth}{|Y|Y|Y|Y|} \hline & Class 1 & Class ...


2

\noindent \begin{minipage}{.45\linewidth} \begin{example} \begin{equation*} \begin{align*} |\, A \cap B \cap C \,| = 1 & \\ |\, A \cap B \, \setminus C \,| > 0 & \\ |\, A \cap C \, \setminus B \,| > 0 & \\ |\, B \cap C \, \setminus A \,| > 0 &. \end{align*} \end{equation*} \end{minipage}% ...


1

As a workaround, add \clearpage immediately before \end{abstract}. (I'm assuming that, like for the onecolumn class option, the abstract should be part of the title page -- otherwise, an even worse hack is\date{\today\clearpage}.) \documentclass[titlepage,aps,prd,twocolumn,groupedaddress,floatfix]{revtex4-1} \usepackage{lipsum} \begin{document} ...


1

If I understand correctly, because the figure command is placed before the multicol command, it is possible for the figure to float at the bottom of the first page. My document was still struggling with your script, until I changed \begin{figure}[b] into \begin{figure}[b!]. Hope this helps!



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