From: Tyler Smith <tyler@plantarum.ca>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Emacs Org-Mode Help <emacs-orgmode@gnu.org>
Subject: Re: exporting inline source code with listings broken by color commands
Date: Mon, 24 Jul 2017 09:12:23 -0400 [thread overview]
Message-ID: <87iniit1vs.fsf@onottra672626p> (raw)
In-Reply-To: <87wp6zqj1g.fsf@nicolasgoaziou.fr>
Nicolas Goaziou writes:
> Hello,
>
> Tyler Smith <tyler@plantarum.ca> 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
prev parent reply other threads:[~2017-07-24 13:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 16:52 exporting inline source code with listings broken by color commands Tyler Smith
2017-07-23 15:17 ` Nicolas Goaziou
2017-07-24 13:12 ` Tyler Smith [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iniit1vs.fsf@onottra672626p \
--to=tyler@plantarum.ca \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.