From: Nicolas <n.goaziou@gmail.com>
To: Scot Becker <scot.becker@gmail.com>
Cc: emacs-orgmode@gnu.org, Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Subject: Re: latex export issue
Date: Thu, 10 Mar 2011 09:24:05 +0100 [thread overview]
Message-ID: <8739mvs7ru.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTi=d51P-sf=Kg91O4b7iGt57tL0H=O+EshXQXsOu@mail.gmail.com> (Scot Becker's message of "Thu, 10 Mar 2011 06:16:56 +0000")
Hello,
Scot Becker <scot.becker@gmail.com> writes:
> That sounds like it means that any documents you might want to export to
> LaTeX (and format with hard line breaks) should always have non-breaking
> spaces after the periods---or you should keep a manual eye on your paragraph
> formatting to make sure no numbers come first on the line.
Would that work for you?
#+begin_src emacs-lisp
(defun org-fill-item-nobreak-p ()
"Non-nil when line break would insert a new item."
(and (looking-at (org-item-re)) (org-list-in-valid-block-p)))
(add-to-list 'fill-nobreak-predicate 'org-fill-item-nobreak-p)
#+end_src
If it is fine, we may as well include it by default in Org.
Regards,
--
Nicolas
next prev parent reply other threads:[~2011-03-10 8:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 22:05 latex export issue Stephen Eglen
2011-03-09 23:46 ` Nicolas
2011-03-10 6:16 ` Scot Becker
2011-03-10 8:24 ` Nicolas [this message]
2011-03-10 21:29 ` Scot Becker
2011-03-10 22:00 ` Nicolas
2011-03-10 22:07 ` Scot Becker
2011-03-11 11:26 ` Stephen Eglen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739mvs7ru.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=S.J.Eglen@damtp.cam.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=scot.becker@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).