# Tag Info

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

The following \begin{minipage}[t][\heightof{Lorem} + 9\baselineskip]{0.85\textwidth} assigns the minipage the height of the first line ("Lorem"). Thus the \topskip setting is correct with regarding to the grid lines. However the depth of the box is the remaining space of 9\baselineskip. The depth of the last line sticks even outside the box. Because of ...

2

The .4\baselineskip is a fudge factor to compensate for the spacing between the paragraph and the tikzpicture. \documentclass[8pt]{article} \usepackage{tikz} \newsavebox{\tempbox} \newlength{\tempdima} \newlength{\tempdimb} \begin{document} \savebox{\tempbox}{\begin{tikzpicture} \draw (0,0) -- (2,4) node[right] {$P$}; \end{tikzpicture}}% get size ...

2

See, if this is what you like to obtain: I guess that you have problem with definition of image width. I replace \includegraphics[width=0.84\linewidth]{Graph2} with \includegraphics[width=0.84\hsize]{example-image} and for images select test images which provide graphics package. I didn't give any attention to their height. The complete code is: ...

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

2

Alternative: Use tcolorbox (Gonzalo Medina was proposing it while I wrote this answer ;-)) with the breakable option. There is a huge number of options for the shape, colours etc -- it's impossible to show them all here in a small example. \documentclass{article} \PassOptionsToPackage{svgnames}{xcolor} \usepackage[most]{tcolorbox} \usepackage{blindtext} ...

2

\documentclass{article} \begin{document} \begin{enumerate} \item \begin{minipage}{\linewidth} some text\dotfill \end{minipage} \item \begin{minipage}{\linewidth} some text\dotfill \end{minipage} \item \begin{minipage}{\linewidth} some text\dotfill \end{minipage} \item \begin{enumerate} \item \begin{minipage}{\linewidth} some text\dotfill ...

2

\begin{minipage}[t]{7in} \includegraphics[width=7in]{Figures/SynthesisOverview} \end{minipage}% The minipage here isn't doing anything very useful as \includegraphics is already a box, and minipage just wraps it in another box. the problem is that [t] means make the reference point of the minipage the baseline of the top row, but here there is only one ...

2

Here is a tcolorbox approach -- one exaggerated example and (another) exaggerated example, to show the effects of the top etc. options. \documentclass{article} \usepackage{amsthm} \newtheorem{definition}{Definition}[section] \usepackage[most]{tcolorbox} \usepackage{blindtext} \begin{document} \section{First} ...

1

moderncv is not really set up for two-column curriclum vitaes. A section heading is constructed of 2 boxes and the separator, setting width of the surrounding minipage will lead to breaking the line in the in the sectiontitle. We can avoid that by issuing \nolinebreak at the appropriate places in the defintion of section. ...

1

If I understand you correctly, the problem is that the top of b.eps isn't aligned with the \section in the adjacent minipage. The reason for this is the meaning of the t argument to minipages. The t does not mean that the very top of the minipages will be aligned, but that the baseline of the first line of text in each minipage is aligned. You may notice ...

1

You have to use the top align parameter [t] of the minipage environment here. % arara: lualatex % you may use pdflatex, just remove the package I've loaded \documentclass{article} \usepackage{lua-visual-debug} % just for demo \begin{document} \noindent % this was missing \begin{minipage}[t]{0.4\textwidth} By:\\ Student ...

1

To be more specific, the vertical space above the first item is caused by the \vspace{0pt} that you put at the beginning of the minipage[t]: according to TeX’s rules for computing the height of a \vtop box (the kind of box that minipage[t] constructs), this results in a box with zero height and all its contents “pushed down” below the baseline, contributing ...

1

Regarding OP additional question in comment I wrote separate answer. There are more possibilities how to vertical centering your sub images. First, which come to my mind is to use tabular environment with column type m{<width>}, which is defined in package array: Code: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} ...

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