From: Sharon Kimble <boudiccas@skimble.plus.com>
To: "Charles C. Berry" <ccberry@ucsd.edu>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: exporting # to latex?
Date: Tue, 13 Dec 2016 09:33:42 +0000 [thread overview]
Message-ID: <87inqofa15.fsf@skimble.plus.com> (raw)
In-Reply-To: <alpine.OSX.2.20.1612120832260.771@charles-berrys-macbook.local> (Charles C. Berry's message of "Mon, 12 Dec 2016 08:35:55 -0800")
[-- Attachment #1: Type: text/plain, Size: 1524 bytes --]
"Charles C. Berry" <ccberry@ucsd.edu> writes:
> 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?
>
Thanks for this Charles.
> --8<---------------cut here---------------start------------->8---
>
> #+BEGIN_EXAMPLE
> ## abc
> ## def
> #+END_EXAMPLE
>
> #+BEGIN_EXPORT latex
> ## abc
> ## def
> #+END_EXPORT
>
> --8<---------------cut here---------------end--------------->8---
>
And #+BEGIN_EXAMPLE & #+END_EXAMPLE works in this context, thanks for this.
Thanks
Sharon.
>
> 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
>
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.5.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
prev parent reply other threads:[~2016-12-13 9:34 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
2016-12-13 9:33 ` Sharon Kimble [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=87inqofa15.fsf@skimble.plus.com \
--to=boudiccas@skimble.plus.com \
--cc=ccberry@ucsd.edu \
--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.