{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
2answers
162 views

Is it possible to remove (or otherwise nullify) a whatsit node from a box?

I am aware that it is not generally possible to modify the contents of a box (as per http://tex.stackexchange.com/a/49903/17427), though I believe it is sometimes possible to "unbox" material and hack ...
5
votes
2answers
391 views

How to box the correct answer in Exam class?

I have tried using the following code: \documentclass[12pt]{exam} \CorrectChoiceEmphasis{\mbox{}} \begin{document} \begin{questions} \question Who is an idot? \begin{choices} \choice Not the writer ...
2
votes
1answer
262 views

hbox out of margin, beamer

I wanna put a round image in a presentation il LaTeX out from the margin. I would like to show it just as a 1/4 of the image in the left bottom corner. I tried: \begin{frame} \tableofcontents ...
8
votes
1answer
202 views

Why isn't a zero-width box in math mode aligned on the baseline?

I'd like to move equation labels into the margin for an article I'm working on, and the answers in Theorem Name/Numbering in Margin accomplish exactly what I'm looking for. Here is a small example: ...
4
votes
1answer
351 views

Text between two lines

i'd like to write words that fit between two lines. i found the following code: \documentclass[parskip,paper=a4]{scrartcl} \usepackage{calc} \setlength{\parindent}{0pt} \setlength{\fboxsep}{0pt} ...
3
votes
1answer
392 views

How to create a figure with math content

What's wrong with the following figure in the text? First, it says "amsmath: Unable to redefine math accent \vec." and then "Undefined control sequence" but neither is any helpful to me. It uses LLNCS ...
9
votes
3answers
194 views

How can I wrap each page of a document with a box that has a caption?

I have a LaTeX document that contains proprietary information. I need to print a version of the document that has a box around the text with a disclaimer (something to the effect of "Proprietary ...
4
votes
1answer
272 views

A fancy box for non-verb text, but like that of Fancyvrb

How can I create, without a verbatim environment, these nice boxes that the Fancyvrb package produces: The sibling package Fancybox (by the same author) doesn't allow for the caption being placed ...
12
votes
1answer
2k views

how to draw a container box in latex around automata?

This is my tikz code : \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata,} \usepackage{amsmath} \begin{document} ...
3
votes
2answers
85 views

How can I produce 3 centered columns, with the middle one fitting the width of its content?

How can I produce a document similar to this, but cause the middle column to take up only as much space as it needs (rather than explicitly specifying a width), such that as much space as possible is ...
4
votes
2answers
1k views

Remove space before colorbox

I've made the command \newcommand{\pink}[1]{\colorbox{red!20}{#1}} to highlight in pink. It works fine for words and sentences, but if I want to highlight a subpart of a word, e.g. laugh\pink{ing} ...
15
votes
2answers
12k views

beamer style text box

If you're using beamer you can do some nice text boxes using: \begin{block}{block title}content of block\end{block} Which gives a text box something like this (the box with the header Esimerkki): ...
2
votes
1answer
229 views

Tabular vs fbox (or other options?) for creating an organized document

I'm currently in the process of trying to make a template that I can use for creating lesson plans for my high school math classes, but am having some trouble figuring out how I can make this be the ...
6
votes
1answer
658 views

Page header with gray background and without margin

After finishing my thesis in LaTeX (I am an absolute newcomer) I've been asked to format it in a specific design matching a doc-file I received. I've managed to change titles and fonts and margins ...
7
votes
1answer
216 views

Savebox equivalent of \csname?

I would like to define a command which would increment a counter, and create a new savebox whose name is generated from the counter value. Something like: \documentclass{article} ...
6
votes
2answers
934 views

Highlight an equation within an align environment with color option

I'd really like to do exactly what's being asked for in this question: Highlight an equation within an align environment, but with the ability to change the color when I call it, so that I could have ...
3
votes
3answers
725 views

How to create a keybutton in latex? [duplicate]

Possible Duplicate: Keyboard Font for LaTeX So the result looks like: Press F5 for help. I've checked the fancybox package, but it only includes three patterns: doublebox, ovalbox, ...
8
votes
2answers
913 views

Underfull \vbox in each longtable… can it be fixed or must it be ignored?

I got some strange "underfull \vbox (badness 10000) detected at line ..." warnings, obviously at each of my "longtable"s. Is there a way to fix them (I actually don't see the cause) or do I have to ...
5
votes
1answer
351 views

aboxed across multiple alignment

I would like to have the entire last line in a box, but when I compile, it only boxes the first equation and doesn't even print the second equation. Does anyone know how to fix this? Here's my MWE. ...
5
votes
1answer
246 views

Savebox with \bgroup/\egroup doesn't work in beamer (for environment)

This works: \documentclass{article} \newsavebox{\mybox} \begin{document} \savebox{\mybox}\bgroup This is a test.\egroup\usebox{\mybox} \end{document} But this fails (Missing } inserted. at the ...
7
votes
1answer
325 views

Penalty or badness for linebreak near start or end of sentence

I would like to set a penalty or badness for breaking a sentence (or the contents of some \command{...}) too early. More specifically, I would like the penalty of a line break to be dependent on the ...
2
votes
1answer
172 views

Comment in a box and reference abilities

I am aware in Latex you can box text, which is what I need to do. However can you also label this box for reference, and similarly give it a caption, like you would for a photo? An example of boxing ...
7
votes
1answer
526 views

Why does adjust box not resize to the dimensions given

Hi looking to understand this a little better. Why does adjustbox not resize the text in the following example so that it fits the dimensions I think I'm specifying. e.g a 4in x 4in box. Am I doing ...
9
votes
1answer
141 views

\ref with tight box surrounding the reference

How can I make the colored box around a reference appear completely tight? MWE: \documentclass[a4paper,twoside,openright,final,12pt]{book} \usepackage{etex} \usepackage[english]{babel} ...
1
vote
1answer
145 views

Long title runs off page

I'm making a graph in using gnuplot and have converted the eps to pdf, so I have .tex file and pdf file. Usual they are great except this time the title in the title runs off the page, the title is a ...
2
votes
1answer
536 views

Underfull \hbox (badness 10000) detected at line XX []$[] $

I know there were a lot of questions regarding underfull hbox, but in my case error Underfull \hbox (badness 10000) detected at line 5 []$[] $ point to line 5: \begin{document} How can hbox ...
4
votes
1answer
465 views

How to create a Fancy Notes-Box in half of the Page along with text

I can draw the following type of Notes-Box: Can someone please suggest me how to draw this type of Notes-Box: The second one is different from the first one in 2 ways: We can add text below ...
13
votes
2answers
710 views

How to create Multilevel Colored Boxes using tcolorbox/any other package?

tcolorbox Manual provides the following example: Can anybody please suggest me how to create exactly this type of box - The no. of rows to add must be flexible(It seems that tcolorbox has no option ...
5
votes
1answer
2k views

Problem resizing an itemize environment with a \scalebox: “Something's wrong”

I have a \block containing a \itemize: \begin{block}{title} % \scalebox{0.8}{ \begin{itemize} \item 1... \item 2... \end{itemize} % } \end{block} I try to use \scaleboxand ...
6
votes
1answer
804 views

How can I align text, on my title slide, from two different boxes?

I'm trying to match a PowerPoint template, because, well, does anybody here like PowerPoint? Swapping the images out for those that are in the public domain, it looks something like this: No, I did ...
1
vote
0answers
39 views

Need Help to create a Fancy 'Key-Idea' Box for Article [duplicate]

Possible Duplicate: How to create Highlight Boxes in LaTeX? I am writing an Article. I am trying to create a 'Key-Idea Box' like the one shown below: Can somebody help me creating a ...
15
votes
2answers
212 views

Write content of box to a file

I would like to take the contents of a box generated with \begin{lrbox} ... \end{lrbox} and write it to a file. The use case is a question and answer environment, where the answer should be collected ...
1
vote
1answer
989 views

How to use makebox in LaTeX

I try to use \makebox around the word, however, all text in the same line, why? Here is my code, would someone help me? ...
0
votes
1answer
370 views

how to put the text in the box

I want to put a long text in the box using LaTeX, thus, would someone tell me how to put the text in the box? Using \makebox? however, it doesn't work, I use \makebox[10cm]{text in the box}, there is ...
2
votes
1answer
245 views

Creating a box framework for inside the formula enviroment

For a list of things to be used inside the formula enviroment, I want to create boxes stacked over each other. I basically want to write $$ A := "Box with lines like 'A is a number', 'A is bigger ...
5
votes
1answer
868 views

Equations in fancy boxes

I've checked the post here, where the package empheq is used for embedding equations into coloured boxes. With that idea, I wrote in my file the following: % in the preambule \usepackage{empheq} ...
5
votes
1answer
314 views

How to Create Colored Text Boxes with DIFFERENT colors using “\leftbar” command?

I am using the following code to generate a Colored Box in Latex: \renewenvironment{leftbar}[1][\hsize]% {% \def\FrameCommand% {% ...
38
votes
3answers
5k views

How to create Highlight Boxes in LaTeX?

I am writing an Article in LaTeX. Please suggest me how to create a highlight boxes like the ones shown below in LaTeX:
4
votes
1answer
443 views

Labeling a box in tikz

As shown in the working example below, I have red box around all the boxes. I want to label the box but I couldn't manage to do it. I tried to use some of the ways in given in the tikz examples but I ...
5
votes
1answer
162 views

building a box a bit special

I'm trying to build in latex this box: I have been trying with this code: \noindent\begin{tabular}{|c|c|c|c|}\hline \enc{cyan}{ NOMBRE }&\enc{cyan}{ $\text{1}^{\text{er}}$ APELLIDO } & ...
6
votes
2answers
222 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: ...
16
votes
4answers
5k 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
978 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
2k 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
25
votes
2answers
620 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 ...
10
votes
1answer
840 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
217 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 ...
3
votes
2answers
1k 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
210 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 ...
11
votes
1answer
977 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 ...