Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First quick start example tikz command content is displayed verbatim #51

Open
ederag opened this issue Jun 13, 2024 · 2 comments
Open

Comments

@ederag
Copy link
Contributor

ederag commented Jun 13, 2024

The first example in the quick start section,

using Makie, MakieTeX
using CairoMakie # or whichever other backend
fig = Figure();  # Note the `;` to avoid the display of a blank window
l1 = LTeX(
    fig[1, 1], L"A \emph{convex} function $f \in C$ is \textcolor{blue}{denoted} as \tikz{\draw[line width=1pt, >->] (0, -2pt) arc (-180:0:8pt);}";
    tellwidth = false, tellheight = true
)
ax1 = Axis(
    fig[2, 1];
)
heatmap!(ax1, Makie.peaks())
fig

yields
try
The tikz command appears verbatim, instead of the expected curved arrow displayed in the README.

Note 1: the same command inserted in a standalone LaTeX file gives the right output with pdflatex,
so tikz is well installed here, and the command is correct.

Note 2: the ylabel does not show up either. Maybe a copy/paste from an earlier version ?

Julia Version 1.10.3
Platform Info:
  OS: Linux (x86_64-suse-linux)

(jl_ejg3hP) pkg> status
  [13f3f980] CairoMakie v0.12.2
  [ee78f7c6] Makie v0.21.2
  [6d554a22] MakieTeX v0.4.1
@asinghvi17
Copy link
Member

I think the picture is left over from an earlier version, but the tikz should definitely render. Are you running with tectonic or latexmk?

@asinghvi17
Copy link
Member

Hmm. I can replicate this, I guess the automatic preamble isn't working right as you mentioned. Will look into a fix - I probably used an incorrect conversion route for LaTeXString somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants