From: Lawrence Bottorff <borgauf@gmail.com>
To: Lawrence Bottorff <borgauf@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Tangled Latex code gives error
Date: Mon, 27 Apr 2015 07:58:56 -0400 [thread overview]
Message-ID: <CAFAhFSXT9hUcExNVS-90XuTXJV2rbKUwqADf3xpquRVgXCVCWQ@mail.gmail.com> (raw)
In-Reply-To: <87iochkj9b.fsf@ucl.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 2024 bytes --]
I'm attracted to the tangle option because the normal latex export seems to
take everything in my .org file, e.g.,
* Introduction
LaTeX is a document markup language and a document preparation system
for the TeX typesetting program.
#+BEGIN_LaTeX
\begin{eqnarray*}
\hat{f}(x) & \propto & \sum_{\nu} \frac{|F(\nu)H(\nu)|^2}{|N(\nu)|^2}
\frac{G(\nu)}{H(\nu)} e^{\frac{2 \pi i \nu x}{N}}\\
& \propto & \sum_{\nu} \frac{|F(\nu)|^2}{|N(\nu)|^2} H(\nu)
H^*(\nu)
\frac{G(\nu)}{H(\nu)} e^{\frac{2 \pi i \nu x}{N}}\\
& \propto & \sum_{\nu} H^*(\nu) G(\nu) e^{\frac{2 \pi i \nu
x}{N}}
\end{eqnarray*}
#+END_LaTeX
will result in both the * Introduction blurb as well as the stuff between
the tatex "structural elements" being exported. With latex babel I can
tangle and get only what I want. This is handy if I want to throw around a
lot of chatter and extraneous stuff that ultimately I won't want in my
final document. We might call this "annotations a la orgmode." But, yes,
then I don't get the built-in orgmode latex support that comes with a
regular latex export. Please advise if I'm wrong on this understanding.
On Mon, Apr 27, 2015 at 5:33 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Sunday, 26 Apr 2015 at 19:20, Lawrence Bottorff wrote:
> > I'm following the Latex howto of org-mode babel. Here's the snippet from
> > the howto I've got in a separate .org file (see bottom of howto page):
>
> [...]
>
> > My real confusion starts when I try to tangle the babel code blocks. The
> > C-c C-v t command produces two separate files just fine, a .tex and .el,
> > but then if I try to Run Latex on the .tex file just by itself it gives
> an
> > error. Here's what the org-mode tangle produces:
>
> Why do you wish to tangle? The LaTeX will definitely not work
> standalone as it is not complete. You can export your document to LaTeX
> (C-c C-e l l) which is probably what you want?
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org
> release_8.3beta-1062-gce4e64
>
[-- Attachment #2: Type: text/html, Size: 2770 bytes --]
next prev parent reply other threads:[~2015-04-27 11:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-26 23:20 Tangled Latex code gives error Lawrence Bottorff
2015-04-27 1:45 ` Lawrence Bottorff
2015-04-27 8:28 ` Andreas Leha
2015-04-27 9:33 ` Eric S Fraga
2015-04-27 11:58 ` Lawrence Bottorff [this message]
2015-04-28 7:33 ` e.fraga
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFAhFSXT9hUcExNVS-90XuTXJV2rbKUwqADf3xpquRVgXCVCWQ@mail.gmail.com \
--to=borgauf@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).