# Tag Info

6

As far as I am aware, there is no widely available package with the syntax \newtheorem{remark}*{Remark}; I think it should be \newtheorem*{remark}{Remark} There are two well known packages that provide the macro \newtheorem*: amsthm and ntheorem. According to the package documentation, \newtheorem is for defining numbered theorem environments, whereas ...

5

Although \newtheorem is, in fact, similar to \newenvironment, they are different: \newtheorem is specifically designed to define a particular kind of environment: theorem-like structures whereas \newenvironment allows you to define arbitrary environments. A theorem-like structure is one that typically has a head (formed by a name and a number) and a body ...

5

\documentclass{book} \usepackage[table]{xcolor} \usepackage{tabularx,booktabs} \usepackage{blindtext} \def\myindent{1.5ex} \def\rulethk{1.0pt} \definecolor{myblue}{RGB}{32,92,195} \newenvironment{mybox}[1] {\par\medskip\noindent\arrayrulewidth=2pt\arrayrulecolor{myblue}% \tabularx{\linewidth}{!{\color{myblue}\hspace{\myindent}\vrule width \rulethk} X ...

3

\text honors the surrounding font. A better approach to get the desired font and the proper spacing is to use \DeclareMathOperator: \documentclass[11pt]{article} \usepackage{amsmath} \newtheorem{theorem}{Theorem} \DeclareMathOperator{\Func}{Function} \begin{document} $\text{Function}(x) = 1\quad\Func(x) = 1$ \begin{theorem} $\text{Function}(x) = ... 3 If there is no section used, the section counter is 0, therefore the theorem enviroment prints 0.1 etc. Since the OP has the remark as a sibling of theorem environment, it will just increment the theorem counter and the number of the 1st remark will be 0.2, not 1. If \thetheorem and \theremark commands are redefined such that the section counter value ... 2 When you do \newtheorem{theorem}{Theorem}[section] you're telling LaTeX that theorem environments should be numbered as <section number>.<theorem number> and that the theorem number must be reset when a new section comes along. The [section] part is optional, as the syntax suggests, so you just have to do \newtheorem{theorem}{Theorem} ... 2 This solution redefines the thm environment and adds the proof argument to it, which is later on written to the appendix section automatically. It will also write a \section{Proof of Number...} to the appendix, which has to be included with \CollectProofs It is not restatable at the moment! \documentclass{article}% \usepackage{blindtext}% ... 2 Use \long\def\proofatend#1\endproofatend{% \edef\next{\noexpand\begin{proof}[\noexpand\normalfont\noexpand\bfseries Proof of \pat@label]}% \toks\numexpr\prooftoks+\value{proofcount}\relax=\expandafter{\next#1\end{proof}} \stepcounter{proofcount}} 2 since you're using amsthm, you can redefine the proof environment to supply a "generic" font command for the heading font, and then replace that when you go to print the proofs: \newcommand{\proofheadfont}{\itshape} \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax \trivlist \item[\hskip\labelsep % ... 2 You need to use $...$, or some other LaTeX math display environment, instead of the plain TeX $$...$$. Many LaTeX packages rely on this, see also Why is $...$ preferable to $$...$$?. In the case of ntheorem the marker will not get placed on displays with $$...$$. Consider the following document, close to yours: \documentclass[a4paper]{article} ... 2 Define a new theorem environment. \documentclass{book} \usepackage{amsthm} \newtheorem{thm}{Theorem}[section] \theoremstyle{definition} \newtheorem{interthm}[thm]{\ignorespaces}% theorem label is empty \begin{document} \chapter{A class of groups} Let$G$be a finite group. \section{A class of subgroups} Let$H$be a subgroup of$G\$. ...

1

This provides an environment called \intertheoremremark similar to paragraph (which is not an environment at all, of course), just with a subsection like label and a bold font heading leadin. \label works for this. This uses the assoccnt package, which provides a master counter, driving other counters, when stepped, in this case, the mytheorem counter. ...

1

Well, just like an example of what we can do with a package suited for theorems and that stuff, belong your MWE with few additions: \documentclass{book} \usepackage[table]{xcolor} \usepackage{tabularx,booktabs} \usepackage{amsmath,amssymb,latexsym} % necessary for maths \usepackage{ntheorem} % One of the best packages for write theorems, proofs, ...

1

Here is a hack that uses the generic macros from the insbox.tex set. I define a \InsertExampleR command, that can insert (almost) any box on the right, and has 2 mandatory and 1 optional arguments: the mandatory arguments are the number of lines whose length remain unchanged and the box to be inserted. The optional argument is the number of supplementary ...

1

You could also use the 'thmbox' package, a package defining a theorem environment. This makes the same "boxes" around the theorems as you'd like to have. If you'll have a look here, you'll get an extra option to change the color of the surrounding box.

Only top voted, non community-wiki answers of a minimum length are eligible