Hot answers tagged

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 \> ...


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. ...


4

Another solution. This one uses a tcolorbox for including images with shadows (like in your example), tikzlibrary tikzmark for references inside the text and tikzlibrary calc for placement inside images. \documentclass[twocolumn]{article} \usepackage[most]{tcolorbox} \usepackage{lipsum} \usetikzlibrary{tikzmark,calc} \begin{document} \tikzmark{A} \lipsum[...


4

You can use a simple node to include the page as an image. \documentclass{article} \usepackage{tikz} \usepackage{kantlipsum} % For dummy text \begin{document} \begin{tabular}{cp{7cm}} \begin{tikzpicture}[baseline={(current bounding box.north)}] \node[draw,rounded corners,inner sep=0]{\includegraphics[width=4cm,page=156]{pgfmanual}}; \end{tikzpicture} &...


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{...


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 ...


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 ...



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