Skip to main content

New answers tagged

1 vote
Accepted

Connect a triangular child node with its north corner

Complete solution working and beautiful-looking solution, thanks @Qrrbrbirlbel \documentclass{standalone} \usepackage{tikz} \usepackage{calc} \usetikzlibrary{trees} \usetikzlibrary{shapes} \...
R. Absil's user avatar
  • 161
2 votes

How to align image size with node size

As can be seen from this code: \documentclass[tikz, border=1cm]{standalone} \begin{document} \begin{tikzpicture} \node {\includegraphics[width=10cm, keepaspectratio]{example-image}}; \node[ line width=...
hpekristiansen's user avatar
2 votes

Referencing an other tikzpicture without overlay

This aligns the top picture to the bottom picture. The savebox is used to create the named node, which is stored globally. The origin location is saved (remember picture) at shipout. \documentclass{...
John Kormylo's user avatar
  • 82.3k
5 votes
Accepted

Referencing an other tikzpicture without overlay

The \path (0,0) part only worked because the diagram in the linked Q&A doesn't protrude into the left margin. By specifying any coordinate with an x value that is not dependent on another picture, ...
Qrrbrbirlbel's user avatar
3 votes

Referencing an other tikzpicture without overlay

What happens when PGF uses remember picture, overlay, TeX will see a box of 0pt width and height. It is pretty much similar to what happens when you do an rlap or llap or makebox[0pt]{}. So if you ...
yannisl's user avatar
  • 119k
0 votes

Central alignment of text node in a rectangle in Tikz drawing

Thanks to the answer by @cabohah Now I can do this. \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[every node/.style={draw=...
gpanda's user avatar
  • 140
3 votes
Accepted

Central alignment of text node in a rectangle in Tikz drawing

You can draw the rectangle as part of the node using option rectangle and the size options: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \...
cabohah's user avatar
  • 15.8k
0 votes

Central alignment of text node in a rectangle in Tikz drawing

For this simple output, \fbox is enough, and the MWE is \documentclass{book} \usepackage{graphicx} \begin{document} \setlength{\fboxrule}{1pt}\setlength{\fboxsep}{0pt} \fbox{\vbox to 5pc{\vfill% \...
MadyYuvi's user avatar
  • 14.7k

Top 50 recent answers are included