%20%D0%B8%D0%B7%20.csv.%20%D0%9E%D1%88%D0%B8%D0%B1%D0%BA%D0%B0%3A%20%D0%BE%D1%82%D1%81%D1%83%D1%82%D1%81%D1%82%D0%B2%D1%83%D0%B5%D1%82%20%D0%B2%D1%81%D1%82%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9%20%5Cendcsname.png)
Я получаю следующую ошибку при попытке построить таблицу .csv (ссылка на таблицу: https://github.com/JKhay/LaTeX) к статье:
Missing \endcsname inserted.
<to be read again>
\penalty
l.107 ...emicolon, each nth point=10] {C1PDF.csv};
^^M
Missing \endcsname inserted.
<to be read again>
\penalty
l.107 ...emicolon, each nth point=10] {C1PDF.csv};
^^M
Package pgfplots Warning: Table 'C1PDF.csv' has non-unique column name '\penalty \@M e'.
Only the first occurence can be accessed via column names. on input line 107.
код для картинки tikz:
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
\begin{axis}[
width=70 mm,
height=70 mm,
y label style={at={(axis description cs:-0.1,.5)},rotate=0,anchor=south},
xlabel={Displacement [nm]},
yticklabel style={/pgf/number format/.cd, fixed, fixed zerofill, precision=1, /tikz/.cd },
xticklabel style={/pgf/number format/.cd,,1000 sep={\,}, fixed, fixed zerofill, precision=0, /tikz/.cd}, scaled ticks=false,
ylabel={Load [mN]},
xmin=0, xmax=350,
ymin=0, ymax=2.7,
xtick={0,100,200,300},
ytick={0.0,0.5,1.0,1.5,2.0,2.5},
ymajorgrids=true,
grid style=dashed,
legend columns=2,
legend style={at={(0.19,0.98)},anchor=north west},
legend entries={Clinker, CH , Inner p., Outer p.},
]
\addplot [color=magenta, thick] table [x=dC, y=LC, col sep=semicolon, each nth point=10] {C1PDF.csv};
\addplot [color=green, thick] table [x=dCH, y=LCH, col sep=semicolon, each nth point=10] {C1PDF.csv};
\addplot [color=cyan, thick] table [x=dIP, y=LIP, col sep=semicolon, each nth point=10] {C1PDF.csv};
\addplot [color=red, thick] table [x=dS, y=LS, col sep=semicolon, each nth point=10] {C1PDF.csv};
\end{axis}
\end{tikzpicture}
\caption{Typical load-displacement curves.}
\label{fig:curves}
\end{figure}
Строка 107 относится к:
\addplot [color=magenta, thick] table [x=dC, y=LC, col sep=semicolon, each nth point=10] {C1PDF.csv};
Верхний и нижний колонтитулы статьи:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{textcomp}
\pgfplotsset{compat=1.15}
\begin{document}
.
.
.
.
\end{document}
Итак, не должно быть никаких отсутствующих пакетов. Кроме того, файл .csv находится в том же каталоге, что и основной файл .tex, который я компилирую.
Есть ли у вас какие-либо предложения?
Спасибо.
решение1
Это не ответ!
- Я пытался узнать о комментарии пользователяhttps://tex.stackexchange.com/users/194703.
- Вот скриншот файла (изhttps://github.com/JKhay/LaTeX, см. вопрос).
- Я не вижу «странного» символа перед первой строкой.
- Возможно пользовательhttps://tex.stackexchange.com/users/194703может прояснить свои выводы.