"Charles C. Berry" <[email protected]> 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
