![使用 pgfplotstable 将 .csv 转换为表格,但不喜欢 ∞ 符号](https://linux22.com/image/412153/%E4%BD%BF%E7%94%A8%20pgfplotstable%20%E5%B0%86%20.csv%20%E8%BD%AC%E6%8D%A2%E4%B8%BA%E8%A1%A8%E6%A0%BC%EF%BC%8C%E4%BD%86%E4%B8%8D%E5%96%9C%E6%AC%A2%20%E2%88%9E%20%E7%AC%A6%E5%8F%B7.png)
这是我的.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 中删除无穷符号会消除错误并允许文件编译,但我想要表中的符号。
有任何想法吗?