Questions tagged [bounding-box]
{bounding-box} is for questions about the bounding box of elements in a document, usually {graphics}, {tikz-pgf} or {pstricks} pictures, or glyphs in {fonts}. Use this tag in addition to other tags specifying what bounding-box is the question about.
153 questions
4
votes
3
answers
47
views
Horizontally centering a tikz node on a page
My question is essentially the same as this question, but I'm asking again because the answer provided is not very resilient. In particular, it doesn't work for the kind of diagram I want.
I want to ...
6
votes
1
answer
125
views
LuaTeX (and other engines) equivalent of the \showglyphs command in ConTeXt for math
We can use the \showglyphs commannd in ConTeXt to show the bounding boxes of glyphs, both text and math. It also shows the baseline.
\showglyphs
\starttext
Lorem ipsum
\startformula \int_\...
8
votes
1
answer
295
views
TikZ bounding box not calculated properly for rotated circle nodes in standalone class
I'm using tikz to create a figure with a ring and n nodes on it equally separated by an angle of 360° / n. Since I want the number of nodes to be arbitrary I defined a command which creates the ...
1
vote
1
answer
79
views
How to correctly set the bounding boxes when creating boxes using the `shipout/before` hook?
I want to assemble some boxes onto the page through which text should flow. I know that there are already some packages that solve this, but I would like to better understand the underlying logic of ...
2
votes
1
answer
108
views
useasboundingbox does not clip picture
In the following code I am trying to clip a picture. In practice the lines drawn are paths that are invisible. All that should be in the picture is in the bounding box shown in the rectangle. However, ...
6
votes
1
answer
234
views
How to tag a tikzpicture with a bounding box?
In a previous question, I learned how to add alt text to a TikZ image. This validates as UA-1 according to VeraPDF. On the other hand, PDF Accessibility Checker says this is not UA-1 because the ...
3
votes
0
answers
87
views
How to ensure TikZ graphic is within the bounding box of a NiceTabular
When adding TikZ code to a NiceTabular, the graphics do not appear to be included in the table's bounding box. In my MWE, the node at (0,1) containing an x is cut off:
\documentclass[margin=6mm]{...
4
votes
1
answer
132
views
Tikz vphantom/hphantom for whole node/scope
In order to create nice alignments in a tikzcd-like environment (zx-calculus package), I'd like to find a simple way to change the bounding box of a node (without changing its content itself ideally, ...
6
votes
2
answers
288
views
Show bounding box of shapes/nodes with specified attributes (width, color, etc.)
I would like to automate showing the bounding box of shapes/nodes. At the moment I'm using a scope and its local bounding box property to achieve this, as this is the best solution I found so far. ...
0
votes
0
answers
189
views
Bounding box around each paragraph/element of a document
How do I put a bounding box around each paragraph of a document? If a paragraph spans two pages, it is okay for it to be surrounded by separate bounding boxes.
Additionally, I am looking for a header-...
3
votes
1
answer
75
views
Shift bounding box of \not
Is it possible to get the \not glyph with a centered bounding box in Latin Modern?
\documentclass{article}
\usepackage{lmodern}
\begin{document}
\fbox{$\not$}
\end{document}
1
vote
0
answers
311
views
TikZ, standalone and bounding box
I'm aware of tikz' externalize feature, which I don't like because its following 'feature': if I have a picture in the middle of the document, then to externalize it, the inner latex call will process ...
1
vote
1
answer
214
views
Why do lines drawn in TikZ add space equal to their width into the picture and how can this be prevented?
Related: Horizontal space before TikZ picture
Consider the following MWE
\documentclass{article}
\usepackage{tikz}
\usepackage[showframe]{geometry}
\begin{document}
\noindent
\begin{tikzpicture}
\...
0
votes
0
answers
23
views
I am getting an Error " cannot determine size of graphic ( no boundingBox) Overleaf [duplicate]
I am getting an Error " cannot determine size of graphic ( no boundingBox)
\documentclass{proposalnsf}
\usepackage{enumitem}
\usepackage{graphicx}
%\usepackage[dvipdfmx]{graphicx}
%\usepackage[...
5
votes
2
answers
127
views
TikZ grid out of sync with page boundaries
The following code
\documentclass{article}
\usepackage{tikz}
\usepackage[paperheight=297mm,paperwidth=210mm,margin=0mm,showframe]{geometry}
\begin{document}
\noindent
\begin{tikzpicture}[remember ...