Re: [PATCH] babel latex headers and image generation commands

2020-12-14 Thread Bastien
Matt Huszagh writes: >> Can you provide a patch against etc/ORG-NEWS announce this? > > Attached. Let me know what you think. Applied (2af68d6a4) with a minor modification in the headline. Thanks, -- Bastien

Re: [PATCH] babel latex headers and image generation commands

2020-10-24 Thread Matt Huszagh
Bastien writes: > sorry for the delayed answer. No worries! > Can you provide a patch against etc/ORG-NEWS announce this? Attached. Let me know what you think. Matt >From 51fb3ef9843ae45884803142f150c5d2f4f4d4c9 Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Sat, 24 Oct 2020 09:36:56

Re: [PATCH] babel latex headers and image generation commands

2020-10-24 Thread Bastien
Hi Matt, sorry for the delayed answer. Matt Huszagh writes: > Bastien writes: > >> Prefer >> >> * lisp/ob-latex.el (org-babel-latex-preamble): New option for LaTeX >> preamble customization. >> >> "New option" is quite standard, an "option" being a customizable >> variable. In this case,

Re: [PATCH] babel latex headers and image generation commands

2020-09-09 Thread Matt Huszagh
Bastien writes: > Prefer > > * lisp/ob-latex.el (org-babel-latex-preamble): New option for LaTeX > preamble customization. > > "New option" is quite standard, an "option" being a customizable > variable. In this case, "New option" would probably be enough, given > the name of the option is

Re: [PATCH] babel latex headers and image generation commands

2020-09-06 Thread Bastien
Hi Matt, Matt Huszagh writes: > Matt Huszagh writes: > >> I've added a few changes to the patch that additionally allow custom the >> begin and end document environments. The purpose here is to allow latex >> code within the document environment that is ignored by the body >> export. For

Re: [PATCH] babel latex headers and image generation commands

2020-09-02 Thread Matt Huszagh
Matt Huszagh writes: > I've added a few changes to the patch that additionally allow custom the > begin and end document environments. The purpose here is to allow latex > code within the document environment that is ignored by the body > export. For instance, I can set the page color with >

Re: [PATCH] babel latex headers and image generation commands

2020-09-02 Thread Matt Huszagh
Matt Huszagh writes: > Ok, I've finally gotten around to taking a crack at this. The patch is > attached. Basically, it allows a lot more control when converting a > latex source block into an svg image file. I've added a few changes to the patch that additionally allow custom the begin and end

Re: babel latex headers and image generation commands

2020-08-29 Thread Matt Huszagh
Bastien writes: > If you find the time to share your change as a _patch_ (not the whole > updated Elisp function), that will allow more readers on this list to > quickly understand what is at stake. Ok, I've finally gotten around to taking a crack at this. The patch is attached. Basically, it

Re: babel latex headers and image generation commands

2020-02-09 Thread Bastien
Hi Matt, Matt Huszagh writes: > What do people think? If there's any interest, I'm more than happy to > put in the extra time and add this functionality to > latex-execute. If you find the time to share your change as a _patch_ (not the whole updated Elisp function), that will allow more

Re: babel latex headers and image generation commands

2020-02-04 Thread Matt Huszagh
I've thought about this more and the solution I presented above isn't quite sufficient for me. I need something where I get complete control over what goes in the latex source block on a block-by-block basis. In other words, I don't want a user-configurable option like org-format-latex-header plus

Re: babel latex headers and image generation commands

2020-02-04 Thread Matt Huszagh
Ok, here's an implementation that seems to be working pretty well so far. `org-latex-img-process` is the new customization. Most of the execute function is unaltered, but I've added the condition: ``` ((and (not imagemagick) (assoc extension org-latex-img-process))

babel latex headers and image generation commands

2020-02-03 Thread Matt Huszagh
I spent some time today trying to get latex babel source blocks to work for me and discovered that calling `org-babel-execute:latex` ignores the :headers header if the output file is a png without setting imagemagick to t. It's easy to see this in the source code: the conditions mentioned above