#+latex_header: \usepackage{tikz} \usetikzlibrary{shapes,positioning,arrows}
#+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry}
#+latex_header: \usepackage{lmodern}
#+latex_header: \renewcommand{\rmdefault}{cmss}
* Section
#+begin_latex
+++ TikZ code is here +++
#+end_latex
---( End File_1.org )---
My file using this new method is like this:
---( File_2.org -> exports TikZ to separate PDF via babel/LaTeX )---
#+latex_header: \usepackage{tikz} \usetikzlibrary{shapes,positioning,arrows}
#+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry}
#+latex_header: \usepackage{lmodern}
#+latex_header: \renewcommand{\rmdefault}{cmss}
* Section
#+begin_src latex :file flow-chart.pdf :packages '(("" "tikz")) :border 1em
+++ TikZ code is here +++
#+end_src
---( End File_2.org )---
In my first file, the entire font is latin modern (sans-serif). Header, title, author, and all TikZ diagram text.
In the second, only the header is (if I export the whole thing), but not the text in my TikZ nodes. Why is the babel block ignoring the document font setting?
Thanks,
John
On Sat, Oct 23, 2010 at 12:58 PM, John Hendy
<address@hidden> wrote:
Thanks, Eric F. Got the preview package going and this is *exactly* what I would have been looking for.
Eric S: yes, ImageMagick will take care of the rest :)
Thanks all!
John
On Fri, 22 Oct 2010 16:36:10 -0500, John Hendy <
address@hidden> wrote:
> This is fantastic. Honestly, I had no idea that one could use LaTeX with
> babel! This is just perfect. I was googling around for "export tikz pgf jpg"
> and things like that with no luck. This will do perfectly.
For completeness (and the mailing list archive), if you need to do
this directly in latex, you will want to use the minimal document
class and the preview package. Check out examples on the tikz
examples web site [1]. The preview package is what babel uses.
Footnotes:
[1]
http://www.texample.net/tikz/examples/
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D