[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: unnumbered subsections in latex export
From: |
Sébastien Vauban |
Subject: |
[O] Re: unnumbered subsections in latex export |
Date: |
Wed, 06 Apr 2011 22:19:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) |
Hi Matt,
Matt Lundin wrote:
> Sébastien Vauban writes:
>>
>> When discussing exporters and features, two things that come up to my mind
>> as missing as a "general Org feature":
>>
>> - bibliography :: works for LaTeX[1], not for HTML export.
>
> Have you tried the contributed module org-exp-bibtex.el? It is not a
> self-contained org-mode module, in that it relies on bibtex2html and an
> external bibtex file, but it does enable bibliographical export to html.
Did not know about it. Will give it a try. Thanks.
>> - acronyms :: idem.
>
>> I want to be able to say, in my Org file, that DNS is an acronym, for
>> example. I'm thinking -- brainstorming! -- at a solution _such as_ adding
>> accolades around the acronyms:
>
>> This paper talks about {DNS} clients and {DNS} servers...
>
>> In LaTeX, this should have to be translated to:
>
>> This paper talks about \acro{DNS} clients and \acro{DNS} servers...
>
> One way to accommodate acronyms would be to create a new link type:
>
> (org-add-link-type
> "acro" nil
> (lambda (path desc format)
> (cond
> ((eq format 'latex)
> (format "\\acro{%s}{%s}" path desc))
> ((eq format 'html)
> (format "<acronym title=\"%s\">%s</acronym>" desc path)))))
>
> A link such as...
>
> [[acro:DNS][Domain Name System]]
>
> ...would then export to latex as...
>
> \acro{DNS}{Domain Name System}
>
> ...and to html as...
>
> <acronym title="Domain Name System">DNS</acronym>
>
> Having never used acronyms in LaTeX or html before, I have no idea
> whether the above syntax is correct. The point is simply to offer a
> proof of concept.
This is clearly interesting, and maybe part of the final solution. However,
one of the point is that we should be able to:
- define once that DNS = Domain Name System
- have all occurrences of DNS automagically pointing to its definition
- (optionnally) have the first occurrence of DNS automagically expanded.
(I guess that) the above does not meet this, and that's what made my spirit go
in the direction of pre-processing.
But maybe alternatives do exist to meet those "requirements".
Best regards,
Seb
--
Sébastien Vauban
- [O] Re: unnumbered subsections in latex export, (continued)
- [O] Re: unnumbered subsections in latex export, Achim Gratz, 2011/04/01
- [O] Re: unnumbered subsections in latex export, Sébastien Vauban, 2011/04/04
- Re: [O] Re: unnumbered subsections in latex export, Nick Dokos, 2011/04/04
- Re: [O] Re: unnumbered subsections in latex export, Aankhen, 2011/04/04
- [O] Re: unnumbered subsections in latex export, Sébastien Vauban, 2011/04/05
- Re: [O] Re: unnumbered subsections in latex export, Aankhen, 2011/04/05
- Re: [O] Re: unnumbered subsections in latex export, Eric S Fraga, 2011/04/05
- [O] New features for the exporters?, Sébastien Vauban, 2011/04/05
- Re: [O] Re: unnumbered subsections in latex export, Aankhen, 2011/04/05
[O] Re: unnumbered subsections in latex export, Matt Lundin, 2011/04/06
- [O] Re: unnumbered subsections in latex export,
Sébastien Vauban <=