emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Niels Giesen <niels.giesen@gmail.com>
Cc: nicholas.dokos@hp.com,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Ken Williams <Ken.Williams@windlogics.com>
Subject: Re: More specific LaTeX output classes
Date: Fri, 02 Dec 2011 18:40:51 -0500	[thread overview]
Message-ID: <15989.1322869251@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Niels Giesen <niels.giesen@gmail.com> of "Fri, 02 Dec 2011 22:55:16 +0100." <87zkfaiqpn.fsf@gmail.com>

Niels Giesen <niels.giesen@gmail.com> wrote:

> Ken Williams <Ken.Williams@windlogics.com> writes:
> 
> 
> [...]
> 
> > Would it be possible for the export process to define various classes
> > that default to being exactly like 'verbatim', but could be
> > customized? After that, a next step might be to provide nice defaults
> > that do things like syntax-highlighting (through the 'minted' package,
> > perhaps), or at least add a visual marker distinguishing between input
> > & output.
> >
> > Or of course it's possible some of this is already implemented and I've missed it. =)
> 
> Yes it is:
> 
> #+begin_src emacs-lisp
>   (setq org-export-latex-listings 'minted)
>   (add-to-list 'org-export-latex-packages-alist '("" "minted")
> #+end_src
> 

NB: there's a closing paren missing in the add-to-list line.

> See also `org-export-latex-listings-langs' for a mapping of Emacs modes
> to languages known to pygmentize.
> 
> Also see
> 
> C-h v org-export-latex-listings RET
> 
> for more information (e.g. about the --shell-escape option you'll have
> to pass to the LaTeX process).
> 

Thanks for this (and the pointers that you - and others? - have
provided previously): it finally motivated me to try out minted.

One problem I ran into was that the version of minted.sty that I have
uses "which -s" to find pygmentize, ``which'' complains about -s and the
run fails. I ended up editing minted.sty to get rid of the -s and
everything works smoothly.

The version I have says

\ProvidesPackage{minted}[2010/01/27 v1.6 Yet another Pygments shim for LaTeX]

I checked CTAN and the most recent version is 1.7: that has excised the -s.

Nick

      reply	other threads:[~2011-12-02 23:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02 21:15 More specific LaTeX output classes Ken Williams
2011-12-02 21:55 ` Niels Giesen
2011-12-02 23:40   ` Nick Dokos [this message]

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=15989.1322869251@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=Ken.Williams@windlogics.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=niels.giesen@gmail.com \
    /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).