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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
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: 10350
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: 10350
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