Re: Removing horizontal space in latex fragments

2019-12-15 Thread Nicolas Goaziou
Hello, Matt Huszagh writes: > My vote goes for keeping the newlines to improve readability in the > generated tex file. But, again, I'm more than happy to be overuled. [...] > I've attached an updated patch. Applied. Thank you. I added TINYCHANGE at the end of the commit message since I

Re: Removing horizontal space in latex fragments

2019-12-14 Thread Matt Huszagh
Nicolas Goaziou writes: > So, has anyone settled on which one to apply? My vote goes for keeping the newlines to improve readability in the generated tex file. But, again, I'm more than happy to be overuled. > Minor nitpick: > > (if (string-suffix-p string "\n") ...) > > is slightly less

Re: Removing horizontal space in latex fragments

2019-12-14 Thread Nicolas Goaziou
Hello, Matt Huszagh 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

Re: Removing horizontal space in latex fragments

2019-12-06 Thread Matt Huszagh
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

Re: Removing horizontal space in latex fragments

2019-12-06 Thread Fraga, Eric
Not really worried about which alternative is chosen. I was just exhibiting my inner compulsive nature... ;-) -- Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-544-gd215c3

Re: Removing horizontal space in latex fragments

2019-12-05 Thread Fraga, Eric
On Thursday, 5 Dec 2019 at 11:03, Matt Huszagh wrote: > Is anyone else interested in this modification? Should I submit it as a > patch? I think so. And I am not sure all those \n's are necessary. Without them, you can probably also remove many of the %s. -- Eric S Fraga via Emacs 27.0.50,

Removing horizontal space in latex fragments

2019-12-05 Thread Matt Huszagh
I've modified the behavior of `org-create-formula-image' so that `\definecolor' etc do not create unnecessary whitespace in the output PDF. Here's the relevant change: ``` ... ;; remove tex \par at end of line (if (string= (substring string -1 nil) "\n") (aset string