嵌套在全宽中的环境

嵌套在全宽中的环境

我正在努力寻找一种方法来在我的回忆录文档中设置一些全宽文本。这是我的序言的摘录:

\documentclass[10pt]{memoir}                        %document class
\setstocksize{240mm}{150mm}

\usepackage[T1]{fontenc}                            %font output
\usepackage[utf8]{inputenc}                         %font input
\usepackage[english]{babel} 

\usepackage{lipsum}
\usepackage{marginfix}
\usepackage{graphicx}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PAGE LAYOUT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{geometry}

\let\footruleskip\undefined                         %headings
\usepackage{fancyhdr}
\nouppercaseheads

\settrimmedsize{240mm}{150mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{193mm}{84mm}{*}
\setulmargins{27mm}{*}{*}
\setlrmargins{18mm}{*}{*}
\setmarginnotes{3mm}{3.5cm}{\onelineskip}
\setheadfoot{\onelineskip}{\onelineskip}
\setlength{\headsep}{1.2cm}
%\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout

\addtolength{\footskip}{0.55cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FULLWIDTH
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[outermargin=-3.5cm]{fullwidth}

\newenvironment{fullwidthblocked}{%
\blockmargin%
\begin{fullwidth}%
}{%
\end{fullwidth}%
\unblockmargin%
}

在环境中编写长段落fullwidthblocked不会带来任何问题:文本从应开始的位置开始,并在页面结束时正确中断。例如,此代码有效:

\begin{document}

\lipsum[99]

\begin{fullwidthblocked}
\lipsum
\end{fullwidthblocked}

\end{document}

但是,我无法找到正确放置其他环境的方法fullwidthblocked。我尝试使用两列的tcolorboxmulticols,但结果很糟糕。如果文本太长,则会tcolorbox在新页面开始,在页面中间中断并在新页面重新开始,而插入multicols会使代码无法编译。

如果需要的话,我可以给你提供一些更明确的例子。

相关内容