Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 quote/quotation 环境中段落缩进消失 #5

Closed
stone-zeng opened this issue Nov 12, 2019 · 1 comment
Closed

在 quote/quotation 环境中段落缩进消失 #5

stone-zeng opened this issue Nov 12, 2019 · 1 comment
Labels

Comments

@stone-zeng
Copy link
Member

\documentclass{ctexart}
\usepackage{zhlipsum}
\def\text{%
  两个黄鹂鸣翠柳,一行白鹭上青天。
  窗含西岭千秋雪,门泊东吴万里船。}
\edef\text{\text\text\text}
\begin{document}
\begin{quote}
  \text
  \zhlipsum[1]
\end{quote}
\begin{quotation}
  \text
  \zhlipsum[1]
\end{quotation}
\end{document}
@stone-zeng stone-zeng added the bug label Nov 12, 2019
@qinglee
Copy link
Member

qinglee commented Feb 19, 2020

问题出现在

https://github.com/stone-zeng/zhlipsum/blob/ad3d939fad4f81931ab8dd9b4a860a5f08bfd267/source/zhlipsum.dtx#L907-L912

这里\@@_par:保存的是 \par 的原始定义。但在 LaTeX 的 list 类环境(\@trivlist)中,\par都是被重新定义过的,用于实现特殊的段落形状。

所以解决方法是

\cs_new_protected:Npn \@@_par: { \par }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants