From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Tangled Latex code gives error Date: Mon, 27 Apr 2015 07:58:56 -0400 Message-ID: References: <87iochkj9b.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5dbbe87eba4f0514b378c3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymhgh-0002fM-QJ for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 07:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ymhgg-0004FV-9Q for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 07:58:59 -0400 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:34792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ymhgf-0004Ev-Tm for emacs-orgmode@gnu.org; Mon, 27 Apr 2015 07:58:58 -0400 Received: by pdbqa5 with SMTP id qa5so126170129pdb.1 for ; Mon, 27 Apr 2015 04:58:56 -0700 (PDT) In-Reply-To: <87iochkj9b.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lawrence Bottorff , emacs-orgmode@gnu.org --047d7b5dbbe87eba4f0514b378c3 Content-Type: text/plain; charset=UTF-8 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 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 > --047d7b5dbbe87eba4f0514b378c3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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} =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\frac{G(\nu)}{= H(\nu)} e^{\frac{2 \pi i \nu x}{N}}\\
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0& \propto & \sum_{\nu} \frac{|F(\nu)|^2}{|N(\nu)|^2} = H(\nu) H^*(\nu)=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\f= rac{G(\nu)}{H(\nu)} e^{\frac{2 \pi i \nu x}{N}}\\
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0& \propto & \sum_{\nu} H^*(\nu) G(\nu) e= ^{\frac{2 \pi i \nu x}{N}}
\end{eqnarray*}
#+END_LaTeX<= /div>

will result in both the * Introduction blurb= as well as the stuff between the tatex "structural elements" bei= ng exported. With latex babel I can tangle and get only what I want. This i= s handy if I want to throw around a lot of chatter and extraneous stuff tha= t ultimately I won't want in my final document. We might call this &quo= t;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 adv= ise 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 Botto= rff wrote:
> I'm following the Latex howto of org-mode babel. Here's the sn= ippet from
> the howto I've got in a separate .org file (see bottom of howto pa= ge):

[...]

> My real confusion starts when I try to tangle the babel code blocks. T= he
> C-c C-v t command produces two separate files just fine, a .tex and .e= l,
> but then if I try to Run Latex on the .tex file just by itself it give= s an
> error. Here's what the org-mode tangle produces:

Why do you wish to tangle?=C2=A0 The LaTeX will definitely not work<= br> standalone as it is not complete.=C2=A0 You can export your document to LaT= eX
(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-gce4= e64

--047d7b5dbbe87eba4f0514b378c3--