当从文本文件中读取° 符号时, 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:

以下是我试图包含在 .tex 文件中的文本文件 :::

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 (将#修改为@)