
memoir
클래스와 showframe
패키지 의 조합이 curve2e
잘 작동하지 않는 것 같습니다. 다음은 테스트에 사용한 MWE입니다.
% memframeprob.tex
%\documentclass{book}
\documentclass[a4paper]{memoir}
\usepackage{showframe}
\usepackage{lipsum}
\usepackage{comment}
%\begin{comment}
\setlrmarginsandblock{0.5in}{*}{*}
\setulmarginsandblock{0.5in}{*}{1}
\checkandfixthelayout
\pagestyle{empty}
\usepackage{url}
%\end{comment]
\usepackage{pict2e}
\usepackage{curve2e} % problem
%\begin{comment}
\newcommand*{\X}{{\LARGE\textbf{.}}}
\renewcommand*{\X}{\makebox(0,0){{\large\textbf{+}}}}
\newcommand*{\Flag}{{\LARGE$\uparrow$}}
\newcommand*{\mk}{\makebox(0,0){$\circ$}}
\newcommand*{\Mk}{\makebox(0,0){$\bullet$}}
%\end{comment}
\begin{document}
\lipsum[1]
\end{document}
보시다시피 저는 코드의 일부를 주석 처리하여 문제가 있는 곳을 찾으려고 노력했습니다. MWE를 컴파일했을 때 나는 다음과 같은 결과를 얻었습니다.
(/usr/local/texlive/2020/texmf-dist/context/base/mkii/sypp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
! Missing number, treated as zero.
<to be read again>
\bgroup
l.31 \end{document}
이는 클래스를 사용할 때 book
(모든 특정 명령 제거 ) 발생하지 않았으며 패키지 를 사용하지 않을 때도 발생 memoir
하지 않았습니다 .memoir
book
curve2e
문제의 원인이 무엇인지 전혀 모르겠습니다.
답변1
2020-10-01 릴리스 이후 라텍스 사진 모드에서는 \put
좌표 길이를 허용합니다(이전에는 패키지에서 다르게 제공되는 기능 picture
).
Curve2e가 업데이트되었지만 다음을 포함한 일부 경우가 누락되었습니다.\line
% memframeprob.tex
%\documentclass{book}
\documentclass[a4paper]{memoir}
\usepackage{showframe}
\usepackage{lipsum}
\usepackage{comment}
%\begin{comment}
\setlrmarginsandblock{0.5in}{*}{*}
\setulmarginsandblock{0.5in}{*}{1}
\checkandfixthelayout
\pagestyle{empty}
\usepackage{url}
%\end{comment]
\usepackage{pict2e}
\usepackage{curve2e} % problem
\makeatletter
\def\line(#1)#2{\begingroup
\@defaultunitsset\@linelen{#2}\unitlength
\ifdim\@linelen<\z@\@badlinearg\else
\expandafter\DirOfVect#1to\Dir@line
\GetCoord(\Dir@line)\d@mX\d@mY
\ifdim\d@mX\p@=\z@\else
\edef\sc@lelen{\fpeval{1 / abs(\d@mX)}}\relax
\@linelen=\sc@lelen\@linelen
\fi
\moveto(0,0)\pIIe@lineto{\d@mX\@linelen}{\d@mY\@linelen}%
\strokepath
\fi
\endgroup\ignorespaces}%
\makeatother
%\begin{comment}
\newcommand*{\X}{{\LARGE\textbf{.}}}
\renewcommand*{\X}{\makebox(0,0){{\large\textbf{+}}}}
\newcommand*{\Flag}{{\LARGE$\uparrow$}}
\newcommand*{\mk}{\makebox(0,0){$\circ$}}
\newcommand*{\Mk}{\makebox(0,0){$\bullet$}}
%\end{comment}
\begin{document}
\lipsum[1]
\end{document}