From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: unnumbered subsections in latex export Date: Wed, 06 Apr 2011 14:49:50 -0400 Message-ID: <87vcyrdxkh.fsf@fastmail.fm> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=47148 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7Xoc-0002z0-6s for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 14:50:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7Xne-00064q-Fr for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 14:49:55 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:48990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7Xne-00064D-Dv for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 14:49:54 -0400 In-Reply-To: <80ipuut70z.fsf@somewhere.org> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Mon, 04 Apr 2011 16:39:40 +0200") 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: Org Mode S=C3=A9bastien 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. > - 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. Best, Matt