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.
151 questions
8 votes
1 answer
251 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
67 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
74 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
203 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
80 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
122 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
249 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
160 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
73 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
283 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
203 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
22 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[...
4 votes
2 answers
116 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 ...
1 vote
1 answer
139 views
Make TikZ overlay part of a formula bounding box
I have a formula, annotated using a TikZ picture overlay: \documentclass{memoir} \usepackage{calc} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{tikzmark,calc,fit,shapes.geometric} \begin{...
0 votes
1 answer
905 views
How to get bounding boxes for jpg/png in latex
Currently i include png/jpg files with graphicx package compiling with lualatex, no problem, in particular no error message because of bounding box not found. This question is about historic ways to ...