繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
标题:
新定义了一个环境,怎么调整字号?
[打印本页]
作者:
abababa
时间:
2017-10-4 18:00
标题:
新定义了一个环境,怎么调整字号?
如下定义的环境:
\newtheorem*{note}{说明}
想让这个环境里的字号变成scriptsize或者其它的,应该怎么弄?
作者:
kuing
时间:
2017-10-4 18:06
如果你用的是 amsthm 宏包的话,在 \newtheorem 之前,先用 \newtheoremstyle 定义一个定理样式,然后再用 \theoremstyle 将定理样式设成它,之后再 \newtheorem 。
不过其实我觉得像这种情况你直接用 \newenvironment{note}{...}{...} 不也可以么?
作者:
abababa
时间:
2017-10-4 19:03
回复
2#
kuing
谢谢,查了一下,但没编译通过,也不知道错在哪里了。查了texdoc amsthm,里面的示例也看了,还是不明白。能请版主帮看看吗?代码如下:
\documentclass[a4paper]{book}
\usepackage{amsmath}
\newtheoremstyle{mysty}{3pt}{3pt}{\normalfont}{0cm}{\normalfont }{}{1em}{}
\theoremstyle{mysty}
\newtheorem{note}{Note}
\begin{document}
\end{document}
复制代码
作者:
kuing
时间:
2017-10-4 19:07
回复
3#
abababa
晚点先,先吃饭
作者:
kuing
时间:
2017-10-4 23:13
回复
3#
abababa
???你都没使用 amsthm,你写的是 amsmath
作者:
abababa
时间:
2017-10-5 08:57
回复
5#
kuing
谢谢,我明白了。原来直接用ntheorem那个也可以,如果同时用了ntheorem和这个amsthm反而出了很多问题。现在是这样的:
\usepackage[amsmath, thmmarks]{ntheorem}
{
\theoremstyle{nonumberplain}
\theoremheaderfont{\indent\bfseries}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\Box}}
\newtheorem{proof}{证明}
}
%\newtheoremstyle{xtheorem}{3pt}{3pt}{\normalfont}{0pt}{\indent\bfseries}{}{0pt}{}
%\theoremstyle{xtheorem}
\theoremheaderfont{\indent\bfseries}
\theorembodyfont{\normalfont}
\newtheorem{example}{例}[chapter]
%\newtheoremstyle{xtheoremsharp}{3pt}{3pt}{\normalfont}{0pt}{\indent\bfseries}{}{0pt}{}
%\theoremstyle{xtheoremsharp}
\theoremsymbol{\textup{\#}}
\newtheorem{definition}{定义}[chapter]
\newtheorem{theorem}{定理}[chapter]
\newtheorem{corollary}{推论}[theorem]
%\newtheoremstyle{xnote}{3pt}{3pt}{\scriptsize}{0pt}{\indent\bfseries}{}{0pt}{}
%\theoremstyle{xnote}
\theorembodyfont{\scriptsize}
\newtheorem*{note*}{说明}
复制代码
作者:
kuing
时间:
2017-10-5 13:14
回复
6#
abababa
早说嘛,ntheorem 比 amsthm 强大,且不能混用,所以我一开始就说“如果你用的是 amsthm 宏包的话……”。
欢迎光临 悠闲数学娱乐论坛(第2版) (http://kuing.orzweb.net/)
Powered by Discuz! 7.2