From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Oddity in LaTeX export? Date: Fri, 1 Jan 2010 11:34:56 +0100 Message-ID: <75A0700F-0DE4-46CC-B930-788C777FE5AE@gmail.com> References: <4B24803F.7090402@comcast.net> <29794.1260689707@gamaville.dokosmarshall.org> <4B250DD1.6050203@comcast.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQeqX-0000k2-Dd for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 05:35:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQeqS-0000gD-Ex for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 05:35:04 -0500 Received: from [199.232.76.173] (port=59179 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQeqS-0000g6-3N for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 05:35:00 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:47363) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQeqR-0000fT-OX for emacs-orgmode@gnu.org; Fri, 01 Jan 2010 05:34:59 -0500 Received: by ewy24 with SMTP id 24so15743595ewy.26 for ; Fri, 01 Jan 2010 02:34:58 -0800 (PST) In-Reply-To: <4B250DD1.6050203@comcast.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mark Elston Cc: org-mode emacs-orgmode Hi, Is this already fixed, or still an open issue? Thanks. - Carsten On Dec 13, 2009, at 4:52 PM, Mark Elston wrote: > Nick Dokos wrote: >> Mark Elston wrote: >>> I have a standard format I like to use in creating some class notes >>> in latex. I use memoir and have a boilerplate that only differs >>> in the title from notes to notes. I have decided to try to manage >>> my documentation for my notes in org to see if it is easier to do. >>> Mostly (so far) it is a pretty good match. >>> >>> However, I have run into a snag for exporting the notes to latex. >>> I tried using the #+TITLE: directive but got page numbers (in roman) >>> on the first couple of pages. This looked ugly. >> Can you post the tex file that is produced with the TITLE >> directive? I >> don't understand why/how roman page numbers are produced (but I don't >> know memoir well). > > Actually, part of the boilerplate includes a \pagenumbering{roman} > *after* the titlingpage environment. This is probably what caused it. > After all my remaining boilerplate (including a Preface section) I > insert a \pagenumbering{arabic} and this restarts the page numbers > from 1. > >>> So I set the#+TITLE: directive to be empty and added to the # >>> +TEXT: block >>> the following: >>> >>> #+TEXT: \title{ABC Class Notes} >>> #+TEXT: \begin{titlingpage} >>> #+TEXT: \maketitle >>> #+TEXT: \end{titlingpage} >>> >>> This almost works. The problem is the first of these lines gets >>> exported with the closing '}' escaped. In other words it comes >>> out as: >>> >>> \title{ABC Class Notes\} >>> >>> I am not sure why this is or what to do about it. >> This is probably a bug - Carsten has fixed a number of instances >> of such escaped braces I believe. > > Should I submit a bug report? As I was working with this another > piece of boilerplate I had (and removed) was: > > #+TEXT: \shorttableofcontents{Sessions}{0} > > which resulted in: > > \shorttableofcontents{Sessions}{0\} > > I don't have to have the short table of contents so I removed it > but it is another such escaped backslash. > >>> BTW, I had to set the TITLE directive to empty since just having it >>> resulted in an automatic \maketitle export which was not surrounded >>> by the titlingpage environment. I really wanted that titlingpage >>> environment and I couldn't think of another way of handling it. >>> >> You can perhaps redefine org-export-latex-title-command: >> (setq org-export-latex-title-command "\\begin{titlingpage}\n\ >> \maketitle\n\\end{titlingpage}") >> and try using the TITLE directive again. > > Can I set this on a case-by-case basis? Not all my documents use > memoir. I think the titlingpage environment is memoir-specific. > > Mark > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten