# Tag Info

3

Here's a way to do it; this will also comply with lists such as enumerate in the statement, which solutions with \hangindent won't. \documentclass{article} \usepackage{showframe} % just for the example \usepackage{amsthm} \usepackage{enumitem} \usepackage{xparse} \usepackage{lipsum} \newtheoremstyle{fctaylor}% name {\topsep}% Space above ...

5

Here's a possibility using thmtools as a front-end for amsthm: The code (adjust the settings according to your needs; in particular, change \thmindent to get the desired hanging indentation for the theorem-like structures): \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \usepackage{lipsum} \newlength\thmindent ...

2

It can be done with the ntheorem package and its change theoremstyle. The spacing between theorem name and theoremnumber can be adjusted patching the change theorem style: I introduce a new dimension, thlabelsep which defaults to 0.5em and can changed in the preamble: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...

2

You should use them like this. \documentclass{article} \usepackage{amsmath,amsthm} \newtheorem{theorem}{Theorem}[section] \newtheorem{corollary}{Corollary}[section] \newtheorem{proposition}{Proposition}[section] \newtheorem{lemma}{Lemma}[section] \newtheorem{example}{Example}[section] \theoremstyle{definition} \newtheorem{definition}{Definition}[section] ...

2

Simply use: \newtheorem{test}{Theorem} \renewcommand\thetest{\Roman{test}} Defining a new theorem environment test defines a new counter test. The optional argument, such as you used, says the ‘test’ environment shares the counter of another theorem-like environment.

2

This is just an addition to egregs answer. There is no reason to use an extra env for this. Just add the extra configuration whenever we are inside a theorem env. Downside: this has to be added to every thm like env. I use this to control that enumerates are formatted consistently in teaching materials etc. \documentclass{article} ...

4

Use \thetheorem: \documentclass{article} \usepackage{amsmath,amsthm} \usepackage{enumitem} \theoremstyle{plain} \newtheorem{theorem}{Theorem} \newenvironment{thenumerate}[1][] {\enumerate[label=\alph*\textup{)},ref=\thetheorem.\alph*),#1]} {\endenumerate} \begin{document} \begin{theorem}[Great result] \label{th:great} Let $1$ be the number one. Then: ...

3

It's easy with the apptools and chngcntr packages: \documentclass[11pt,a4paper,titlepage,oneside]{article}% \usepackage[utf8]{inputenc} \usepackage{chngcntr} \usepackage{apptools} \AtAppendix{\counterwithin{lemma}{section}} \newtheorem{lemma}{Lemma} \begin{document} \section{A First Section} \begin{lemma} A first lemma. \end{lemma} \appendix \section{An ...

1

This requires some customisation of the theoremtools files. The way I did it was to copy thm-listof.sty into the same directory as my document and alter it; I was doing this anyway in order to reformat the list of theorems (if you try to override the format in your preamble, it doesn't work due to the packages use of \AtBeginDocument. Then, find the block ...

3

The error message you're getting should tell you all you need to know: LaTeX Error: Command \def already defined. What's going on? You're trying to set up a new (theorem-like) environment called def. In practice, this means that LaTeX tries to set up an instruction called \def to deal with the instruction \begin{def}. (LateX also sets up a macro ...

5

Update Since the class used is IEEEtran, the amsthm approach I initially suggested is not the best option (IEEEtran handles theorem-like environments in its own way). In this case, since the class doesn't make provision for unnumbered structures, you can achieve the desired unnumbered structure in a consistent way simply redefining the associated counter ...

6

Let's examine a simple document. \documentclass{article} \usepackage{amsthm,thmtools} \usepackage{hyperref} \declaretheorem{theorem} \begin{document} \section{A section title}\label{sec-a} \begin{theorem}[label=thm-e] $0\ne1$ \end{theorem} \begin{theorem}[name=Key theorem,label=thm-key] $0=0$ \end{theorem} \end{document} The \newlabel entries we ...

1

The problem with your solution is that restatable only introduces extra space when it is preceded by another environment. In the other cases, spacing is correct, and the \vspace should be avoided. By doing several experiments, it seems the culprit is the \label{thmt@@#1@data} in \thmt@rst@storecounters. By removing the \label command, spacing is correct, ...

1

Found a rather crude but effective solution: I defined lemma, theorem after loading cleveref in my document, but using different keywords (lemma becomes lem, theorem is thm and so on). I've ensured that the new environments are consistent with the default ones defined in lipics.cls, so the pdf file would look exactly the same, with the benefit that I dont ...

1

I simply removed the figure environment, since it wasn't necessary. Here's the working code : \documentclass[a4paper,12pt]{article} \usepackage[francais]{babel} \usepackage{graphicx} \newtheorem{exercice}{Exercice} \begin{document} \begin{exercice} Test \includegraphics[width=\linewidth]{F2.pdf} \end{exercice} \end{document}

Top 50 recent answers are included