
最近 Mactex をバージョン 2016 にアップデートしました。以前は TexStudio (最新バージョン) を使用していましたが、MacTex 2015 ではエラーなしでファイルをコンパイルできました。現在、Mactex 2016 を使用して 5 つの異なる main.tex ファイルをコンパイルすると、同じエラーが発生します。どなたかアドバイスがあれば教えてください。よろしくお願いします: Mike
at \begin{document} in Main.tex missing number treated as zero
at \begin{document} in Main.tex illegal unit of measure (pt inserted)
at \begin{document} in Main.text missing number treated as zero
at \begin{document} in Main.tex illegal unit of measure (pt inserted)
私のMWEは次のとおりです:
\documentclass[12pt,british,twoside,openany,headings=small]{scrbook}
\usepackage{fontspec}
\usepackage{microtype}
\usepackage{ragged2e}
\usepackage{babel}
\usepackage[automark,headsepline=.25pt]{scrlayer-scrpage}
\addtokomafont{pageheadfoot}{\scshape\small}%changed to small caps in headers
\clearpairofpagestyles% remove default header and footer content
\cehead{Ben Francis}
\cohead{\rightmark}% section in header
\ofoot{} %Author Name
\ifoot{} % Chapter Number
\ohead{\pagemark}
\usepackage{geometry}
\geometry{paperwidth=5.06in,paperheight=7.81in,
verbose,
margin=0.75in,
headheight=0.1in,
headsep=0.15in,
footskip=0.45in,
}
\renewcommand*\raggedsection{\centering}
\addtokomafont{disposition}{\rmfamily} %for headings
\setkomafont{section}{\fontsize{35}{30}\selectfont}
\setkomafont{subsubsection}{\small}
\linespread{1.05}
\usepackage{lipsum}% dummy text
\begin{document}
\addchap{ONE}
\addsec{First section}
\lipsum
\addchap{TWO}
\addsec{Second section}
\lipsum
\addchap{THREE}
\addsec{Third section}
\lipsum
\end{document}
答え1
2016-06-26 編集
このバグは、typearea.sty
2016 年 6 月 17 日にリリースされた Komascript 3.21 で修正されました。
TeX ディストリビューションを更新すると、問題は解消されるはずです。
元の投稿
これは単純なタイプミスtypearea.sty
(バックスラッシュが抜けている)で、次のアップデートで修正される予定です。回避策としてpagesize=false
、http://www.komascript.de/release3.20
typearea (行 477) の正しいコードは次のようになります。
\newcommand{\set@pdftexpagesize}{%
\scr@ifundefinedorrelax{pdfpagewidth}{%
\scr@ifundefinedorrelax{pagewidth}{}{\pagewidth=\paperwidth}%
}{\pdfpagewidth=\paperwidth}%
\scr@ifundefinedorrelax{pdfpageheight}{%
\scr@ifundefinedorrelax{pageheight}{}{\pageheight=\paperheight}%
}{\pdfpageheight=\paperheight}%
}