I'm trying to number theorems in by number and letter, where each group of letters is of different size. The theorems are linked together and I would like to show it in the text. I use the ntheorem package but don't understand how to change the default numbering order.  \documentclass{article} \usepackage{ntheorem} \newtheorem{theorem}{Hypothesis}  \begin{document}  \begin{theorem} This is theorem 1 (should be 1a) \end{theorem}  \begin{theorem} This is theorem 2 (should be 1b) \end{theorem}  \begin{theorem} This is theorem 2 (should be 2a) \end{theorem}  \end{document}
89486
I am trying to number my theorems as follows:  Theorem 1.A. First part of a theorem.  Theorem 1.B. Second part of the theorem.  Theorem 2. A theorem with no parts.  The following almost works:  \newtheorem{theorem}{Theorem} \newtheorem{theorempart}{Theorem}[theorem]   But it does not increment the theorem counter as I want, so that  \begin{theorempart}First part of a theorem. \end{theorempart}  \begin{theorempart}Second part of the theorem. \end{theorempart}  \begin{theorem}A theorem with no parts. \end{theorem}   gives:  Theorem 0.1. First part of a theorem.  Theorem 0.2. Second part of the theorem.  Theorem 1. A theorem with no parts.  Also, I don't know how to get the part-number to be a letter instead of a number.  I am using MiKTeX.
74615
I am using the command \listoftheorems with packages amsthm and thmtools. The problem is that the theorem's head and its optional title overlap. How can I make this space bigger to avoid overlapping?    Thank you all. I include an example below (maybe not minimal). I've tried \makeatletter\thmt@listnumwidth{4.3em}\makeatother but I get errors. Same thing with \renewcommand{\l@theorem}{\@tocline{0}{3pt plus2pt}{0pt}{3.5em}{}}. Any other clues? Should I try working with ntheorem instead?  %% LyX 2.0.0 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[12pt,a4paper,english,titlepage, fleqn,numbers=noenddot]{scrbook} \usepackage[osf]{mathpazo} \usepackage{helvet} \usepackage{courier} \renewcommand{\familydefault}{\rmdefault} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \pagestyle{headings} \setcounter{tocdepth}{3} \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage{babel} \usepackage{setspace} \onehalfspacing \usepackage[unicode=true,  bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=4,  breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]  {hyperref} \hypersetup{pdftitle={},    pdfkeywords={music cognition, categorization, embodiment}}  \makeatletter  \pdfpageheight\paperheight \pdfpagewidth\paperwidth  \usepackage{amsthm} \usepackage{thmtools}  \declaretheorem[style=remark, name={}]{Example} \renewcommand{\theExample}{\bf{Def. \thechapter.\arabic{Example}}}  \makeatletter \def\th@remark{% \thm@headpunct{:}   \thm@notefont{\bfseries\itshape}} \makeatother  \makeatletter \def\thmhead@plain#1#2#3{%   \thmname{#1}\thmnumber{\@ifnotempty{#1}{ }\@upn{#2}}%   \thmnote{ {\the\thm@notefont#3}}} \let\thmhead\thmhead@plain \def\swappedhead#1#2#3{%   \thmnumber{#2}%   \thmname{\@ifnotempty{#2}{~}#1}%   \thmnote{ {\the\thm@notefont#3}}} \makeatother  \newcounter{genero} \setcounter{genero}{1}  \AtBeginDocument{   \def\labelitemi{\normalfont\bfseries{--}}   \def\labelitemii{\(\star\)}   \def\labelitemiii{\(\cdot\)} }  \makeatother  \begin{document} \listoftheorems  \begin{Example}[Género musical \thegenero]\stepcounter{genero}  first example.  \end{Example}  \begin{Example}[Género musical \thegenero]\stepcounter{genero}  second example.  \end{Example}  \begin{Example}[Género musical \thegenero]\stepcounter{genero}  third example.  \end{Example} \end{document}
60343
Suppose, I want to refer multiple equations (1), (2), (3), (4), (5) and (7) so that they appear as (1-5, 7):  \documentclass[fleqn,preprint,10pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \begin{document} \begin{align} \label{1}\psi([e_1,e_2]) = \psi(e_2) = e_2 = (e_2,2e_3) = (-2e_3,e_2) = (\psi(e_1), \psi(e_2))\\ \label{2}\psi([e_1,e_3]) = \psi(2e_3) = 2e_1 = (e_1,2e_3) = (-2e_3,e_1) = (\psi(e_1),\psi(e_3))\\ \label{3}\psi([e_2,e_3]) = 0 = (e_2,e_1) = (\psi(e_2),\psi(e_3)),\\ \label{4}\left\{e_4, e_1\right\},\,\,\,\left\{e_4, e_2\right\},\,\,\,\left\{e_4, e_3\right\},\,\,\,\left\{e_4, e_1+\epsilon\,e_2\right\},\\ \label{5}\left\{e_1, e_2\right\},\,\,\,\left\{e_3, e_1\right\},\,\,\,\left\{e_3, e_2\right\},\\ \label{6}\left\{e_4, e_1\right\},\,\,\,\left\{e_4, e_2\right\},\,\,\,\left\{e_4, e_3\right\},\,\,\,\left\{e_4, e_1+\epsilon\,e_2\right\},\\ \label{7}\text{Nor}_{L_4\oplus L_3}\left(\{e_2\}\right)/\{e_2\}=\,\{e_1, e_3, e_4\} \end{align} \end{document}
71656
\documentclass{article} \usepackage{amsmath} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document}     \begin{align}         \hat{\alpha} &amp;= \begin{cases}                       \tan^{-1}\frac{\hat{\alpha_1}}{\hat{\alpha_2}},  \,    &amp;\text{if }  \hat{\alpha_1}&gt;0 \, \hat{\alpha_2}&gt;0 \\                      \tan^{-1}\frac{\hat{\alpha_1}}{\hat{\alpha_2}}+\pi,  \,  &amp;\text{if }  \hat{\alpha_1}&lt;0 \\                      \tan^{-1}\frac{\hat{\alpha_1}}{\hat{\alpha_2}}+2\pi,   \, &amp;\text{if  }\hat{\alpha_2}&lt;0 \,  \hat{\alpha_1} &gt;0 \\                      \text{undefined}, &amp; \hat{\alpha_2}=0 \, \hat{\alpha_1}=0                 \end{cases}      \end{align}  \end{document}   I need to numbering of this cases but when i put align code , the file not compiling because \par .... what is wrong please help me i attempt every probability to solve this
61995
What's the $n$-th digit in the sequence $S$ of numbers formed by the natural numbers, i.e.,  $n$-th digit in the sequence 1 2 3 4 5 6 7 8 9 10 11 12... ? For example 11th digit in the sequence is 0.
79254
I have to figure out a way to count how many sequences are there s.t:   My alphabet is $1$ up to $49$. Each number that is chosen, is chosen only once. The sequence is $6$ digits long. The sequence is in increasing order.  e.g that is a valid sequence: $(1, 2, 40, 42, 43, 49)$  and this is not: $(1, 2, 40, 25, 25, 12)$   I know that for the first 3 rules the answer is: $\binom{49}{6}\cdot 6!$  How do I deal with the fourth?
3104
I'm stuck on what how to continue. I know I'm missing a few steps but this is what I have so far. Thank you in advance!   ¬Cube(b) → Small(b) Small(c) → (Small(d) ∨ Small(e))  Small(d) → ¬Small(c) Cube(b) → ¬Small(e)   Small(c)   ¬Small(b)   ¬Cube(b) Small(b) (→ Elim 1,7) ⊥ (⊥intro 6, 8)    10.Cube(b) (¬Intro 7-9)   ¬Small(e) (→ Elim 4,10)     Goal: Small(c) → Small(b)
16264
Possible Duplicate:          I have written my thesis in document class 'article' (don't ask me why). Now I want to number my equations by sections, i.e. in section 1 they should go 1.1, 1.2, ..., in section 2 they should go 2.1, 2.2, ...  I don't want to change the document class (e.g. to 'report') because then I would have to change all sections to chapters, subsections to sections and because I fear a lot of other unintended consequences.   How can solve this?  Thanks for any help!
56091
I have the following code:  \usepackage{hyperref} \newtheorem{thm}{Theorem}  \begin{thm} \label{mythm}    \begin{enumerate}       \item     \end{enumerate} \end{thm}  \ref{mythm}   The ref prints the right number. However, when I click on it, it will lead me to a wrong page (basically, to the beginning of the document).  pdflatex also has some warning.  If I add $ $ between \begin{thm} and \begin{enumerate}, the problem disappears, but now, the enumeration starts a new line.  Is there any way to fix this?
86868
I have two questions. 1. Can I delete the red-colored space? 2. If I use enumerate in proof, QED symbol appears the next line of the end, as above. If I do not want to type manually \qedhere, should I use ntheorem?  \documentclass[a4paper]{article} \usepackage[scale=0.75]{geometry}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} \usepackage{textcomp} \usepackage{enumitem} \setlist[enumerate]{nosep, label=(\arabic*)}  \theoremstyle{definition} \newtheorem{lem}{Lemma}  \begin{document}  \begin{lem} \begin{enumerate} \item xxxx \item yyyy \end{enumerate} \end{lem} \begin{proof} \begin{enumerate} \item xxxxxxxxxxxxxxxxxxxxxxxxx. xxxxxxxxxxxxxxxxxxxxxxxxx. xxxxxxxxxxxxxxxxxxxxxxxxx. xxxxxxxxxxxxxxxxxxxxxxxxx. xxxxxxxxxxxxxxxxxxxxxxxxx. xxxxxxxxxxxxxxxxxxxxxxxxx.  \item yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. yyyyyyyyyyyy. \end{enumerate} \end{proof}  \end{document}
122023
Is there a macro available that will turn "1" into "first", "2" into "second", etc.  Let's call this macro "wordth".  Then, for example, if item number 2 in an enumerate environment is labeled by \label{item:blah}, I could write something like  The \wordth{\ref{item:blah}} item is problematic.   which would be formatted as "The second item is problematic."  (Bonus points for other languages, but I only need it for English.)   points to the  package for turning "1" into "1st", etc.  The  package also does this.  Neither appears to provide fully spelled out English ordinals.  In many situations only full words for ordinals, not their abbreviations, are appropriate.  This is probably a FAQ, but it's one of those things that's difficult to search.  Feel free to point to a dupe question and close.
73111
In my macro file, I have certain theorem environments defined, for example.  \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary}  \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition}   Again, these lines are in my macros.sty file of shortcuts.  In the past, I have changed the numbering of theorem, etc... by using \numberwithin. I have recently learned that I can instead edit the \newtheorem line. For example, if I want results numbered according to section I can use  \newtheorem{theorem}{Theorem}[section]   My question now is about future situations when I have two documents, which both use the same macros.sty file, but in one document I want to number results by section and in the other document I want to number results by something else, say chapter.  How can I accomplish this without creating two different .sty files?   EDIT: I think I should add that I am looking for a way to do this without going back to \numberwithin. The reason for this is because \numberwithin doesn't seem to work well with the thmtools package.
10403
I know the sequence called the Fibonacci sequence; it's defined like:  $\begin{align*} F_0&amp;=0\\ F_1&amp;=1\\ F_2&amp;=F_0+F_1\\ &amp;\vdots\\ Fn&amp;=F_{n-1} + F_{n-2}\end{align*}$  And we know that there's Binet formula for computing $n$-th element in the sequence.  However, I'm trying to find something totally different.  We know that $K=2$ for the Fibonacci sequence; let's call $K$ the number of previous elements to get the $n$-th element. For example,  $\begin{align*} K=2&amp;\Rightarrow F_n= F_{n-1} + F_{n-2},\\ K=3&amp;\Rightarrow F_n= F_{n-1} + F_{n-2} + F_{n-3},\\ \end{align*}$  and so on.  How to compute the $n$-th element for given $K$? I couldn't find any formula for $K &gt; 2$.  Thanks for any help.
2967
I want to have numbered listing in each row, I've tried with \rownumber, but it doesn't work. I wrote a number at the beginning, but Could it be automatically?  Can you help me? This is my code:  \documentclass[10pt, a4paper]{article}  \usepackage{fontspec} \setmainfont{Arial}  \usepackage{color, colortbl} \definecolor{Gray}{gray}{0.9}  \begin{document}  \begin{table}[h!] \tiny \begin{tabular}{|&gt;{\raggedright\arraybackslash}m{30mm}|&gt; {\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|&gt;{\raggedright\arraybackslash}m{5mm}|} \hline \multicolumn{1}{|&gt;{\centering\arraybackslash}m{30mm}|}{\rowcolor{Gray}\textbf{Text}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 1}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 2}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 3}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 4}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 5}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 6}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 7}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 8}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 9}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 10}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 11}} &amp; \multicolumn{1}{|&gt;{\centering\arraybackslash}m{5mm}|}{\textbf{Sem 12}}\\ \hline 1. Text text text text text text text text text text text text text &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;\\\hline 2. Text text text text text text text text text text text text text &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;\\\hline 3. Text text text text text text text text text text text text text  &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;\\\hline 4. Text text text text text text text text text text text text text &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;\\\hline  \hline \end{tabular} \end{table}  \end{document}
18622
Sometimes it is convenient to refer to a group of equations by a letter and a number.  For example:   2+1   (A1) 2+4   (A2) x^4   (B3) x^e   (B4)   Placing  \tag{A\theequation}\label{eqn:thisone}\stepcounter{equation}} instead of just \label{eqn:thisone} works, but seems hacky (especially manually stepping the counter).   Is there a better way?
60412
I have some own theorem environments. And my theorems are numbered like the chapter. Now I would like to use autoref with that. But it does not work like it is described here () with aliascnt. So how can I get that?  \documentclass[ngerman,halfparskip,12pt,pointednumbers]{scrreprt} \usepackage{babel} \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc}  \usepackage{amsmath,amsfonts,amssymb,amsthm,bbm} \usepackage{hyperref} \newtheoremstyle{absatz}     {17pt}{10pt}{}{-1pt}{\scshape\bfseries}{.}{\newline}{}  \theoremstyle{absatz}  \newtheorem{satz}{Satz}[chapter] \newtheorem*{satz*}{Satz} \newtheorem{lemma}[satz]{Lemma} \newtheorem{corollar}[satz]{Korollar}   %\renewcommand*{\theoremautorefname}{Satz} \begin{document} \begin{satz} \label{Satz} text text theorem \end{satz}   In \autoref{Satz} we have shown... \end{document}
1875
I am trying to use the  package.  I have the following counters defined (hopefully this is the right way to do it!)  \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary}   This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)  My problem is \cref always returns Theorem 1.2, Theorem 1.3. I   Perhaps this is not right? (In my preamble)  \crefname{thm}{theorem}{theorem's} \crefname{lemma}{lemma}{lemma's}