I'm trying to use \newtheorem.
Here's my small sty file mystyle.sty
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\newtheorem{action}{$\checkmark$ Action}
\newtheorem{law}{$\bigodot$ Law}
\newtheorem{fact}{$\boxdot$ Fact}
\newtheorem{warn}{$\warning$ Caveat}
Here's the tex file:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
%\usepackage{arevmath}
\usepackage{mystyle}
\begin{document}
\section{Head}
\begin{law}
The world is round
\end{law}
\begin{fact}
\(g =99.8 m/s^2\)
\end{fact}
\begin{action}
Teach co-recursion before recursion
\end{action}
\begin{warn}
Beware
\end{warn}
\end{document}
So now the questions:
- I want the warning symbol which is in
arevmathbut the general look of withoutarevmathis better. How to manage both? - The content is coming in italic. But the examples I find for using
newtheoremit comes normal roman. Is something else wrong?? eg... - I picked up the eg from an inline source that uses
\makeatletter. I'm not at all sure how to use it except for some vague directive: use in.texnot in.sty.



\theormestylein the manual foramsthm– daleif Apr 17 '22 at 11:57siunitxpackage to format units – daleif Apr 17 '22 at 12:33\makeatletteris not used in your MWE, and is irrelevant to questions (1) and (2). You may desire to ask question (3) separately. (But if you do so, almost certainly it will be closed as a duplicate of https://tex.stackexchange.com/a/8353/119, so you might just as well read that answer instead..) – Willie Wong Apr 18 '22 at 02:09