Tag Info

Hot answers tagged

6

varwidth dis- and reassembles the vboxes line by line, in the course of which the margin kerns are lost. The remedy would be to use \leftmarginkern and \rightmarginkern in order to record and reinsert the margin kerns. This requires two changes in varwidth.sty: % --- new dimens --- \newdimen\@vwid@leftmargin \newdimen\@vwid@rightmargin \def\@vwid@sift{% ...


6

Sometimes spurious " " (white space) are important in beamer and you need to eliminate them with %. I don't know if all of them are necessary but next code works as expected: \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} \foreach\x in {1,...,9}{% \begin{minipage}{.5\textwidth}% \only<\x>{% \begin{tikzpicture} \draw (0,0) -- ...


4

Use \noindent to align the left mini page into the left margin. Also remove blank space between them. Note the use of %. \documentclass{scrartcl} \usepackage[demo]{graphicx} \usepackage{showframe} \begin{document}\noindent \begin{minipage}[b][6cm][t]{0.6\textwidth} Some Text \\* Some More Text \vfill Text \\ Text \\ \end{minipage}% <-- here!! ...


3

The rule used in \leaders: \leaders \hrule \vskip.4pt is removable like another space on the page breaks. You can define somethig like this: \raggedbottom \newcount\quotnumber \def\quotation{\par\global\advance\quotnumber by1 \bigskip \ifnum\qoutnumber>1 \leaders \hrule \vskip.4pt \bigskip \fi \vbox } The introduction text. \quotation{text ...


2

You don't need a minipage in order to have an itemize or enumerate in a p column: just issue \@minipagetrue inside it. \documentclass[fontsize=11pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{array} \usepackage{enumitem} \makeatletter \newcolumntype{P}[1]{>{\@minipagetrue}p{#1}} \makeatother \begin{document} ...


2

You could use the minipage environment coupled with the mdframed package. Of course, there's also the listings package for the code. This example answer is tweaked for margins of 1.5cm on each. If you increase the margin (reducing the available space for the content) you should also fix the \textwidths of the minipages. Since the minipage on the right is ...


1

There are still a few problems with your solution, although some are probably doe to not being complete (e.g. the geometry settings). The negative \vspace is mostly needed due to the use of the center environment instead of \centering. Also, \begin{minipage}[t] aligns the top baseline, which is actually the bottom of the first image. One can use \raisebox ...


1

Almost always in such cases you need a list rather than minipages or tables. here I use a list that borrows from enumerate and description to handle the enumeration counter but use the optional argument of \item to set the points. \documentclass[a4paper,12pt]{report} \usepackage{geometry} \geometry{a4paper,left=18mm,right=18mm, top=3cm, bottom=2cm} ...


1

You can try something like this: \documentclass{report} \usepackage{supertabular,booktabs} \begin{document} \twocolumn \begin{center} \tablehead{% \toprule\multicolumn{1}{l}{Letter} & \multicolumn{1}{l}{Stuff} \tabularnewline \midrule} \tablelasttail{\bottomrule} % \begin{supertabular}{p{1cm}p{2cm}} A & Test text \tabularnewline B & Test text ...


1

The outer tabular is not doing anything useful here, but perhaps that is just an artefact of the small example. Table cells form groups so to work across a row \rowcolor makes global assignments which means nested use doesn't always work as you expect, simplest is to do the nested tables in a safe box and then just copy them in. \documentclass{scrartcl} ...


1

TeX automatically does the right thing if the baseline of the top box is on its bottom baseline and that of the bottom box is on its top baseline. \documentclass{article} \usepackage{varwidth} \begin{document} \noindent \begin{minipage}[b]{\textwidth} LOREM IPSUM LOREM IPSUM \end{minipage} \noindent \begin{varwidth}[t]{\textwidth} LOREM IPSUM LOREM ...


1

This seems to do what you want, without \multicol or \varwidth. \documentclass{article} \usepackage[paperwidth=10cm,paperheight=5cm,showframe]{geometry} \begin{document} \noindent LABORE ET DOLORE \vfill \noindent\begin{minipage}[b]{\linewidth} \raggedleft LOREM IPSUM LOREM IPSUM \end{minipage}\strut \noindent\begin{tabular}{@{}l@{}l@{}} ...


1

"messed up" is not a very helpful description. However I assume you mean that the text comes to the bottom of the page, that is by design as twoside uses \flushbottom by default as it is traditional to ensure that the adjacent pages on a two page spread have matching bottom baselines. However if you do not want that, add \raggedbottom to the preamble and ...



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