{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

1
vote
1answer
114 views

Colored box just around the text

I want to have a rounded box with black border lines and a backgroundcolor, f.e. yellow just around the text, not around the whole line, so the sentence should just continue on the same line. I found ...
2
votes
1answer
86 views

Transparency inside empheq (color box)

I'm currently writing a formulary for dynamics and searched for a way to box important equations and have them coloured. The answer to my problem was the empheq package - for now. Now I'm facing the ...
3
votes
1answer
77 views

Inline Boxed Equation

I'm having trouble producing a boxed equation in the same line as some other formulae. For example: $$ \frac{2}{4} =\[\boxed{ \frac{1}{2} }\] $$ I'd like to be able to show some calculations, ...
3
votes
1answer
120 views

\fbox thickness different for different size

The thickness of \fbox in LaTeX can be changed by using \fboxrule. But I want different thickness for different sides. Basically I want to write a text with only a border in top and no where. So I am ...
1
vote
1answer
72 views

Equation wider than tcolorbox in twocolumn

I have a large equation I would like to fit within tcolorbox in a \twocolumn page without split it. Could you please help me to fix this? i tired even \begin{minipage}[c]{5in} but with no luck MWE ...
1
vote
2answers
51 views

\fbox inside an imported pdf

I have imported a pdf using \includepdf and I want insert an fbox into the pdf (the pdf contains standard content that stays at the bottom). I have used this code: \includepdf[pages={1},pagecommand={...
0
votes
1answer
39 views

How to put a Figure caption (without grphic) in a box in main text with space between text and box, width box same width text?

I want to put figure caption in a box in main text so that having space between box and main text, and length of box must be equal the width of main text. I tried this code but it is not work \...
2
votes
1answer
25 views

Placing marginal label within multiline heading

I want to make section headings in an article-class document both multiline and having lables on thier margins. I'm using two boxes: one for a label and another one for text to force it to split. \...
4
votes
1answer
46 views

Content of \setbox does not respect pagebreaks

The following MWE demonstrates that the list of answers accumulated into a box does not respect page breaks when printed (code adapted from Multiple Choice Answer Key in exam package at the end of ...
2
votes
0answers
71 views

Place \mbox around elements in a list

I am trying to achieve essentially the same effect as asked for in this question, except that I want to redefine \item to achieve the result automatically. Specifically, I am trying to use an inline ...
2
votes
1answer
86 views

How to create a rectangle in moderncv

I would like to create a rectangle under my personal info in order to fill it with my strenght, key achivements, etc. But I have no idea how to do it. Actually I have something like this : and I ...
11
votes
2answers
214 views

“Incompatible list can't be unboxed” with memoir class and many box registers

Consider the following MWE: \documentclass{memoir} %% Create 123 box registers \newcount\X \X=1 \loop \expandafter\newbox\csname mybox\the\X\endcsname \advance \X by 1 \ifnum \X<124 \repeat %% ...
1
vote
1answer
60 views

Centering text in \parbox

I used \parbox to auto-wrap the text, but it should be centered. How can I do? \begin{table}[H] \centering \begin{tabular}{cW{5}W{5}} \toprule & {\bf Cost} & {\...
2
votes
2answers
159 views

Size and position of boxes in title page

I am trying to create a front cover in a document (class article) and I have decided to 'decorate' it with boxes. The first problem I have is that I am not sure why the title appears on the top of ...
3
votes
1answer
58 views

\ThisStyle, \SavedStyle and \bm

I think this is a follow-up to How to capture the current math style?. In this MWE, \bm{\testbox} works when used after \testbox. But it does not work on its own (commented line): \documentclass{...
5
votes
1answer
212 views

How to customize shadow box?

I have the following text box: \documentclass{article} \usepackage{xcolor} \usepackage{fancybox} \definecolor{ShadowColor}{RGB}{30,150,190} \makeatletter \newcommand\Cshadowbox{\VerbBox\@Cshadowbox}...
1
vote
1answer
45 views

errors with \fbox and parenthesis

So I'm doing a LaTeX tutorial and trying to recreate a LaTeX document where a pair of tables are in parenthesis, in a box, in a list. I've come upon this error when I try to use both \fbox and \left( ...
1
vote
1answer
71 views

Box with shadow on right hand side of paragraph

Is it possible to draw a box shown in this image which reduces the right margin of a paragraph it displays along side and adjusts its own height to the height of the paragraph? Something like this ...
3
votes
2answers
102 views

Centering text in box

I would like to horizontally center the text in the \fbox: \fbox{\vbox{\hbox{Words,}\hbox{words,}\hbox{and only words again}}} How would I do this?
7
votes
1answer
99 views

Compute depth of paragraph

I need to compute the distance from the current baseline to the bottom of the next/current paragraph. (Eventually this is going to wind up in \everypar.) Is there an easier way to do this precisely? ...
1
vote
1answer
116 views

Align boxes in a page

Thank you very much. I could do the boxes using your comments. The one thing I am having problem is how to align the first and second box (China and EE.UU.). Here is my minimal example (I am writong ...
2
votes
1answer
68 views

Scale text/formula to fit area preserving aspect ratio

I would like write a command to scale a given text-object to fit into a given area preserving the aspect ratio. That is, a maximum width and height should not be exceeded, but either width or height ...
4
votes
3answers
139 views

How do I prevent text overflow when using savebox?

I want to create a custom Definition environment. The environment should use some local commands to declare logical parts of the definition (e.g. assumptions using a command Let). The definition text ...
1
vote
2answers
262 views

Overfull hbox in rule below chapter title

I am writing a report with the KOMA-Script class scrreprt. Below each chapter title, I am creating a rule which goes all the way to the end of the paper: This actually works fine, but creates an ...
2
votes
1answer
157 views

How to repeat box every page?

I need to repeat a box with the same content on each page, but not how. attached sample image
22
votes
2answers
1k views

How to make these boxes?

I don't know how exactly to call what I want to implement. It's like a box surrounded with a line and, depending on the context, I want to place a graphic on the right corner e.g. a light bulb or a ...
4
votes
3answers
173 views

Custom enumerate environment inside Fancybox

I would like to put a enumerate environment (customized with the enumitem package) inside of a shadowbox created from the Fancybox package. Here's my MWE: \documentclass[letterpaper,10pt,american]{...
2
votes
0answers
46 views

Box height in tabular

I have this macro \code that produces a box. And I want to create a tabular "environment" that acts like enumerate except it puts the items into a grid. \documentclass{article} \usepackage{tabularx} ...
10
votes
5answers
799 views

In LaTeX, make a box with the width of another text

I am looking for a command like \makebox{text to set width}[c]{new text} which would make a box with the width of text to set width containing ____new text____ centered.
1
vote
0answers
36 views

How to duplicate content/vboxes?

I am trying to create exercise and answer environments for lecture notes, where I type \begin{exercise}... \end{exercise} followed by \begin{answer}...\end{answer} within the text. I want to include ...
6
votes
4answers
261 views

Equations and Equation Numbers within a Box

I use the code below to make a box around equations. It puts the equations numbers outside the box, however I would like to have the equation numbers within the box. How can I alter my code to do ...
2
votes
1answer
45 views

How to use \makebox in \tl_map_function?

While trying to answer LaTeX for music I came to the problem that I can’t use a \makebox inside the function for a \tl_map_function:NN call. The problematic line is commented out in the following code....
2
votes
1answer
367 views

Invisible and unselectable text

For alignment reasons (for boxes that align themselves on the text they contain), I currently use this command : \newcommand{\uplowtext}[1]{ \transparent{0.}TJPtjp \transparent{1.}#1 \...
4
votes
1answer
62 views

Unexpected change in pagination when 'no' change in contents, using `boxedmini2e`

I am using the package boxedminipage2e to produce several framed boxes with some text inside. Because these boxes have a fixed height and width, I am expecting that whether or not these boxes contain ...
2
votes
2answers
157 views

vertical center aligned inside align environment

How can I make the top of the aligned pack vertically aligns with the x ->? How can I use a box or something to achieve this? (There are other options of course but I would like to use box or ...
3
votes
1answer
108 views

Print size of box to latex output

I need to know the dimensions of many objects in a given unit. Essentially I need the size \fboxes would have would I draw ones around the objects. Can I use the typeout command and a modified ...
4
votes
1answer
177 views

Boxes in tikzposter

I designed a poster with the style tikzsposter. My problems are the too big distances between title of the poster and a box and the position of the text in a box I tried already the options given in ...
1
vote
2answers
133 views

Remove space between consecutive fbox commands

I type several fbox commands and for some reason the boxes are separated with small spaces: MWE: \documentclass{article} \usepackage{fullpage} \setlength{\oddsidemargin}{-15mm} \raggedright \...
6
votes
1answer
63 views

XeLaTeX misplaces ActualText box

The following MWE uses accessibility features of PDF provided by the package accsupp to replace the content of the selection corresponding to BBB with ZZZ in the string AAABBBCCC. \documentclass{...
2
votes
1answer
55 views

Increase vertical space for tikz boxes

Problem: This problem is two-fold: How would I do in order to increase the top and bottom margin for the orange box where it says "Code if true"? How would I do in order to always align the orange ...
1
vote
1answer
64 views

Create generic containers that dynamically expand for text

Problem: I am trying to create color containers that can hold text that vary in size. What I have not been able to figure is what method you should use in order to achieve this. Example 1: ...
1
vote
1answer
63 views

Making text appear in a box [duplicate]

Sorry if this is similar to previous questions, but I need to check if this is the best solution. My issue is that I am writing a document which contains HTTP messages for example of a snippet: ...
1
vote
0answers
43 views

Complex formed/shaped boxes (with coloured rim/frame and height as specified in \begin{minipage}[height=…])

This is the first question I ask. I honestly searched though the topics and I haven't found a solution yet and I even find it difficult to describe in a short title what is looked for in the german ...
3
votes
1answer
247 views

How to avoid underfull \hbox when using subfigures?

When compiling the MWE below with pdflatex, I get the warnings Underfull \hbox (badness 10000) in paragraph at lines 26--27 and Underfull \hbox (badness 10000) in paragraph at lines 36--37. I tried ...
2
votes
1answer
61 views

Create link of empty box

I make my first attempt on a beamer template. I created a simple graphic with my company logo and some fields as header (background for title). Now I would like to use the logo as home button. In ...
1
vote
1answer
81 views

Breakbox box placed on a new page instead of breaking the page

I made a list of serveral items that I'd like to be framed. That was no problem with \fbox{...}. Since the text is not longer than 1 page, it goes straight to the next page insteat of starting in the ...
6
votes
1answer
112 views

Why hbox does not start a new paragraph?

These two produce the same result: abc %\null def \bye abc \null def \bye These two are different: abc %\null def \bye abc \null def \bye Does anybody know where this behavior is ...
4
votes
2answers
529 views

how to get a newline in \fbox?

I am trying to have two lines in inside \fbox but is not working. Below is my code \documentclass{beamer} \usepackage{vietnam} \begin{document} \begin{frame} \frametitle{Exhaustive Search} {\...
4
votes
2answers
198 views

Table with multirow, multicolumn, interior braces and vertical entries

Partly as a challenge and partly because I wanted an electronic copy, I sat down last night to try to LaTeX the following complicated table: The first problems I encountered were the size and the ...
1
vote
2answers
272 views

Fbox'ed minipages with fboxsep=0pt, fboxrule=0.0001pt and colored border

I have arranged within approx. 20 minipages a data plot, several pictures with attached labels taking columnwidth, columnsep of the twocolumn paper format etc into account. For debugging purposes, I ...