From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [PATCH] ox-koma-letter.el: Add support for section Date: Mon, 04 Jan 2016 20:41:02 +0100 Message-ID: <874mett9o1.fsf@gmx.us> References: <87lh88zzzzz01o@me.localhost.invalid> <87y4c7wwrj.fsf@gmx.us> <87y4c5zzzzbpw5@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGB0F-0003CJ-Ph for emacs-orgmode@gnu.org; Mon, 04 Jan 2016 14:41:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGB0A-0007PP-LM for emacs-orgmode@gnu.org; Mon, 04 Jan 2016 14:41:15 -0500 Received: from plane.gmane.org ([80.91.229.3]:55068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGB0A-0007Oi-EL for emacs-orgmode@gnu.org; Mon, 04 Jan 2016 14:41:10 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGB08-00073L-Rh for emacs-orgmode@gnu.org; Mon, 04 Jan 2016 20:41:08 +0100 Received: from 179.43.151.98 ([179.43.151.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2016 20:41:08 +0100 Received: from rasmus by 179.43.151.98 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2016 20:41:08 +0100 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: emacs-orgmode@gnu.org Hi Daniele, Daniele Pizzolli writes: > thanks for you comment. I try to explain my point of view better. Now > the export to letter silently discard the headings text in the exported > tex. This is quite bad, even if documented. As a user I want to change > quite easily the export backend (text, latex, beamer, ...) while > retaining most of my work. Every backend as it's own supported > features, but discarding the input provided by the user does not provide > the best user experience to me. That's a fair point. Nonetheless, > By the way this patch does not change the final output, if there is no > section.lco available. So there should be no regression and only > improvements. > I really prefer something that instead of discarding the user input > rewrite it to fit the backend features (if there is no heading/section > support, use something like the start of paragraph, and support section > only if enabled by the user) but this is beyond my coding abilities in > elisp, so I sent the minimal working patch with the minimal impact on > existing behaviour. Whether sections.lco is available is nontrivial. As I remember the patch, it also imposed level two headings to be sections. If you really think this is the right approach, perhaps the "H:" option could be used to set the special heading level... We’d need this since you can specify the opening with a heading. >>> +Add [sections] to LATEX_CLASS_OPTIONS with: >>> + >>> +#+LATEX_CLASS_OPTIONS: [sections] >>> + >>> +If section.lco is unavaliable the section are exported in the tex >>> +source but not rendered in the final pdf. >> >> Whether section.lco is available or not is a complicated question. You >> first need to figure out what is the tex distribution (what if it’s not in >> PATH) and whether section.lco is available via something like kpsewhich. >> Note that e.g. TL also looks in the current path. > > I use org to touch as less latex as possible, I just downloaded the > section.lco and put in the same directory of my org file and everything > was working. A little before I used apt-file search section.lco but > since nothing was found I quickly reverted to the manual download. I > wish that everything is packaged as distro package, but I can survive > some manual work. This is because sections.lco is not part of KOMA-Script (like titlepage¹). E.g. on my system with TL: $ kpsewhich sections.lco /home/rasmus/.texmf/tex/latex/koma-script/sections.lco kpsewhich/tex also looks in the current directory, which is why you can just place it in the same folder. Cheers, Rasmus Footnotes: ¹ http://www.komascript.de/titlepage -- Warning: Everything saved will be lost