次のような内容のクラスのframed
環境があります。memoir
\begin{framed}
\subsection{Article 1}
Content of Article 1
\subsection{Article 2}
Content: Article 2
\end{framed}
これは次のようにレンダリングされます。
._________________.
| | <-- superfluous whitespace
| Article 1 |
| Content of Art- |
| icle 1 |
| |
| Article 2 |
| Content: Artic- |
| le 2 |
.-----------------.
これ\subsection{}
は、この環境内に存在しないことを好みますがframed
、通常のテキスト (つまり、フレーム化された環境の外側) と最初のテキストの後のサブセクションにはそのような空白が必要です。
フレーム環境内では、基本的に次のようなフォーマットにしたいと思います。
._________________.
| Article 1 |
| Content of Art- |
| icle 1 |
| |
| Article 2 |
| Content: Artic- |
| le 2 |
.-----------------.
環境の冒頭で見出しにこの変更を加える方法についての考えや提案をframed
いただければ幸いです。
編集mkluwe
:のコメントに基づいて、 \subsection コマンドを根絶しましたmemoir.cls
:
3314 \newcommand{\subsection}{%
3315 \subsechook%
3316 \@startsection{subsection}{2}% level 2
3317 {\subsecindent}% heading indent
3318 {\beforesubsecskip}% skip before the heading
3319 {\aftersubsecskip}% skip after the heading
3320 {\normalfont\subsecheadstyle}} % font
3321 \newcommand{\subsechook}{}
3322 \newcommand{\setsubsechook}[1]{\renewcommand{\subsechook}{#1}}
3323 \newlength{\subsecindent}
3324 \newcommand{\setsubsecindent}[1]{\setlength{\subsecindent}{#1}}
3325 \setsubsecindent{\z@}
3326 \newskip\beforesubsecskip
3327 \newcommand{\setbeforesubsecskip}[1]{\setlength{\beforesubsecskip}{#1}}
3328 \setbeforesubsecskip{-3.25ex \@plus -1ex \@minus -.2ex}
3329 \newskip\aftersubsecskip
3330 \newcommand{\setaftersubsecskip}[1]{\setlength{\aftersubsecskip}{#1}}
3331 \setaftersubsecskip{1.5ex \@plus .2ex}
したがって、上記の私の質問の当然の結果は次のようになります。たとえば、環境 (環境など)subsection
の最初の要素である場合、非常に小さいように、このコマンドを改良するにはどうすればよいですか?framed
\beforesubsecskip
読んでくれてありがとう。
心から、
ブライアン