emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Remaining document problems
Date: Wed, 12 Oct 2016 11:39:29 -0400	[thread overview]
Message-ID: <87vawxy3ta.fsf@gmail.com> (raw)
In-Reply-To: 1476284126.2405843.753686713.71418D96@webmail.messagingengine.com

Peter Davis <pfd@pfdstudio.com> writes:

> A. Source code listings
>
> 1) Source code blocks: Using
>
> #+BEGIN_SRC js
>
> works for HTML output, but not for LaTeX/PDF. It seems js is not
> understood by the listings package, and I have to use java.
>
> 2) Even with java, the output is pretty ugly. Any way to get some color
> in there?
>
>

It shouldn't take much to define a language environment for listings:

http://tex.stackexchange.com/questions/89574/language-option-supported-in-listings

Maybe that helps?

Alternatively, can you use minted instead of listings? It requires
some external packages and some changes in how the latex is processed
(basically adding --shell-escape to the pdflatex (or similar)
invocation(s)). C-h v org-latex-listings RET has the details.
But it does contain support for javascript, IIRC.

-- 
Nick

  reply	other threads:[~2016-10-12 15:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-12 14:55 Remaining document problems Peter Davis
2016-10-12 15:39 ` Nick Dokos [this message]
2016-10-12 16:35   ` Peter Davis
     [not found]   ` <463a5687c70841b8a6603102739fbf02@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-10-13  8:08     ` Eric S Fraga
2016-10-13 12:46       ` Peter Davis
     [not found]       ` <1da24f56addb4163963006cdae9703cb@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-10-13 13:01         ` Eric S Fraga
2016-10-13 13:03         ` Eric S Fraga

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=87vawxy3ta.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).