Graphics, Figures & TablestikZ | Alignment of Graphic with Respect to Text

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

tikZ | Alignment of Graphic with Respect to Text

Post by ghostanime2001 »

Is there a way to top align a piece of graphics in a scope environment to the surrounding text with tikZ ?
Last edited by ghostanime2001 on Sat Dec 15, 2012 12:17 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

tikZ | Alignment of Graphic with Respect to Text

Post by Stefan Kottwitz »

You could use the baseline option.

Stefan
LaTeX.org admin
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

tikZ | Alignment of Graphic with Respect to Text

Post by ghostanime2001 »

The baseline option goes in the tikzpicture environment, right?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

tikZ | Alignment of Graphic with Respect to Text

Post by Stefan Kottwitz »

Yes, I guess you would like to align the whole TikZ picture. You can specify a coordinate for the baseline option, such as (mynode.base).

Stefan
LaTeX.org admin
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: tikZ | Alignment of Graphic with Respect to Text

Post by ghostanime2001 »

How do I do that ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

tikZ | Alignment of Graphic with Respect to Text

Post by Stefan Kottwitz »

Without specific code, you may get general advice. Generally, the TikZ manual could be the first option, together with the mentioned feature. I don't reword parts of the manual. ;-) If you tried something and it doesn't work, let us know.

If you would post a specific code example, perhaps you could get a working piece of code for it.

Stefan
LaTeX.org admin
Post Reply