
문서를 사용자 정의 페이지 크기로 편집한 다음 절단선을 인쇄하려고 합니다. 패키지 충돌이 있어서 작물 패키지도 못가지고 있는데 geometry
이유를 모르겠습니다. MWE는 다음과 같습니다.
\documentclass[10pt,headsepline]{bookest}
\usepackage[paperheight=7in,paperwidth=4.25in,top=1in,bottom=1in,right=1in,left=1in]{geometry}
\usepackage[english]{babel}
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{LinLibertine_Re-4.7.5}
\usepackage{blindtext}
\begin{document}
\Blinddocument
\end{document}
답변1
문제는 그렇다는 bookest.cls
것이다
\RequirePackage{geometry}
패키지가 프리앰블에 로드되기 전에. 따라서 옵션 클래스가 있습니다. 옵션 없이 로드되었고 나중에 일부 옵션으로 로드되었습니다.
이에 대한 다양한 방법이 있습니다.
사용
\geometry{<options>}
프리앰블에서 옵션이 패키지가 로드된 후에 설정할 수 있는 옵션인 경우. 그렇지 않은 경우 방법 2 또는 3을 선택하십시오.
사용
\documentclass[<options>]{bookest}
인식할 수 없는 옵션에 대한 경고가 발생할 수 있으므로 무시해도 됩니다. 또는 방법 3을 사용하세요.
사용
\PassOptionsToPackage{<options>}{geometry} \documentclass{bookest}
클래스가 패키지를 로드할 때 옵션을 패키지에 전달합니다.
편집하다
여기에 예가 있습니다. 크기가 지정된 글꼴을 사용하더라도 \tiny
텍스트 블록은 TeX에서 좋은 출력을 생성하기에는 너무 작습니다. 보통 크기의 글꼴을 사용하면 불량 상자가 많이 생길 수 있습니다.
절단선은 표시가 실제로 표시될 곳이 없기 때문에 layoutsize
가 보다 작을 때만 의미가 있습니다 . papersize
(아직도 존재하는 것 같지만 종이에는 없습니다.)
\documentclass{bookest}% neither 10pt nor headsepline are doing anything whatsoever as far as I can tell - certainly the class doesn't recognise them
\geometry{%
paperheight=8in,
paperwidth=5.25in,
top=1in,
bottom=1in,
right=1in,
left=1in,
layoutsize={4.25in,7in},
layoutoffset={.5in,.5in},
showcrop,
}
\usepackage{blindtext}
\begin{document}
\tiny
\Blinddocument
\end{document}
편집하다
다음은 의견에서 요청한 대로 미국 편지지의 자르기 표시를 보여주는 예입니다.
\documentclass{bookest}% neither 10pt nor headsepline are doing anything whatsoever as far as I can tell - certainly the class doesn't recognise them
\geometry{%
letterpaper,
top=1in,
bottom=1in,
right=1in,
left=1in,
layoutsize={4.25in,7in},
layoutoffset={1.5in,1.5in},
showcrop,
}
\usepackage{blindtext}
\begin{document}
\tiny
\Blinddocument
\end{document}
답변2
문서 클래스가 이미 패키지 를 로드한 것으로 보이며 geometry
이로 인해 옵션 충돌이 발생합니다. 간단히 \geometry
명령을 사용하여 전달하려는 옵션을 지정하세요. 예를 들어:
\documentclass[10pt,headsepline]{bookest}
% \usepackage{geometry}
\usepackage{blindtext}
\geometry{
a4paper,
layoutheight=7in, layoutwidth=4.25in,
layoutvoffset=1in, layouthoffset=1in,
margin=0in, % am I correctly guessing your intention?
showcrop
}
\begin{document}
\Blinddocument
\end{document}