From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: exporting # to latex? Date: Mon, 12 Dec 2016 08:35:55 -0800 Message-ID: References: <871sxdsewj.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGTaB-0005ZY-BJ for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 11:36:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGTa5-0005Kh-CD for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 11:36:04 -0500 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:6271) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGTa4-0005HE-Vn for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 11:36:01 -0500 In-Reply-To: <871sxdsewj.fsf@skimble.plus.com> 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: Sharon Kimble Cc: org-mode-email 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