以下是 MWE:
\documentclass[oneside,8pt,english,]{extbook}
\usepackage{fontspec}
\setmainfont[Numbers={OldStyle,Proportional}]{EBGaramond-Regular}
\usepackage[papersize={4.80 in, 6.40 in},left=.5 in,right=.5 in]{geometry}
\usepackage{ragged2e}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\filright}{}{0pt}{\Large}
\usepackage{ebgaramond}
\usepackage{lipsum}
\begin{document}
\chapter{Blind text}
\lipsum[6-3]
\medskip
\begingroup
\leftskip\parindent
\rightskip\leftskip
\noindent \textsc{beneš}: Impossible!
\noindent \textsc{masaryk}: That sow Sir Horace Wilson's going too. Wilson's
going too. Wilson's going too. Wilson's going too. WWilson's going too.
Wilson's going too. Wilson's going too. Wilson's going too. Wilson's going too.
ilson's going too. Wilson's...
\par
\endgroup
\medskip
\lipsum[5-3]
\end{document}
当上面的对话框项(例如“MASARYK:那只母猪 Sir Horace... 等”)太长而无法放在一行中时,我希望将第二行(以及后续行)进一步缩进:
<indented by default value of \\parindent>MASARYK:first line on same line as character's name...
<second line, indented>
<third line indented & aligned with second line>
... etc.
此外……每当有多行对话时,我更希望块是左对齐和右对齐的。
这个问题有简单的解决办法吗?
更新
下面是一张图片来澄清一下:
答案1
以下可能更接近预期的输出:
\documentclass[oneside,8pt,english,]{extbook}
\usepackage{fontspec}
\setmainfont[Numbers={OldStyle,Proportional}]{EBGaramond-Regular}
\usepackage[papersize={4.80 in, 6.40 in},left=.5 in,right=.5 in]{geometry}
\usepackage{ragged2e}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\filright}{}{0pt}{\Large}
\usepackage{ebgaramond}
\usepackage{lipsum}
\usepackage{changepage}
\usepackage{enumitem}
\newenvironment{dialogue}
{\begin{adjustwidth}{\parindent}{\parindent}\medskip \begin{description}[font=\normalfont\scshape, noitemsep]}
{\end{description}\end{adjustwidth}\medskip}
\begin{document}
\chapter{Blind text}
\lipsum[6-3]
\begin{dialogue}
\item[beneš:] Impossible!
\item[masaryk:] That sow Sir Horace Wilson's going too. Wilson's
going too. Wilson's going too. Wilson's going too. WWilson's going too.
Wilson's going too. Wilson's going too. Wilson's going too. Wilson's going too.
ilson's going too. Wilson's...
\end{dialogue}
\lipsum[5-3]
\end{document}