From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [proposal] better documentation around syntax highlighting Org-Mode code blocks when exporting to LaTeX Date: Tue, 17 Mar 2015 16:02:47 +0100 Message-ID: <87y4mvzmy0.fsf@nicolasgoaziou.fr> References: <20150317145008.GB14053@xw> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXtKf-0006XP-Km for emacs-orgmode@gnu.org; Tue, 17 Mar 2015 11:23:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXtKb-0000UK-KS for emacs-orgmode@gnu.org; Tue, 17 Mar 2015 11:23:01 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:39430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXtKb-0000UC-Ey for emacs-orgmode@gnu.org; Tue, 17 Mar 2015 11:22:57 -0400 In-Reply-To: <20150317145008.GB14053@xw> (Randomcoder's message of "Tue, 17 Mar 2015 16:50:08 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Randomcoder Cc: emacs-orgmode@gnu.org Hello, Randomcoder writes: > While writing technical documents, as a programmer and an Org-Mode user, > for me it's important to have ways to syntax highlight code blocks when > exporting them to LaTeX. > > While I am aware of the customizations that need to be done > to Org-Mode's configuration in order to get that to work, in > particular customizing these variables(see [1] for details): > > * org-latex-listings > * org-latex-custom-lang-environments > * org-latex-minted-options Did you read `org-latex-listings' docstring? If so, what do you think is missing or not clear enough? > and having tried them, I got this working for one document, but it > really felt like a lot of trial-and-error and a lot of room for error > on my side as a user. > > Although this is Org-Mode and it is supposed to be very customizable > (like Emacs is), I still believe the documentation and the implementation > can be improved on this. What do you suggest, concretely? > I think there's even reason to believe that this should be working out > of the box. I think the default value is right. Any other value requires the user additional steps (requiring "listings" package or even adding pygments as a dependency) Regards, -- Nicolas Goaziou