{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
3answers
131 views

How to measure the minimum width or height of several boxes?

I know we can get the maximum width or height of several boxes via: \setbox0=\vbox{\hbox{a}\hbox{b}\hbox{c}} The maximum width is \the\wd0 \setbox0=\hbox{\hbox{a}\hbox{b}\hbox{c}} The maximum height ...
6
votes
1answer
230 views

Arrow-shaped text boxes (for use in ipe vector graphics editor)?

Ipe vector graphics editor I am currently evaluating the ipe vector graphics editor. A very attractive feature is that one can use LaTeX-commands inside its text objects as long as these are legal ...
5
votes
2answers
92 views

Coloured shadowbox around equations?

I currently put some boxes around equations using: \newcommand*\eqbox[1]{ \definecolor{shadowcolor}{RGB}{0, 0, 102}\setlength\shadowsize{2pt}\shadowbox*{#1} } \eqbox{$1+1=2$} How to have the same ...
3
votes
1answer
52 views

\fbox does not work in \headebox baposter

I am doing my poster, I need to put a set of itemize in a box. I can not put the all text but here a portion of my code \fbox{ \begin{itemize} \item \textbf{\color{red}{Adaptation of classic VH}} ...
3
votes
1answer
118 views

background color of colorbox doesnt fill enclosing framebox entirely?

I am using a colorbox (that contains a parbox) inside a framebox. Inside the parbox there is an itemize environment I need some paddding around the text so I put fboxsep for the colorbox to 6pt ...
7
votes
4answers
220 views

Set size of \colorbox for a single character

my question is simple (or not) I want to set the size of the \colorbox command or \fcolorbox command for a single character. The problem is the next: As seen in the image, the height and width are ...
1
vote
1answer
28 views

Empty body centered on the page and vertically splited

I want to have an empty page such that the body is centered. Next I want to have two minipage's each half the width of the body and of its height, such that they will vertically split the body. Here ...
5
votes
1answer
82 views

Stretching an \fbox horizontally to fit the page

I have a frame box next to some text (Komentar:), and I would like to stretch it so it fills up the page. I've done this using the calc package by subtracting \widthof{Komentar: } from \hsize (or ...
2
votes
1answer
129 views

Make a text box with color?

I'm new user in LaTeX, and I would like to know which is the better code to do a colored squared round box with text in a page? I would like to show important notes for example. Best Regards.
6
votes
1answer
94 views

Strange behavior of smart diagram with \resizebox

I'm working with package smartdiagram. Since I can't specify the width of the diagram (or can I...?), I'm using \resizebox as a workaround. This strategy works fine EXCEPT when I set custom colors ...
4
votes
1answer
75 views

Convert a latex command with parameter into a two begin end commands without parameter

I have defined a command \newcommand{\CV}[1]{\parbox[c]{0.2\textwidth}{\begin{flushleft}#1\end{flushleft}}} which I obviously have to call like \CV{My text} However I rather would like to use ...
0
votes
1answer
358 views

How can we change the height of a header box

In my poster done using baposter, I need to change the height of the \headerbox. for example, I have this example: ...
4
votes
3answers
101 views

Set default width of \shadowbox to line, not column, width

When I insert a shadowbox using Lyx (Insert>Box>Drop Shadow) the width is specified as 100% of column width (1\columnwidth). This is the source code it generates: ...
7
votes
1answer
114 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
114 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
32 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
427 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
43 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
74 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
101 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
60 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
144 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
324 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
43 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
124 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
103 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
72 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
145 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
100 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
114 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
86 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
185 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
164 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
141 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}{ ...
4
votes
3answers
240 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
173 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
85 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 ...
8
votes
3answers
326 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
73 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
85 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
78 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
113 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} ...
5
votes
0answers
161 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
151 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
337 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
106 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
106 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
105 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
180 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
138 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 ...