Text Formattingtikz-qtree | Center wide Tree

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

tikz-qtree | Center wide Tree

Post by Laurentius »

When the tree is wider than \textwidth, it's aligned with the left margin; I'd like to center it so that it exceeds both margins equally: how is that done?

Recommended reading 2024:

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

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

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

tikz-qtree | Center wide Tree

Post by Stefan Kottwitz »

Hi,

you could use \makebox (where it's centered by default) for putting it into a box of width \textwidth, such as

Code: Select all

\noindent\makebox[\textwidth]{%
\begin{tikzpicture}...
...
\end{tikzpicture}}
This way it equally overlaps on both sides.

Stefan
LaTeX.org admin
Laurentius
Posts: 132
Joined: Wed Feb 11, 2009 11:38 pm

Re: tikz-qtree | Center wide Tree

Post by Laurentius »

Danke, Stefan!
Post Reply