4
votes
4answers
86 views

\vtop vertical top alignment of \vsplit \vbox

Well, I wanted to have a minipage spanning across pages, so first I thought to split a minipage so it can , but I learned you cannot; so I got to breakable vboxes, and in trying that, learned that ...
2
votes
1answer
40 views

Temporary removal of `\ChapFrame` used in 'Chapter Title in rotated vertical box at the margin'

I would like to, temporarely, not assign new coloured boxes for some chapters. Is that possible, e.g. using or resetting the \ChapFrame command?
4
votes
3answers
148 views

parbox + itemize = empty space

Consider the following MWE \documentclass[12pt,a4paper]{article} \begin{document} Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text: ...
9
votes
1answer
137 views

Vertically align the top of a box to the top of the tallest box of a line

This is a follow-up question on this thread. I want to mark a line by putting a star to the left of it. If the line contains a box that is tall, the marker should be aligned with the top of this ...
3
votes
1answer
85 views

Vertically stack parboxes in a cell of a table

I need to insert an enumerate environment in a table. Following hints from this page: itemize in a tabular environment, I used \parbox to prevent error (Putting itemize environment in a tabular ...
12
votes
1answer
73 views

Tight connection of \vbox es

I don't understand why TeX put a thin whitespace between my two vertical boxes: \documentclass{article} \begin{document} \vbox to 1cm {\rule{1cm}{1cm}} \vbox to 1cm {\rule{1cm}{1cm}} ...
5
votes
2answers
108 views

Absolute vertical positioning of parbox

I create signature area like \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} %some content here \begin{center}\parbox[t]{5cm}{\hrule height 1pt\medskip \textbf{John ...
5
votes
3answers
489 views

parbox vertical alignment

The following code uses parboxes and hrules to vertically align two rectangles of different heights. The hrule seem a bit hackish to me. Is there a more elegant solution? \documentclass{article} ...
4
votes
2answers
166 views

Vertical alignment in tabular with fbox

I have problems with vertically aligning content in my single row header table for an invoice template. Currently it looks like this: What do I have to do to align the top fbox to the top of the ...
4
votes
1answer
120 views

Difficulty finding the vertical distances between two lines of content

I'm trying to determine the vertical distance between boxes and a line of text in the immediately following paragraph. Depending on the content of the top box I'm getting a discrepancy of \lineskip. ...
3
votes
1answer
78 views

Vertical centering of a title within a box which ignores possible accents

I am currently adapting the \part command to customize the table of contents as follows [code directly extracted from the book.cls class]: \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax% ...
5
votes
1answer
286 views

LaTeX align/distribute objects à la InDesign?

I'm trying to replicate, in LaTeX, InDesign's align and distribute tools. This is a snapshot of ID's toolbar: Say I want first to align vertically two objects (texts, graphics, boxes,...), and ...
8
votes
2answers
1k views

\pbox vertical alignment

What's going on here, why are the TEXTs not aligned? \documentclass{article} \usepackage{pbox} \begin{document} \hrule \pbox[c][20pt][b]{\textwidth}{TEXT\\ Short} ...
5
votes
1answer
579 views

\resizebox shifts tikzpicture up when in a subfloat environment

Why when I try to re-scale a tikz figure using \resizebox the baseline is shifted up (regardless of how small the scale factor is), and two horizontal floats are not aligned properly. ...
5
votes
2answers
767 views

Setting the vertical distance in \overline

I want to overline a piece of text, but the line is too close to the number, which is not nice, so I want to add some kind of padding between the overline and the text. This is what I've made up so ...
1
vote
1answer
445 views

How to align middle-align text in a parbox?

I am trying to add a frame around a text which would be centered and vertically aligned to the middle of the box but I can only center the text. What should I do to align the text to the middle of ...
2
votes
1answer
325 views

Vertically center \makebox

Code: \documentclass{article} \usepackage{xcolor,hyperref} \makeatletter \def\Fld@bordercolor{0 0 0} % this works. \makeatletter \begin{document} \begin{Form} \setlength\unitlength{1cm} ...
8
votes
1answer
200 views

Why isn't a zero-width box in math mode aligned on the baseline?

I'd like to move equation labels into the margin for an article I'm working on, and the answers in Theorem Name/Numbering in Margin accomplish exactly what I'm looking for. Here is a small example: ...
6
votes
1answer
779 views

How can I align text, on my title slide, from two different boxes?

I'm trying to match a PowerPoint template, because, well, does anybody here like PowerPoint? Swapping the images out for those that are in the public domain, it looks something like this: No, I did ...
9
votes
2answers
635 views

Why do I need a '\vspace{0pt}` to align a table and a figure along the bottom line when using '\vbox' and '\hbox'?

Recently, I fiddled with placing a table and a figure next to each other such that their bottom parts aligned with each other. I managed to do by using \vbox and \hbox, but there is one thing that ...
9
votes
3answers
553 views

Align text on top of a framebox

I am trying to create a series of boxes so that my students can input there id number for there final exam. \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \newsavebox{\idbox} ...
14
votes
6answers
1k views

How to stack boxes like a vertical version of \mbox?

I would like a vertical equivalent to \mbox{} that somehow takes a sequence of boxes and stacks them on top of each other. I'd like the resulting width to be the width of the widest box, and I'd like ...
11
votes
1answer
10k views

Align minipage to baseline of first or last line inside minipage?

The minipage environment has options for making the top, bottom, or center of the minipage box line up with the baseline of the surrounding text. Is there a way to make it line up to the baseline of ...
1
vote
1answer
463 views

Align a parbox at the bottom of a table

Below, how can I align the \tiny text in the \parbox at the end of the right column table so that its last line is on level with the last row of the left column table? In general, it would not be a ...
4
votes
1answer
2k views

Top-align two parboxes with tables

I am looking for a two-column solution: The left column contains one table, the right column several tables. I was thinking of using parboxes as follows: \parbox[t]{2cm}{\vspace{0pt} ...
7
votes
3answers
1k views

Stretching a framebox over the whole page

Does anyone know how to stretch a (framed) box down to the end of the page? In effect something like \documentclass{scrartcl} \begin{document} sometext ...
6
votes
1answer
1k views

Vertically align two boxes based on their top borders, not on baseline

I have two boxes which to shows text to the left and right of a document. \begin{minipage}[t][1in][t]{2in} {\Huge First line box 1}\\ {\footnotesize Second line box 1} \end{minipage} \hfill ...
7
votes
2answers
2k views

How can I add vertical space to a beamercolorbox to make it align with another one?

I'm doing beamer slides in the 16:9 aspect ratio, so I want to use a more horizontal flow than I was when I had 4:3 slides. For example, I'd like to place a theorem and its proof side-to-side rather ...
12
votes
2answers
486 views

Inconsistent behavior of boxes in amsmath's `gather`.

Recently I was working on a package (ytableau) and had a strange experience with the gather environment in amsmath. Namely, it screws with \vtop and, seemingly, with boxes that I reserve before ...
4
votes
2answers
235 views

Determining the height of the current line, especially in displayed math

Is there a way to determine the height of the current line? More specifically, after the hbox comprising the current line is finalized, I'd like to determine it's height (and perhaps also depth) and ...