emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Re: Latex preview foreground color problem
Date: Wed, 01 Aug 2018 09:07:58 +0300	[thread overview]
Message-ID: <87muu6liv5.fsf@iki.fi> (raw)
In-Reply-To: xuu6y3drusr9.fsf@gmail.com

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.

      parent reply	other threads:[~2018-08-01  6:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87muu6liv5.fsf@iki.fi \
    --to=jarmo.hurri@iki.fi \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).