From: "Ulrich J. Herter" <ujh@posteo.de>
To: emacs-orgmode@gnu.org
Subject: Re: pgfplots and tikz break LaTeX inline overlay colors
Date: Mon, 25 Jul 2016 16:32:16 +0200 [thread overview]
Message-ID: <1469457136.1454.22.camel@posteo.de> (raw)
In-Reply-To: <87shuxvpc0.fsf@saiph.selenimh>
[-- Attachment #1: Type: text/plain, Size: 3005 bytes --]
Hi Nicolas,
thanks for looking into this!
Am Montag, den 25.07.2016, 15:07 +0200 schrieb Nicolas Goaziou:
"Ulrich J. Herter" <ujh@posteo.de> writes:
When using pgfplots and tikz LaTeX packages for graphics in a
document, the colouring of LaTeX overlays in org-mode is broken.
The
font colour of snippets is always black, super hard to read in on a
dark colour scheme. See attached images.
Steps to reproduce:
- Do C-c C-x C-l on one of the formulas.
- When pgfplots or tikz is loaded, the :foreground setting in
org-format-latex-options is ignored...
Any help with that would be much appreciated!
I cannot reproduce it in development version, where formula display
mechanism was rewritten recently.
Could you update Org and try again?
I'm sorry, but I'm still getting this error in release_8.3.5-1000-
g9d3a4a.dirty (installed from Arch linux AUR), I attached a screenshot.
Could it be something with my config? The striped .emacs along with the
examples below.
--------------------.emacs---8<----------------------------------------
(require 'org-install)
(custom-set-variables
'(custom-enabled-themes (quote (tsdh-dark))))
(require 'org)
(require 'ox-latex)
(add-hook 'org-mode-hook 'turn-on-org-cdlatex)
(setq org-latex-create-formula-image-program 'dvipng)
(setq org-highlight-latex-and-related '(latex script entities))
(plist-put org-format-latex-options :scale 3)
(add-to-list 'org-latex-default-packages-alist '("" "caption" nil))
(add-to-list 'org-latex-packages-alist '("" "parskip" nil))
(add-to-list 'org-latex-packages-alist '("" "xcolor" nil))
(add-to-list 'org-latex-packages-alist '("" "siunitx" t))
(add-to-list 'org-latex-packages-alist '("" "minted" nil)) ; Code
listings
(setq org-latex-listings 'minted)
(setq org-latex-minted-options
'(("frame" "lines") ("linenos=true") ("stepnumber" "5")
("framesep" "6pt")
("mathescape" "true") ("fontsize" "\\footnotesize")))
(add-to-list 'org-latex-classes
'("koma-article"
"\\documentclass{scrartcl}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
--------------------.emacs--->8----------------------------------------
--------------------example1.org---8<----------------------------------
# #+LATEX_HEADER: \usepackage{pgfplots,tikz}
$$(a+b)^2=a^2+2ab+b^2$$
----
----------------example1.org--->8----------------------------------
--------------------example2.org---8<----------------------------------
#+LATEX_HEADER: \usepackage{pgfplots,tikz}
$$a^2+b^2=c^2$$
--------------------example2.org--->8----------------------------------
Thanks and regards
Uli
[-- Attachment #2: Bildschirmfoto vom 2016-07-25 16-07-28.png --]
[-- Type: image/png, Size: 48767 bytes --]
next prev parent reply other threads:[~2016-07-25 14:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-03 17:10 pgfplots and tikz break LaTeX inline overlay colors Ulrich J. Herter
2016-07-25 13:07 ` Nicolas Goaziou
2016-07-25 14:32 ` Ulrich J. Herter [this message]
[not found] ` <3a1bbecd238c4a48bca81bf9d773a6f0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-07-25 14:38 ` Eric S Fraga
2016-07-25 15:18 ` Ulrich J. Herter
2016-07-25 15:15 ` Ulrich J. Herter
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=1469457136.1454.22.camel@posteo.de \
--to=ujh@posteo.de \
--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).