Re: Preview with luatex, preamble caching, and tikz

2023-11-13 Thread Andreas Matthias
Ikumi Keita  wrote:

> Unfortunately, as described in the document[1], preview-latex isn't
> guaranteed to work under certain conditions when lualatex is used:
> ,
> | Note that support for preamble cache is limited for LaTeX variants. c.f.
> https://github.com/davidcarlisle/dpctex/issues/15
> |
> | XeLaTeX cannot use preamble cache at all. The reason is intrinsic in
> XeLaTeX, so preview-latex can’t help.
> | LuaLaTeX works with preamble cache only when the preamble is simple
> enough, i.e., when it doesn’t load opentype fonts and it doesn’t use lua
> codes in preamble.
> `
> I suppose loading tikz.sty leads to loading opentype fonts.
>

Thank you. You are right. Tikz pulls in luaotfload. I didn't pay attention
to that.

Regards,
Andreas


Re: Preview with luatex, preamble caching, and tikz

2023-11-12 Thread Ikumi Keita
Hi Andreas,

> Andreas Matthias  writes:
> I am facing an issue with previewing which seems to be triggered if all of
> the following is true:
>1) using luatex
>2) preamble cache enabled
>3) using tikz.sty

> Note that everything is fine if one of the above statements is false.

Unfortunately, as described in the document[1], preview-latex isn't
guaranteed to work under certain conditions when lualatex is used:
,
| Note that support for preamble cache is limited for LaTeX variants. c.f. 
https://github.com/davidcarlisle/dpctex/issues/15
| 
| XeLaTeX cannot use preamble cache at all. The reason is intrinsic in XeLaTeX, 
so preview-latex can’t help.
| LuaLaTeX works with preamble cache only when the preamble is simple enough, 
i.e., when it doesn’t load opentype fonts and it doesn’t use lua codes in 
preamble.
`
I suppose loading tikz.sty leads to loading opentype fonts.

[1] 
https://www.gnu.org/software/auctex/manual/preview-latex/Keys-and-lisp.html#Keys-and-lisp,

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopTheGenocide #CeasefireNOW