1
vote
1answer
56 views

Theorem style - define indentation

I have a real issue with defining my theorem style. I need indentation after the theorem, but cannot achive it. I google for hours and didn't find a solution. Hope you can help me. By the way, I'm ...
2
votes
1answer
64 views

Case numbering within proof [duplicate]

I am currently using this in the preamble: \theoremstyle{plain}% default \newtheorem{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} ...
1
vote
1answer
52 views

How to make an environment such as “theorem” not have italics [duplicate]

I found this: How to change the font style in theorem environment? as well as this: Italic in theorem environment Neither however seem to make sense to me as I have been using the following: ...
6
votes
1answer
80 views

How to change QED sign for theorem classes

I'm writing an article which contains some quite long proofs, some of which include claims with proofs of their own. I dealt with that by adding a claim environment using \newtheorem, but there's a ...
5
votes
1answer
73 views

How to enable line breaking in the standard proof environment with amsmath?

I want to redefine the proof so it accepts linebreaks in the name \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax \trivlist ...
3
votes
0answers
74 views

Understanding differences between newtheorem and newenvironment

The difficulty that I am having is that I make a newtheorem: \newtheorem{definition}[theorem]{Definition} It however seems to act nearly the same as with newenvironment: ...
1
vote
1answer
141 views

How to define a command that could generate similar environments just as \newtheorem does?

It's well known that the LaTeX built-in command \newtheorem could generate a series of the theorem environments that are similar: they share the same theme of layout style but differ in their name and ...
4
votes
1answer
2k views

Using amsthm but still getting “Environment theorem undefined”

I'm trying to write up all my university theorems and I cant get the theorem environment to work. Here is a mini example of what I'm trying to do. \documentclass[a4paper,12pt]{article} ...
4
votes
1answer
65 views

Listings environment within another environment

\newtheorem{alg}{Algorithm}[subsection] \begin{alg}\label{alg:1} \begin{lstlisting}[frame = single, breaklines = true, numbers = left] test code \end{lstlisting} \end{alg} How can I prevent the ...
5
votes
0answers
46 views

Repeat a Theorem [duplicate]

For my thesis I have to repeat my theorems, not just the number but the exact wording of the Theorems. I found the question How to repeat the content of a quote (e.g. introduction+conclusion) without ...
4
votes
1answer
85 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
132 views

Indicator at end of theorem

I'm writing a text with some very long theorem-environments in it and I find the italicised theorems visually not pleasing when they are rather longish. So I'm using the definition theorem style most ...
2
votes
2answers
190 views

\begin{problem} analogue to \begin{proof}

I recently learned about \begin{proof} ... \end{proof}, which is a good environment to work in. My question is whether there exists a similar environment to state a problem, or whether I can write ...
2
votes
2answers
126 views

Difficulty modifying an array environment

I have an array that I had past help on and now I am attempting to modify that array. However, when doing so, parts of my "theorem" keep getting shifted to the next line. Here is a MWE: ...
4
votes
1answer
317 views

How to make “claim” environments look like “theorem” environment?

I am using LyX 2.0.5 with document class article and 'Theorems (AMS)' in the modules. From what I understand, the claim environment copies its style from the remark environment. I'd like it to copy ...
7
votes
1answer
469 views

Duplicating the amsthm proof environment

I am currently writing up some lecture notes and would like to have therefore a "\solution" environment which should work basically as the amsthm \proof environment, just writing "Solution." instead ...
6
votes
0answers
268 views

How to create a framed proof attached to a theorem?

I am trying to create a customized "proof" environment attached to a theorem. It looks like this: So there is first the theorem, and then a gray bar starts on the inner margin. It ends, when the ...
14
votes
1answer
277 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 ...
2
votes
0answers
82 views

Custom environment splitting between pages [closed]

I created a custom environment for theorems using mdframed package: \newtheorem{theorem}{Theorem} \newtheorem{twierdz}[theorem]{Twierdzenie} \newenvironment{twierdzenie} ...
1
vote
1answer
180 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 ...
1
vote
1answer
73 views

How to ignore proofs? [duplicate]

I'd like to print a shorter version of my paper without all the proofs, I'm thinking about something like \renewenvironment{proof}{\begin{comment}}{\end{comment}} but that activates the comment ...
2
votes
1answer
143 views

using a restatable before it is stated

This question is related to the question at Recalling a theorem, which uses the thmtools and thm-restate packages and the restatable environment to define a theorem that can be re-stated later on. Is ...
3
votes
1answer
131 views

How can I define a new environment which limits the scope of \newtheorem commands?

I am attempting to make an environment out of the command given in one of the answers to this question: Customizing theorem name. \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} ...
2
votes
1answer
194 views

Creating a particular environment with a left-side rule

I don't have much experience in creating environments, and my understanding of them allows me to create environments which do something at the beginning and at the end (like for instance, in a "proof" ...
5
votes
1answer
127 views

Using environment argument inside a new environment doesn't work

I know it must be something trivial: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \usepackage[svgnames]{xcolor} \usepackage{framed} ...
4
votes
2answers
160 views

My custom theorem/proof environments aren't playing well together

As can be shown in the following MWE, when I have a theorem environment followed by a proof environment, the proof isn't going into the next line; it's rendering right on top of the text I have for ...
1
vote
1answer
477 views

Problem using enumerate environment in a proof newenvironment definition

I want to define a simple environment to enclose my proofs, actually I just wanted to put a little square right at the end. So, I made this new environment definition: \newenvironment{Proof}{ ...
3
votes
1answer
639 views

Can't use theorems in lyx (mac)

I want to switch to lyx, but I'm having a hard time trying to use environments. I red that they are supposed to be as a class in the drop down list at the top left (If I'm nor wrong, together with ...
8
votes
1answer
179 views

How do I adjust the placement of descriptions I've made alongside enumerated statements within a boxed theorem environment?

Basically, what I'd like is to have an elegant command that would enable descriptions (commutativity, associativity, etc.) made alongside enumerated statements to be aligned to the far right side of ...
5
votes
1answer
105 views

Preferred way of creating problem and solution environments

I know we can create problem-solution pairs using the exercise package but I am looking for something that is much simpler and similar to theorem and proof environments. I have solved this problem in ...
12
votes
2answers
2k views

Difference between \begin{theorem}…\end{theorem} and {\theorem …}

I see that both attempts to display a theorem in the following code generates similar output. \documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \begin{document} ...
8
votes
1answer
3k views

Usage of \hskip \labelsep while creating an environment with trivlist

I am trying to learn how to create a theorem like environment from http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Theorems.html To keep the code below simple, I am not really defining a new ...
4
votes
1answer
436 views

How can I create a customized environment?

I would like to write some theorems down like this: \begin{theorem} \begin{preconditions} $A := \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$\\ $B := \begin{pmatrix} 2 ...
2
votes
1answer
164 views

How to avoid that the \newenvironment text is placed on one single page

I am using the \newenvironment command for the first time and well it's causing troubles. I am using it for creating a new theorem environment \documentclass{article} \usepackage{amsmath, amssymb} ...
5
votes
1answer
126 views

Customize environment “proof”

I need to create (or customize) an environment "proof" that has the option to explain after the word 'proof' the name of the theorem (or environment) along with its automatic numbering of the theorem ...
6
votes
1answer
537 views

Beamer newenvironment for theorems

I'm trying to define a new environment for theorems and I'm using this code: % Theorem box \pgfdeclarelayer{background} \pgfsetlayers{background,main} \tikzstyle{thmbox} = [inner sep=1em] ...
4
votes
2answers
1k views

Lyx 2.0 Formatted references to theorem/lemma/claim environments

In Lyx 2.0, I'm trying to use a formatted reference to a claim, but I cannot get the "formatted" part, i.e. I can't get it to typeset "claim" as well as the claim number. I'm using modules "Theorems ...
5
votes
1answer
6k views

Can I disable italics in the body text of a theorem without amsthm/ntheorem?

I'm submitting a paper and am required to use a provided document class which defines its own theorem environments, so I can't use packages like amsthm or ntheorem. The class doesn't define a ...
4
votes
1answer
890 views

Specification in `theorem` environment also bold

I'm using the following packages/options in my article: \documentclass[b4paper,12pt]{article} \usepackage[english]{babel} \usepackage{amssymb} \usepackage{amsmath} ...
10
votes
1answer
1k views

Change only the ending with renewenvironment

I have a theorem environment I've made called "ex" (using the theoremstyle "definition"), which I use for examples in a book document class. I like that I can number the examples, but I want a proof ...
5
votes
1answer
354 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 ...
4
votes
1answer
766 views

Easy-to-use reference-able environment for restating theorem-like environments?

This question is a development of the same issue as this one; following my own answer and later comment there, I decided it deserves a spin-off. I would like to define an environment for restating ...
9
votes
1answer
1k views

Fancy Theorem Environment and Colors

I'm trying to make a boxed theorem environment with colors. I thought I had done it, but I was mistaken--lists were the wrong colors. In the picture above, I would like the "list" to be the same ...
8
votes
6answers
982 views

How to split an example into two parts?

I am trying to have an example (using the theorem environent in amsmath) split in two parts: Example 1 ... Some more discussion Example 1 (continued) ... What is the best way to do this ? The ...
1
vote
1answer
291 views

Defining the caption of newtheorem with a command

In the example below you can see that both environments get the same caption. How to prevent this? You will get the same result if you use an other package like amsthm, theorem or thmtools. ...
7
votes
2answers
579 views

Own command to create new environment

The following code isn't very minimal but I hope you will be able to understand the code. \setcounter{errorcontextlines}{999} \documentclass{scrartcl} \usepackage{lipsum,ntheorem} ...
15
votes
5answers
777 views

How to put a star (or other symbol) in sections that are “special” (difficult, optional, etc)?

I'm currently writing a book, and I'd like some of the sections to be clearly marked as "difficult" or "optional". Not only sections, but also exercises (I'm using the exercise package) and theorems ...
2
votes
1answer
223 views

Use the same brackets or parenthesis as equations in an empty style environment

I have the following in my preamble: \usepackage[overload, ntheorem]{empheq} \usepackage[amsmath, thmmarks]{ntheorem} \usepackage{mathtools} \mathtoolsset{showonlyrefs,showmanualtags} ...
4
votes
1answer
454 views

Theorems and Definitions as quotes

Most standard styles highlight theorems and definitions using italics. Now this is something I really would like to avoid in my thesis (and generally). Unfortunately, if I just remove this "feature", ...
16
votes
5answers
7k views

Customizing theorem name

Suppose I have a series of theorems that I would like displayed as Jim's Theorem. Bob's Theorem. Will's Theorem. rather than as “Theorem (Jim).”, “Theorem (Bob).”, and “Theorem ...