emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exporting # to latex?
@ 2016-12-12  8:57 Sharon Kimble
  2016-12-12 16:35 ` Charles C. Berry
  0 siblings, 1 reply; 3+ messages in thread
From: Sharon Kimble @ 2016-12-12  8:57 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]


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?

I've tried putting a comma in front of each separate #, which does work,
but gives a very untidy export to latex. I've also tried putting
'#+begin_src org' before the block of text and #, and '#+end_src' after
it, but when I build the pdf after exporting it to latex I get this
error report -

--8<---------------cut here---------------start------------->8---
Chapter 9.
! Undefined control sequence.
<recently read> \lstset 
                        
l.1749 \lstset
              {language=org,label= ,caption= ,captionpos=b,numbers=none}
? x
--8<---------------cut here---------------end--------------->8---

Where it just halts and is unable to proceed without correcting it,
which I can't do, so I have to say 'x' to break out of it.

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?

Thanks
Sharon.
-- 
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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-13  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).