Questions tagged [boxes]

{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.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

tcolorbox footnotes local (with \footnote) or global (with \footnotemark) but the global not in the same bottom page when tcolorbox is breakable

I have a problem with the footnotes in the tcolobox environment. I use footnotes in tcolorbox boxes: in "local" (with the note that appears at the bottom of the boxes) with \footnote (the ...
0
votes
1answer
69 views

Alignment and width with tcolorbox

I'm writing a document where I need to put some text inside a box. I have figured out how to make a rounded-corner box with the graphical appearence I was looking for. My code is the following: \...
3
votes
1answer
36 views

\hbox_set:Nn ⟨hbox⟩ {⟨contents⟩} typesets but doesn't print the ⟨contents⟩

In the interface3.pdf documentation, it is said: \hbox:n {⟨contents⟩} Typesets the ⟨contents⟩ into a horizontal box of natural width and then includes this box in the current list for typesetting. \...
3
votes
1answer
47 views

Why (e.g.) a \strutbox and a (expl3) \vbox_set:Nn box containing this \strutbox don't have the same height?

As shown by the following MCE, a \strutbox and a (expl3) \vbox_set:Nn box containing this \strutbox don't have the same height. Why? \documentclass{article} \begin{document} \ExplSyntaxOn \vbox_set:...
1
vote
1answer
22 views

Writing bullet in framebox

I'm trying to write some text with bullet representation within a box. My code is \begin{document} \usepackage{amssymb} \usepackage{fancybox} \usepackage[breakable]{tcolorbox} \usepackage{...
0
votes
1answer
20 views

Breaking line in shadow box

I am going to write Definitions: Least element, Greatest element, minimal element, maximal element in a shadow box but the line exceeds the page margin. Here's my code: \documentclass[12pt,a4paper]{...
0
votes
2answers
38 views

Scaling/Size reduction large longtable to pdflscape

I have an overly large table converted with excel2latex. It may span several pages, but currently, it stretches far beyond the margins of my landscape, despite the columns under “Evaluation metrics” ...
0
votes
2answers
75 views

How to implement \savebox

\documentclass[a4paper,10pt]{article} \usepackage[left=24mm,right=30mm,bottom=25mm,top=25mm]{geometry} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \...
3
votes
2answers
72 views

Alignment within boxes

I'm writing a document where I need the following result: I need also two more things: The box must adapt itself to the sentence, in this way when I write a short sentence, the box will not appear ...
1
vote
1answer
24 views

Equivalent of \pdfsavepos for a box?

Suppose I typeset some text using an environment that places it in a box with a width that I specify. (I don't really care if this is a minipage, tabular, or something else.) I want to write the ...
1
vote
0answers
41 views

Framing an equation and equation array (boxed)

I want to nicely put equations and equations arrays inside a box or a frame. I also like to align objects in align environment like in the eqnarray environment [r|c|l], see example below. Working ...
2
votes
0answers
51 views

Making x-saved tikz pictures less color blind

xsavebox has the ability to color saved boxes according to the ambient text. tikzpictures have the same ability. However, the combination of these does not seem to have this ability. \documentclass{...
5
votes
3answers
87 views

Create a hbox that fills the rest of the line + some questions on boxes in general

I'm trying to understand how boxes work in TeX, and I've some question, all related with boxes in general (if you think it's better to create 3 questions, let me know, but I think they are quite ...
2
votes
1answer
45 views

Boxing the big equations ( generated by \dmath )

\documentclass{article} \usepackage{breqn} \begin{document} \begin{dmath} \frac{\mathrm{d} \Pi}{\mathrm{d} u}=A E \int_{0}^{L} \frac{\mathrm{d} u}{\mathrm{~d} x} \frac{\mathrm{~d}(\delta u)}{\mathrm{~...
5
votes
1answer
224 views

overful \hbox . Someone could explain once for all?

I keep getting this error. I don't understand why, please someone could tell me where I'm doing wrong and how to solve it? Thanks in advance. Sample code: \begin{itemize} \item Si dice che un imposta ...
1
vote
2answers
97 views

makebox and framebox LaTeX equivalent in ConteXt

What is the equivalent to \makebox[s] and \framebox[s] stretching text in ConTeXt. For example : \makebox[5cm][s]{some contents}
1
vote
0answers
31 views

How to measure the width of a character including overshoot

I'm trying to measure the width of arbitrary letters. For example, I'm using this to get the width of a letter A: \settowidth{\letterwidth}{A} This seems to work fine for all my letters, except for ...
5
votes
1answer
112 views

Mathematic font typesets differently in savebox environment

When I typeset the same equations using beamer inside a savebox environment, and inside the main document, the font used for the math equations comes out differently. Here is a MWE showing the ...
0
votes
1answer
87 views

Creating a numbered-frames book template

I want to create a template for a book document class (not beamer) where the entire book is written in numbered frames. Below is an example from Kleppner and Ramsey's Quick Calculus showing Frames 25 ...
1
vote
2answers
180 views

Using post_linebreak_filter in LuaTeX to set height and depth of boxes

After reading this answer Automatically prevent extra line spacing because of math by David Carlisle, I experimented with the code to get grid typesetting. My approach: The height of a line is always (...
7
votes
2answers
216 views

Positioning punctuation to the bottom right of an equation

I'm writing a paper with tikz-based equations that look like this: I like to have punctuation after equations, but I think it would look better and be less confusing if the punctuation was at the ...
1
vote
1answer
31 views

Overfull hbox due to `glossaries-extra`

As identified based on another of my questions here. Warnings like Overfull \hbox (28.00505pt too wide) in alignment at lines 46--46 seem to be produced when using the glossaries-extra package. Here ...
0
votes
1answer
57 views

locate overfull hbox in alignment

I fail to locate the exact position of the origin of the final 4 Overfull \hbox (36.55566pt too wide) in alignment at lines 343--343 warnings in my document. My document is uses several \subimport*{}...
0
votes
2answers
85 views

Best way to include Boxes and Arrows in a Table?

I want to create a table, but in the first column I want boxes that are connected with arrows. It should be similar to the picture below. The boxes should be normal (black and white, no fancy colors) ...
0
votes
2answers
46 views

How to use the awesomebox with custom image from external file and add double vertical line

I'm looking for a way to modify or make an alternative to the warning/alarm messages in text alike this one from awesombox package: What I need to do is: replace the warning sing on the left with an ...
0
votes
2answers
76 views

Stacking boxes side-by-side with geometry and tcolorbox packages

I have been editing a CV with tcolorbox and geometry packages, I wanted to stack side-by-side two boxes below a top box but when I run the code the top box sits on top of the first page alone and the ...
0
votes
1answer
26 views

Overfull hboxes with section formatting from tex.SE answer

I wanted to incorporate the great looking section formatting from this answer but it gives overfull hboxes for every heading (see here in overleaf). I didn't want to abuse the comments under that ...
0
votes
0answers
40 views

How to make boxes for fill in the blank questions in exam document class?

I'm going to have a "complete the solution" type of questions where you're suppposed to fill in your answer in a box. These boxes would be filled with number or even an expression. It should ...
0
votes
2answers
76 views

How can make fancy title box in header or contact info in footer?

I'm working on a single page research proposal ads/template. I want to include contact info and logo in the footer and topic in fancy rectangular/boxes or using between text box (one with a bit ...
1
vote
2answers
53 views

Help with boxes with equations and their respective explanations with another color

hoping you are excellent, I would like to ask your help to know how to generate the following graphic, an apology if the text shown is in Spanish, but if I would like to know how to generate that type ...
6
votes
3answers
140 views

Strange error when unvboxing in `\hbox`

and merry Christmas! I've encountered a strange error message on TeX level which cost me quite some time to unravel because it was so exceptionally unhelpful... Here's a minimal plain TeX example: \...
1
vote
1answer
32 views

Poem Title Off Center

\documentclass{article} \usepackage{verse} \usepackage{graphicx} \graphicspath{ {Photos/} } \usepackage{hyperref} \hypersetup{ colorlinks=true, linkcolor=black, filecolor=magenta, ...
5
votes
2answers
190 views

Why does a parbox of height zero consume vertical space?

Assume we have a document where we have one paragraph of text, followed by two vspace boxes, followed by another paragraph of text. I thought that I could insert a parbox with zero height between the ...
2
votes
1answer
35 views

How to place footnote outside box environment

My issue is the following: The footnote gets placed inside the box. However, I want it to be placed and numbered like a normal footnote. How can that be made possible? I provided an MWE for my ...
0
votes
0answers
45 views

Making a complex framed box

I need to realize a complex series of framed boxes as in the image, but I have no idea about how to male it. Anyone can help me? Thanks!
1
vote
0answers
28 views

Overfull table caption when including subcaption package (IFAC paper) [duplicate]

I am trying to use the subcaption package in the IFAC paper. \documentclass{ifacconf} \usepackage{graphicx} % include this line if your document contains figures \usepackage{natbib} % ...
-1
votes
3answers
183 views

How can I create this picture on TikZ?

I'm currently struggling on how to create this picture on TikZ. I cant seem to be able to draw the arrows properly and I cant figure out how to be able to make "columns" to make the private ...
2
votes
1answer
48 views

Blank vertical space in minipage. Why?

everyone. A few weeks ago I posted a question about a similar topic. I'm in the process of learning to use boxes and minipages. It was going well untill yesterday. I was trying to do practically the ...
1
vote
2answers
70 views

Custom arrows and boxes in the Beamer

I have the following Beamer slide: \begin{frame}[fragile]{Potenciação} \begin{block}{Propriedades de Potenciação} \begin{align} a^n &= a . a . a \ldots a \rightarrow n \enspace ...
1
vote
1answer
105 views

Panic on overfull \hbox

Last week, I handed in a homework where an equation went off the edge of the page. Embarassing... I would like to prevent this from happening again by having LaTeX stop compilation when it notices an ...
1
vote
1answer
33 views

Unwanted vertical space between boxes (\offinterlineskip not working)

I thought \offinterlineskip would remove the vertical spacing between the rows, but it does not seem to work. I want a small spacing before the last row only. Does someone know what is going wrong ...
2
votes
3answers
85 views

Conflict of resizebox and verbatim mode

I need to use resizebox over verbatim mode. Is there a conflict between usage of verb mode inside a resizebox? If you look at the first column of the table, it always add | at the end of each text. I ...
3
votes
2answers
299 views

\eqnarray and \boxed

Hey I have following code and I would like to set last equality into box but when I use \boxed I have an error. What can I do? \begin{eqnarray*} \Theta _{C} &=&\frac{\partial }{\partial t}\...
0
votes
1answer
40 views

Thmtools get rid of a dot

I'm using thmtools for my LaTeX Template. I often use the numbered math boxes. But now I wanted to add the same Box just without the math context. So I build this: \documentclas{article} \usepackage{...
0
votes
1answer
29 views

Get linebreaks at a long list

How can I get linebreaks at a very long list like 1,2,3,...? \documentclass[a4paper]{article} \usepackage{tikz} \begin{document} \let\mylist=\empty \foreach \k in {1,...,44}{ \ifx\empty\mylist{} \...
3
votes
1answer
95 views

\box_new:N for use with \hbox_set:Nn

My question is regarding \l_tmpa_box. Consider the following code: \ExplSyntaxOn \hbox_set:Nn \l_tmpa_box { \includegraphics[scale=0.125]{images/shc_logo.pdf} } \dim_new:N \l__shc_logo_dim \dim_set:...
4
votes
2answers
101 views

Boxing Multiple Lines in Split

I want to put a box around the final two lines in this \begin{equation} \begin{split} \left\langle\vec{u}\right\rangle&=\frac{1}{4}\Re\left(\epsilon_0\vec{\overset{\sim}{E}}\cdot\vec{\overset{\sim}...
0
votes
1answer
57 views

\hbox issue in RTL context (vmode)

Consedering this example \hbox in RTL context appears on the left isn't it supposed to appear on the right side with \pardir TRT!? \documentclass{article} \usepackage[showframe]{geometry} \...
3
votes
0answers
179 views

LuaHBTeX: \copy contents behave differently from \box for copy-paste — by making contents tofu 􀈽 for reordered glyphs or by adding spurious space

Here's an example of a tex \vbox with some devanagari text in it. My code adds contents of \vbox to document twice, first its copy (using \copy), and later itself (using \box). Both copies look ...
3
votes
2answers
54 views

removing spaces between shaded frames and within it

I have written a a few latex lines to mimic the shaded boxes shown in the below picture: However, my result so far looks like the following: which doesn't look completely like the above image. My ...

1
2 3 4 5
29