如何在每一页上都获得一个空白框?

如何在每一页上都获得一个空白框?

我想在某一章的页面底部留一个空白框。我摆弄了一下 wrapfigure,似乎得到了一些看起来不错的东西,但我想正确地做到这一点,这样我最终就可以将我的文件发布为模板。

该框应在每一页上保持在相同的位置,并且文本应环绕它。

梅威瑟:

\documentclass[a4paper,book,openany,10pt]{memoir}

\usepackage{wrapfig}
\makepagestyle{mm}
\makeevenhead{mm}{\textsc{Manus}}{}{}
\makeoddhead{mm}{}{}{\textsc\leftmark}
\makeevenfoot{mm}{\thepage}{}{}
\makeoddfoot{mm}{}{}{\thepage}
\makeheadrule{mm}{\textwidth}{1pt}
\nouppercaseheads
\pagestyle{mm}
\begin{document}
\thispagestyle{empty}
\chapter{Bar}
No boxes in this chapter!
\chapter{Foo}
Blah Blah Blah

盒子放在这里!

\end{document}

最终结果应如下所示:

图像

第一篇帖子就这样。如果您需要更多信息,请告诉我,我希望有人能提供帮助!

答案1

您可以将 wrapfigure 环境与 framebox 一起使用。

“2 英寸” \wrapfigure:

\begin{wrapfigure}{ri}{2in}{

确定框相对于边距的位置。在本例中是右边距。

framebox 环境中的 \rule 命令用于创建一个黑框,但在这种情况下,我们可以使用它来确定 \framebox 的高度,如下所示:

\rule[0mm]{0mm}{2cm}

这是一个 WE:

 \documentclass[a4paper,book,openany,10pt]{memoir}
 \usepackage{wrapfig}
 \makepagestyle{mm}
 \makeevenhead{mm}{\textsc{Manus}}{}{}
 \makeoddhead{mm}{}{}{\textsc\leftmark}
 \makeevenfoot{mm}{\thepage}{}{}
 \makeoddfoot{mm}{}{}{\thepage}
 \makeheadrule{mm}{\textwidth}{1pt}
 \nouppercaseheads
 \pagestyle{mm}
 \begin{document}
 \thispagestyle{empty}
 \chapter{Bar}
  No boxes in this chapter!
  \chapter{Foo}
  Lorem ipsum dolor sit amet, ad sit veri dicit, idque dignissim intellegam at sea, duo  hinc graeco ea. Dictas facilisi ius et. In vim eripuit docendi. Nec eu tation latine facilis. Suas ipsum democritum nec an.

  Duo falli alterum perfecto cu, sit fugit falli populo ex. Tempor postulant hendrerit his at, porro noluisse in has. Ut solet complectitur ius, et his inani cetero. Et erant integre efficiendi eum. Omnes hendrerit te vis, ei assum tritani volumus vis, eum ex latine intellegebat.

  Quem nominati nec et. Usu adhuc fugit augue an, aeque liberavisse duo ei, id per habeo eloquentiam. Nullam cetero sententiae ea usu. His an accusam disputando, vix in aperiri officiis. Qui mentitum reformidans no, vocent laoreet ad mei, ei pro sumo soleat petentium.

  Nam ei iudicabit definiebas, sea ut veri sapientem, eum nobis ridens accusamus no. Nec odio sanctus facilisi te, nec sale dicit bonorum in. Vis te eripuit ancillae dissentiunt, sit labore audiam ea. Mei cibo omnis sonet ea.

  Lorem ipsum dolor sit amet, ad sit veri dicit, idque dignissim intellegam at sea, duo hinc graeco ea. Dictas facilisi ius et. In vim eripuit docendi. Nec eu tation latine facilis. Suas ipsum democritum nec an.

   Nam ei iudicabit definiebas, sea ut veri sapientem, eum nobis ridens accusamus no. Nec odio sanctus facilisi te, nec sale dicit bonorum in. Vis te eripuit ancillae dissentiunt, sit labore audiam ea. Mei cibo omnis sonet ea.
   Lorem ipsum dolor sit amet, ad sit veri dicit, idque dignissim intellegam at sea, duo hinc graeco ea. Dictas facilisi ius et. In vim eripuit docendi. Nec eu tation latine facilis. Suas ipsum democritum nec an.

    \begin{wrapfigure}{ri}{2in}{
    \framebox[5cm]{ \rule[0mm]{0mm}{2cm}}
     }
    \end{wrapfigure}

     Nam ei iudicabit definiebas, sea ut veri sapientem, eum nobis ridens accusamus no.  Nec odio sanctus facilisi te, nec sale dicit bonorum in. Vis te eripuit ancillae dissentiunt, sit labore audiam ea. Mei cibo omnis sonet ea.
     Nam ei iudicabit definiebas, sea ut veri sapientem, eum nobis ridens accusamus no. 
     Nam ei iudicabit definiebas, sea ut veri sapientem, eum nobis ridens accusamus no. Nec odio sanctus facilisi te, nec sale dicit bonorum in. Vis te eripuit ancillae dissentiunt, sit    labore audiam ea. 
  \end{document}

最终的输出是这样的:

在此处输入图片描述

相关内容