XeLaTeX - 终端输出太详细

XeLaTeX - 终端输出太详细

是否有可能减少从运行中获取的信息量:

xelatex texfile.tex

输出内容好长:

This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(/home/petr/Dropbox/School/R/3/document.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, sl
ovak, czech, loaded.
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2012/05/15 v3.11 KOMA-Script document class (article)
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2011/03/09 v3.09 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

))) (/usr/share/texlive/texmf-dist/tex/latex/koma-script/tocbasic.sty)
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/scrsize12pt.clo)
(/usr/share/texlive/texmf-dist/tex/latex/koma-script/typearea.sty
Package typearea, 2012/05/15 v3.11 KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-

)) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel/czech.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texlive/texmf-dist/tex/latex/xltxtra/xltxtra.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3names.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3bootstrap.sty))
(/usr/share/texlive/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/share/texlive/texmf-dist/tex/xelatex/xetex-def/xetex.def))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg))
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3basics.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3expan.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3tl.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3seq.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3int.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3quark.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3prg.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3clist.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3token.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3prop.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3msg.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3file.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3skip.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3keys.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3fp.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3box.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3coffins.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3color.sty)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3luatex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fixltx2e.sty)
*************************************************
* LaTeX warning: "xparse/redefine-command"
* 
* Redefining document command \oldstylenums with arg. spec. 'm' on line 107.
*************************************************
) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd))
(/usr/share/texlive/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/share/texmf/tex/latex/tipa/t3enc.def
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmss.fd))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/share/texlive/texmf-dist/tex/latex/realscripts/realscripts.sty
*************************************************
* LaTeX warning: "xparse/redefine-command"
* 
* Redefining document command \textsubscript with arg. spec. 's' on line 25.
*************************************************
*************************************************
* LaTeX warning: "xparse/redefine-command"
* 
* Redefining document command \textsuperscript with arg. spec. 's' on line 28.
*************************************************
) (/usr/share/texlive/texmf-dist/tex/latex/metalogo/metalogo.sty))
(/usr/share/texlive/texmf-dist/tex/latex/tools/tabularx.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty))
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty
(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg))
(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty)
(/usr/share/texlive/texmf-dist/tex/latex/mdframed/mdframed.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/zref-abspage.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/zref-base.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty))
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/atbegshi.sty))
(/usr/share/texlive/texmf-dist/tex/latex/mdframed/md-frame-0.mdf))
(/usr/share/texlive/texmf-dist/tex/latex/tools/enumerate.sty)
(/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty)
(/usr/share/texlive/texmf-dist/tex/latex/parskip/parskip.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/xelatex/xetexconfig/hyperref.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hxetex.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hxetex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/stringenc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvipsnam.def))
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/mathpazo.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font
* 'Times New Roman' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times
* New Roman' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font
* 'Times New Roman' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times
* New Roman' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font
* 'Times New Roman/B' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times
* New Roman/B' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font
* 'Times New Roman/I' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times
* New Roman/I' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font
* 'Times New Roman/BI' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times
* New Roman/BI' with script '' and language ''.
*************************************************
(./document.aux) (/usr/share/texmf/tex/latex/tipa/t3cmr.fd)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./document.out) (./document.out)

LaTeX Font Warning: Font shape `EU1/TimesNewRoman(0)/m/sc' undefined
(Font)              using `EU1/TimesNewRoman(0)/m/n' instead on input line 71.

[1] (./document.toc (/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ppl.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omlzplm.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omszplm.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omxzplm.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1zplm.fd)) [2] [3]
<images/bp_consumption.eps> [4] <images/hist_engine.eps> [5]
<images/pie_makes.eps> [6] <images/bar_trans.eps> [7]
(./imports/theoretical_model.tex) (./codes/output.R
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Failed to convert input string to UTF16...


LaTeX Font Warning: Font shape `EU1/Arial/m/n' undefined
(Font)              using `EU1/lmr/m/n' instead on input line 2.

) [8] [9]
Overfull \hbox (0.27144pt too wide) in paragraph at lines 204--207
[]\EU1/TimesNewRoman(0)/m/n/12 Jednotliví \EU1/TimesNewRoman(0)/bx/n/12 výrob
ci \EU1/TimesNewRoman(0)/m/n/12 nám spotřebu ovlivňují určitým směrem. N
apříklad vozy značky Audi ($\OML/zplm/m/it/12 M[]$\EU1/TimesNewRoman(0)/m/n/
12 )
[10] (./codes/t_test.txt) [11] (./codes/bp_test.txt)
<images/residual_density.eps> [12** WARNING ** << /Rotate 90 >> found. (Not supported yet)
** WARNING ** << /Rotate 90 >> found. (Not supported yet)
] (./codes/anova.txt) [13] (./codes/robust.txt
) [14] [15] (./R_code.R) [16] [17] (./document.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )
(see the transcript file for additional information)
Output written on document.pdf (17 pages).
Transcript written on document.log.

因此,发现错误会非常困难且不方便,因为错误很容易被忽略。

常规latexmk输出很简单:说“没有错误。但是有一些警告:”或类似的东西。

编辑:我的文档标题:

\documentclass[12pt,a4paper]{scrartcl}

\usepackage[czech]{babel} % czech
\usepackage{xltxtra} % fonts
\usepackage{tabularx} % tables
\usepackage{listings} % code listings
\usepackage{array}
\usepackage{float}
\usepackage{mdframed} % code boxes
\usepackage{enumerate} % numbered items
\usepackage{enumitem} % items
\usepackage{parskip} % no paragraph space
\usepackage[unicode,bookmarks=true]{hyperref} % pdf bookmarks
\usepackage[usenames,dvipsnames]{xcolor} % colors
\usepackage{mathpazo} % nicer math font
\usepackage{fancyhdr} % nice header

% Set fonts
\setmainfont[Ligatures={Common,TeX}, Numbers={OldStyle}]{Times New Roman}
\setmonofont{Consolas}
\linespread{1.2}

\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}

% Set colors
\definecolor{lightGray}{HTML}{EEEEEE}
% Code box
\newmdenv[backgroundcolor = lightGray, middlelinewidth = 0, linecolor = Gray]{customMdframed}
% Set code listings
\lstset{
    % language = R,
    basicstyle = \fontsize{9pt}{10pt}\ttfamily,
    numberstyle = \fontsize{9pt}{10pt}\ttfamily,
    commentstyle = \fontsize{9pt}{10pt}\ttfamily\color{gray},
    backgroundcolor = \color{lightGray},
    breaklines = true,
    breakatwhitespace = true,
    postbreak = {\fontfamily{Arial}{\selectfont →}}\space,
    prebreak = {\fontfamily{Arial}{\selectfont →}}
}
% Define custom wrap
\newcommand{\embedCode}[1]{ \begin{customMdframed} \lstinputlisting{#1} \end{customMdframed} }

% Set header
\pagestyle{fancy}

答案1

当然,输出很多,但大多数信息是关于错误/警告在流程中的哪个位置发生的上下文。您可以尝试过滤掉所有非错误和非警告行,但您也删除了一些可能有助于追踪错误原因的上下文信息。对于小文档来说,这可能不是那么重要,但对于包含多个文件且长达几百页的文档来说,这一点就变得至关重要。您宁愿习惯于随着时间的推移对输出进行排序并提取相关信息,而且 LaTeX 在大多数情况下非常擅长用新行突出显示错误和警告。首先,我们可以假设,如果输出只是一行又一行的文本而没有空行,那么您就不必担心。

通常,当 LaTeX 向您发出此类警告时,都是有原因的。忽略这些警告意味着您的输出将不会如您所期望的那样,这里就是这种情况。所以最好的办法是听取引擎的意见并进行修复。很多输出都来自于你要求 XeLaTeX 做它做不到的事情:

*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Ligatures=Common,TeX' (+liga) not available for font
* 'Times New Roman' with script '' and language ''.
*************************************************
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
* 
* OpenType feature 'Numbers=OldStyle' (+onum) not available for font 'Times
* New Roman' with script '' and language ''.
*************************************************

源自您的定义\setmainfont以及您请求的字体不支持的选项。您应该更改字体或删除有问题的选项:

\setmainfont{Times New Roman} %the common ligature should be enabled by default
LaTeX Font Warning: Font shape `EU1/TimesNewRoman(0)/m/sc' undefined
(Font)              using `EU1/TimesNewRoman(0)/m/n' instead on input line 71.

这句话说的是字体没有小写字母字形,所以每次使用它们时它都会恢复到正常形状。如果你不使用\textsc{}或者\scshape你可以放心地忽略这一点。如果你确实使用它们,那么要么改变你的字体,要么伪造 sc。

重复的

** 警告 ** 无法将输入字符串转换为 UTF16...

似乎来自hyperref。添加unicode=true, pdfencoding=auto到您的\hypersetup应该可以解决这个问题。(参见本文本问题)

LaTeX Font Warning: Font shape `EU1/Arial/m/n' undefined
(Font)              using `EU1/lmr/m/n' instead on input line 2.

这是指您在列表定义中使用 的地方\fontfamily{Arial},它告诉您它不理解您的请求并决定用它知道的字体替换该字体,在本例中为拉丁现代罗马字体,这可能不是您想要的。

您可以在序言中将其替换为\fontspec{Arial}或定义Arial为文档中的 Sans Serif 字体,并在列表定义中调用。\setsansfont{Arial}\sffamily

答案2

[quiet]使用包的选项fontspec

答案3

我发现普普拉特非常有用。它可以运行latex您想要的任何类似程序(xelatex这是一种可能性),并总结警告和错误(并且可以从中使用latexmk)。

它还可以用作智能日志阅读器,在另一个答案的评论中提到过。

答案4

答案是:橡皮

它本身不支持 XeLaTeX,但可以按照http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579757

相关内容