{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

4
votes
2answers
142 views

frame more than 1 equation (but not all) of an align environment

I think the question is self-explanatory. I have an align environment with four equations and I want only the last two of them framed in a single box. So not separately framed. If I try to achieve ...
4
votes
2answers
153 views

Color-filled box in text area with size corresponding to font size

Is it possible to construct a small, color-filled box in text among ordinary text? The size of the box should correspond to the font size. I need it because I need to construct a legend for some ...
4
votes
1answer
105 views

Box environment created with frame box

I am creating the box environment using packages environ and float. But I will try to put the \BODY part after the caption and also try to fix the "framebox environment" by using \fbox{} command. ...
3
votes
2answers
80 views

Boxed caption and figure, with colored caption

I'm trying to recreate a figure and caption effect from a journal. An example of it can be seen on PDF version of Figure 1 from this article: It's basically a large grey bordered box that goes ...
1
vote
2answers
131 views

how to draw a text box with shadow Borders, i have tried the following but it give error

how to draw a text box with shadow Borders, i have tried the following but it give error \fbox{ \begin{minipage}[c]{5in} \shadowbox{\large\bf text write here} \end{minipage} }
4
votes
0answers
108 views

Border control for LaTeX tables generated using TeX4ht

In producing simultaneous pdfs and html/word files using xelatex and TeX4ht I have noticed that the table produced by TeX4ht is kind of illogical and is clumsy to clean up and manipulate. I would ...
0
votes
0answers
40 views

Solving underfull warnings “the general way”

I finished writing my LaTeX template, which I now fill with data I retrieve from a database. I am yet struggling with fixing underfull/overfull warnings, I have plenty of them, especially in tabulars ...
1
vote
1answer
78 views

Placing Vbox es

I am writing a text using LaTeX. I want my test to be 2-columned. I have done this using multicols environment. My question's text and its choices mustn't be splitted by a page break, or column break. ...
2
votes
1answer
116 views

New Box environement created follow all aspects in figure

I try to create the box environment and all figure future to be included in the box environment like (BOX - single column, BOX* - double column, placemnt - [tphb], and seperate auto box label counter ...
0
votes
0answers
45 views

Problem with length of psshadow box

I am using the a0poster environment and I am trying to create a psshadow box that has the same length with the document. I am using the following code: \documentclass[landscape,a0,final]{a0poster} ...
3
votes
1answer
104 views

LaTeX equivalent of \wd [closed]

Please consider the following code: \newsavebox{\mybox} \savebox{\mybox}{some text} \newlength{\widthmybox} \settowidth{\widthmybox}{\usebox{\mybox}} Is \widthmybox then equivalent to \wd\mybox?
4
votes
2answers
156 views

Pleasing line breaks with extremely long words that must fit on the page

I'm typesetting some technical documentation that includes identifiers with very long names. It is unacceptable to break or hyphenate these names because that would look confusingly like juxtaposed ...
9
votes
2answers
120 views

How to define a command that produces a different savebox depending on the argument

I'd like to define a sequence of saveboxes \fooA, \fooB, etcetera, in a style file and introduce a command like \newcommand{\foo}[1]{....} which produces \usebox{\fooA} if the argument of \foo is 1, ...
5
votes
2answers
118 views

Preserving font size in scalebox

I'm using a scalebox around a picture. There's text inside it. I'd like the text size to keep constant even if I change the scale factor. \scalebox{0.5}{ \begin{picture}(360,255)(0,0)% ...
3
votes
1answer
168 views

Maintaining text colour change in a breakable tcolorbox

I try to maintain the current text colour in breakable boxes from tcolorbox, but the manual clearly states (see manual of the current version, section 15.2, page 292, version 3.34) • If your text ...
4
votes
1answer
77 views

Add vertical space before a line

I have the following code: \documentclass[12pt, a4paper] {article} \usepackage[T1]{fontenc} \usepackage[english]{babel} \begin{document} \vspace*{1cm} \begin{center} \textbf{Text of ...
1
vote
1answer
83 views

Avoid underfull \vbox with page number “inside textblock”

My thesis requirements state that the page numbers must be "centered at one inch from the bottom of the page." All the margins are to be 1 inch and nothing can be printed in the margin area. I have ...
6
votes
3answers
220 views

Build a box that starts after next line break

I have reason to insert notes in-text in boxes. I defined the following command for doing so: \newcommand{\Lnote}[1]{% \textsuperscript{\footnotesize{\thelnote}} \begin{center} ...
22
votes
3answers
873 views

Make fireworks with only text

For the holidays, I wanted to follow up to the question about making fireworks with tikz (How can we display fireworks?): How can we make fireworks with only text? I have made a crude attempt below. ...
6
votes
1answer
205 views

Recursion of unknown origin: TeX capacity exceeded, sorry [input stack size=10000]

For some reason, there's a recursive definition in this MWE. Who can find where it goes wrong? \documentclass{article} \usepackage{xcolor} \usepackage{titlesec} \usepackage{tcolorbox} ...
4
votes
1answer
54 views

How to get a centered colored box

I want to create a centered colored parbox, but although I defined boarders using package geometry, the parbox has a greater margin left than right. Thanks for help ...
10
votes
2answers
134 views

Is \c_empty_box intended to be used instead of \mbox{}

At a first glance, I understood \c_empty_box as a replacement of \mbox{} but the following MWE (that points out a weird behavior of \c_empty_box: it is replaced by "æ") gives me serious doubts. ...
5
votes
3answers
200 views

How to make a fixed height-width box with custom padding

I am new to latex, I am trying to include output of TI84 calculator in my document. It is supposed to look like this: Following is what I am able to make. My output's height and width arrange ...
4
votes
2answers
106 views

Uneven spacing between parbox

I have uneven vertical space between two parboxes and between a parbox and beginning of a new text paragraph. How to fix these? Here is a minimum working example. \documentclass{article} ...
2
votes
1answer
124 views

Measure distance from text to bottom margin

I'm making some boxes for providing answers. The box macro takes the height of the box as an argument. I need to measure the remaining space from the line the box starts at, to the bottom of the page. ...
7
votes
1answer
137 views

how to use fbox in align mode

I'm trying to highlight the diagonal elements of a matrix by using fbox but I failed. I've searched for the problem, some ppl suggest using tikz. I don't want to use it, so I decided to use fbox{}. ...
8
votes
2answers
149 views

Is there a way to set a parbox to a minimum height?

I'm looking for a way to make it so that my \parboxes keep a minimum height, similar to CSS min-height, e.g. \mhparbox{\textwidth}{3cm}{...} would ensure that whatever text appears in place of ..., ...
3
votes
1answer
124 views

TikZ mdframed environment: close box at end of page and continue on next

I used the Excursus environment as a template to create my own box like this: \usepackage[style=1,leftmargin=0pt,rightmargin=0pt,framemethod=TikZ]{mdframed} \newenvironment{boxtype1}{% ...
0
votes
1answer
64 views

Boxes within boxes and line numbering

How can I create framed boxes with two columns, where there is a line numbering on every row where there is something written? (if hard or possible then a number for every line in general) Something ...
2
votes
1answer
92 views

How to make gradient ellipse title box with border?

I am using the tcolorbox package, and I want to use a gradient ellipse title box with border on the titlepage. It is possible somehow or I have to use another package to manage this?
4
votes
1answer
281 views

Homework Problem Sheet Template

Could someone make this picture of Homework Problem Sheet Template in sample code in LaTeX with the same font size by the way i already add tow pictures in the front of document to make it more cute ...
5
votes
1answer
96 views

Accessing child contents of LaTeX boxes (append/concatenate TeX box material)?

This is somewhat similar to Reading the contents of a box, but with a specifically plain Latex example; I somewhat solved the question while writing the post, so I'll formulate the question like this: ...
7
votes
1answer
184 views

box all equations of align environment, but not the equation numbers

I want to box (like \boxed{} of package amsmath or \Aboxed{} of package mathtools) the entire block of equations from an align (or eqnarray) environment, but not the equation labels. How can I do ...
1
vote
1answer
198 views

Make box in math mode with current math font

The commands $\mathcal{\mbox{$M$}}$ and \mbox{$\mathcal{M}$} produce different output. I would like a replacement for \mbox that creates a box preserving all features of the current font in math ...
4
votes
1answer
163 views

How to modify colbacktitle, coltext in a tcolorbox with AAUsidebar theme?

I'd like to produce a presentation with beamer. I use the AAUsidebar theme. I want to use my own boxes that I defined with \newtcolorbox. But, I can't not modify the background colour of the title ...
4
votes
2answers
211 views

How can I draw a box around this?

MWE: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsmath} \usepackage[margin=3cm]{geometry} \begin{document} \paragraph*{Problem 1} This ...
1
vote
1answer
44 views

Boxed equation on the right and its verbatim on the left

How to write a verbatim form of an equation on the left and its output form on the right inside a box?
6
votes
1answer
83 views

Why hyperref's \url may be used in preamble within a macro but not within a box?

The following MWE, where a macro involving hyperref's \url is defined in the preamble, works like a charm: \documentclass{article} \usepackage{hyperref} % ...
3
votes
1answer
72 views

Create page break for entire frame without breaking the text flow

I'm including a large, one page box using framed package, with simplest example being: \documentclass{report} \usepackage{framed} \begin{document} Some text ...
2
votes
1answer
53 views

longtabu and rotatebox resulting on too wide table

I'm trying to produce a fixed full-width table, that can potentially span multiple pages. I found that rotating headers with \rotatebox messes up the dimension computation, but I can't find a way to ...
2
votes
1answer
53 views

Building a box for side calculations

I am doing a math assignment, and want to place a box next to my calculations for side calculations. I tried to use the tabular environment, but then there is a huge space besides the box, and the ...
4
votes
1answer
110 views

Boxes with two different border widths

I'm making a box with text inside. For it I use the package mdframed. Essentially I want a box with the left border width 2pt and the rest of the borders width 1pt. What I've got so far: ...
3
votes
2answers
157 views

Automatically add \vfill for breakable tcolorbox

I'm using tcolorbox with nested tcolorboxes, the upper level ones being breakable. Here is an example. \documentclass{article} \usepackage{lipsum} \usepackage{tcolorbox} ...
3
votes
1answer
1k views

How to make an empty box

I am making a sheet where people can fill in answers of various types. For this I would like to make some boxes of certain width and height. How can this best be done? I use \fbox when I want to box a ...
4
votes
1answer
172 views

Print immediately before first word of paragraph, without altering its first line indentation?

Although my case can be generalised, perhaps it would be clearer if I describe a specific example. I need to print a digit as a subscript, immediately to the left of the first line of each paragraph, ...
1
vote
0answers
83 views

Split page first vertically, then horizontal, and finally vertical again, for folding into eighths. Reflow?

I would like to make a letter sized document for folding into eighths for a pocket size pad to take notes and include references, for instance tasks for the day. I may use org-mode exporting ...
2
votes
1answer
172 views

Background colors with mdframed: is this behavior normal?

Introduction With the help of this answer, I tried to define a semi-transparent background for a theorem-like environment. Here is my solution: \documentclass{article} ...
7
votes
1answer
79 views

Unboxing \hrule's?

How do you unbox \hrules such as in this code sample: \setbox0=\vbox{1\hrule2\hfil\break3} \unvbox0 \setbox0=\lastbox % line 3 \unskip % \baselineskip \unpenalty % \break ...
3
votes
1answer
208 views

Unwanted title box on first page of a part

I used the code provided by Gonzalo here Chapter Title in rotated vertical box at the margin The problem I have are: I am using \parts also to divide my document and the box appear in the part ...
2
votes
1answer
233 views

Beamer-Using resizebox changes the position of an item in itemize

I am creating a presentation using beamer. In an itemize environment, I am using resizebox in particular item. When I use it, the position of the bullet changes, as seen in the next image My code ...