Re: [PATCH v2] Fix background color of latex previews

2024-01-09 Thread Roshan Shariff
Hi Timothy, On Mon, 8 Jan 2024 at 03:24, Timothy wrote: > Thanks for this info and the patch! I've had a look at both, and I'm hopeful > that https://git.tecosaur.net/tec/org-mode/commit/3b3d48d3bf0 might solve the > problem? Do let me know what your think  Thanks for your prompt bugfix! I

[PATCH v2] Fix background color of latex previews

2023-08-29 Thread Roshan Shariff
This change addresses two issues: 1. Latex previews in headings have the background color of the fontified Latex code, rather than the rest of the heading. 2. If Latex code is fontified with a face that has the :extend attribute, and the preview overlay wraps to the next line, then the empty

[PATCH 1/1] Fix background color when line-wrapping latex previews

2023-08-29 Thread Roshan Shariff
If latex code is fontified with a face that has the :extend attribute, and the preview overlay wraps to the next line, then the empty space after the end of the line uses the background color of the latex code rather than that of the surrounding text. For example, setting

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-08-29 Thread Roshan Shariff
if it's the best way to go about it. I'd appreciate if you could take a look, and thanks for your time! Regards, Roshan Roshan Shariff (1): Fix background color when line-wrapping latex previews lisp/org-latex-preview.el | 51 +-- lisp/org.el

Re: [PATCH] org-macs: Fix incorrect use of relative paths in org-compile-file

2023-08-06 Thread Roshan Shariff
Thanks again Ihor! For the future, I wanted to clarify that I do have a copyright assignment to the FSF "for the suite of programs known as GNU EMACS". I have a signed copy of the assignment form dated 3 April, 2022. I should be in the list as "Roshan Shariff", but if

Re: [PATCH] org-macs: Fix incorrect use of relative paths in org-compile-file

2023-08-05 Thread Roshan Shariff
, I got a warning message about the preamble precompilation failing because it couldn't find a temporary .tex file in /var. With this patch applied, the PDF export completes without warnings. Regards, Roshan From 6e1f120818582695da9018f256b00c87104a Mon Sep 17 00:00:00 2001 From: Roshan Shariff Date:

[PATCH] org-macs: Fix incorrect use of relative paths in org-compile-file

2023-08-04 Thread Roshan Shariff
* org-macs.el (org-compile-file, org-compile-file-commands): Avoid converting the source path to be relative to the default-directory, which breaks for absolute source paths when the current directory is a symlink. Commit 5a8a1d4ff [1] changed org-compile-file to use `file-relative-name` for the

Re: Bug: Can't set background color of latex fragment

2021-05-19 Thread Roshan Shariff
along with font-latex-verbatim-face for inline formulae). I personally find it convenient to customize these faces as needed. Regards, Roshan On Wed, May 19, 2021 at 12:30 AM Sébastien Miquel wrote: > > Hi Roshan, > > Roshan Shariff writes: > > I can confirm this bug with dvipng

Re: Bug: Can't set background color of latex fragment

2021-04-10 Thread Roshan Shariff
I can confirm this bug with dvipng --- with the "-bg Transparent" option, dvipng ignores the background color from the input tex file, whereas without that option it always produces an opaque background. There's currently no way to dynamically change command line parameters, so I'm not sure how to

[PATCH] org.el: Allow transparent background in latex images

2020-09-16 Thread Roshan Shariff
* lisp/org.el (org-create-formula-image): When `:background' is set to "Transparent" in `org-format-latex-options', do not output a `\pagecolor{...}' command in the generated LaTeX file. This will cause dvisvgm, convert, or dvipng (with the `-bg Transparent' option) to produce png or svg images