我喜欢我的注释采用布尔巴基的风格。行和“注释”向内缩进相同,字体小一号。我使用了以下简单的代码行:
\newtheoremstyle{myrem}%name
{3pt}%Space above
{3pt}%Space below
{\small}%Body font
{ }%Indent amount
{\itshape}% Theorem head font
{:}%Punctuation after theorem head
{ }%Space after theorem head 2
{ }%Theorem head spec (can be left empty, meaning ‘normal’)
\theoremstyle{myrem}{\newtheorem{remark}{Remark}}
然后
\begin{document}%
Some texts here.
\begin{remark}%
\leftskip\parindent%
All Bourbaki type comments are flushed left with hanging indent come here.
Moreover, they are numbered, as I wished. But is there a way to make
\leftskip\parindent
automatic, as part of the style? Since, the book has been finished.
\end{remark}
\end{document}
这没问题,但应该添加到所有“备注”中。我不想使用 ntheorem 包,因为它会产生难以解决的冲突。此外,我想知道如何将 Bourbaki 的危险区域放在\danger
边距中(但这很容易找到)。
答案1
您可以使用etoolbox
来扩展环境:
\documentclass{article}
\usepackage{amsthm}
\usepackage{etoolbox}
\newtheoremstyle{myrem}%name
{3pt}%Space above
{3pt}%Space below
{\small}%Body font
{ }%Indent amount
{\itshape}% Theorem head font
{:}%Punctuation after theorem head
{ }%Space after theorem head 2
{}%Theorem head spec (can be left empty, meaning ‘normal’)
\theoremstyle{myrem}
\newtheorem{remark}{Remark}
\appto\remark{\leftskip\parindent}
\begin{document}%
Some texts here.
\begin{remark}%
All Bourbaki type comments are flushed left with hanging indent come here. Moreover, they are numbered, as I wished. But is there a way to make
\begin{verbatim}
\leftskip\parindent
\end{verbatim}
automatic, as part of the style? Since, the book has been finished.
\end{remark}
\end{document}