如何解决当从文本文件中读取° 符号时, Latex 编译会中断
下面是我使用的 .tex 文件 :::
% define module name and number here:
\newcommand {\modulename} {ASM-Application} % name of the specified module
\newcommand {\projectname} {mca\_application} % name of the specified project
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{zfheader}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% packages
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{verbatim}
\usepackage{fancyvrb}
% \begin{verbatim}
\& & - ampersand
% \{ { - left brace
% \} } - right brace
% \$ $ - dollar sign
% \% % - percent sign
% \# # - number sign
% \_ _ - underscore
% \end{verbatim}
% some own deFinitions
% left-aligned with width
\newcolumntype{L}[1]{>{\raggedright\array backslash}p{#1}}
% centered with width
\newcolumntype{C}[1]{>{\centering\array backslash}p{#1}}
% right-aligned with width
\newcolumntype{R}[1]{>{\raggedleft\array backslash}p{#1}}
\newcommand {\One} {\textrm{One}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\thispagestyle{fancy} % have to be after \maketitle,because there is defined
% \thispagestyle{empty}
%\begin{abstract}
%\end{abstract}
% \newpage
\tableofcontents
\newpage
\section{Kurzbeschreibung}
\subsection{Moto parameter as xmcForAppl}
\begin{small} % \tiny 5pt \small 9pt \large 12pt \Large 14pt \huge 20pt \Huge
\Verbatiminput{../../project/asm_bk/output/ForAppl_Description.txt}
\end{small}
\section{Handvorgaben und Test}
\section{Overwise auf Documented}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% Tex-master: t
%%% End:
xmcForAppl_asm_bk_evd2_s.McMotorControl.gs_Lmf32:
motor main inductance,= Ls - Ls
xmcForAppl_asm_bk_evd2_s.McMotorControl.gs_OneDivLrf32:
= 1/Ly
xmcForAppl_asm_bk_evd2_s.McMotorControl.gs_RsReff32:
resistance Stator **@120° C**
xmcForAppl_asm_bk_evd2_s.McMotorControl.gs_RrTempCoefff32:
Rr calculation-coefficient = f(Reference temperature)
请注意@120°C 的行,因为当我尝试编译时,编译会中断,但如果我删除度数符号,编译会成功。 通过删除符号,我可以生成包含所有文本文件内容的 .pdf 文件。
请帮我找到解决此问题的方法{解析 .txt 文件中的符号没有任何错误}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。