From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: unnumbered subsections in latex export Date: Wed, 06 Apr 2011 22:19:45 +0200 Message-ID: <8062qrxhcu.fsf@somewhere.org> References: <20110322051038.21655c80@kuru.homelinux.net> <80d3lj9wj6.fsf@somewhere.org> <20110322053134.669127e9@kuru.homelinux.net> <8999.1300804510@alphaville.dokosmarshall.org> <20110322160814.227fc53f@bhishma.homelinux.net> <27844.1300836065@alphaville.usa.hp.com> <8162r9hgxm.fsf@gmail.com> <87bp11dk4h.fsf@gnu.org> <3553.1300994702@alphaville.usa.hp.com> <80ipuut70z.fsf@somewhere.org> <87vcyrdxkh.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Matt, Matt Lundin wrote: > S=C3=A9bastien Vauban writes: >> >> When discussing exporters and features, two things that come up to my mi= nd >> 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=20 > ((eq format 'latex) > (format "\\acro{%s}{%s}" path desc)) > ((eq format 'html) > (format "%s" 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... > > DNS > > 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 =3D 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 --=20 S=C3=A9bastien Vauban