{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

8
votes
1answer
131 views

How to make a dynamic comment box next to \address cluster?

I'm sure you're aware what \address{blah} is. Well, I'd like to make a boxed comment that's just as high as my address and stretches from the left margin of the document to 3cm to the left of the ...
5
votes
1answer
150 views

Box or [ around multiple lines inside align

I have the following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{4} \begin{minipage}[h!]{0\linewidth} \text{Let:} \end{minipage} ...
0
votes
0answers
37 views

Rounded corner box with shading [duplicate]

I wish to draw a rounded corner box (top-left side as a square, top-right side with 6pt radius curve and the bottom of two sides also with radius curve), in addition to that there should be shading, ...
24
votes
3answers
564 views

What are the ways to position things absolutely on the page?

I know that there is tikz, but also eso-pic and textpos. I'd like to see a list of possible ways (not necessarily packages) for absolute positioning of things (which I believe amounts to "boxes") on ...
1
vote
1answer
48 views

Adding a “box” to latex document with different style than the rest

I have my CV written using Latex, using moderncv document class. I really like the output, but at the bottom of the CV I need to put a disclaimer (required in Poland), which doesn't really fit into ...
0
votes
2answers
85 views

Problem with boxes and paragraphs

I am trying to create a form for my company. I am new to Latex and based on some tutorials i was able to get to a certain point. But as you can see The fbox is starting from a different margin I am ...
5
votes
2answers
114 views

How can I add lists and similar in a savebox?

I'd like to have a savebox (or savebox-like functionality) that contains some 'simple' formatting, for example lists. \documentclass{article} \begin{document} This is a sentence \begin{itemize} ...
0
votes
0answers
61 views

How to export a box to a standalone images? [duplicate]

I'm writing a report now, in which I have several tikz figures. How could I export these figures (or as boxes) into separated image files (with exactly the same format as in the report)?
7
votes
2answers
162 views

How do I get consistent spacing around an mbox?

I am trying to typeset a formula in LaTeX with a rule name beneath it, such as the following: The code for the rule an automatically-generated mess (not necessarily using maths mode), output from ...
4
votes
1answer
524 views

Xelatex polyglossia hyphenation

Is there a way to make the polyglossia package solve the hyphenation problem that presents itself in the log as "Overfull \hbox" automatically? (Note: I find that having shorter lines—even for the ...
2
votes
1answer
49 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?
5
votes
1answer
164 views

Fitting text to exact specific size

I would like to make my text fit a certain size "box" at a specific location. The two problems I am encountering are as follows: This long string should wrap when it hits the 4.5 inch limit but it ...
2
votes
2answers
128 views

\usebox with tikz-uml

I would like to be able to reuse components in a state diagram using TikZ-UML. I created a savebox called \giraffe with two components inside and I would like to place these above the initial node and ...
4
votes
3answers
86 views

Floats Analogue of framed

I have very little experience with LaTeX. So, pardon my ignorance, but is there a float equivalent of \framebox? Ideally, I'd like a simple construct for framed text that I can position at the top ...
5
votes
2answers
180 views

Is there any easy way to put boxes around text of selected pages with the page number below the box?

I'd like to be able to create boxes around a whole page or selection of pages with the box extending the full length of the page but with the bottom edge of the box above the page number as in the ...
9
votes
1answer
112 views

\hbox_overlap_right:n{} vs. \makebox[0pt][l]{}

I stumbled about some, to my understanding, unexpected behaviour of the expl3 command \hbox_overlap_right:n. I was expecting all examples below to produce the same result, that is, the frame box ...
5
votes
2answers
130 views

Bump right-aligned text to next line iff no room within a \savebox

This is a follow up to my earlier question Bump right-aligned text to next line iff no room. The difference now is that I need to place this formatted text within a \savebox. In my actual use case, ...
1
vote
0answers
106 views

boxed text between pages in arabic, rightmargin with tikz

First, I want to thank the members of the discussion of the message Boxed text between pages which was very interesting for my use, so I got a macro in arabic for my examples (which is ...
2
votes
1answer
248 views

Breaking pages with boxes in boiboites-like

I want to find a method for breaking boxes of my environments of examples (in arabic, with polyglossia.. see ECM below) I saw that mdframed do something like this, but I'm using my own package ...
5
votes
1answer
195 views

Create box around text without creating a paragraph and with line breaking

I want to draw a box (no rounded corners, keep it simple ^^) around one or multiple words. There are two special things: 1) the box should support line break and 2) the box should not cover multiple ...
3
votes
1answer
361 views

\scalebox doesnt compile

I want to scale down an equation and after trying lots of examples found on the internet I still cannot compile or see what is wrong. My code looks like: \usepackage{graphicx} .... \scalebox{0.7}{ ...
2
votes
1answer
62 views

Increasing the size of \square?

Beginner here! All I want to do is make a couple of boxes on my document. I'm currently using this: \makebox[10pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.4em}$\texttt{1}$} but I need to make the ...
4
votes
3answers
289 views

specific Box Diagram with multiple arrows

I never did a box diagram before. I tried to build this diagram, but couldn't find a solution for these kind of arrows: Could someone tell me, how to perform this? Thank you in advance. \tikzset{ ...
4
votes
3answers
227 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: ...
8
votes
1answer
101 views

Minipage width not acurate

I have the following document, with several minipages of 12cm width. Each minipage contains a different number of minipages (with a sum of 12cm for all of them). So every *sub*minipages should fit ...
9
votes
3answers
401 views

Listing background broken by \colorbox and \framebox

I am using listing environment (listings package) with the background parameter. I want to highlight some lines of code and I am using the \colorbox, \makebox and \framebox to achieve this. However, a ...
4
votes
1answer
91 views

Multiply defined labels with \usebox

I want to duplicate some content without re-defining its labels. For example, \newbox{\foobox} \sbox{\foobox}{\vbox{\section{Foo}\label{sec:foo}} \usebox{\foobox} \usebox{\foobox} will emit a ...
3
votes
1answer
105 views

Ignoring actual height and width of box

I would like the following TikZ qtree to come out symmetric: \documentclass{article} \usepackage{tikz-qtree} \begin{document} \Tree[.O [.N O R ] [.O N \fbox R ] [.R N O ]] \end{document} (so that, ...
5
votes
1answer
91 views

\savebox in page header with redefinable commands

I'm making a document class with some redefinable commands for page headers. However, I'm running into the following issue: \documentclass{article} \usepackage{fancyhdr} % In custom document class ...
6
votes
1answer
144 views

Vertical alignment of lrbox with minipage inside

I'm trying to make an environment that prints highlighted notes, and I can't get the vertical alignment right. Here's a minimal example: \documentclass{article} \usepackage{xcolor} ...
8
votes
1answer
199 views

Reuse an image resp. a box in TikZ but have side-effects only once

I have a huge document (a pool of exercise problems) with lots of \input statements (one file per subexercise). In order to not get lost in this mess and easily open files from the PDF, I include a ...
5
votes
2answers
192 views

Extend box around equation to the entire line

My question is simple: I use \boxed from the amsmath package and so far so good. The single issue I have is that I use the boxed environment on its own line, but the box is only around the equation, ...
3
votes
1answer
451 views

Colorbox with complex content in Beamer

Here is my problem. I try to create a macro that displays a colored background for "any" kind of elements in a beamer presentation. Here is what I did : \documentclass{beamer} \usepackage{xcolor} ...
6
votes
2answers
135 views

Use of optional argument stretch in \parbox

I'm having some difficulty on how to use the "stretch" optional argument of \parbox. Is it supposed to equally interspace lines of text inside a box of determined size? If I code it like: ...
1
vote
1answer
136 views

How can I write this expression with box using MathJAX? [closed]

I'm a beginner of LaTeX. I'm trying to write below expression using MathJAX. I could write expression without box using array package. But I couldn't draw a box within array. Can you help me please? ...
3
votes
3answers
124 views

Centering two images but aligning them left

How would I place two images below each other so that their left sides are aligned and the whole construction is centered? I tried like this: ...
2
votes
0answers
204 views

Wrapper box for TikZ picture

I am trying to wrap a tikzpicture node inside a box, so that I can refer to this "bounding box" from inside the picture for positioning the nodes relative to that box. I am looking for a command ...
8
votes
3answers
164 views

Fixed text line height?

I have two minipages and the problem that the height of a text line depends on the characters I am using. How can I always have the same height for a text line in a minipage? I have used Tikz to ...
7
votes
2answers
417 views

Measure the column width of a table

Is there a way to determine the width of the first column in a tabular enviroment? I've thought about using a savebox but that would only give me the size of the text (and in one cell only), not the ...
5
votes
3answers
188 views

Equations in a box - table doesn't work

I want to put some limit equations in a table but all I get are errors such as "! Missing $ inserted." and "! You can't use `\eqno' in math mode.". Am I doing something wrong or is there another way ...
9
votes
1answer
142 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 ...
6
votes
1answer
169 views

Bounding box for each symbol in an equation

Is it possible to make LaTeX put a bounding box around each element in an equation, as in this file? I am aware of this question, but none of the solutions presented there, which does not require ...
6
votes
2answers
136 views

Using boxes to define an adjusting (Dirac) bracket

I'd like to define a set of adjusting bracket, called in physics Dirac brackets. This brackets accept three arguments, separated by vertical lines, and all of them are enclosed by angles, e.g. in ...
5
votes
1answer
58 views

Only display savebox if own command is given

I'm experiencing a quite complicated and hard-to-explain problem: I'm using own commands that create and fill saveboxes if they are called in the main tex file. Like this: ...
7
votes
1answer
114 views

Color bleeding when using \vsplit for a box with colored text

I want to \vsplit a box with quite arbitrary content. If the content does some color changes, strange things happen. The following MWE demonstrates the problem. The example text changes font and ...
3
votes
1answer
407 views

Message Sequence chart

I'm drawing a sequencediagram with LaTeX. By now it looks like this: Is it possible to remove the grey boxes? Is it possible to put a space between handshake and ws.connect? This is my Code: ...
4
votes
1answer
101 views

how can I make an fbox like command with certain color, shape and width of border?

I am using a style file that has a certain color for section headers. I want to create a macro, which will behave the same like fbox, only: There will be some (predefined) padding below, above, ...
8
votes
1answer
342 views

Beamer: Overfull hbox in headline

I try to redefine the header of my frames, but for some mysterious reason I get an overfull hbox of 1.6 points or slightly more: \documentclass{beamer} \usepackage{times} ...
11
votes
2answers
454 views

How do I put card backs on my cards?

I have a a document that is making me sheets of cards. A stripped down, almost minimal example looks something like \documentclass{article} \usepackage[utf8]{inputenc} %Needed for input ...
10
votes
3answers
505 views

How to Produce a Half-Box Symbol?

Does anyone know how to produce a half-box symbol in LaTeX which comprises a bar over an entire expression and a vertical line on the right meeting in the corner, like the top and the right edge of a ...