Tag Info

Hot answers tagged

8

You have to do \usepackage{verbatim} \newenvironment{listing} {\minipage{\linewidth}\verbatim} {\endverbatim\endminipage} There's almost the same example on page 3 of the package documentation, see the definition of the fred environment. Note that \begin{minipage} executes (among other things) \minipage and similarly \end{minipage} executes ...


4

atbegshi can be used to capture the page being shipped out. Below I've captured \AtBeginShipoutBox inside my own \mysavedpage for use later: \documentclass{article} \usepackage{atbegshi,graphicx,lipsum} \newsavebox{\mysavedpage} \begin{document} % Capture the page being shipped out next \AtBeginShipoutNext{% ...


3

Many options are available for placing two figures side-by-side. See this question and the answers therein, for example. Here is a solution using the the subfig package: \documentclass[12pt,a4paper]{article} \usepackage[demo]{graphicx} \usepackage[margin=1in,showframe]{geometry} \usepackage{subfig} \renewcommand{\thesubfigure}{Figure \arabic{subfigure}} ...


3

A minipage does explicitly reset the list depth, see latex.ltx for this, in line 4886 following code can be found: \let\@listdepth\@mplistdepth \@mplistdepth\z@ The important thing is \@mplistdepth\z@,meaning zero list depth -- The inner enumerate environment behaves like being on the first level again, using the \itemsep value 'appropiate' for this ...


1

Here is a way to do it (I first show it with 4 figures, and later in the answer, with 2). It requires some work, but at least one does not have to manually calculate the widths of minipages. In my MWE, I show more than is needed, just for explanation purposes. I show my 4 figures (\figa through \figd) as simple \rule boxes of different colors. I then use ...


1

Here is a solution using answers package and based on write18 compilation. Edit: update this main file should be compiled with (pdf or xe)latex with option --enable-write18. No output here, but 2 files mtafile.tex and mtBfile.tex will be created and compiled with pdflatex and outputs mtafile.pdf and mtBfile.pdf \documentclass{article} \usepackage{answers} ...



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