4
votes
1answer
30 views

How can I use arabic numbering for theorems?

I used the newtheorem command to create exercises in a book in the following way. \newtheorem{xca}[theorem]{Problems} So in the body I use the following command to create a set of exercises, ...
0
votes
0answers
37 views

Problem with sectionning with my example

I want to number my example environments like [section]. However, example environments are numbered with chapter, not section. What should I do? This is my MWE: \newcounter{example} \makeatletter ...
8
votes
3answers
205 views

How can I have numbered verbatim environments?

How can I have an automatically numbered verbatim environment, just like equations? I tried putting it like this: \begin{equation} \begin{verbatim} bla... bla... bla... \end{verbatim} \end{equation} ...
4
votes
1answer
68 views

How to create an unnumbered theorem?

I'm looking for a way to create a new theorem without numbering. I found Theorem without numbering and tried the accepted answer, but I get the error "Command * already defined". This is the code I'm ...
3
votes
1answer
146 views

An in line Exercise environment

In my lecture notes I want to leave some work as exercises and plan to give solutions later in the text. For example, "The proof of this theorem is left as an exercise (Exercise 1.2)". It must also ...
12
votes
1answer
234 views

Theorem with separate tikz environments for header and body

My initial question: I'm writing my lecture notes in LaTeX and used some customized theorem environments with amsthm so far. Now I wanted to redesign those theorems with help of tikzpicture. That's ...
1
vote
1answer
163 views

Custom Numbering in Derivation / Proof Environment

Just a quick background, I am writing a thesis, which has theorems (proofs and derivations) and possibly a few other 'theorem' type environments. The code in this question actually works fine, it is ...
2
votes
1answer
96 views

Get rid of numbering in “remark” environment

I use renewcommand for changing the remark into my native language, more precise, I used : \renewcommand\remarkname{Chú ý} It goes with a counter, i.e each time I start a remark \begin{remark} ...
5
votes
1answer
118 views

Automatic numbering of nested environments / items

I would like to have an environment, let's call it nested, which produces output like Case 1: top level item 1 Case 2: top level item 2 Case 2.1: nested item 1 Case 2.2: nested item 2 Case 2.2.1: ...
3
votes
1answer
65 views

Remove the automatic generation of number?

I looked for my past thread which can be found here: Create a two column static small box the solution i accepted was the truefalse environment. My question is, how will i remove the automatic ...
1
vote
3answers
161 views

Is there other possible way for continuous numbering?

I am creating a document using exam class. I have four question types here which i had created each a command. Is there facility to enforce continuous numbering for each question types instead of ...
1
vote
1answer
237 views

Counters for claims

I want to redefine the claim environment so that it will be numbered but I'm having a hard time with the counters. I want the following: \begin{theorem} thm 1 \end{theorem} \begin{proof} ...
6
votes
2answers
357 views

Defining shared counters for theorem environments *after* environments are defined

I am trying to use the same numbering for theorems, propositions, definitions, etc. This is normally easily be solved by using amsmath and defining these environments and using the same counter: ...
1
vote
2answers
729 views

Enumeration of equations in the double dollar math mode

How introduce enumeration of equations in the double dollar math mode (i.e. $$...$$)? Or even better, is it possible to make $$...$$ as a particular math environment, e.g. equation or align?
4
votes
3answers
117 views

Own environment with own label

I want to have an environment for strategies. So far I used the package ntheorem to define such an environment. I use it like this: \begin{strategy}[bla] bla bla \end{strategy} And get: ...
2
votes
1answer
841 views

Example environment with numbering, caption, “verbatim” content

I need to use an example environment like the following. \begin{example}[My Caption, mylabel] My example text \end{example} It should show the text inside a verbatim environment, the caption (like ...
4
votes
1answer
252 views

Numbering sequent proofs like equations

I am trying to reproduce some very old articles for use in an anthology. Some of these articles present certain rules of inference as proofs in sequent calculus, but number them along with equations, ...
5
votes
1answer
331 views

Plain enumeration of theorems definitions etc

In my TeX document Theorems, Definitions, Lemmas are enumerated in the following way: Definition 1.1 Lemma 1.1 Theorem 1.1 Definition 1.2 Lemma 1.2 Theorem 1.2 But I would like to have ...
7
votes
2answers
1k views

Defining a custom environment with per-section numbering

I have an enumerate environment that I want to refer to later in my document using \ref and \label, but enumerate doesn't get numbered by section (the way, say, figure would). How can I add section ...
8
votes
2answers
341 views

How to add a counter to beginning of each sentence like the Bible?

1 In the beginning God created the heaven and the earth. 2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the ...
1
vote
1answer
356 views

How to create a new counter for an a new environment that is in sync with subsections

I want to create an example environment with a counter which will be in sync with my subsections. So I'll have: subsection 3.2 lemma 3.2 example 3.2 example 3.3 lemma 3.3 subsection ...
3
votes
4answers
127 views

Through enumeration

I would like to have problems be consecutively numbered throughout a book, irrespective of the chapters and sections where they appear. E.g. Chapter 1 [Text] 1. Some problem Section 1 2. Some ...
27
votes
6answers
1k views

Is it possible to automatically enumerate sentences in LaTeX?

1.0.1 Is it possible to automatically enumerate sentences in LaTeX? 2.0.1 I want to thoroughly work through and criticize a longer text. 2.0.2 To facilitate quoting, I would like to typeset the text ...
6
votes
3answers
1k views

Number mhchem reactions and create a \listofreactions

Is there a way to create an environment for reactions defined with mhchem that behaves similarly to equation in terms of numbering the reactions (including a \nonumber command)? Can I get a list of ...
10
votes
2answers
2k views

Listings: different counters for different listing environments

How do I create two lstlisting environments that each have its own counter? If I use for example \lstnewenvironment{algorithm}[2]{ \renewcommand\lstlistingname{Algorithm} \lstset{ ... } } ...
4
votes
1answer
680 views

\ref giving incorrect number for \label in custom environment

I have defined a custom environment (using the tocloft package, thanx to Juan) that looks like: \newcommand{\listscriptname}{List of Scripts} \newlistof[chapter]{script}{spt}{\listscriptname} ...