我尝试隐藏这样的信息
File: 2302.eps Graphic file (type eps)
<2302.eps>
从日志文件以及控制台..由于 eps 文件是通过 \includegraphics(graphicx 包的宏)导入的,我尝试将包加载为
\usepackage[quiet]{graphicx}
然而,在日志文件中显示一条消息说
preamble.tex:31: LaTeX Error: Option clash for package graphicx.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help
The package graphicx has already been loaded with options: []
There has now been an attempt to load it with options [quiet]
关键是我之前没有加载该包,如以下几行所示:
\makeatletter
\renewcommand{\PackageInfo}[2]{} % Remove package information
\renewcommand{\@font@info}[1]{} % Remove font information
\renewcommand{\@latex@info}[1]{} % Remove LaTeX information
\makeatother
\documentclass[a4paper,twoside,10pt]{memoir}
\usepackage[american,greek]{babel}
\usepackage[iso-8859-7]{inputenc}
\def\eng#1{\textlatin{#1}}
\newcommand{\sg}{\selectlanguage{greek}}
\newcommand{\sa}{\selectlanguage{american}}
\usepackage{textcase}
\usepackage{silence}
\usepackage{kerkis}
\usepackage{epsfig}
\usepackage{color}
\usepackage[svgnames,x11names,named]{xcolor}
\WarningFilter*{mdframed}{You got a bad break}
\WarningFilter{latex}{Text page}
\usepackage[usetwoside]{mdframed}
\usepackage[quiet]{graphicx} <==== THE PACKAGE IS LOADED HERE
我的问题是发生了什么事,我该如何隐藏这些信息?非常感谢!
答案1
如果你查看测试文件的终端输出,你会看到:
(/usr/local/texlive/2017/texmf-dist/tex/latex/kerkis/kerkis.sty
***********************************************
******** Loading The Kerkis FontFamily ********
********** Department of Mathematics **********
*********** University of the Aegean **********
***********************************************)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/epsfig.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-def/pdftex.def))))
注意 的位置,()
表示(
的开头直到、、和被读取之后才epsfig.sty
用匹配关闭,表明所有这些文件都是由 直接或间接输入的。)
graphicx.sty
graphics.sty
trig.sty
graphics.cfg
pdftex.def
epsfig
以前你可以graphicx
使用选项加载epsfig
,但最好epsfig
根本不要加载,它只是在 1994 年编写的,用于帮助转换旧的文档然后到“新” latex2e 图形系统。它只是对软件包的薄包装,模拟了在 LaTeX2e 产生之前流行的graphicx
LaTeX2.09 样式文件。epsfig