Tag Info

New answers tagged

1

Since you have defined the lemma structure using \newtheorem{lemma}[theorem]{Lemma} this implies that lemmas will share the counter for theorems and, unfortunately, the question doen't give information about how exactly the theorem structure was defined. Seeing the form of the counter, however, one can guess that the definition for theorems must be ...


4

If a document indents the first line of a paragraph (in TeX jargon, the indentation amount is governed by the \parindent length parameter), one usually does not provide extra vertical space between ordinary paragraphs, i.e., the length of the \parskip parameter is 0pt by default. Conversely, some - but certainly not all - document styles that set ...


3

Three possible styles: \documentclass{article} \usepackage{amsmath,amsthm} \usepackage[all,cmtip]{xy} \begin{document} \begin{proof} \[ \xymatrix{A & B \\ C & D} \qedhere \] \end{proof} \begin{proof} \[ \begin{gathered} \xymatrix{A & B \\ C & D}\\ \end{gathered} \qedhere \] \end{proof} \begin{proof} \[ \begin{gathered}[b] \xymatrix{A & B ...


4

You could load the mathtools package and use its commands \lbrack and \rbrack -- note that they need to be used in math mode -- to typeset square brackets in a way that doesn't trip up LaTeX. I.e., you'd write \begin{props}[$\lbrack 1\rbrack]$, p.~180] Addendum: I just noticed the comment posted by @Bernard: An even easier solution is to write ...


0

Check the bidi package documentation on page 12 (section 1.13); you will need to use \@SepMark instead of ..


8

The following example patches \@thm that is defined by amsthm to remove the number, if there is only one entity. If the theorem entity has reached number 2, then there are multiple items and a label is written to the .aux file using the theorem name and number as key. In the next LaTeX run, the existence of this key is checked for the first item and the ...


4

There exists an unofficial package named corollaries exactly for such a case. I've been using it for more than a year. It should soon be proposed on CTAN, but author doesn't have much time to finish the doc in English. For the moment the documentation is in French (1½ page only). It defines three new commands, newcorollary , and for arbitrary counters ...


3

Here is something that you could use as a start: \documentclass{report} \usepackage[margin=1in]{geometry}% Just for this example \makeatletter \newcommand{\printcases}{\@starttoc{cse}} \newcommand{\l@case}{\@dottedtocline{1}{0em}{1.5em}} \makeatother \newcommand{\case}[6]{% \addcontentsline{cse}{case}{#1: #2} \begin{description} \item[Case]: #1 ...


8

The following conditions on the value of section, inserting it into the theorem numbering as needed: \documentclass[12pt]{report} \usepackage{amsthm,amsmath} \newtheorem{theorem}{Theorem}[section] \numberwithin{theorem}{section}% Reset theorem counter with every section \numberwithin{theorem}{chapter}% Reset theorem counter with every chapter ...


3

Perhaps a little 'programing' helps to maintain section countering for theorems when there is a section and to drop it, when there is no section! \documentclass[12pt]{report} \usepackage{amsthm} \usepackage{etoolbox} \newtheorem{theorem}{Theorem}[section] \makeatletter \@addtoreset{theorem}{chapter}% \@addtoreset{theorem}{section}% \makeatother ...


0

Using the ntheorem package, this is really simple : write in your preamble something like: \usepackage[thmmarks,thref,hyperref,amsmath]{ntheorem} \theoremstyle{numberplain} \theoremheaderfont{\bfseries\itshape}% Remove \bfseries if you only want the title in italic \theorembodyfont{upshape\mdseries} \theoremseparator{. ---} % Really old-style ...


0

An alternative to the accepted answer that doesn't require a new theorem environment name is the following: \documentclass{article} \usepackage{amsthm} \usepackage{lipsum} \usepackage{needspace} \newtheorem{theorem}{Theorem} \let\ORGtheorem\theorem \def\theorem{% \Needspace*{3\baselineskip} \ORGtheorem } \let\ORGendtheorem\endtheorem \def\endtheorem{% ...


3

Here is another suggestion based on tcolorbox. The myproposition environment is provided numbered and additionally unnumbered using a star. Both variants are breakable. The example code repeats the number, if the propositons gets broken. Just remove the overlay middle and last key, if you do not want that. \documentclass{article} ...


1

Here I adapted the numberedblock package, and created a macro \proposition[]{}. The first optional argument is the label of the form [\plabel{}], and the mandatory argument is the proposition content. The \numblock macro adapted from numberedblock actually has its own counter, blocknum, which I slave to the equation counter. If you changed your mind and ...


3

Here's a suggestion similar to what you've already tried: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \newenvironment{myproposition} {\begin{equation} \begin{minipage}{0.90\linewidth} \itshape} {\end{minipage}%% \end{equation}} \usepackage{lipsum} \begin{document} For our second application, recall that if two ...


3

You need to know as with the first figure whether there are more figures to follow within the same environment, or not. Unfortunately, LaTeX is not able to perform that sort of “look ahead” on its own. Anyhow, you can use .aux-files to store the total number of figures within each Job-environment and process that very number at the beginning of each ...


4

You can use chngcntr package and do \usepackage{chngcntr} \counterwithin{equation}{Job} %% you can do this too because you defined it %% \counterwithin{figure}{Job} Full code: \documentclass[10pt,demo]{article} %%% remove demo \usepackage{graphicx, thmtools, lipsum, float} \declaretheorem{Job} \makeatletter \let\c@equation\c@figure ...


1

If it is practicable for you, you can reset the figure counter in each theorem. Maybe, you want to redefine the theorem environment, to do this automatically, but I don't know, how to do this. One line per theorem should be OK. For your exact problem: I don't know, how LaTeX shall notify, if one or two figures are included in one theorem. I think, it is ...


2

Please always post complete small documents, not unusable fragments however like most latex counter constructs, \newtheorem{theo.a}{Proposition} defines theo.a to increment the counter before printing it so if you want to start at Proposition 42 then you just need \setcounter{theo.a}{41} \begin{theo.a} this is the proposition. \end{theo.a}


3

Adding a trailing optional argument will do: \mdtheorem[ style=mpdframe, style=wide, style=greyfr, style=wideln, ]{discuss}{Discuss Topic}[chapter] \mdtheorem[ style=mpdframe, style=wide, style=greyfr, style=sqzblw, style=wideln, ]{disc}{Discussion}[chapter] If you want to remove the chapter number (but I can't understand why), add ...


2

Another option, using mdframed this time: \documentclass{report} \usepackage{amsmath} \usepackage[framemethod=tikz]{mdframed} \usepackage{lipsum} \newcounter{defi} \numberwithin{defi}{chapter} \newmdenv[ settings={\refstepcounter{defi}}, singleextra={ \node[ overlay, inner xsep=0pt, anchor=south west, font=\bfseries ] at ...


3

Something like that (based on tcolorbox)? You can remove the cleveref options, if you do not need or like them. \documentclass{report} \usepackage[most]{tcolorbox} \usepackage{lipsum,cleveref} \newtcbtheorem[auto counter,number within=chapter, crefname={definition}{definitions},Crefname={Definition}{Definitions}% only for cleveref ...


0

Problem 1 has a solution at Theorem style with name as argument, noting that one should use [headpunct=] to remove the dot/colon/whatever after the theorem name. Problem 2 has an answer in the \str_if_eq:nnTF in a comment at Problem with abbreviation of `\multirow` and `\multicolumn` (LaTeX). As for the spacing problem in problem 3, it seems to have simply ...


1

You can even use the cleveref and ntheorem (or amsthm) packages. Provided the \newtheoremdeclarations are writtenafter` cleveref loading, supposing for instance some_label refers a given theorem, you can write in your .tex file something like : According to \cref{some_label`}… and the result will be: According to theorem 2.1.4 … So not only the ...


10

There is no Czech dictionary provided along with the translator subpackage of Beamer, so you need to help it; the proof name is changed, because babel knows about \proofname. \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[czech]{babel} \uselanguage{Czech} \languagepath{Czech} \usetheme{Copenhagen} ...


1

Here's a solution that employs the capabilities of the ntheorem package. If you want the theorem's header separated from the body with, say, a "dot" (.), just add the instruction \theoremseparator{.} between the \theoremheaderfont and \newtheorem statements. \documentclass{article} \usepackage{ntheorem} \theoremheaderfont{\textit} ...


2

The actual style that you want to update is the definition style (since you specify it), like so: \documentclass{amsart} \begin{document} \makeatletter \def\th@definition{ \thm@headfont{\itshape} % Heading font is italic \thm@notefont{} % Note is same as heading \itshape% Regular text is also italic } \makeatother \theoremstyle{definition} ...



Top 50 recent answers are included