我是 LaTeX 和本网站的新手。我正在使用我在为什么我无法正确获取回忆录类型块的高度? (幸运的是,我想要完全相同的页面大小以及文本和边距之间的比例。)
现在我有一个带有大量侧边栏的文本,我需要使用 调整边距大小\setmarginnotes
,因为我得到的默认值确实太宽了。
我的问题是如何确定边注的最佳线宽。是否有黄金法则公式?
我不得不编辑我的问题,因为我不能使用评论(太多文字)并且我不允许回答我自己的问题。
\documentclass{memoir}
\setstocksize{210mm}{148.5mm}
\settrimmedsize{210mm}{148.5mm}{*}
\settypeblocksize{*}{261.46141pt}{1.41421356}
\renewcommand{\sideparfont}{\footnotesize}%
\makeatletter
\newcommand{\psize}{\f@size}
\makeatother
\setlxvchars
\newlength{\typeareaheight}\setlength{\typeareaheight}{1.41421356\lxvchars} % this factor works for all A-series paper formats ... and only for those
\newlength{\minheadsep}\setlength{\minheadsep}{.8\baselineskip} % completely arbitrary minimal \headsep
\newlength{\correctedheadsep}
\newlength{\headerheight}\setlength{\headerheight}{\baselineskip}
\newlength{\correctedtextheight}
\setlength{\correctedtextheight}{\typeareaheight}
\makeatletter
\setlength{\@tempdima}{\typeareaheight}%
\addtolength{\@tempdima}{-\headerheight}%
\addtolength{\@tempdima}{-\minheadsep}%
\divide\@tempdima \baselineskip
\@tempcnta=\@tempdima
\setlength{\correctedtextheight}{\@tempcnta\baselineskip}%
\makeatother
\setlength{\correctedheadsep}{\typeareaheight}
\addtolength{\correctedheadsep}{-\correctedtextheight}
\addtolength{\correctedheadsep}{-\headerheight}
\settypeblocksize{\correctedtextheight}{\lxvchars}{*}
\newlength{\totaltopmargin}
\setlength{\totaltopmargin}{21.9mm}
\addtolength{\totaltopmargin}{\headerheight}
\addtolength{\totaltopmargin}{\correctedheadsep}
\setulmargins{\totaltopmargin}{*}{*}
\setlrmargins{*}{*}{2}
\setheaderspaces{*}{\correctedheadsep}{*}
\checkandfixthelayout[fixed]
\sideparmargin{outer}
\usepackage{polyglossia}
\setdefaultlanguage{latin}
\usepackage{lipsum}
\begin{document}
\sidepar {Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.} \lipsum
\lipsum
\end{document}
就是这样。我不喜欢边注的宽度,我认为它太大了。合适的宽度是多少?您如何计算?
谢谢你,A
答案1
根据我的评论,这里有一个建议,我希望你不会觉得太难看(我没有明确调整marginparwidth
)。
它基于 2:1 的对边距和文本块比例。为了使其合理适配,我首先将文本块宽度任意减少了 20%。
我希望你会同意这个来源相当简单(IMHO):
\documentclass[a5paper]{memoir}
\setlxvchars
\settypeblocksize{*}{0.8\lxvchars}{2}
\renewcommand{\sideparfont}{\footnotesize}%
\setulmargins{*}{*}{2}
\setlrmargins{*}{*}{2}
\checkandfixthelayout[fixed]
\sideparmargin{outer}
\setmarginnotes{0.1\foremargin}{0.7\foremargin}{\onelineskip}
\usepackage{polyglossia}
\setdefaultlanguage{latin}
\usepackage{lipsum}
\begin{document}
\sidepar {Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.} \lipsum
\lipsum
\end{document}