From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Worg not publishing Date: Mon, 22 Apr 2013 21:46:01 +0200 Message-ID: <86fvyi73ie.fsf@somewhere.org> References: <878v4azb9l.fsf@Rainer.invalid> <87fvyipgbx.fsf@bzg.ath.cx> <87zjwqxvjr.fsf@Rainer.invalid> <87wqruo0rh.fsf@bzg.ath.cx> 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: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello Bastien, Achim, Bastien wrote: > Achim Gratz writes: >> Bastien writes: >>> Should be fixed now, thanks. >> >> Thanks. Now the Makefile examples are nicely fontified=E2=80=A6 Is ther= e an >> easy way to have the names of the source blocks added to the export as a >> caption or header? > > Mhh.. I don't think so. In theory, it is absolutely possible, via the following var: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 org-babel-exp-code-template is a variable defined in `ob-exp.el= '. =E2=94=82 Its value is "#+BEGIN_SRC %lang%flags =E2=94=82 %body =E2=94=82 #+END_SRC" =E2=94=82=20 =E2=94=82 Documentation: =E2=94=82 Template used to export the body of code blocks. =E2=94=82 This template may be customized to include additional informati= on =E2=94=82 such as the code block name, or the values of particular header =E2=94=82 arguments. The template is filled out using `org-fill-template= ', =E2=94=82 and the following %keys may be used. =E2=94=82=20 =E2=94=82 lang ------ the language of the code block =E2=94=82 name ------ the name of the code block =E2=94=82 body ------ the body of the code block =E2=94=82 flags ----- the flags passed to the code block =E2=94=82=20 =E2=94=82 In addition to the keys mentioned above, every header argument =E2=94=82 defined for the code block may be used as a key and will be =E2=94=82 replaced with its value. =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 However, I've never had nice enough results to make use of it. The problem = is that I would like to output the name in a certain face for both HTML and LaTeX, and that's not currently possible: here, the name is simply outputted as plain text, in all back-ends. Maybe we would need a customizable skeleton per back-end? So that one could add
for HTML, etc. Best regards, Seb --=20 Sebastien Vauban