From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Subject: Re: Worg not publishing Date: Mon, 22 Apr 2013 21:46:01 +0200 [thread overview] Message-ID: <email@example.com> (raw) In-Reply-To: <firstname.lastname@example.org> Hello Bastien, Achim, Bastien wrote: > Achim Gratz <Stromeko-i47jiTeKxPI@public.gmane.org> writes: >> Bastien writes: >>> Should be fixed now, thanks. >> >> Thanks. Now the Makefile examples are nicely fontified… Is there 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: ╭──── │ org-babel-exp-code-template is a variable defined in `ob-exp.el'. │ Its value is "#+BEGIN_SRC %lang%flags │ %body │ #+END_SRC" │ │ Documentation: │ Template used to export the body of code blocks. │ This template may be customized to include additional information │ such as the code block name, or the values of particular header │ arguments. The template is filled out using `org-fill-template', │ and the following %keys may be used. │ │ lang ------ the language of the code block │ name ------ the name of the code block │ body ------ the body of the code block │ flags ----- the flags passed to the code block │ │ In addition to the keys mentioned above, every header argument │ defined for the code block may be used as a key and will be │ replaced with its value. ╰──── 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 <DIV> for HTML, etc. Best regards, Seb -- Sebastien Vauban
next prev parent reply other threads:[~2013-04-22 19:46 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-04-22 18:11 Achim Gratz 2013-04-22 18:31 ` Bastien 2013-04-22 18:35 ` Achim Gratz 2013-04-22 18:53 ` Bastien 2013-04-22 19:01 ` Achim Gratz 2013-04-22 19:46 ` Sebastien Vauban [this message] 2013-04-25 14:20 ` Thorsten Jolitz 2013-04-25 17:11 ` Bastien
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \ --subject='Re: Worg not publishing' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this 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).