為回憶錄中的單一頁面設定不同的頁面佈局

為回憶錄中的單一頁面設定不同的頁面佈局

我已經使用以下命令為整個文件設定了頁面佈局,並為頁邊空白留出了空間memoir

\setstocksize{11in}{8.5in}
\settrims{0pt}{0pt}
\settypeblocksize{7.5in}{4.3in}{*}
\setlrmargins{1.5cm}{*}{*}
\setmarginnotes{20pt}{6.2cm}{0pt}

\checkandfixthelayout

問題是,現在我希望某些頁面沒有頁邊空白,但又保留頁邊距。也就是說,我希望區塊大小在寬度上擴展,佔據邊注的空間。如果可能的話,我希望將所有設定放入一個環境中,如下所示:

\newenvironment{fullwidth}{%
   % The settings that would make the layout go fullwidth
}{%
   % The settings that would make the layout return to its normal lengths
}

我見過問題以及,但由於某種原因它無法解決我的情況。

答案1

這是可行的嗎?延伸到我原來的部分答案。檢查我對fullwidth環境的重新定義。

% mempageprob.tex  SE 643135

\documentclass[oneside]{memoir}

\setstocksize{11in}{8.5in}
\settrims{0pt}{0pt}
\settypeblocksize{7.5in}{4.3in}{*}
\setlrmargins{1.5cm}{*}{*}
\setmarginnotes{20pt}{6.2cm}{0pt}

\checkandfixthelayout

\usepackage{lipsum}

\newenvironment{fullwidth}{%
  \clearpage
  \settypeblocksize{7.5in}{3.3in}{*}   %% this doesn't work (reduces the header but not the text)
  \checkandfixthelayout
}{%
  \clearpage
  \settypeblocksize{7.5in}{4.3in}{*} 
  \checkandfixthelayout
   }

\begin{document}

\lipsum[1-3]

\begin{fullwidth}
  \lipsum[4-6]
\end{fullwidth}

\lipsum[7-9]

\newpage
\renewenvironment{fullwidth}{%
  \twocolumn
  \settypeblocksize{7.5in}{3.3in}{*}   
  \checkandfixthelayout
  \onecolumn}
{%
  \twocolumn
  \settypeblocksize{7.5in}{4.3in}{*} 
  \checkandfixthelayout
  \onecolumn}

\lipsum[1-3]

\begin{fullwidth}
  \lipsum[4-6]
\end{fullwidth}

\lipsum[7-9]

\end{document}

\onecolumn在 (La)TeX 中,當在和之間切換時,整個頁面佈局會重新配置\twocolumn。我相信,修改後的版本fullwidth進行了\two/onecolumn切換並給出了期望的結果。每當 LaTeX 切換時\onecolumn\twocolumn它就會開始一個新頁面。

答案2

部分答案。

% mempageprob.tex  SE 643135

\documentclass[oneside]{memoir}

\setstocksize{11in}{8.5in}
\settrims{0pt}{0pt}
\settypeblocksize{7.5in}{4.3in}{*}
\setlrmargins{1.5cm}{*}{*}
\setmarginnotes{20pt}{6.2cm}{0pt}

\checkandfixthelayout

\usepackage{lipsum}

\newenvironment{fullwidth}{%
  \clearpage
  \settypeblocksize{7.5in}{3.3in}{*}   %% this doesn't work (reduces the header but not the text)
  \checkandfixthelayout
}{%
  \clearpage
  \settypeblocksize{7.5in}{4.3in}{*} 
  \checkandfixthelayout
   }

\begin{document}

\lipsum[1-3]

\begin{fullwidth}
  \lipsum[4-6]
\end{fullwidth}

\lipsum[7-9]

\end{document}

我的fullwidth環境更改了頁眉的寬度(頁碼的位置),但不更改文字寬度。我不知道為什麼:希望其他人能夠提供可行的答案。

相關內容