emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: exporting # to latex?
Date: Mon, 12 Dec 2016 08:57:48 +0000	[thread overview]
Message-ID: <871sxdsewj.fsf@skimble.plus.com> (raw)

[-- 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 --]

             reply	other threads:[~2016-12-12  8:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12  8:57 Sharon Kimble [this message]
2016-12-12 16:35 ` exporting # to latex? Charles C. Berry
2016-12-13  9:33   ` Sharon Kimble

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871sxdsewj.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --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 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).