I downloaded JuliaMono, for instance, it does not work:
My code
\documentclass{article}
\usepackage{minted}
\usepackage{fontspec}
\setmonofont{JuliaMono} %switched to FreeMono
\begin{document}
test
\begin{minted}[breaklines,escapeinside=||,mathescape=true, linenos, numbersep=3pt, gobble=2, frame=lines, fontsize=\small, fontfamily=stm, framesep=2mm]{julia}
using Convex, SCS, Plots, LaTeXStrings
N = 30 # N in the set {0, 1, ..., N}
n = 3 # order of the linear dynamical system
x_des = [7, 2, -6] # constraint -> 𝐱(N) == x_des
# model parameters
𝐀 = [-1 .4 .8; 1 0 0; 0 1 0]
𝐛 = [1, 0, 0.3]
𝐗 = Variable(n, N+1) # [𝐱(0) 𝐱(1) ... 𝐱(N)]
𝐮 = Variable(1, N) # [u(0) u(1) ... u(N-1)]
f0 = sum(max(abs(𝐮), 2abs(𝐮)-1)) # objective function
constraints = [
𝐗[:,2:N+1] == 𝐀*𝐗[:,1:N]+𝐛*𝐮, # recursive equation
𝐗[:,1] == zeros(n), # initial condition
𝐗[:,N+1] == x_des, # final condition
]
problem = minimize(f0, constraints)
solve!(problem, SCS.Optimizer; silent_solver = true)
fig = plot(vec(𝐮.value), xlabel=L"k", title=L"u(k)", line=:steppre)
savefig(fig, "figs/4.17.png")
\end{minted}
\end{document}
prompts to
❯ lualatex --shell-escape main.tex
This is LuaHBTeX, Version 1.14.0 (TeX Live 2022/dev/Debian)
system commands enabled.
(./main.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-01-21>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/minted/minted.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fvextra/fvextra.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty)
(/usr/share/texlive/texmf-dist/tex/latex/upquote/upquote.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty))
(/usr/share/texlive/texmf-dist/tex/latex/lineno/lineno.sty))
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/shellesc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/share/texlive/texmf-dist/tex/generic/catchfile/catchfile.sty
(/usr/share/texlive/texmf-dist/tex/generic/etexcmds/etexcmds.sty))
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifluatex.sty) (./main.w18))
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/share/texlive/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/share/texlive/texmf-dist/tex/latex/framed/framed.sty)
(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-luatex.def)))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/luatex.def))/home/tapyu/.local/bin/pygmentize
(./main.aux)
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (./_minted-main/default.pygstyle)
(./_minted-main/B5ABD6D09156175CB66A1CF9F2C69EB82AE44091634ECC1F29D496B7DD014B1
8.pygtex
LaTeX Font Warning: Font shape `TU/stm/m/n' undefined
(Font) using `TU/lmr/m/n' instead on input line 1.
LaTeX Font Warning: Font shape `TU/stm/b/n' undefined
(Font) using `TU/stm/m/n' instead on input line 2.
LaTeX Font Warning: Font shape `TU/stm/m/it' undefined
(Font) using `TU/stm/m/n' instead on input line 4.
) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}
Missing character: There is no 𝐱 (U+1D431) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐀 (U+1D400) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐛 (U+1D41B) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐗 (U+1D417) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐱 (U+1D431) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐱 (U+1D431) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐱 (U+1D431) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐮 (U+1D42E) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐮 (U+1D42E) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐮 (U+1D42E) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐗 (U+1D417) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐀 (U+1D400) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐗 (U+1D417) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐛 (U+1D41B) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐮 (U+1D42E) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐗 (U+1D417) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐗 (U+1D417) in font [lmroman9-regular]:+tlig;
!
Missing character: There is no 𝐮 (U+1D42E) in font [lmroman9-regular]:+tlig;
!
] (./main.aux)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
)
416 words of node memory still in use:
3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 4 attribute, 50 glue_spec
, 4 attribute_list, 1 write nodes
avail lists: 1:1,2:1405,3:96,4:686,5:228,6:46,7:2026,9:342,11:84
</usr/share/texmf/fonts/opentype/public/lm/lmroman9-regular.otf></usr/share/tex
mf/fonts/opentype/public/lm/lmroman5-regular.otf></usr/share/texmf/fonts/openty
pe/public/lm/lmroman10-regular.otf>
Output written on main.pdf (1 page, 15399 bytes).
Transcript written on main.log.