[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] exporting # to latex?
From: |
Sharon Kimble |
Subject: |
Re: [O] exporting # to latex? |
Date: |
Tue, 13 Dec 2016 09:33:42 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
"Charles C. Berry" <address@hidden> 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
signature.asc
Description: PGP signature