\usepackage{pgfplots,lua-visual-debug}}
, with one } too many, that's interesting. Because it's not in the code, where we have \usepackage{pgfplots,luacode}
. Could look like a typo or auto-completion-error, but you would see that in the code.Especially as it appears in line 1 (l.1) it looks like it's from another document, like one included by \input, or in some file that's used. It can happen when there are other files in the same folder/directory, that are accidentally loaded. Sometimes people have files in the same folder but named them accidentally like a LaTeX package, or have some downloaded file with an issue.
Perhaps post the log file here, as attachment? I know you may nott need it, but it would be interesting to find out why it happens. It could be an issue another time, too.
By the way, lua-visual-debug is pretty nice. I don't really have a use for it, but at some point it may help if spacing or complex formula contruction would be strange. Quick example from my LaTeX Cookbook:
Code: Select all
\documentclass[paper=a4,oneside,fontsize=11pt,
parskip=full]{scrartcl}
\usepackage{lua-visual-debug}
\pagestyle{empty}
\begin{document}
\section{Some maths}
Let's look at an integral approximation of a function
$f(x)$ as a sum with weights $w_i$:
\begin{equation}
\int_a^b f(x)\,\mathrm{d}x \approx (b-a)
\sum_{i=0}^n w_i f(x_i)
\end{equation}
\end{document}
Stefan