Tagged Questions

{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

2
votes
1answer
215 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
180 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
193 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
54 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
270 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
193 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
90 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
371 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
81 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
95 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
84 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
130 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
165 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
177 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
382 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
112 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
121 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
110 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
199 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
146 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 ...
6
votes
2answers
399 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
179 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
149 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
125 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
109 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
364 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
92 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
280 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
405 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
477 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 ...
6
votes
1answer
143 views

boxed verbatim environment disappears

I want to center a box containing a verbatim environment. The (almost)MWE below is my attempt to use the answer at center /verbatim text in /figure . \documentclass{article} \usepackage{verbatimbox} ...
6
votes
1answer
98 views

Change direction of a textbox, taking up space from above instead from below

I am designing a custom theme for my LaTeX presentations. This is my title page: Now when I have a longer title, this happens: Here's my code (according to this post): \defbeamertemplate*{title ...
4
votes
1answer
357 views

Reduce space between header and headrule

Problem I'm trying to create fancy headers for my documents using fancyhdr. I want the headrule to be dotted, which can be achieved using \renewcommand{\headrule}{\vbox to 0pt{\hbox ...
11
votes
3answers
325 views

Graphical placeholder for “variables”

Question The image below exactly shows what I am trying to accomplish in LaTeX. Research Using \fbox (as Peter Grill suggested in this post): \documentclass[]{article} \usepackage{amsmath} ...
10
votes
1answer
97 views

How to set a box to a rubber length width

Problem I'm trying to create fancy section heading using titlesec. I need to put the section name into a \parbox to have line breaks. I want the parbox to extend to the far right margin, but I don't ...
7
votes
1answer
236 views

What does $\mbox$ do?

The LaTeX wiki says it makes a box, but when I used it with \mbox{Cos} for example, it simply wrote "Cos" in the same way that writing Cos by itself would have done. What's the point of \mbox?
2
votes
1answer
533 views

Breaking Page with Boiboites Package TikZ

I have a problem with package Boiboites I'm writting an exercise enunciate with this package who occupies more than one page, but i cannot break the page. Here's the code: ...
9
votes
2answers
501 views

Framed box, over framed text with image

Hi all, I'm a newby in LaTeX but after researching online, I have seen that it is possible to create boxes and frames adjusted to text and images. I am trying to achieve something like the image, ...
2
votes
0answers
134 views

Unwanted extra vertical spacing with tikz: is it a bug?

I am writing an environment to format its content in a box with a background and that can be split across pages. I am using a splitting algorithm similar to the one used in the boites package. I want ...
3
votes
1answer
475 views

Diary in Latex with additional notes on side

I am trying to make a diary that will have the following format Each entry will be inside a colored box Each entry will have a title with the date and an optional title I want the possibility to add ...
3
votes
1answer
214 views

Using \parbox in \resizebox

I tried resizing a \parbox-d text into a 5cm x 5cm square box (without keeping the aspect ratio). The output is absolutely strange to me, even if I don't specify the height. Couldn't find the ...
12
votes
1answer
179 views

Can I disable underfull \hbox messages for a specific line?

The line \sbox{\mybox}{\parbox{2cm}{\lipsum[1]}} causes some of the above messages (59): \documentclass{article} \usepackage{lipsum} \newsavebox{\mybox} \begin{document} ...
10
votes
2answers
407 views

LaTeX Beamer Block “Sandwich Style”

How can I create a block in LaTeX Beamer in "Sandwich Style", i.e., that has both a title and a footer. Ideally, the background colors could even be different. Here is an illustration (with incorrect ...
8
votes
3answers
642 views

Insert text into a fixed size box

Is there a way to create a box which has fixed width and height? I tried \parbox and some similar things, but sometimes the text overflows. If the text inserted would overflow: it should be resized ...
3
votes
1answer
86 views

Using savebox around the BODY of environ

I tried to use a \savebox around the \BODY macro of \NewEnviron. Can I keep the linebreaks somehow (they are gone, in the MWE)? \documentclass{article} \usepackage{environ} \newsavebox{\mybox} ...
3
votes
1answer
157 views

Tikz lines intersect boxes

Today I just started to learn how to use the Tikz package for drawing flow-charts. I've been reading through the manual and a few online sites such as our beloved TeX.SE, but I can't seem to figure ...
17
votes
2answers
870 views

Package for game/playing cards (not only poker)

Is there a package to design playing cards (NOT ONLY POKER and similar card games, but board games like this and that) in TeX (and friends)? I'm well aware of this one and a half years old topic ...
8
votes
1answer
108 views

Implement functionality equivalent to many thousand \savebox

I have a large (approx 600 pages) index of files, and for each file entry significant computation is required so that additional links can be added. The computation of these links takes quite a bit ...