emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Matt Huszagh <huszaghmatt@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	"Fraga, Eric" <e.fraga@ucl.ac.uk>
Subject: Re: Removing horizontal space in latex fragments
Date: Sat, 14 Dec 2019 15:57:14 +0100	[thread overview]
Message-ID: <87tv63osz9.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CA+X8ke7XiZV5pLR9k8oMdpXNB89B6YX=PRPDmqE+DT9ef_4gog@mail.gmail.com> (Matt Huszagh's message of "Thu, 5 Dec 2019 23:42:22 -0800")

Hello,

Matt Huszagh <huszaghmatt@gmail.com> writes:

> Thanks for the reply Eric. The thing I like about the newlines is that the
> generated tex files are slightly easier to read. However, this is really
> minor. I've created 2 separate patches: one keeping the newlines and the
> other without. I'm happy to defer to you or anyone else in regard to which
> is preferable.

So, has anyone settled on which one to apply?

> +    ;; remove tex \par at end of snippet to avoid trailing
> +    ;; whitespace

  Remove TeX \par at end of... trailing space.

> +    (if (string= (substring string -1 nil) "\n")

Minor nitpick: 

  (if (string-suffix-p string "\n") ...)

is slightly less low-level.

Thank you.

Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2019-12-14 21:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-05 19:03 Removing horizontal space in latex fragments Matt Huszagh
2019-12-05 22:24 ` Fraga, Eric
2019-12-06  7:42   ` Matt Huszagh
2019-12-06 13:24     ` Fraga, Eric
2019-12-14 14:57     ` Nicolas Goaziou [this message]
2019-12-15  3:48       ` Matt Huszagh
2019-12-15  9:04         ` Nicolas Goaziou

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=87tv63osz9.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=huszaghmatt@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).