
일부 명령을 선언하는 thmbox 환경에서 정의에 "일반 글꼴"을 사용하고 설명(및 이와 유사한 환경)에 "기울임꼴"을 어떻게 사용할 수 있습니까? 또한 "섹션" 또는 "하위 섹션"으로 번호를 매겨야 합니다.
\documentclass[11pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=2.50cm, right=2.50cm, top=2.50cm, bottom=2.50cm]{geometry}
\usepackage{thmtools}
\declaretheorem[style=normalfont, thmbox=M, name=Definition]{definition}
\declaretheorem[style=remark, thmbox=M, name=Remark]{remark}
\begin{document}
\section{Trying}
\begin{remark}
This is a remark.
\end{remark}
\begin{definition}
This is a definition. i just need this as normal font.
\end{definition}
in addition, numbering should be in section (or subsection).
\end{document}
답변1
thmbox
박스형 정리를 정의할 때 이 패키지가 인계받으므로 해당 옵션을 에 전달해야 합니다 .
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath,amsthm} % amsthm is important!
\usepackage{thmtools}
\declaretheorem[style=remark]{xyz}
\declaretheorem[
style=plain,
thmbox={style=M,bodystyle=\normalfont},
name=Definition,
within=section,
]{definition}
\declaretheorem[
style=remark,
thmbox={style=M,bodystyle=\normalfont,headstyle=\itshape Remark \upshape\theremark},
name=Remark,
within=section,
]{remark}
\begin{document}
\section{Trying}
\begin{remark}
This is a remark.
\end{remark}
\begin{definition}
This is a definition. I just need this as normal font.
\end{definition}
In addition, numbering should be in section (or subsection).
\end{document}
나가지다이 결과는 정말 끔찍하다고 말할 수 있습니다. 물론 내 생각일 뿐이다.