* tangling files on export not working properly
@ 2016-11-27 17:27 mcg
2016-12-10 12:54 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: mcg @ 2016-11-27 17:27 UTC (permalink / raw)
To: emacs-orgmode
Hello,
When exporting my document to latex I want org-mode to tangle a few code
blocks.
#+NAME: tangle_files
#+BEGIN_SRC emacs-lisp :exports results :eval query-export
(org-babel-tangle-file "~/thesis/chapter/NH.org")
#+END_SRC
When I run the code block manually it works fine
*Messages*: "Tangled 2 code blocks from NH.org"
However, even though the is run on export, nothing gets tangled:
"Tangled 0 code blocks from 04.NH.org"
Is there any explanation for this? Anything I'm overlooking?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: tangling files on export not working properly
2016-11-27 17:27 tangling files on export not working properly mcg
@ 2016-12-10 12:54 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-12-10 12:54 UTC (permalink / raw)
To: mcg; +Cc: emacs-orgmode
Hello,
mcg <giepen.m@googlemail.com> writes:
> Hello,
>
> When exporting my document to latex I want org-mode to tangle a few code
> blocks.
>
> #+NAME: tangle_files
> #+BEGIN_SRC emacs-lisp :exports results :eval query-export
>
> (org-babel-tangle-file "~/thesis/chapter/NH.org")
>
> #+END_SRC
>
> When I run the code block manually it works fine
> *Messages*: "Tangled 2 code blocks from NH.org"
>
> However, even though the is run on export, nothing gets tangled:
> "Tangled 0 code blocks from 04.NH.org"
>
> Is there any explanation for this? Anything I'm overlooking?
Doesn't you need to add :tangle yes to the block header?
Actually, adding this correctly tangle the file upon exporting the
document.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-10 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-27 17:27 tangling files on export not working properly mcg
2016-12-10 12:54 ` Nicolas Goaziou
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).