From: "Kjell Magne Fauske" <kjel...@gmail.com>
Date: Thu, 19 Jun 2008 10:05:45 +0200
Local: Thurs, Jun 19 2008 4:05 am
Subject: Re: [dot2tex-users] how to fit image to page
Hi,
On Thu, Jun 19, 2008 at 9:18 AM, Vsevolod >I'm newbie with dot and I got a To avoid some typing, you can achieve the same writing: > simple question: how to fit resulting image into latex page width > automatically? Or how to scale it manually? > It looks like \begin{figure}[width=15cm] does not work. I tried > dot2tex -f tikz -t math --figonly --preproc --template Dots/ > dot2tex -ftiks -tmath --figonly --autosize --template Dots/dot_template.tex > dot_file.tex Sizing the resulting graph can be a bit tricky. Here are your alternatives: > And then I do something like this: > \begin{figure} - Alter the graph size using DOT attributes. I have to admit that I'm - Creating a standalone PDF of you graph and include it using > dot2tex -ftikz -tmath --autosize --crop --template Dots/dot_template.tex > dot_file.tex And then you can write: > pdflatex dot_file \includegraphics[width=\textwidth]{dot_file} - Scale the tikzpicture environment.The generated code is put inside a \begin{tikzpicture}[options] To scale the graph you can use the options: To add additional options to the tikzpicture environment you have two options: > dot2tex --graphstyle="scale=2,transform shape" ... 2. Use the special d2tgraphstyle attribute: digraph G{ } Hope this helps. For experimentation my dot2tex(i) latex package is useful. Then you can do everything within your latex document: % --- \begin{document} \begin{tikzpicture}[scale=2,transform shape] } \end{tikzpicture} \end{dot2tex} Hope this helps! Regards, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||