在乳胶文档中嵌入文本文件

在乳胶文档中嵌入文本文件

如何从嵌入到乳胶文档的文本文件中删除多余的注释?

\documentclass[12pt,bibtotoc,liststotoc,BCOR5mm,DIV12]{book}



\usepackage{listings, color}    
\usepackage{textcomp}
\usepackage{fancyvrb}
\usepackage{verbatim}
\usepackage[table,dvipsnames]{xcolor}




    %redefine \VerbatimInput
\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}%
{fontsize=\footnotesize,
 %
 frame=lines,  % top and bottom rule only
 framesep=2em, % separation between frame and text
 rulecolor=\color{Blue},
 %
 label=\fbox{\color{Blue}1985.txt},
 labelposition=topline,
 %
 commandchars=\|\(\), % escape character and argument delimiters for
                      % commands within the verbatim
 commentchar=*        % comment character
}
\begin{document}

\VerbatimInput{\input{text/1985.txt}}

\end{document}

在此处输入图片描述

答案1

你要

\VerbatimInput{text/1985.txt} 

不是

\VerbatimInput{\input{text/1985.txt}} 

避免输入文件.tex

相关内容