如何让页面变大而不影响里面的文字?(适用于有笔记的草稿)

如何让页面变大而不影响里面的文字?(适用于有笔记的草稿)

我有一份如下的文件:

\documentclass{article}
\usepackage{geometry}
\usepackage{lipsum}
\usepackage{todonotes}
\usepackage[english]{babel}
\usepackage{showframe}
\begin{document}
\lipsum[1]
And now I have som\todo{Correct this word at some point}~real paragraph
\lipsum[1]
\end{document}

这看起来就像此截图 (由于有点大所以不内联)

我想在不改变文本重排的情况下为边注留出空间。理想情况下,这意味着按比例缩小字体和边距,以使文本的内部空间保持不变。

这不仅仅是\usepackage[scale=0.75]{geometry}没有考虑字体大小。

我没有找到任何与此相关的包或答案来一般性地回答这个问题(不考虑具体的纸张尺寸和手动操作),我认为它对于准备照相排版的评论很有用,增加的空间对于做笔记非常有用。

我不介意答案是否增加了水平页面尺寸(即不再是 A4、信纸或其他尺寸)或缩小了文档中的对象。

更新:这个问题的正确答案应该对大多数文档类别(想想 springer、IEEEtran、书籍、回忆录或其他什么)足够通用,而不考虑手动设置geometry或其他方式设置的特定边距或测量值。

这是我想要呈现的概念(当然,边注中的文本应该小一些,但这确实是最不值得担心的)。

改变渲染

答案1

您可以使用\addtolength来相应地更改边距。在示例中,添加了 100 毫米。

代码

\documentclass{article}
\usepackage[inner=10mm, outer=30mm, a4paper, twoside]{geometry}

\newdimen\extramargin
% === change this as you like ===
\extramargin=100mm
% ===============================

% === automatically change lengths
\addtolength{\paperwidth}{\extramargin}
\addtolength{\evensidemargin}{\extramargin}
\addtolength{\marginparwidth}{\extramargin}

\usepackage{todonotes}

% === just for blindtext
\usepackage{lipsum}

\begin{document}
\lipsum[1]\todo{Important business that need to be taken care of.}

\lipsum[2]\todo{Important business that need to be taken care of. Important business that need to be taken care of.}

\lipsum

\lipsum[1]\todo{Important business that need to be taken care of. Important business that need to be taken care of. Important business that need to be taken care of.}

\lipsum[2]\todo{Important business that need to be taken care of. Important business that need to be taken care of. Important business that need to be taken care of. Important business that need to be taken care of.}

\lipsum[3-5]
\end{document}

输出

在此处输入图片描述

答案2

不受支持、危险且不推荐;它会使照片缩小 90%。

\documentclass{article}
\mag=900
% use US letter paper, if you prefer
\paperwidth=21truecm
\paperheight=29.7truecm
%
\hoffset=-1truecm
\marginparwidth=6cm

\usepackage{lipsum}
\usepackage{todonotes}
\usepackage[english]{babel}

\begin{document}
\lipsum[1]
And now I have som\todo{Correct this word at some point}~real paragraph
\lipsum[1]
\end{document}

geometry恐怕与不兼容。

在此处输入图片描述

答案3

您可以告诉geometry使用不同的纸张尺寸来布局文本块,从而改变边距等。

例如,如果您的原始文档是 A5 纸:

A5

然后使用 A4 尺寸的实物纸张将增加页边距和可用于笔记的区域:

A4 上的 A5

代码:

% \documentclass[a5paper]{article}
% \usepackage[showframe]{geometry}
\documentclass[a4paper]{article}
\usepackage[showframe,layout=a5paper]{geometry}
\usepackage{lipsum}
\usepackage{todonotes}
\begin{document}
\lipsum[1]
And now I have som\todo{Correct this word at some point}~real paragraph
% And now I have som~real paragraph
\lipsum[1]
\end{document}

相关内容