Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-28 Thread John Hendy
Eric, Just retried and was able to get it to work. Perhaps someone should add this to the ob-doc-latex page? For reference, I tried each of the following: Works: 1) #+begin_src latex :headers \renewcommand{\rmdefault}{cmss} Doesn't work: 2) #+begin_src latex :headers '("\\renewcommand{\rmdefaul

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-28 Thread John Hendy
On Tue, Oct 26, 2010 at 6:01 PM, Eric Schulte wrote: > Hi, > > First my previously pasted :exports code will throw errors on > interactive evaluation (i.e. when not exporting), this alternative > should be more robust. > > :exports (if (and (boundp 'latexp) latexp) "code" "results") > > As for pl

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-26 Thread Eric Schulte
Hi, First my previously pasted :exports code will throw errors on interactive evaluation (i.e. when not exporting), this alternative should be more robust. :exports (if (and (boundp 'latexp) latexp) "code" "results") As for placing latex headers in a latex code block, I don't believe that is cu

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-26 Thread John Hendy
Maybe it would just be easier if someone attached a .org file that functions as you think would work well -- with both the document and the babel/TikZ export having the same sans-serif font. Perhaps then I could simply C-e p the document and C-c C-c the babel block myself to examine how it behaves?

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-26 Thread John Hendy
On Tue, Oct 26, 2010 at 3:17 AM, Eric S Fraga wrote: > On Mon, 25 Oct 2010 13:58:41 -0500, John Hendy wrote: > > > > [1 ] > > > > [2 ] > > On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte > wrote: > > > > Hi John, > > > > In the case you describe I would export the *code* of the tikz lat

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-26 Thread Eric S Fraga
On Mon, 25 Oct 2010 13:58:41 -0500, John Hendy wrote: > > [1 ] > > [2 ] > On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte wrote: > > Hi John, > > In the case you describe I would export the *code* of the tikz latex > block rather than the file resulting from evaluating the bloc

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-25 Thread Eric Schulte
Hi John, In the case you describe I would export the *code* of the tikz latex block rather than the file resulting from evaluating the block. This is possible by adding the following header argument to the code block which will evaluate the latex block when the export target is not latex and will

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-25 Thread John Hendy
On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte wrote: > Hi John, > > In the case you describe I would export the *code* of the tikz latex > block rather than the file resulting from evaluating the block. > > Code = raw LaTeX/TikZ code? If so, I don't really care about that. i just want the graphic.

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-25 Thread John Hendy
Followup question. I have an existing diagram I had already exported to PDF via LaTeX, taken a screenshot of, and used in a presentation. I tried the same diagram with the new method and am having issues with the font. The original org file is like this: *---( File_1.org -> embedded LaTeX )---* #+

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-23 Thread John Hendy
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, Oct 22, 2010 at 6:11 PM, Eric S Fraga wrote: > On Fri, 22 Oct 2010 16:36:10 -0500, John Hendy wrote: > > > T

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-22 Thread Eric S Fraga
On Fri, 22 Oct 2010 16:36:10 -0500, John Hendy 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 m

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-22 Thread John Hendy
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. Thanks for the help. John On Fri, Oct 22, 2010 at 4:25 PM, Eric Schulte wrote: > Hi Jo

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-22 Thread Eric Schulte
Hi John, I use blocks like the following to create standalone pdfs. #+begin_src latex :file stuff/epr-logo.pdf :border 1.75em :packages '(("" "tikz")) :exports none \usetikzlibrary{shapes,arrows,shadows,decorations,decorations.text} \tikzstyle{line} = [draw, ultra thick, -latex'] {\huge

Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-22 Thread Erik Iverson
John, Does http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.php#sec-4_2 help? There is a tikz example there. The :file argument may be all you're missing, and putting your code in a latex source block. Here is what I do when I have an R code block that generates LaTeX code. Ho

[Orgmode] TikZ to separate file (babel?) possible?

2010-10-22 Thread John Hendy
Hi, I've recently gotten into TikZ and love it. It is simply fantastic for creating neat diagrams and other thingies. One question... I created an org file with a flow chart in it and simply put my TikZ code in between #+begin_latex and #+end_latex. This is fine when the picture is in a document