From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: exporting # to latex?
Date: Mon, 12 Dec 2016 08:35:55 -0800 [thread overview]
Message-ID: <alpine.OSX.2.20.1612120832260.771@charles-berrys-macbook.local> (raw)
In-Reply-To: <871sxdsewj.fsf@skimble.plus.com>
On Mon, 12 Dec 2016, Sharon Kimble wrote:
>
> I'm trying to write an org-mode file that is being exported to latex,
> and then built into a pdf file, of the MPD online manual.
>
> I'm now trying to show the 'mpf.conf' file which is mostly with
> commented out lines starting with a hash (#). But that breaks the
> org-mode export, so how can I have it displayed and exported to latex
> please?
>
[deleted]
>
> So what I'm trying to get is a latex file which includes the .conf file
> and all of its # in the right place and show as # on their own. But how
> can I do it please?
>
One of these?
--8<---------------cut here---------------start------------->8---
#+BEGIN_EXAMPLE
## abc
## def
#+END_EXAMPLE
#+BEGIN_EXPORT latex
## abc
## def
#+END_EXPORT
--8<---------------cut here---------------end--------------->8---
Upon export to latex they yield:
--8<---------------cut here---------------start------------->8---
\begin{verbatim}
## abc
## def
\end{verbatim}
## abc
## def
--8<---------------cut here---------------end--------------->8---
HTH,
Chuck
next prev parent reply other threads:[~2016-12-12 16:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-12 8:57 exporting # to latex? Sharon Kimble
2016-12-12 16:35 ` Charles C. Berry [this message]
2016-12-13 9:33 ` Sharon Kimble
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=alpine.OSX.2.20.1612120832260.771@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=boudiccas@skimble.plus.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 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.