From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: ox-tufte-latex Date: Wed, 3 Feb 2016 02:29:04 +0000 Message-ID: References: <87lh72k57t.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1a43ebba9e9052ad46121 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQnBs-0006TG-2Z for emacs-orgmode@gnu.org; Tue, 02 Feb 2016 21:29:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQnBq-0001qo-ES for emacs-orgmode@gnu.org; Tue, 02 Feb 2016 21:29:07 -0500 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:33507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQnBq-0001qX-1P for emacs-orgmode@gnu.org; Tue, 02 Feb 2016 21:29:06 -0500 Received: by mail-lb0-x22a.google.com with SMTP id x4so4103271lbm.0 for ; Tue, 02 Feb 2016 18:29:05 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mailinglist , "Thomas S. Dye" --001a11c1a43ebba9e9052ad46121 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I found this , but I'm not getting it to work. I assume it's outdated? Will wait for this new effort of yours, Mr. Dye. this works as straight latex on my system, so I know tufte-latex is good to go. Thanks for the effort. LB On Wed, Feb 3, 2016 at 1:35 AM, Thomas S. Dye wrote: > Aloha Rasmus, > > You've got it exactly right. I read through ox-latex.el, found the > functions I wanted to change, copied them to ox-tufte-latex.el and added > a few lines of code here and there (using babel and noweb chunks). > > It would indeed be easy to modify ox-latex.el so it supports the > non-standard commands of the Tufte LaTeX package. I can send patches to > that effect, if you like. Ox-latex would need to recognize a few new > LaTeX attributes and export marginfigure, marginnote, and sidenote > commands. I hijacked footnote for sidenote, so this would probably need > some work to recognize when one or the other was needed. > > The reason I originally decided not to suggest patches to ox-latex.el > is that the Tufte LaTeX package is a bit cranky and I was unsure of its > future. I thought it might be better to leave ox-latex to the more > stable and mature LaTeX packages. I hadn't thought about backporting, > etc. > > hth, > Tom > > > Rasmus writes: > > > Mojn Tom, > > > > I'm pretty invested in KOMA-Script but this is a great as a lot of > > people really appreciate the Tufte package. > > > > Thomas S. Dye writes: > > > >> I've cobbled together an exporter for the Tufte LaTeX classes, > >> which I'd like to contribute to Org mode contrib/. > > > > My initial beef with your code it that it seems, from skimming the > > code, to replicate a lot of functions from ox-latex. This means > > that when ox-latex.el updates, we might have to backport the > > changes into ox-tufte-latex. It=E2=80=99s already some work keeping > > ox-beamer and ox-latex up to date (e.g. I added a some feature to > > ox-latex and only realized much later that I hadn=E2=80=99t added it to > > ox-beamer). > > > > E.g. org-tufte-latex--inline-image is very much alike > > org-latex--inline-image. > > > > I don=E2=80=99t know to what extend it would be possible to minimize > > replication. Perhaps you already did this and perhaps my comments > > are merely following from the fact that I did not study your patch > > appropriately (I=E2=80=99m traveling ATM). > > > > Another question is, what features would we need to make more > > flexible in ox-latex in order to obsolete your class or reduce it > > to an element in org-latex-classes? Is there some areas where > > it=E2=80=99s lacking for the purpose of "tufing" ox-latex output? > > > > In any I=E2=80=99m very happy that you are working on this. I hope the > > above is not discouraging; that=E2=80=99s at least not what it=E2=80=99= s meant to > > be. > > > > Thanks, > > Rasmus > > > -- > Thomas S. Dye > http://www.tsdye.com > > --001a11c1a43ebba9e9052ad46121 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I found=C2=A0this, but I'm not getting it to work. I = assume it's outdated? Will wait for this new effort of yours, Mr. Dye.= =C2=A0this=C2=A0wo= rks as straight latex on my system, so I know tufte-latex is good to go. Th= anks for the effort.

LB

On Wed, Feb 3, 2016 at 1:35 AM, Thomas= S. Dye <tsd@tsdye.com> wrote:
Aloha Rasmus,

You've got it exactly right.=C2=A0 I read through ox-latex.el, found th= e
functions I wanted to change, copied them to ox-tufte-latex.el and added a few lines of code here and there (using babel and noweb chunks).

It would indeed be easy to modify ox-latex.el so it supports the
non-standard commands of the Tufte LaTeX package.=C2=A0 I can send patches = to
that effect, if you like.=C2=A0 Ox-latex would need to recognize a few new<= br> LaTeX attributes and export marginfigure, marginnote, and sidenote
commands.=C2=A0 I hijacked footnote for sidenote, so this would probably ne= ed
some work to recognize when one or the other was needed.

The reason I originally decided not to suggest patches to ox-latex.el
is that the Tufte LaTeX package is a bit cranky and I was unsure of its
future. I thought it might be better to leave ox-latex to the more
stable and mature LaTeX packages.=C2=A0 I hadn't thought about backport= ing,
etc.

hth,
Tom


Rasmus <rasmus@gmx.us> writes:
> Mojn Tom,
>
> I'm pretty invested in KOMA-Script but this is a great as a lot of=
> people really appreciate the Tufte package.
>
> Thomas S. Dye <tsd@tsdye.com&g= t; writes:
>
>> I've cobbled together an exporter for the Tufte LaTeX classes,=
>> which I'd like to contribute to Org mode contrib/.
>
> My initial beef with your code it that it seems, from skimming the
> code, to replicate a lot of functions from ox-latex.=C2=A0 This means<= br> > that when ox-latex.el updates, we might have to backport the
> changes into ox-tufte-latex.=C2=A0 It=E2=80=99s already some work keep= ing
> ox-beamer and ox-latex up to date (e.g. I added a some feature to
> ox-latex and only realized much later that I hadn=E2=80=99t added it t= o
> ox-beamer).
>
> E.g. org-tufte-latex--inline-image is very much alike
> org-latex--inline-image.
>
> I don=E2=80=99t know to what extend it would be possible to minimize > replication.=C2=A0 Perhaps you already did this and perhaps my comment= s
> are merely following from the fact that I did not study your patch
> appropriately (I=E2=80=99m traveling ATM).
>
> Another question is, what features would we need to make more
> flexible in ox-latex in order to obsolete your class or reduce it
> to an element in org-latex-classes?=C2=A0 Is there some areas where > it=E2=80=99s lacking for the purpose of "tufing" ox-latex ou= tput?
>
> In any I=E2=80=99m very happy that you are working on this.=C2=A0 I ho= pe the
> above is not discouraging; that=E2=80=99s at least not what it=E2=80= =99s meant to
> be.
>
> Thanks,
> Rasmus


--
Thomas S. Dye
http:= //www.tsdye.com


--001a11c1a43ebba9e9052ad46121--