New answers tagged

1

I've found simple solution using \AtBeginShipout hook. \documentclass[a4paper,12pt]{report} \usepackage{lscape} \usepackage{geometry} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{forloop} \usepackage{atbegshi} \defaultfontfeatures{Ligatures=TeX} \geometry{a3paper, landscape, top=2cm,bottom=5cm,left=3cm,right=2cm} \begin{document} \...


1

This looks like an enumeration with letter counter, i.e. \Alph for me! The separation between the label and the text can be changed with labelsep=... (see the example below) The enumerate environment does the labelling automatically. Please note that is does only allow for 26 items at most, since \Alph is used as counter formatter, so the range is limited ...


6

The standard way to do this would be to use tabular, but that will involve breaking the columns by hand. If you wish to have the automatic column break, then one possibility is to use a tabbing environment. (Unfortunately longtable will not work in two column mode.) The general syntax of tabbing is \begin{tabbing} line with \= tab marks set\\ next \> ...


2

i don't know any reason not to use align* for this; requires amsmath. \documentclass[twocolumn]{article} \usepackage{algorithm2e} \usepackage{amsmath} \begin{document} \noindent Some text preceding. \begin{algorithm} \DontPrintSemicolon \caption{Computing Levenshtein edit distance } \abovedisplayskip=0pt \begin{align*} D(i,j) = \min\bigl\{& D(...


2

Don't use the [H]ere specifier, since it's not allowed in twocolumn mode by-design. Also, I've used some \phantoms to provide the appropriate layout of the function across three lines. Note that \State is used by algorithmicx's algpseudocde package, not algorithm2e. Instead, algorithm2e uses an end-of-line \; without a \State. In order to make the math ...


6

EDIT -- After posting the code below, I worked on it some more and got rid of some of the ugliness. Rather than continuing to update this answer, I made a project on github: https://github.com/bcrowell/timetravel Below is the code for a proof-of-concept implementation of this idea. The good news: It accomplishes what I wanted to do for this application. ...


0

In my case the problem was not "getting the footnote to span two columns" -- it was quite willing to do that without any help from me. its own API, so rengas can also be generated on demand.\footnote{{\tt curl --data "ws\_token=6B6JHXiKUAJ9VXTBymeGMWgvvpQMZ8uU\&cid=214\&t1=great\&t2=snakes" http://ccg.doc.gold.ac.uk/research/flowr/flowrweb/}} (...


3

Almost right:-) But figure* always comes the page after it appears in the source so you can't do this on the first page (if you need that you need to do something a bit trickier) and you need \noindent to avoid a paragraph indentation making your full width tables not fit on a line. \documentclass[twocolumn]{article} \usepackage{tabularx} \usepackage{...


0

This problem is solved by using the latest version of LaTeX or including \usepackage{dblfloatfix} in your preamble.


5

EDIT @Mico pointed out a much better solution to this problem, as tabularx already comes with the column type X, which automatically does what you want: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{table} \caption{Simulation parameters} \begin{tabularx}{\columnwidth}{X|X} \hline Key & ...


0

Is this what you are after? \documentclass{article} \usepackage{graphicx} \usepackage{multicol} \usepackage[export]{adjustbox} \begin{document} \begin{multicols}{2} \begin{enumerate} \item \includegraphics[width=4cm,valign=t]{example-image} \item \includegraphics[width=4cm,valign=t]{example-image} \item \includegraphics[width=4cm,valign=t]{example-...



Top 50 recent answers are included