
Atualizei recentemente o Mactex para a versão 2016. Usando o TexStudio (versão mais recente) anteriormente, usando o MacTex 2015, meus arquivos foram compilados sem erros. Agora, usando o Mactex 2016, uma compilação de cinco arquivos main.tex diferentes gera os mesmos erros. Ficaria grato se alguém tiver alguma sugestão? Obrigado: 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)
Meu 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}
Responder1
Edição de 26/06/2016
Este bug typearea.sty
foi corrigido no Komascript 3.21, lançado em 17/06/2016.
Atualize sua distribuição TeX e o problema deverá desaparecer.
postagem original
É um simples erro de digitação typearea.sty
(faltando barras invertidas) que será corrigido na próxima atualização. Como solução alternativa, use a opção pagesize=false
sugerida emhttp://www.komascript.de/release3.20
O código correto em typearea (linha 477) deve ficar assim:
\newcommand{\set@pdftexpagesize}{%
\scr@ifundefinedorrelax{pdfpagewidth}{%
\scr@ifundefinedorrelax{pagewidth}{}{\pagewidth=\paperwidth}%
}{\pdfpagewidth=\paperwidth}%
\scr@ifundefinedorrelax{pdfpageheight}{%
\scr@ifundefinedorrelax{pageheight}{}{\pageheight=\paperheight}%
}{\pdfpageheight=\paperheight}%
}