这是我的.tex 代码:
\documentclass{article}
\usepackage{amsmath} % allows use of numberless equation* package
\usepackage{fullpage} % uses more of the page
\usepackage{graphicx} % allows use of pictures
\usepackage{float} % better image positioning
\usepackage{pgfplotstable} % Generates table from .csv
\pgfplotsset{compat=1.16}
\title{TMA xx}
\date{2020-xx-xx}
\author{Ben Jones}
\begin{document}
\pagenumbering{gobble}
\maketitle
\newpage
\pagenumbering{arabic}
\subsection*{Question 1}
Question (if necessary)
\paragraph{a)}
Answer
\begin{equation*}
f(x)=2x^2
\end{equation*}
\paragraph{b)}
Answer
\begin{table}[h!]
\begin{center}
\pgfplotstabletypeset[
col sep=&,
]{test.csv}
\end{center}
\end{table}
\newline
\newline
\subsection*{Question 2}
Question (if necessary)
\paragraph{a)}
Answer
\begin{equation*}
f(x)=2x^2
\end{equation*}
\paragraph{b)}
Answer
\begin{figure}[h!]
\centering
\includegraphics[width=0.4\linewidth]{graph.png}
\caption{A thing.}
\label{fig:thing1}
\end{figure}
\end{document}
以及 test.csv 文件:
x & (-∞, 2)
1 & 2
Gummi 中的构建日志显示此错误:
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
/home/ben/Documents/BSc_Computing/MST124_Essential_Maths/LaTeX_Files/.TMA_Templ
ate.tex.swp:30: Undefined control sequence.
\GenericError ...
#4 \errhelp \@err@ ...
l.30 ]{test.csv}
^^M
从 .csv 中删除无穷符号会消除错误并允许文件编译,但我想要表中的符号。
有任何想法吗?