From: Steven Arntson <steven@stevenarntson.com>
To: emacs-orgmode@gnu.org
Subject: Re: latex markup in org?
Date: Sun, 01 Jun 2014 17:09:55 -0700 [thread overview]
Message-ID: <87mwdwkw8c.fsf@stevenarntson.com> (raw)
In-Reply-To: CAJ51ETpbU+fcgM86+07h2yQ5gL9AoN5a-jyX01MygO=57j0LXg@mail.gmail.com
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> Maybe you can include the sty file as a code block that will be
> tangled before export. You should put that block in a section tagged
> no-export. Depending on your setup, you may need to make a code block
> to build your latex file and/or pdf to make sure the tangling happens.
>
> at the top keep this
> #+LATEX_HEADER: \usepackage{filestyle}
>
> and in the last section do this
> * build :noexport:
>
> #+begin_src text :tangle filestyle.sty
> latex code for style
> #+end_src
>
> #+begin_src emacs-lisp
> (org-babel-tangle)
> (save-buffer)
> (org-latex-export-to-pdf)
> #+end_src
>
> and finally put your cursor in the last block, and type C-c C-c. that
> should do what you want.
>
> John
>
> -----------------------------------
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> http://kitchingroup.cheme.cmu.edu
>
> On Sun, Jun 1, 2014 at 2:57 AM, Steven Arntson
> <steven@stevenarntson.com> wrote:
>
> I've been learning to export from org to latex (to pdf), and have
> had
> great success. There's a simplification to the process I'd like to
> make,
> though, if it's possible.
>
> Right now I use files: file.org and filestyle.sty. The .sty gives
> the latex-specific instruction, and I point to it from file.org
> with a
> line of #+LATEX_HEADER: \usepackage{filestyle}. This works great,
> but
> I'd love to have just one file, not two, to keep things simple.
>
> So I tried putting the contents of filestyle.sty near the top of
> file.org
> inside of #+BEGIN_latex and #+END_latex, but it doesn't quite
> work. It
> incompletely works, which is perplexing...
>
> I'd appreciate any ideas about this--can it be done?
>
> Thank you!
> Steven
>
>
Thanks for this--great idea. I'll give it a try.
-steven
prev parent reply other threads:[~2014-06-02 0:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-01 6:57 latex markup in org? Steven Arntson
2014-06-01 7:03 ` Omid
2014-06-01 7:09 ` Glyn Millington
2014-06-01 19:26 ` John Kitchin
2014-06-02 0:09 ` Steven Arntson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwdwkw8c.fsf@stevenarntson.com \
--to=steven@stevenarntson.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.