emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: How to display babel src block language on exported PDF code block?
Date: Fri, 13 Apr 2018 08:33:36 +0800	[thread overview]
Message-ID: <b150d6dd-ec70-e634-ff18-888a038c0bad@gmail.com> (raw)
In-Reply-To: <CAJ51EToODCz13GOu2hzfw8i-tHzhs8WshLwr2b8BWjqNbF0eaA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2292 bytes --]

I recently switched email client from Thunderbird to 
mu4e+getmail+procmail. Found missed many my related messages because my 
wrong procmail rules. Missed this too. I found on Thunderbird again.


On 04/06/2018 11:32 AM, John Kitchin wrote:
> I have done soemthing like this before:
>
> ;; custom exporter
> (org-export-define-derived-backend 'my-latex 'latex
>   :translate-alist '((src-block . my-src-block)))
>
> (org-export-to-file 'my-latex "manuscript.tex" nil nil nil nil nil)
> (ox-manuscript-latex-pdf-process "manuscript.tex")

Is it possible to not manually export file, I want it is integrated into 
Org-mode [C-c C-e l] seamlessly. Do I have to inherit `'latex` backend 
and create a new variant `'my-latex' backend? then export manually? 
Maybe use some kind of modification of default list values to replace or 
append?
What do you think?

>
> John
>
> -----------------------------------
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>
> On Thu, Apr 5, 2018 at 7:01 PM, stardiviner <numbchild@gmail.com 
> <mailto:numbchild@gmail.com>> wrote:
>
>     -----BEGIN PGP SIGNED MESSAGE-----
>     Hash: SHA256
>
>     By default org-mode export to PDF file does not have language
>     indicator on code block.
>     How to setup to add a language string on exported PDF code block
>     like this HTML https://stardiviner.github.io/ ?
>     - --
>     [ stardiviner ] don't need to convince with trends.
>            Blog: https://stardiviner.github.io/
>            IRC(freenode): stardiviner
>            GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
>
>     -----BEGIN PGP SIGNATURE-----
>
>     iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAlrG1RIACgkQG13xyVro
>     msP0UQf/aPrlTV1ZreOrTmKuqo9rA28u/vtX266EtmOFOwB/y50pazkT5YdFLHKW
>     HUGyFFrWxBtTTCA9KW6/OJ49AB6kXoHSdj98jyCkRroroaT9mqtWdY9Xi8DRogqA
>     SCWOjjybOSEGlWsmu1gwXs0yNgqQijJR03JbMZoTcuDFctdFSk4XnnebfLiN20Ix
>     56fdVBMRotTFv6CCcvYZncyCp1POJQ6JtlwP3GDQufrgPy2uxZJGHUzPx9BUj4Bg
>     TDERPlDVjSZckc6uP6tIhzGm1PqklG34E770r3By66yeLEMaW1B6QX3IPrJ4oh7w
>     yhfty2UfsLQfiKyykqnt6+0SHM9IHg==
>     =cLnk
>     -----END PGP SIGNATURE-----
>
>


[-- Attachment #2: Type: text/html, Size: 4649 bytes --]

  reply	other threads:[~2018-04-13  0:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-06  2:01 How to display babel src block language on exported PDF code block? stardiviner
2018-04-06  3:32 ` John Kitchin
2018-04-13  0:33   ` stardiviner [this message]
2018-04-13 15:20     ` John Kitchin

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 \
    --in-reply-to=b150d6dd-ec70-e634-ff18-888a038c0bad@gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).