
저는 tufte-book 문서 클래스를 작업 중인데 페이지 크기를 변경하고 싶습니다. 페이지가 작기 때문에 텍스트의 전체 너비(여백 메모 포함)를 고정하고 싶습니다. 문서 클래스의 문서에서는 기하학 패키지 사용을 지정합니다.
이 패키지의 문서에서는 매개 width
변수에 대해 다음과 같이 설명합니다.
width|totalwidth
폭전신.
width=
또는totalwidth=
. 이 치수의 기본값은textwidth
이지만includemp
로 설정된 경우true
에는 여백 메모의 너비가 포함됩니다width ≥ textwidth
. 과 가 동시에 지정되면width
가 에 우선합니다 .textwidth
width
textwidth
width
이것은 내 서문의 텍스트입니다.
\documentclass[symmetric,justified,marginals=raggedouter]{tufte-book}
\usepackage{microtype}
\usepackage{calc}
\usepackage{geometry,afterpage}
\geometry{papersize={16.8cm,23.7cm}}% <= it seems to be OK
\geometry{textheight=18.6cm}%text : 132 *186 mm <= it is OK
\geometry{width=13.2cm}% <= The code doesn't take into account the marginparwidth and the marginparsep
\begin{document}
\end{document]
includemp
로 설정되도록 지정하는 방법을 모르겠습니다 true
.
답변1
매뉴얼의 인용문에는 geometry
" textwidth
과 가 width
동시에 지정 되면 " textwidth
보다 우선합니다 width
." 라고 나와 있습니다.
의 소스 tufte-book
, 특히 파일 에는 tufte-common.def
다음 코드가 있습니다.
\RequirePackage[letterpaper,left=1in,top=1in,headsep=2\baselineskip,textwidth=26pc,marginparsep=2pc,marginparwidth=12pc,textheight=44\baselineskip,headheight=\baselineskip]{geometry}
이는 textwidth
클래스에 지정되어 있으므로 width
나중에 제공된 모든 지정(예: 파일 .tex
)이 무시됨을 의미합니다.
따라서 텍스트 너비를 변경하려면 textwidth
여백 크기를 수동으로 지정하고 고려해야 합니다. 그러나 에서는 산술 표현식을 사용할 수 있습니다 \geometry
. 따라서 다음 코드는
\geometry{textwidth=13.2cm-\marginparwidth-\marginparsep}
본문과 여백을 합친 값이 13.2cm임을 지정합니다.