From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: LaTeX export > Avoid \newline command after timestampsX-Draft-From: ("nnimap+mc:INBOX.sncb") Date: Thu, 18 Mar 2010 12:45:36 +0100 Message-ID: <87y6hpkg4f.wl%dmaus@ictsoc.de> References: <87ocin3yq6.fsf@mundaneum.com> <87fx3yg1mm.wl%dmaus@ictsoc.de> <87aau6t2ue.fsf@mundaneum.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1666783329==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsEAa-0003AQ-2Z for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 07:45:44 -0400 Received: from [140.186.70.92] (port=59406 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsEAY-00036r-Iq for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 07:45:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NsEAW-0001CJ-K3 for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 07:45:42 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:36180) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsEAW-0001C2-BH for emacs-orgmode@gnu.org; Thu, 18 Mar 2010 07:45:40 -0400 In-Reply-To: <87aau6t2ue.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 , Carsten Dominik --===============1666783329== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Thu_Mar_18_12:45:35_2010-1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Thu_Mar_18_12:45:35_2010-1 Content-Type: multipart/mixed; boundary="Multipart_Thu_Mar_18_12:45:35_2010-1" --Multipart_Thu_Mar_18_12:45:35_2010-1 Content-Type: text/plain; charset=US-ASCII Francesco Pizzolante wrote: >The problem with the actual implementation is that it forces a newline in all >cases (both if you have text in the heading or not) which does not respect the >document class formatting that you've chosen. Took me a while to realize the problem with current implementation: If you already have a blank line between scheduled/deadline line and the content the newline forces extra spacing between scheduled/deadline and the following paragraph. This cleary /is/ problem. Maybe we should catch these two cases (patch attached): ,---- | (unless (and (looking-at ".*\n[ \t]*\n") (looking-at ".*\\\\newline[ \t]*$")) `---- Insert \newline only if there is no paragraph separator. As far as I can see the LaTeX code is already rendered when `org-export-latex-keywords' is called so this should work out. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --Multipart_Thu_Mar_18_12:45:35_2010-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="fix-latex-newline.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLWxhdGV4LmVsIGIvbGlzcC9vcmctbGF0ZXguZWwKaW5kZXgg MWY2OTdkNS4uMzdjY2NlMyAxMDA2NDQKLS0tIGEvbGlzcC9vcmctbGF0ZXguZWwKKysrIGIvbGlz cC9vcmctbGF0ZXguZWwKQEAgLTE1MTcsNyArMTUxNyw3IEBAIFRoZSBjb252ZXJzaW9uIGlzIG1h ZGUgZGVwZW5kaW5nIG9mIFNUUklORy1CRUZPUkUgYW5kIFNUUklORy1BRlRFUi4iCiAJCQkgICAo bWF0Y2gtc3RyaW5nIDApKSB0IHQpCiAgICAgKHNhdmUtZXhjdXJzaW9uCiAgICAgICAoYmVnaW5u aW5nLW9mLWxpbmUgMSkKLSAgICAgICh1bmxlc3MgKGxvb2tpbmctYXQgIi4qXFxcXG5ld2xpbmVb IFx0XSokIikKKyAgICAgICh1bmxlc3MgKGFuZCAobG9va2luZy1hdCAiLipcblsgXHRdKlxuIikg KGxvb2tpbmctYXQgIi4qXFxcXG5ld2xpbmVbIFx0XSokIikpCiAJKGVuZC1vZi1saW5lIDEpCiAJ KGluc2VydCAiXFxuZXdsaW5lIikpKSkpCiAK --Multipart_Thu_Mar_18_12:45:35_2010-1-- --pgp-sign-Multipart_Thu_Mar_18_12:45:35_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkuiEl8ACgkQma24O1pEeOYEmwEAk0VJFEYZ9qglLcVWnVFLixiX nqqS0K3EUqC751xLSS0A/REosFluQgsmmSJqrfE1XuqNE/ZqsmUHFTID8QFKRWs9 =dtM+ -----END PGP SIGNATURE----- --pgp-sign-Multipart_Thu_Mar_18_12:45:35_2010-1-- --===============1666783329== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1666783329==--