我之前的安装因为诸如“@expl@@@filehook@file@pop@assign@@nnnn 的参数有一个额外的...”之类的错误而变得无法使用
因此,我在 Windows 11 上完全卸载并重新安装了 basic-miktex-23.10-x64。然后我收到此错误“!\begin 的参数有一个多余的 }。”
我添加了 MinionPro 标签,因为我怀疑这是原始安装的问题。MWE:
\documentclass{article}
\usepackage{wrapfig}
\begin{document}
\begin{wraptable}
\begin{tabular}
C1 &C2\\
1 &2 \\
9 &16 \\
11 &9 \\
\end{tabular}
\end{wraptable}
Oh, woe is me!
\end{document}
完整信息如下
This is LuaHBTeX, Version 1.17.1 (MiKTeX 23.12)
restricted system commands enabled.
(./mwe.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-01-04>
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/base/size10.clo))
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/wrapfig/wrapfig.sty)
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/l3backend/l3backend-lua
tex.def) (./mwe.aux)
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/base/ts1cmr.fd)
! Argument of \begin has an extra }.
<inserted text>
\par
l.9 \begin
{tabular}
The log file is
This is LuaHBTeX, Version 1.17.1 (MiKTeX 23.12) (format=lualatex 2024.1.26) 26 JAN 2024 22:00
restricted system commands enabled.
**mwe.tex
(./mwe.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-01-04>
Lua module: luaotfload 2023-08-31 3.26 Lua based OpenType font support
Lua module: lualibs 2023-07-13 2.76 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2023-07-13 2.76 ConTeXt Lua libraries -- extended c
ollection.
luaotfload | conf : Root cache directory is "C:/Users/myuser/AppData/Local/MiKTeX
/luatex-cache/generic/names".
luaotfload | init : Loading fontloader "fontloader-2023-08-19.lua" from kpse-res
olved path "C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/luatex/luaotfload/f
ontloader-2023-08-19.lua".
Lua-only attribute luaotfload@noligature = 1
luaotfload | init : Context OpenType loader version 3.133
Inserting `luaotfload.node_processor' in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' in `hpack_filter'.
Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'.
Inserting `luaotfload.define_font' in `define_font'.
Lua-only attribute luaotfload_color_attribute = 2
luaotfload | conf : Root cache directory is "C:/Users/myuser/AppData/Local/MiKTeX
/luatex-cache/generic/names".
Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'.
Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'.
Removing `luaotfload.glyph_stream' from `glyph_stream_provider'.
Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'.
Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'.
Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'.
Inserting `luaotfload.cleanup_files' in `wrapup_run'.
Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'.
Inserting `luaotfload.glyphinfo' in `glyph_info'.
Lua-only attribute luaotfload.letterspace_done = 3
Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'.
Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'.
Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'.
Inserting `tracingstacklevels' in `input_level_string'. (C:/Users/myuser/AppData
/Local/Programs/MiKTeX/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/base/size10.clo
File: size10.clo 2023/05/17 v1.4n Standard LaTeX file (size option)
luaotfload | db : Font names database loaded from C:/Users/myuser/AppData/Local/M
iKTeX/luatex-cache/generic/names/luaotfload-names.luc.gz)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen139
)
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/wrapfig/wrapfig.sty
\wrapoverhang=\dimen140
\WF@size=\dimen141
\c@WF@wrappedlines=\count193
\WF@box=\box51
\WF@everypar=\toks17
Package: wrapfig 2003/01/31 v 3.6
)
(C:/Users/myuser/AppData/Local/Programs/MiKTeX/tex/latex/l3backend/l3backend-lua
tex.def
File: l3backend-luatex.def 2024-01-04 L3 backend support: PDF output (LuaTeX)
\l__color_backend_stack_int=\count194
Inserting `l3color' in `luaotfload.parse_color'.
\l__pdf_internal_box=\box52
) (./mwe.aux)
\openout1 = mwe.aux
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay
答案1
tabular
和的语法warptable
都是错误的。至少你必须指定两个环境的强制参数:
\documentclass{article}
\usepackage{wrapfig}
\begin{document}
\begin{wraptable}{r}{5cm}
\begin{tabular}{cc}
C1 &C2\\
1 &2 \\
9 &16 \\
11 &9 \\
\end{tabular}
\end{wraptable}
Oh, woe is me!
\end{document}