発言者: Dora
発言日: 2009 10/16 13:32
発言元: nttkyo692118.tkyo.nt.ftth.ppp.infoweb.ne.jp
indent.sty が提供する indentation 環境を,mawarikomi 環境の中で使用すると,崩れてしまいます。
jquote.sty が提供する jquotation 環境を使えばインデントはなされるのですが,jquotation 環境は,
list を使っているが故に,前後での \nopagebreak が効かない,中で list を使うと1行目が崩れる,
冒頭文字が約物のときのスペーシングがおかしくなる,といった問題があるため,
できれば indentation 環境を使いたいと考えています。
mawarikomi 環境の中で indentation 環境を正しく機能させることはできないでしょうか。
以下,サンプルコードです。
\documentclass{jsarticle}
\usepackage{emathMw}
\makeatletter
\newenvironment{indentation}[2]%
{%
\par
\setlength{\leftmargin}{#1}%
\setlength{\rightmargin}{#2}%
\advance\linewidth -\leftmargin
\advance\linewidth -\rightmargin
\advance\@totalleftmargin\leftmargin
\@setpar{{\@@par}}%
\parshape 1 \@totalleftmargin \linewidth
\ignorespaces
}%
{\par}
\makeatother
\begin{document}
インデントなし:
あああああああああああああああああああああああああああああああああああああああああああああああああああ
あああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああ
\begin{indentation}{2zw}{2zw}
indentation環境使用:
あああああああああああああああああああああああああああああああああああああああああああああああああああ
あああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああ
\end{indentation}
\begin{mawarikomi}{}{\rule{100pt}{100pt}}
mawarikomi環境内。インデントなし:
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああ
\end{mawarikomi}
\begin{mawarikomi}{}{\rule{100pt}{100pt}}
\begin{indentation}{2zw}{2zw}
mawarikomi環境内。indentation環境使用:
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああああああああああああああああああ
ああああああああああああああああ
\end{indentation}
\end{mawarikomi}
\end{document}
▼関連発言
│
└◆8386:mawarikomi環境内でのindentation環境の使用 [Dora] 10/16 13:32
└◆8387:Re:mawarikomi環境内でのindentation環境の使用 [tDB] 10/16 16:18
├◆8390:Re[2]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/16 23:09
└◆8392:Re[2]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/18 08:56
└◆8393:Re[3]:mawarikomi環境内でのindentation環境の使用 [tDB] 10/18 13:31
├◆8394:Re[4]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/18 15:57
├◆8395:Re[4]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/18 21:05
│└◆8396:Re[5]:mawarikomi環境内でのindentation環境の使用 [tDB] 10/18 22:22
│ └◆8397:Re[6]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/19 03:27
└◆8398:Re[4]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/21 16:56
└◆8401:Re[5]:mawarikomi環境内でのindentation環境の使用 [tDB] 10/22 12:23
├◆8402:Re[6]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/22 12:57
│└◆8403:Re[7]:mawarikomi環境内でのindentation環境の使... [tDB] 10/22 20:09
└◆8407:Re[6]:mawarikomi環境内でのindentation環境の使用 [Dora] 10/27 14:41
└◆8410:Re[7]:mawarikomi環境内でのindentation環境の使... [tDB] 10/29 12:54<-last