From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: LaTeX export > Avoid \newline command after timestampsX-Draft-From: ("nnimap+mc:INBOX.sncb") Date: Wed, 17 Mar 2010 15:35:38 +0100 Message-ID: References: <87ocin3yq6.fsf@mundaneum.com> 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 1NruLa-0003EM-9r for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 10:35:46 -0400 Received: from [140.186.70.92] (port=53455 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NruLX-0003Dh-E6 for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 10:35:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NruLV-0006Mf-PF for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 10:35:43 -0400 Received: from mail-ew0-f227.google.com ([209.85.219.227]:47888) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NruLV-0006MU-F7 for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 10:35:41 -0400 Received: by ewy27 with SMTP id 27so490509ewy.14 for ; Wed, 17 Mar 2010 07:35:40 -0700 (PDT) In-Reply-To: <87ocin3yq6.fsf@mundaneum.com> 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: Francesco Pizzolante Cc: mailing-list-org-mode Hi Francesco, thanks for this. The reason why I put this is is to make sure that text after that line will start in a new line, and now flow into the scheduled/deadline line. For example: *** DONE My Task :Be: SCHEDULED: <2010-03-01 Mon> DEADLINE: <2010-03-05 Fri> this should start a new line but does not with your patch Do you disagree that this is the right thing to do? Do you know a method to achieve the same result without generating extra white space? - Carsten On Mar 17, 2010, at 1:43 PM, Francesco Pizzolante wrote: > Hi, > > When exporting an Org buffer to latex, I can see that Org generates > an extra > \newline command just after exporting the timestamps to the heading. > > An example. > > This Org stuff: > --8<---------------cut here---------------start------------->8--- > *** DONE My Task :Be: > SCHEDULED: <2010-03-01 Mon> DEADLINE: <2010-03-05 Fri> > :LOGBOOK: > - State "STARTED" from "TODO" [2010-03-02 Tue 09:30] > - State "DONE" from "STARTED" [2010-03-02 Tue 10:00] > CLOCK: [2010-03-02 Tue 09:30]--[2010-03-02 Tue 10:00] => 0:30 > - PWA. > :END: > :PROPERTIES: > :Effort: 4:00 > :END: > --8<---------------cut here---------------end--------------->8--- > > Is exported to latex this way: > --8<---------------cut here---------------start------------->8--- > \subsubsection{\textbf{DONE} My Task \textbf{:Be:}} > \label{sec-2.2.2} > > \texttt{SCHEDULED:} \textit{2010-03-01 Mon} \texttt{DEADLINE:} > \textit{2010-03-05 Fri}\newline > --8<---------------cut here---------------end--------------->8--- > > At the end of the timestamps line, you can see the extra \newline > command. > > This \newline command should be removed as it adds extra vertical > space which > does not respect the document class definition used for the document. > > In order to do that, I made the following change to org-latex.el and > it works > for me, but I'm not sure my change is completely safe: > > --8<---------------cut here---------------start------------->8--- > index 03216a8..88bd8c3 100644 > --- a/lisp/org-latex.el > +++ b/lisp/org-latex.el > @@ -1511,7 +1511,7 @@ The conversion is made depending of STRING- > BEFORE and STRING-AFTER." > (beginning-of-line 1) > (unless (looking-at ".*\\\\newline[ \t]*$") > (end-of-line 1) > - (insert "\\newline"))))) > + )))) > > (defun org-export-latex-fixed-width (opt) > "When OPT is non-nil convert fixed-width sections to LaTeX." > --8<---------------cut here---------------end--------------->8--- > > Is this the right thing to do to avoid this extra \newline command? > > Thanks, > Francesco > > > _______________________________________________ > 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