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

[BUG] LaTeX Error: File `luatex85.sty' not found. (PGFPlotsX backend) #3319

Closed
martincornejo opened this issue Feb 24, 2021 · 1 comment
Closed
Labels

Comments

@martincornejo
Copy link

In a linux machine I seem to have problems with the PGFPlotsX backend. For instance, the following trivial example throws an exception:

julia> plot(rand(5))
! LaTeX Error: File `luatex85.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
   
l.530 \RequirePackage
                   {pdftexcmds}
End of file on the terminal!



Here is how much of LuaTeX's memory you used:
 808 strings out of 481315
 100000,319454 words of node,token memory allocated 343 words of node memory still in use:
   2 hlist, 1 rule, 1 dir, 48 glue_spec, 1 if_stack, 1 write nodes
   avail lists: 2:18,3:2,4:1,5:1,7:2,9:3
 18028 multiletter control sequences out of 65536+600000
 25 fonts using 3168359 bytes
 36i,0n,60p,208b,70s stack positions out of 5000i,500n,10000p,200000b,100000s
!  ==> Fatal error occurred, no output PDF file produced!

Error showing value of type Plots.Plot{Plots.PGFPlotsXBackend}:
ERROR: The latex command `lualatex jl_fSZ6sQ.tex` failed
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] savepdf(::String, ::PGFPlotsX.TikzDocument; latex_engine::PGFPlotsX.LaTeXEngine, buildflags::Array{String,1}, run_count::Int64, tmp::String) at /home/maria/.julia/packages/PGFPlotsX/qM8D5/src/tikzdocument.jl:197
 [3] savepdf(::String, ::PGFPlotsX.TikzDocument; latex_engine::PGFPlotsX.LaTeXEngine, buildflags::Array{String,1}, run_count::Int64, tmp::String) at /home/maria/.julia/packages/PGFPlotsX/qM8D5/src/tikzdocument.jl:206
 [4] save(::String, ::PGFPlotsX.TikzDocument; include_preamble::Bool, latex_engine::PGFPlotsX.LaTeXEngine, buildflags::Array{String,1}, dpi::Int64, showing_ide::Bool) at /home/maria/.julia/packages/PGFPlotsX/qM8D5/src/tikzdocument.jl:86
 [5] save(::String, ::PGFPlotsX.TikzDocument) at /home/maria/.julia/packages/PGFPlotsX/qM8D5/src/tikzdocument.jl:73
 [6] display(::PGFPlotsX.PGFPlotsXDisplay, ::PGFPlotsX.TikzDocument) at /home/maria/.julia/packages/PGFPlotsX/qM8D5/src/tikzdocument.jl:351
 [7] _display(::Plots.Plot{Plots.PGFPlotsXBackend}) at /home/maria/.julia/packages/Plots/KN96c/src/backends/pgfplotsx.jl:1390
 [8] display(::Plots.PlotsDisplay, ::Plots.Plot{Plots.PGFPlotsXBackend}) at /home/maria/.julia/packages/Plots/KN96c/src/output.jl:150
 [9] display(::Any) at ./multimedia.jl:328
 [10] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [11] invokelatest at ./essentials.jl:709 [inlined]
 [12] print_response(::IO, ::Any, ::Bool, ::Bool, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:238
 [13] print_response(::REPL.AbstractREPL, ::Any, ::Bool, ::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:223
 [14] (::REPL.var"#do_respond#54"{Bool,Bool,REPL.var"#64#73"{REPL.LineEditREPL,REPL.REPLHistoryProvider},REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:822
 [15] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [16] invokelatest at ./essentials.jl:709 [inlined]
 [17] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2355
 [18] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:1144
 [19] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at ./task.jl:356

ADDITIONAL INFO:

pkg> st
Status `~/martin/alg-opt/Project.toml`
  [f65535da] Convex v0.14.2
  [f6369f11] ForwardDiff v0.10.16
  [8314cec4] PGFPlotsX v1.2.10
  [91a5bcdd] Plots v1.10.5
  [c3e4b0f8] Pluto v0.12.21
  [7f904dfe] PlutoUI v0.7.1
  [123dc426] SymEngine v0.8.3
  [e88e6eb3] Zygote v0.6.3
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen 7 4800H with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, znver2)
$ lualatex
This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/Debian) 
 restricted system commands enabled.
**
$ pdflatex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
**
@mirkobunse
Copy link

Hi!

The issue comes from a TeX Live update that excludes the luatex85.sty from the "default" installation. Install luatex explicitly to fix the issue:

sudo apt-get install texlive-luatex

For any other backend-related problems, I suggest to file an issue at PGFPlots.jl directly: https://github.com/JuliaTeX/PGFPlots.jl/issues

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

No branches or pull requests

3 participants