From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tyler Smith Subject: Re: exporting inline source code with listings broken by color commands Date: Mon, 24 Jul 2017 09:12:23 -0400 Message-ID: <87iniit1vs.fsf@onottra672626p> References: <1500396739.4076295.1044859264.154665A7@webmail.messagingengine.com> <87wp6zqj1g.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZd9z-0001VX-9K for emacs-orgmode@gnu.org; Mon, 24 Jul 2017 09:12:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZd9u-0001mu-7w for emacs-orgmode@gnu.org; Mon, 24 Jul 2017 09:12:31 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47105) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dZd9t-0001kV-Oe for emacs-orgmode@gnu.org; Mon, 24 Jul 2017 09:12:26 -0400 In-reply-to: <87wp6zqj1g.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Emacs Org-Mode Help Nicolas Goaziou writes: > Hello, > > Tyler Smith writes: > >> (setq org-latex-listings t >> org-latex-listings-options >> '(("backgroundcolor" "\\color[gray]{0.95}") > > This is incorrect. Per "listings" manual, a commend with an optional > argument needs to be included within curly braces: > > ("backgroundcolor" "{\\color[gray]{0.95}}") Aha! That was my mistake. The fact that that syntax worked for lstlistings, or at least appeared to be less obviously broken, and not in lstinline confused me. >> >> What I expect to happen is that the last line is rendered as "Inline >> code: 2". > > This is not going to happen. Since you set `org-export-babel-evaluate' > to nil, you have a somewhat WYSIWYG behaviour; the "1 + 1" is not going > to disapper. Echoing the source code wasn't my concern here; rather it was the display of several lines of broken LaTeX code. The correction above fixes this, so now I can tweak the evaluation and export settings with a reasonable chance of success. Thanks for your help! Tyler