From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Remaining document problems Date: Wed, 12 Oct 2016 11:39:29 -0400 Message-ID: <87vawxy3ta.fsf@gmail.com> References: <1476284126.2405843.753686713.71418D96@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buLdf-00073v-5m for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 11:40:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buLdb-0001zD-19 for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 11:40:14 -0400 Received: from [195.159.176.226] (port=42314 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buLda-0001vS-QO for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 11:40:10 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1buLdJ-0000Yj-0f for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 17:39:53 +0200 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@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Peter Davis 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