{boxes} are the units used by (La)TeX to construct a page by pasting them together horizontally or vertically. A single character from a font is a box, as are the lines of type and the eventual page.

learn more… | top users | synonyms

5
votes
2answers
128 views

tabular height savebox problem

I'd like to build a tabular and next to it a graphics in the same height. I use the following code (for minimal working purposes, I used \rule) and do not understand, what is going wrong: ...
7
votes
3answers
595 views

How to construct a coloured box with rounded corners

Here is the specs of the box. Color of the bar rule should be: \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} Radius of the 4 corners of the box: 4pt Thick line = 0.5pt Text should be 6pt ...
4
votes
1answer
397 views

Calculate parbox width to make it meet the page border?

I'm using the program package to typeset my algorithms. I want my comments to have a light gray background, therefore I'm using colorbox with a parbox inside (for multi-line comments). Now the ...
3
votes
1answer
736 views

Grey (not black) shadow box?

I would like to change the default color of a shadowbox to grey. How to do that with no problem of equation "style"/"management" inside the shadowbox ? Thank you very much
0
votes
0answers
374 views

mdframed lines not showing properly in pdf [closed]

The boxes created with mdframed package seems to show properly when it comes to the dvi file, but when it comes to the pdf file, the outer lines don't show properly (depending on zoom factor, ...
22
votes
2answers
493 views

How good a juggler is TeX?

I recently made an adaptation of pgfpages which allows one to gather in several typeset pages and then lay them out in some layout over several physical pages (the original pgfpages only allows one ...
6
votes
1answer
447 views

Create a “yearbook-style” multi-page layout of photos

I would like to create a "yearbook-style" layout of photos in LaTeX. Each photo would have a caption and the objective would be to automatically layout the differently sized rectangular photos to ...
2
votes
2answers
156 views

stick to the right border of a box

I have a problem with a \fbox command: I want to put two right-arrow side to the box so that these two arrows start on the border of the box. I've created the box and the two arrows but if I merge it ...
2
votes
2answers
632 views

Remove the colored section box from moderncv

Using moderncv as follows; \documentclass{moderncv} \moderncvtheme[black]{casual} I'd like to remove the coloured struts/rectangles/boxes, adjacent to section headings, from the output. Can ...
5
votes
1answer
154 views

Some assignments in the definition of \parbox

Why are these assignments necessary in the LaTeX's definition of \parbox? \let\hss\vss\let\unhbox\unvbox EDIT I should have added that I wondered if the assignments will affect any in-parbox calls ...
10
votes
1answer
443 views

Why does \hss fail?

Please why does the following fail? % \hss -> \hskip 0pt plus 1fil minus 1fil \setbox0=\hbox{a}% \setbox0\hbox to 10mm{\hss\unhbox0\hss} \unhbox0 And what makes LaTeX's ...
4
votes
4answers
636 views

Make text block wider in A4 page

I'm struggling to fit a wider text into an A4 page. This page isn't going to be printed as a book, it is simply for internal use, so I don't mind if the text occupies more % of the page. I've tried ...
2
votes
2answers
315 views

Latex generates pdf with black end of line

I hope you can help me with this. I am having a "minor" problem with Texmaker. While creating a report some lines contain at the end a "black rectangular character". Initially I thought that was ...
11
votes
3answers
629 views

How do I (temporarily) cancel centering?

There I was, a-merrily tracing through the depths of beamer's code on the trail of the Dreaded Overprint Hurler of Bexhill-on-Sea, when I came across Something Completely Different. It looked like a ...
8
votes
1answer
541 views

How to produce 5-up 3by5 index cards

I want to produce instructional 3by5 index cards. It's easy enough to produce the cards one per page, but I want to print five copies of the same car on a single sheet of 8.5by11 card stock, where it ...
3
votes
1answer
541 views

How to keep transparent fcolor box?

I am using \fcolorbox on a background that is itself colored; I don't need color inside the box, and I want its background to be transparent so that the background color shows through. The ...
20
votes
3answers
4k views

How to highlight an entire paragraph?

I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far. For ...
2
votes
4answers
336 views

Boxes overflow column

It's all in the subject. I used all kinds of boxes in a towcolumn article, but whenever the boxed text is long enough, the box happily continues into the other column! Is there a "smart" box that ...
5
votes
2answers
934 views

Set total width of TikZ node / Resize lrbox

I am currently preparing a poster for a conference and decided to use 'beamerposter' for that purpose. As I don't really like the standard templates I decided to go after a design similar to this ...
6
votes
1answer
149 views

Siunitx + Junicode font: Overfull hboxes

The following MWE, using Junicode, creates 4 overfull hboxes. But any other font I tried (e.g. Linux Libertine O) creates no warnings. Any ideas? \documentclass{article} \usepackage{fontspec} ...
5
votes
2answers
168 views

Output routine and \box255

The \box255 referred to in this question applies only to the container of the latest chunk of the MVL, as cut by the page builder. Now the question: I read somewhere that \setbox0=\vbox to ...
25
votes
4answers
860 views

Bounding box for each letter

How can I take input text and replace each character with a solid (and/or hollow) rectangle representing the bounding box for that character? In the case where two characters are closer together from ...
16
votes
2answers
228 views

What is \box255?

I'm just reading the everyshi manual, and it says: This package provides the hooks \EveryShipout and \AtNextShipout whose arguments are executed after the output routine has constructed ...
12
votes
2answers
241 views

Undo last vertical skip

I am trying to understand the sizes of boxes and skips so I decided I wanted to typeset text directly on top of some other text. I don't want to use textpos or anything like that. I am trying to ...
12
votes
2answers
260 views

Missing Item number in enumerate

You would think that I would know better than to mess with an egreg solution, but in my defense I used a DavidCarlisle solution from \setbox vs. \sbox and \savebox - What are the differences I need to ...
7
votes
2answers
84 views

Changing the refpoint of splittopskip?

The following example has the setting: \splittopskip=.3cm However in the output I can't see any vertical space. It seems that \vsplit starts the computing of the height at the baseline. How can I ...
9
votes
3answers
327 views

putting a box around each line of text in a paragraph

In my environment I would like to automatically make a box around each individual line of text in a paragraph so that I can operate on each line. I think this should really be done in LaTeX rather ...
2
votes
2answers
173 views

Using \usebox inside a \newcommand

I have this code: %Abstracts \newcommand{\@spanishabstractname}{{\bfseries Resumen}} \newsavebox\@sabstract \newenvironment{spanishabstract}{% ...
4
votes
1answer
93 views

How can I remove a vertical skip added by splittopskip?

The following example splits a box with the setting \splittopskip=2cm. Everything works as expected. However I want to remove the vertical skip add by \splittopskip=2cm some steps later. Is there an ...
13
votes
2answers
4k views

Any way to center text within a \parbox?

Probably I'm missing something, but I'm really struggling to find an answer to this simple question: How to center text within a \parbox? Side note: I don't want to switch to any other environment ...
3
votes
2answers
793 views

How to add copyright notice (in a box with borders) at bottom of first page?

I want to add a box with some copyright statement at the bottom of my paper. What is the easiest/best way to do this? Ideally, the box would have the width of the text, and be horizontally centered. ...
2
votes
1answer
336 views

Superimposed Boxes in a flowchart with PStricks

I'm performing a flowchart using pstricks . The problem is how to do superimposed Boxes (in gray and light gray ) included in the flow chart like those in the picture below . Is there any specific ...
9
votes
1answer
919 views

How can I number paragraphs (and sections) in the margin?

I am (still) trying replicate the layout of this document. Sections and paragraphs are all numbered, in the margin (the chapter titles do not treat this as a margin, but I can ignore that). They are ...
8
votes
1answer
4k views

Frame around text and floats

Consider the following TEXT TEXT TEXT TEXT Figure~\ref{fig:foo} TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT \begin{figure} \centering \includegraphics[width=\textwidth]{foo} \caption{This is foo.} ...
2
votes
1answer
493 views

When I prevent hyphenation using an \mbox, the box gets pushed into the right margin

I've used \mbox to prevent LaTeX from breaking certain long words into hyphenated pairs. Now I have a new problem: the unbroken words are extending into the right margin. Here's some minimal sample ...
8
votes
1answer
628 views

Partially transparent text box

I am trying to make a poster using beamer. Can any one please reply me, my question is: How can I make my boxes partially transparent so that my background will be visible through the boxes?
2
votes
1answer
286 views

Background color of breakable box: removing thin blank lines

The purpose of the mybox environment in the following document is to typeset a box in a yellow background. The box may be split by page breaks. The algorithm used is similar to the one found in the ...
4
votes
2answers
714 views

Tikz diagram with stacks and box

I'm trying to make the diagram in Tikz. I can draw the stacks by adapting this example and the box. But how can I put the description around the boxes. Also how to add the two arrows between the ...
5
votes
1answer
1k views

Beamer: highlighting aligned math with overlay

This question led to a new package: hf-tikz Minimal working example: \documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \begin{align} a_i + b_j = 10 & ...
3
votes
1answer
306 views

Color box with outline but some difference

\begin{boxedlaw}{6.4in} \colorbox[HTML]{F8E0E0}{ \begin{minipage}[c]{380px} \begin{center} \begine{verbatim} \# define LM_ENCA 18 //Port0 \# define LM_ENCB 17 ...
9
votes
1answer
386 views

How to create a 'fact box' or pull quote that is tied to the margins of your page?

I'd like to accomplish the following: Ut convallis libero in ------------------- urna ultrices accumsan. | | Donec sed odio eros. | "an important | Donec viverra mi quis ...
3
votes
1answer
439 views

Shadowbox that breaks page

I am trying to typeset a block of text in shadowbox. The text is quite long, therefore I would like it to span across two pages where necessary. TeX will not perform a pagebreak, though. Here is my ...
9
votes
1answer
4k views

How do you effectively debug overfull \hbox warnings?

I still haven't found out how to effectively solve Overfull \hbox (0.80913pt too wide) has occurred while \output is active warnings. For instance, this piece of latex generates such a warning and I ...
3
votes
1answer
145 views

afterpage + list = missing \item

I'm trying to use the afterpage package to automatically insert text at the top of each page (please see my other question Section reminders at the top of each page?) but I'm having trouble. ...
14
votes
4answers
2k views

Horizontal equivalent to \raisebox?

Is there a horizontal equivalent to \raisebox? I'd like to shift some content horizontally without altering the layout of surrounding content. Edit: I feel bad because my question wasn't precise ...
7
votes
1answer
407 views

Handling overflows in biblatex bibliographies

I'm finally making the transition to biblatex. This is a remarkable package, and has allowed me to cut out quite a bit of old code I used to use to handle eprints, DOIs, crossref mapping problems, ...
11
votes
2answers
140 views

Can I get at stuff in “current page” or “recent contributions”?

When I compile the following, \documentclass[a4paper]{article} \usepackage{atbegshi} \AtBeginShipout{\showlists} \showboxdepth\maxdimen \showboxbreadth\maxdimen \usepackage{lipsum} ...
6
votes
4answers
779 views

Making a fake figure that holds a text box of specified dimensions

I think I have seen this done before, but I am not sure. Is there a way to build a fake figure in LaTeX? I would like to do this while the other figures in the document render correctly. Ideally, I ...
7
votes
1answer
137 views

Re-parse the content of a box register

I'll ask the question first and then explain why it is so. I have the following .tex file: \documentclass{article} \newsavebox{\myquote} ...
6
votes
3answers
2k views

lrbox in \newenvironment

I cannot make lrbox work if put within a \newenvironment. I'll explain with an example. If I write: \documentclass{article} \newsavebox{\mybox} \begin{lrbox}{\mybox} ...

1 2 3 4 5 9