控制台上的新警告

控制台上的新警告

我刚刚收到以下警告(或者更确切地说,警告)在我的控制台上:

** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.

什么他们的意思是?

更准确地说,排版:

%!TEX TS-program = xelatex
\documentclass[a4paper]{report}
\usepackage{amsmath,mathtools,xparse}
%%Greek letters
\makeatletter
\ExplSyntaxOn
\NewDocumentCommand{\@dg}{O{0.88}oO{}}
{\str_if_eq:nnTF{#1}{n}
        {\IfValueTF{#2}
            {#2{\scalebox{0.88}[0.88]{$#3\delta$}}}
            {\errmessage{Too few arguments}\errhelp{If you specify `n' as the first argument, the second optional argument must be specified, otherwise use a number as the first argument or specify no optional argument.}}
        }{\str_if_eq:nnTF{#1}{e}
            {\IfValueTF{#2}
                {#2{\scalebox{0.65}[0.65]{$#3\delta$}}}
                {\scalebox{0.65}[0.65]{$#3\delta$}}
        }{\str_if_eq:nnTF{#1}{b}
                {\IfValueTF{#2}
                    {#2{#3\delta}}
                    {{#3\delta}}
         }{\IfValueTF{#2}
                    {#2{\scalebox{#1}[#1]{$#3\delta$}}}
                    {\scalebox{#1}[#1]{$#3\delta$}}
}}}}
\newcommand{\dg}{\@dg}
\makeatother
\ExplSyntaxOff

\begin{document}
$$\overbracket[0.01pt]{\underline{E_{ii}^2}}^{E_{ii}}+\overbracket[0.01pt]{E_{ii}E_{kk}}^{\dg[n][][\scriptstyle]_{ik}E_{ik}}-\overbracket[0.01pt]{E_{ii}E_{ik}}^{E_{ik}}-\overbracket[0.01pt]{E_{ii}E_{ki}}^{\dg[n][][\scriptstyle]_{ik}E_{ii}}+\overbracket[0.01pt]{E_{kk}E_{ii}}^{\dg[n][][\scriptstyle]_{ik}E_{ki}}+$$
\end{document}

给出:

This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./gunguMWE.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mathtools.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mhsetup.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3names.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3basics.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3expan.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3tl.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3seq.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3int.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3quark.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prg.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3clist.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3token.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prop.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3msg.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3file.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3skip.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3keys.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3fp.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3box.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3coffins.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3color.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3luatex.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3candidates.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty)))
(./gunguMWE.aux)
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/xelatex/xetex-def/xetex.def))
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty) [1]
(./gunguMWE.aux)
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: height=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: height=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: height=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: height=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: height=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
** WARNING ** Too thin line: width=655 (0.00995717 bp)
** WARNING ** Please consider using "-d" option.
 )
Output written on gunguMWE.pdf (1 page).
SyncTeX written on gunguMWE.synctex.gz.
Transcript written on gunguMWE.log.

有趣的是,pdfTeX我得到:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./gunguMWE.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mathtools.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/mh/mhsetup.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3names.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3basics.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3expan.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3tl.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3seq.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3int.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3quark.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prg.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3clist.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3token.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3prop.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3msg.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3file.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3skip.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3keys.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3fp.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3box.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3coffins.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3color.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3luatex.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/l3kernel/l3candidates.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty)))
(./gunguMWE.aux)
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
))) (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty) [1{/usr/lo
cal/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./gunguMWE.aux
) )</usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pf
b></usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi5.pfb>
</usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb></
usr/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></us
r/local/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/l
ocal/texlive/2013/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on gunguMWE.pdf (1 page, 46192 bytes).
SyncTeX written on gunguMWE.synctex.gz.
Transcript written on gunguMWE.log.

也就是说,警告消失了。既然我已经给出了所有的控制台消息,你能告诉我 ll. 2-3 是什么意思吗?我猜对了吗?版本中最后几行pdfTeX,就在 之前Output written on,与字体定义有关?它们是如何处理的XeTeX

答案1

警告来自(x)dvipdfmx。有问题的代码是

if (width > height) {
  /* NOTE:
   *  A line width of 0 denotes the thinnest line that can be rendered at
   *  device resolution. See, PDF Reference Manual 4th ed., sec. 4.3.2,
   *  "Details of Graphics State Parameters", p. 185.
   */
  if (height < dev_unit.min_bp_val) {
    WARN("Too thin line: height=%ld (%g bp)", height, width_in_bp);
    WARN("Please consider using \"-d\" option.");
  }
  len += dev_sprint_line(format_buffer+len,
                         height,
                         xpos,
                         ypos + height/2,
                         xpos + width,
                         ypos + height/2);
} else {
  if (width < dev_unit.min_bp_val) {
    WARN("Too thin line: width=%ld (%g bp)", width, width_in_bp);
    WARN("Please consider using \"-d\" option.");
  }
  len += dev_sprint_line(format_buffer+len,
                         width,
                         xpos + width/2,
                         ypos,
                         xpos + width/2,
                         ypos + height);
}

pdftex.dev

因此,您尝试绘制一条太细而无法打印的线条。该消息还提示了以下-d选项:

-d number       Set PDF decimal digits (0-5) [2]

因此,对于 dvipdfmx 来说,这个数字也太小了,无法打印,因为它需要比当前配置的更多的数字;-d 5可能会有所帮助(我不知道如何使用 xetex 进行设置)。

相关内容