emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Re: Verbatim inverted commas?
Date: Wed, 15 Apr 2015 14:59:12 +0200	[thread overview]
Message-ID: <878udt35un.fsf@hornfels.zedat.fu-berlin.de> (raw)
In-Reply-To: 87lhhtd26f.fsf@gmx.us

Rasmus <rasmus@gmx.us> writes:

> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>
>> Rasmus <rasmus@gmx.us> writes:
>>
>>> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>>>
>>>> Hi,
>>>>
>>>> I am writing a beamer presentation and would like to have the following
>>>> exported in a monospaced font:
>>>>
>>>>   sinfo -elo "%30N %.5D %9P %11T %.6m %20E"
>>>>
>>>> However, if I do
>>>>
>>>>   =sinfo -elo "%30N %.5D %9P %11T %.6m %20E"=
>>>>
>>>> the second pair of inverted commas causes the markup to fail
>>>> and the entire string, equals signs and all, is exported.
>>>>
>>>> Is there some way I can escape the inverted commas to get this to work?
>>>
>>> If inline use:
>>>
>>>    ~sinfo -elo "%30N %.5D %9P %11T %.6m %20E"​~
>>>
>>> Note the zero width space.  It should work with xelatex.  Otherwise remove
>>> it with a filter.
>>>
>>> If it's in its own line you could use
>>>
>>> #+BEGIN_EXAMPLE
>>> sinfo -elo "%30N %.5D %9P %11T %.6m %20E"
>>> #+END_EXAMPLE
>>>
>>> Hope it helps,
>>> Rasmus
>>
>> I'm actually using it as a heading:
>>
>> **** =sinfo -elo "%30N %.5D %9P %11T %.6m %20E"=
>>
>> However, I've already tried using ~, but this doesn't work either.
>
> This works for me if using xelatex:
>
> * =sinfo -elo "%30N %.5D %9P %11T %.6m %20E"​=
>
> —Rasmus

I tried both adding the following to my org file:

,-------------------------------------------------------------------------------------
| #+BEGIN_SRC emacs-lisp :exports results :results silent
|   (setq org-latex-pdf-process
|         '("xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
| #+END_SRC
`-------------------------------------------------------------------------------------

and running xelatex directly in the shell on the tex file, but neither
worked for me.

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email loris.bennett@fu-berlin.de

  reply	other threads:[~2015-04-15 12:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15  8:53 Verbatim inverted commas? Loris Bennett
2015-04-15  9:28 ` Rasmus
2015-04-15 11:27   ` Andreas Leha
2015-04-15 12:00     ` Loris Bennett
2015-04-15 11:41   ` Loris Bennett
2015-04-15 12:08     ` Rasmus
2015-04-15 12:59       ` Loris Bennett [this message]
2015-04-16 14:11         ` Rasmus
2015-04-16 15:26           ` Loris Bennett

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=878udt35un.fsf@hornfels.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --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).