我想将“备注”和“定义”(不是“假设”)的标题(不是正文)改为“itshape”而不是“粗体”。你能帮我做吗?这里有一个实际示例
\documentclass[11 pt,a4paper, oneside, openany, notitlepage]{article}
\usepackage{amsmath, amssymb, graphics}
\usepackage{mathtools}
\newcommand{\mathsym}[1]{{}}
\newcommand{\unicode}[1]{{}}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage[inner=15mm,outer=15mm,bottom=1.5cm]{geometry}
\usepackage{setspace}
\doublespacing
\newcommand{\thmsymbol}{\( \diamond \)}
\newtheorem{remarkex}{Remark}
\newenvironment{remark}
{\pushQED{\qed}\renewcommand{\qedsymbol}{$\triangle$}\remarkex}
{\popQED\endremarkex}
\newtheorem{definitionex}{Definition}
\newenvironment{definition}
{\pushQED{\qed}\renewcommand{\qedsymbol}{$\star$}\definitionex}
{\popQED\enddefinitionex}
\newtheorem{assumptionex}{Assumption}
\newenvironment{assumption}
{\pushQED{\qed}\renewcommand{\qedsymbol}{$\bullet$}\assumptionex}
{\popQED\endassumptionex}
\begin{document}
\begin{definition}{\normalfont (blah1)}
{\normalfont
blah2}
\end{definition}
\begin{remark}{\normalfont (blah1)}
{\normalfont
blah2}
\end{remark}
\begin{assumption}{\normalfont (blah1)}
{\normalfont
blah2}
\end{assumption}
\end{document}
答案1
我强烈建议您深入研究amsthm
文档。
这是一个基本的例子amsthm
\documentclass[11 pt,a4paper, oneside, openany, notitlepage]{article}
\usepackage{amsmath, amssymb, graphics}
\usepackage{mathtools}
\newcommand{\mathsym}[1]{{}}
\newcommand{\unicode}[1]{{}}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage[inner=15mm,outer=15mm,bottom=1.5cm]{geometry}
\usepackage{setspace}
\doublespacing
\newcommand{\thmsymbol}{\( \diamond \)}
\newtheorem{assumptionex}{Assumption}
\newenvironment{assumption}
{\pushQED{\qed}\renewcommand{\qedsymbol}{$\bullet$}\assumptionex}
{\popQED\endassumptionex}
\newtheoremstyle{mythm}%
{3pt}% Space above
{3pt}% Space below
{}% Body font
{}% Indent amount
{\bfseries}% ⟨Theorem head font⟩
{}% ⟨Punctuation after theorem head ⟩
{.5em}% Space after theorem head
{}%
\theoremstyle{mythm}
\newtheorem{remarkex}{Remark}
\newenvironment{remark}
{\pushQED{\qed}\renewcommand{\qedsymbol}{$\triangle$}\remarkex}
{\popQED\endremarkex}
\newtheorem{definitionex}{Definition}
\newenvironment{definition}
{\pushQED{\qed}\renewcommand{\qedsymbol}{$\star$}\definitionex}
{\popQED\enddefinitionex}
\begin{document}
\begin{definition}[blah1]
{blah2}
\end{definition}
\begin{remark}[blah1]
{blah2}
\end{remark}
\begin{assumption}{ (blah1)}
{blah2}
\end{assumption}
\end{document}
结果如下:
我所做的是定义一个新的定理样式,并\bfseries
使用定理头字体。还请注意,这normalfont
不是必需的。
答案2
下面是一个如何使用 来实现的示例ntheorem
。请注意,改变定理结束符号非常容易,并且其位置是自动的,即使定理以显示的方程结束。
\documentclass[11 pt, a4paper, oneside, openany, notitlepage]{article}
\usepackage{amsfonts ,amssymb}
\usepackage{mathtools}
\usepackage[amsmath, thmmarks]{ntheorem}
\usepackage[inner=15mm,outer=15mm,bottom=1.5cm]{geometry}
\usepackage{setspace}
\doublespacing
\theoremstyle{plain}
\theoremheaderfont{\normalfont\itshape}
\theorembodyfont{\normalfont}
\theoremseparator{.}
\theoremsymbol{\ensuremath{\triangle}}
\newtheorem{remark}{Remark}
\theoremsymbol{\ensuremath{\star}}
\newtheorem{definition}{Definition}
\theoremsymbol{\ensuremath{\bullet}}
\theoremseparator{\upshape:}
\newtheorem{assumption}{Assumption}
\begin{document}
\begin{definition}
blah2
\end{definition}
\begin{remark}
blah2
\end{remark}
\begin{assumption}
For all $ x, y, z ∈ \mathbf R$, one has
\[ (x + y) + z= x +( y + z) \]
\end{assumption}
\end{document}