* Latex preview foreground color problem
@ 2018-07-30 9:43 Jarmo Hurri
2018-07-31 19:09 ` Eric S Fraga
0 siblings, 1 reply; 4+ messages in thread
From: Jarmo Hurri @ 2018-07-30 9:43 UTC (permalink / raw)
To: emacs-orgmode
Greetings.
Previewing Latex fragments is one cool feature. However, I have one
problem tailoring it to my use.
In my emacs config file I now have:
(plist-put org-format-latex-options :foreground "white")
(plist-put org-format-latex-options :scale 2)
These seem to set the correct properties, because my value of
org-format-latex-options is
(:foreground "white" :background default :scale 2 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers
("begin" "$1" "$" "$$" "\\(" "\\["))
The scale factor property works just fine: I get a larger
preview. Unfortunately changing foreground has no effect. The default
black foreground - which I still get - is pretty useless for me, because
my default background in buffers is dark blue.
Any tips?
Jarmo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latex preview foreground color problem
2018-07-30 9:43 Latex preview foreground color problem Jarmo Hurri
@ 2018-07-31 19:09 ` Eric S Fraga
2018-07-31 20:04 ` Jeremie Juste
2018-08-01 6:07 ` Jarmo Hurri
0 siblings, 2 replies; 4+ messages in thread
From: Eric S Fraga @ 2018-07-31 19:09 UTC (permalink / raw)
To: Jarmo Hurri; +Cc: emacs-orgmode
On Monday, 30 Jul 2018 at 12:43, Jarmo Hurri wrote:
> In my emacs config file I now have:
>
> (plist-put org-format-latex-options :foreground "white")
> (plist-put org-format-latex-options :scale 2)
This works for me but in the context that I also change the background
to black (which does not necessarily match my Emacs background...). Try
that just to see? It may be a LaTeX issue.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-894-gf79545
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latex preview foreground color problem
2018-07-31 19:09 ` Eric S Fraga
@ 2018-07-31 20:04 ` Jeremie Juste
2018-08-01 6:07 ` Jarmo Hurri
1 sibling, 0 replies; 4+ messages in thread
From: Jeremie Juste @ 2018-07-31 20:04 UTC (permalink / raw)
To: Jarmo Hurri; +Cc: emacs-orgmode
Hello,
Here is mine. But I live with a black background. You might have trouble
with the table environment though. For some mysterious reason, although
the background changes,the foreground in the table environment remains black.
(setq org-format-latex-options '(:foreground "White" :background "Black" :scale 1.8
:html-foreground "Black"
:html-background "Transparent" :html-scale 1.1 ))
HTH,
Jeremie
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latex preview foreground color problem
2018-07-31 19:09 ` Eric S Fraga
2018-07-31 20:04 ` Jeremie Juste
@ 2018-08-01 6:07 ` Jarmo Hurri
1 sibling, 0 replies; 4+ messages in thread
From: Jarmo Hurri @ 2018-08-01 6:07 UTC (permalink / raw)
To: emacs-orgmode
Eric S Fraga <esflists@gmail.com> writes:
> On Monday, 30 Jul 2018 at 12:43, Jarmo Hurri wrote:
>> In my emacs config file I now have:
>>
>> (plist-put org-format-latex-options :foreground "white")
>> (plist-put org-format-latex-options :scale 2)
>
> This works for me but in the context that I also change the background
> to black (which does not necessarily match my Emacs background...). Try
> that just to see? It may be a LaTeX issue.
This seems to be a compatibility issue with the forest package in
Latex. The problem is demonstrated and explained in the org file
below. I don't know yet what the solution is.
Jarmo
# ---------------------------------------------------------------------
#+LATEX_HEADER: \usepackage{forest}
* \LaTeX{} fragments: package ~forest~ confuses foreground color setting
Interestingly enough, the foreground color set by
#+BEGIN_SRC elisp
(plist-put org-format-latex-options :foreground "White")
#+END_SRC
does /not/ change the foreground color in this simple invariant
equation \[ ab^n = ab\cdot b^{n-1} \] if ~usepackage{forest}~ is
included in \LaTeX{} header. When package ~forest~ is not used,
setting the color works just fine.
To make things a bit more complicated, after commenting or
uncommenting the ~LATEX_HEADER~ line, you need to remove the
contents of directory ~ltximg~ in the working directory to see the
difference, because the system caches the generated images of the
equations there.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-01 6:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-30 9:43 Latex preview foreground color problem Jarmo Hurri
2018-07-31 19:09 ` Eric S Fraga
2018-07-31 20:04 ` Jeremie Juste
2018-08-01 6:07 ` Jarmo Hurri
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).