From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: exporting # to latex? Date: Mon, 12 Dec 2016 08:57:48 +0000 Message-ID: <871sxdsewj.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGMQq-0004If-Gw for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 03:58:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGMQn-0006Kw-GL for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 03:58:00 -0500 Received: from avasout04.plus.net ([212.159.14.19]:60715) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGMQn-0006KA-AX for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 03:57:57 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode-email --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 - =2D-8<---------------cut here---------------start------------->8--- Chapter 9. ! Undefined control sequence. \lstset=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 l.1749 \lstset {language=3Dorg,label=3D ,caption=3D ,captionpos=3Db,numbers= =3Dnone} ? x =2D-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. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.5.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYTmaMAAoJEDaBgBkK+INbd4sQAKfGT5gGGo+lx8z+EuMKy5aw U31ZAnHjs20TPcYRjym4+vBzwpa4YpoPTw/j9s4Dj6lZ9SOhzK/fRoDd4gDZWYfX pSy569MbkeW++Ok34ccrn99KCT3az93IYSkFHk+sib6TrDpBbTZf7yxy8mX36Zxv K+GHTTxXmOl81vR6NL94j11L1RQe8Nzh7LOg6Bb2OTBVQElxjBfJO485v6Ge/y54 elitTZTHBJj6kcaQGSKWWUR90Iq05kbqnI6YJG54YYs3fmp6R9uw34+L4sYW4NLY kRDevbg7n8Nl9kqEnv1dSAQNO238p4KeN2cYRv6sLNCx1+cA4JY1i5me6rZpTg0G Z6jkHKiHqQW12lGN1odQ5CU3hN3CREq2RIXjykbJQfcHT8wSkizN2Oyf1OdUsZDA 6mY/cAMK02WhorY4SoR7H47o789g9dxtwebpd0FjoKoybCwwQrDYtyKPquD34yGP zhCHEwgeWjVOm5G1FOBM2a5BMnQkkLaJto15LFrxLZe+oJEUEbGNGNxCCM2zqMUu wOymh4bYBCAcY79a40r2n3L+wQTeYlk9Ic2RkvKCe3NsqKqvciD1PODxZlj+gd4B ca6Op6eQzCimVdINXP2Tj2Zb1SjoF+DL4FRv/BI9iS+EZGsWm8ZDa03iCjMS8gWH /LbhjVecZsC6QnxVVwPs =WC8Y -----END PGP SIGNATURE----- --=-=-=--