我刚刚安装了 texlive,并且正在运行官方文档第 3.5 节。测试按预期进行,但当我运行到时,出现testfont.tex
了!corrupt nfss table
、Overfull hbox
、\nopagenumbers
和错误。是什么导致了这些错误;是我做错了什么还是安装出了问题?没有关于如何运行这些测试的说明,所以我主要在提示符下使用 return。我怎么知道在提示符下要输入什么?Undefined control sequence
Missing \begin{document}
[user@host ~]$ latex testfont
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2018/texmf-dist/tex/plain/knuth-lib/testfont.tex
LaTeX2e <2018-04-01> patch level 5
! Undefined control sequence.
l.6 \nopagenumbers
?
Name of the font to test =
kpathsea: Running mktextfm
/usr/local/texlive/2018/texmf-dist/web2c/mktexnam: Could not map source abbreviation 6 for 600.
/usr/local/texlive/2018/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2018/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input
This is METAFONT, Version 2.7182818 (TeX Live 2018) (preloaded base=mf)
kpathsea: Running mktexmf
! I can't find file `'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input
Transcript written on mfput.log.
grep: .log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ' failed to make .tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \testfont= not loadable: Metric (TFM) file not found.
<to be read again>
\par
l.208 \ifx\noinit!\else\init
\fi
?
! Undefined control sequence.
<argument> \sevenrm
Test of \fontname \unskip \ on \today \ at \hours
l.208 \ifx\noinit!\else\init
\fi
?
Now type a test command (\help for help):)
*\help
\init switches to another font;
\end or \bye finishes the run;
\table prints the font layout in tabular format;
\text prints a sample text, assuming TeX text font conventions;
\sample combines \table and \text;
\mixture mixes a background character with a series of others;
\alternation interleaves a background character with a series;
\alphabet prints all lowercase letters within a given background;
\ALPHABET prints all uppercase letters within a given background;
\series prints a series of letters within a given background;
\lowers prints a comprehensive test of lowercase;
\uppers prints a comprehensive test of uppercase;
\digits prints a comprehensive test of numerals;
\math prints a comprehensive test of TeX math italic;
\names prints a text that mixes upper and lower case;
\punct prints a punctuation test;
\bigtest combines many of the above routines;
\help repeats this message;
and you can use ordinary TeX commands (e.g., to \input a file).
*\names
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Compani
on for explanation.
Type H <return> for immediate help.
...
<*> \names
? H
You're in trouble here. Try typing <return> to proceed.
If that doesn't work
, type X <return> to quit.
?
LaTeX Font Warning: Font shape `/cmr/m/n' undefined
(Font) using
`/cmr/m/n' instead on input line 0.
! Corrupted NFSS tables.
wrong
fontshape ...rmessage {Corrupted NFSS tables}
error
fontshape else let f...
<*> \names
? X
No pages of output.
Transcript written on testfont.log.
更多代码:
[user@host ~]$ latex testfont.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2018/texmf-dist/tex/plain/knuth-lib/testfont.tex
LaTeX2e <2018-04-01> patch level 5
! Undefined control sequence.
l.6 \nopagenumbers
? \help
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? H
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
?
Name of the font to test = cmr
kpathsea: Running mktextfm cmr
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input cmr
This is METAFONT, Version 2.7182818 (TeX Live 2018) (preloaded base=mf)
kpathsea: Running mktexmf cmr
mf: no pointsize.
! I can't find file `cmr'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input cmr
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input cmr
Transcript written on mfput.log.
grep: cmr.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input cmr' failed to make cmr.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \testfont=cmr not loadable: Metric (TFM) file not found.
<to be read again>
\spaceskip
l.208 \ifx\noinit!\else\init
\fi
? H
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
? H
Sorry, I already gave what help I could...
Maybe you should try asking a human?
An error might have occurred before I noticed any problems.
``If all else fails, read the instructions.''
?
! Undefined control sequence.
<argument> \sevenrm
Test of \fontname \unskip \ on \today \ at \hours
l.208 \ifx\noinit!\else\init
\fi
?
Now type a test command (\help for help):)
*
(Please type a command or say `\end')
*\help
\init switches to another font;
\end or \bye finishes the run;
\table prints the font layout in tabular format;
\text prints a sample text, assuming TeX text font conventions;
\sample combines \table and \text;
\mixture mixes a background character with a series of others;
\alternation interleaves a background character with a series;
\alphabet prints all lowercase letters within a given background;
\ALPHABET prints all uppercase letters within a given background;
\series prints a series of letters within a given background;
\lowers prints a comprehensive test of lowercase;
\uppers prints a comprehensive test of uppercase;
\digits prints a comprehensive test of numerals;
\math prints a comprehensive test of TeX math italic;
\names prints a text that mixes upper and lower case;
\punct prints a punctuation test;
\bigtest combines many of the above routines;
\help repeats this message;
and you can use ordinary TeX commands (e.g., to \input a file).
*\table
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Compani
on for explanation.
Type H <return> for immediate help.
...
<*> \table
? H
You're in trouble here. Try typing <return> to proceed.
If that doesn't work
, type X <return> to quit.
? X
No pages of output.
Transcript written on testfont.log.
[user@host ~]$ latex testfont.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2018/texmf-dist/tex/plain/knuth-lib/testfont.tex
LaTeX2e <2018-04-01> patch level 5
! Undefined control sequence.
l.6 \nopagenumbers
?
Name of the font to test = cmr10
! Undefined control sequence.
<argument> \sevenrm
Test of \fontname \unskip \ on \today \ at \hours
l.208 \ifx\noinit!\else\init
\fi
?
Now type a test command (\help for help):)
*\help
\init switches to another font;
......
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Compani
on for explanation.
Type H <return> for immediate help.
...
<*> \lowers
? H
You're in trouble here. Try typing <return> to proceed.
If that doesn't work
, type X <return> to quit.
?
Overfull \hbox (5.00002pt too wide) detected at line 0
[]\testfont a
Overfull \hbox (15.00005pt too wide) detected at line 0
\testfont aaa
Overfull \hbox (15.5556pt too wide) detected at line 0
\testfont aba
Overfull \hbox (14.44447pt too wide) detected at line 0
\testfont aca
Overfull \hbox (15.5556pt too wide) detected at line 0
\testfont ada
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Compani
on for explanation.
Type H <return> for immediate help.
...
<*> \lowers
? H
You're in trouble here. Try typing <return> to proceed.
If that doesn't work
, type X <return> to quit.
? x
Output written on testfont.dvi (1 page, 556 bytes).
Transcript written on testfont.log.
答案1
您链接到的文档指出:
Standard test files you may find useful in addition to sample2e.tex:
small2e.tex
A simpler document than sample2e, to reduce the input size if you’re having troubles.
testpage.tex
Test if your printer introduces any offsets.
nfssfont.tex
For printing font tables and tests.
testfont.tex
Also for font tables, but using plain TEX.
story.tex
The most canonical (plain) TEX test file of all. You must type ‘\bye’ to the * prompt after ‘tex story.tex’.
Sotestfont.tex
要与tex
(或etex
) not一起使用latex
。
你可以这么做latex nfssfont
。