emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] exporting # to latex?


From: Charles C. Berry
Subject: Re: [O] exporting # to latex?
Date: Mon, 12 Dec 2016 08:35:55 -0800
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]