emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Babel] Exporting tangled file path
@ 2013-10-18 14:47 aditya siram
  2013-10-18 16:44 ` Eric Schulte
  2013-10-18 17:00 ` Marcin Borkowski
  0 siblings, 2 replies; 5+ messages in thread
From: aditya siram @ 2013-10-18 14:47 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

Hi all,
Currently when I export a literate program I can see the chunks but not
where they end up. It would be really useful if the chunks had a footnote
or something that linked to the file where they were tangled. Is there a
header argument that does that?

Thanks!
-deech

[-- Attachment #2: Type: text/html, Size: 328 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Babel] Exporting tangled file path
  2013-10-18 14:47 [Babel] Exporting tangled file path aditya siram
@ 2013-10-18 16:44 ` Eric Schulte
  2013-10-18 16:54   ` aditya siram
  2013-10-18 17:00 ` Marcin Borkowski
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Schulte @ 2013-10-18 16:44 UTC (permalink / raw)
  To: aditya siram; +Cc: emacs-orgmode

aditya siram <aditya.siram@gmail.com> writes:

> Hi all,
> Currently when I export a literate program I can see the chunks but not
> where they end up. It would be really useful if the chunks had a footnote
> or something that linked to the file where they were tangled. Is there a
> header argument that does that?
>
> Thanks!
> -deech

Try "C-c C-v" which runs the command org-babel-view-src-block-info on a
code block.  It will show you if the code block has a specified tangle
name.  If the value of tangle is "yes" then the name of the Org-mode
file will be used.

Best,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Babel] Exporting tangled file path
  2013-10-18 16:44 ` Eric Schulte
@ 2013-10-18 16:54   ` aditya siram
  2013-10-18 17:44     ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: aditya siram @ 2013-10-18 16:54 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]

Thanks, but I was hoping there was some way of including that in the
exported HTML/PDF etc. That way someone looking at the documentation can
find their way back to the source file. As it stands (at least with the
HTML exporter) there's no way to know where a chunk of code ends up.
-deech


On Fri, Oct 18, 2013 at 11:44 AM, Eric Schulte <schulte.eric@gmail.com>wrote:

> aditya siram <aditya.siram@gmail.com> writes:
>
> > Hi all,
> > Currently when I export a literate program I can see the chunks but not
> > where they end up. It would be really useful if the chunks had a footnote
> > or something that linked to the file where they were tangled. Is there a
> > header argument that does that?
> >
> > Thanks!
> > -deech
>
> Try "C-c C-v" which runs the command org-babel-view-src-block-info on a
> code block.  It will show you if the code block has a specified tangle
> name.  If the value of tangle is "yes" then the name of the Org-mode
> file will be used.
>
> Best,
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>

[-- Attachment #2: Type: text/html, Size: 1701 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Babel] Exporting tangled file path
  2013-10-18 14:47 [Babel] Exporting tangled file path aditya siram
  2013-10-18 16:44 ` Eric Schulte
@ 2013-10-18 17:00 ` Marcin Borkowski
  1 sibling, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2013-10-18 17:00 UTC (permalink / raw)
  To: emacs-orgmode

Dnia 2013-10-18, o godz. 09:47:47
aditya siram <aditya.siram@gmail.com> napisał(a):

> Hi all,
> Currently when I export a literate program I can see the chunks but
> not where they end up. It would be really useful if the chunks had a
> footnote or something that linked to the file where they were
> tangled. Is there a header argument that does that?
> 
> Thanks!
> -deech

Would this help (in case of LaTeX, of course)?

http://www.ctan.org/pkg/embedfile

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Babel] Exporting tangled file path
  2013-10-18 16:54   ` aditya siram
@ 2013-10-18 17:44     ` Eric Schulte
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Schulte @ 2013-10-18 17:44 UTC (permalink / raw)
  To: aditya siram; +Cc: emacs-orgmode

aditya siram <aditya.siram@gmail.com> writes:

> Thanks, but I was hoping there was some way of including that in the
> exported HTML/PDF etc. That way someone looking at the documentation can
> find their way back to the source file. As it stands (at least with the
> HTML exporter) there's no way to know where a chunk of code ends up.
> -deech
>

This could be done using a custom export filter.  See the manual and the
org-export-filter-src-block-functions variable for more information.
There was recently on discussion on how to add some very nice features
to latex export using this hook.

Best,

>
>
> On Fri, Oct 18, 2013 at 11:44 AM, Eric Schulte <schulte.eric@gmail.com>wrote:
>
>> aditya siram <aditya.siram@gmail.com> writes:
>>
>> > Hi all,
>> > Currently when I export a literate program I can see the chunks but not
>> > where they end up. It would be really useful if the chunks had a footnote
>> > or something that linked to the file where they were tangled. Is there a
>> > header argument that does that?
>> >
>> > Thanks!
>> > -deech
>>
>> Try "C-c C-v" which runs the command org-babel-view-src-block-info on a
>> code block.  It will show you if the code block has a specified tangle
>> name.  If the value of tangle is "yes" then the name of the Org-mode
>> file will be used.
>>
>> Best,
>>
>> --
>> Eric Schulte
>> https://cs.unm.edu/~eschulte
>> PGP: 0x614CA05D
>>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-18 17:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-18 14:47 [Babel] Exporting tangled file path aditya siram
2013-10-18 16:44 ` Eric Schulte
2013-10-18 16:54   ` aditya siram
2013-10-18 17:44     ` Eric Schulte
2013-10-18 17:00 ` Marcin Borkowski

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).