3
votes
1answer
38 views

How to change enumerate style in GSM package

I used GSM LaTeX package of AMS to write a book, in which the enumerate environment gives the result as follows: (1) If blah blah blah. (2) Else blah blah blah. (3) Or blah blah blah.... I want ...
1
vote
0answers
39 views

Changing counters across and within sections

I am making a document with glosses (using package gb4e) and sections. The glosses correspond to certain numbers within certain chapters, but these chapters do not correspond to the sections I'm ...
3
votes
1answer
43 views

Number equations like subsections

I would like for equations to share the same counter as subsections. For example if my document is: \documentclass{article} \begin{document} \section{A} \begin{equation} 1+1=2 \end{equation} ...
5
votes
1answer
36 views

Total number of longtables (v3.02+)

I'm wondering, are there any ways to get (and forward-reference at the beginning of the document) the total number of tables when using longtables? There are utility packages for standard table ...
7
votes
1answer
94 views

How to do pagenumbering in a fancy way

How do i get uneven increasing page numbers in the first half of my document, and in the second half in the second half? Example: 1,3,5,7,8,6,4,2 Here are my thoughts on how to solve it: My LaTeX ...
6
votes
1answer
86 views

\alph without counters

When I iterate numbers with TikZ \foreach, they are stored in a macro. Now, when I need the letter corresponding to this macro, I can only convert it by saving it to a counter and then receiving it ...
12
votes
1answer
167 views

How to make figure and listing share their counter

I'm using the "listings" package to write pieces of code (XML, RDF, Java, etc) and I want them to have the same counter of the Figure environment. For example, Listing 1: blablabla Listing 2: ...
4
votes
2answers
79 views

Temporarily resetting figure counters within a chapter

The code below works perfectly in an article (permitting me to put two captions in the same figure and have one of them called Table, picking up the table counter—there’s a sensible reason for doing ...
6
votes
1answer
645 views

\newcounter vs \newcount [duplicate]

What are the differences between \newcounter vs \newcount? So far as my knowledge goes \newcounter is from LaTeX and \newcount is from TeX. Also, I find that \newcounter has an optional automatic ...
8
votes
4answers
186 views

How can I reference the current (sub)section number?

I want to create a macro that dynamically returns the current chapter, section, subsection (etc.) I'm in. I've created a macro called \getCurrentSectionNumber that does this, but it lacks the ability ...
4
votes
3answers
117 views

Theorem numeration shift

I would like to numerate my theorems not by chapters but by shifted chapters in such a way that the theorems in chapter 2 would read Theorem 1.1, Theorem 1.2 and so on. I need something along the ...
8
votes
2answers
106 views

Custom counter steps twice when invoked from caption using caption package

I made a custom counter with a custom command that steps the counter and sets an automatic label for it. However, when invoking this from a caption AND using the caption package, my counter steps two ...
6
votes
1answer
187 views

How to put \value{counter} as value to .aux file?

I'm trying to customize eledmac settings in a way that I can use its footnote ability just like the ordinary LaTeX footnote style, but not as one paragraph per footnote but all footnotes in one ...
13
votes
1answer
178 views

Defining a counter

I'm trying to define a new counter which does the following: \documentclass[10pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{array} \usepackage{tikz} \usepackage{longtable} ...
3
votes
2answers
114 views

Section numbering with numbering like 1.11

How do I set my section numbers like the given format? I'm in need of the format given below. I'm using gsm-l.cls. I'm just using tags like: \chapter{name} \section{sectionname} \begin{theorem} ...
5
votes
2answers
135 views

`xr` - temporarily redefine `\label` for exporting section counter to sister document?

The goal My objective is to have continuous page (and possibly section) counters for several independent documents. The purpose is a cumulative dissertation where each paper should retain the ...
7
votes
2answers
189 views

Counting pages of sections

After building a second page counter that is reset for every section, I wonder how to get the number of pages of a section. Every section starts on a new page. How can I calculate the number of ...
1
vote
1answer
169 views

Alternative numbering for theorem

I am using thmtools as a front end to amsthm and I have a definition environment as follows. \declaretheorem[ style=mydefinitionstyle, name=Definition, numberwithin=chapter ]{definition} ...
2
votes
2answers
138 views

Lemma numbering by first instance of referencing

My document is long with proofs broken into several lemmas and many of them are in the appendix. However, it seems odd when I am using Lemma 25 (which should ideally be Lemma 1) to prove Lemma 2. It ...
4
votes
2answers
419 views

Change theorem counter in Springer template

I used Springer template for my book, more concrete I used svmono. Here is a MWE, that is the shortened version of my template file. ...
4
votes
1answer
296 views

Cross-refencing a custom counter in \Alph style?

I made a 'hypothesis' custom counter in order to let LaTeX handle my hypothesis reference. My code is \newcounter{hypothese} \refstepcounter{hypothese}\label{hypo:lenght_of_words} ...
1
vote
1answer
109 views

Completely disable automatic incrementing of section and subsection counters?

I'm using LaTeX as a final build step from a specific legal source (a code of laws) that already has numbering - which is not entirely logical. So, the auto-stepping section & subsection numbering ...
7
votes
3answers
258 views

Part numbering with suffixes: I, II, IIIa, IIIb, IV,

I would like to have my parts numbered like this: I, II, IIIa, IIIb, ... , IV, ... I have written some code which works fine. But when using hyperref, I get this warning: destination with the same ...
1
vote
1answer
199 views

How can I change the counters of tables in the appendices? [duplicate]

I have multiple appendices and in some appendices I have tables. What I want is that each appendix itself has a letter as a number (e.g. Appendix A: title). A second thing that I want to achieve is ...
3
votes
1answer
232 views

Manual exercise question numbering

I am using exercise package to list exercises/questions. I am defining exercise list like this: \begin{ExerciseList} \Exercise{Exercise title} \ExeText Some exercise introduction ...
0
votes
0answers
53 views

Figure counter and figure label issues [duplicate]

i ve got an issue with Figure counting and, i think, labeling. Though I set the counter for figures at 0, my first figure, that I d like to have counted as 'Fig.1' and that is labeled as ...
6
votes
1answer
144 views

Caption number increases by two for every inclusion

I am trying to typeset my captions in margin using marginpar and captionof. Here is what I get by the MWE. Note the wrong caption numbers. The first caption is included using macro \fixedmarginpar ...
3
votes
1answer
321 views

Latex: Running table number

There are several tables in my paper, out of which one table is very long and need to be place on landscape page. This is my Table.4 and I want to put it on the last page. For that I used \setcounter ...
6
votes
2answers
438 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: ...
5
votes
2answers
327 views

Splitting examples in gb4e

I would like to split examples in the \usepackage{gb4e} to get explanatory remarks as close to the explained item as possible. Usually, my typeset examples are looking like this: (1) blabla (2) a. ...
4
votes
2answers
1k views

How to create new counter of equation

How to create a new counter of equation. The new equation is matriz and use other sequence number. \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \begin{document} ...
1
vote
1answer
760 views

Define new section

I have this document in the article documentclass. Everything is divided into sections and subsections. Now I'd like to have an example in my chapter two, that is also divided into sections. So I have ...
2
votes
0answers
405 views

Lyx incorrect figure numbering [closed]

Just a quick question. I am currently working on writing my thesis. I have many figures and I want the numbering to be something like 4.1 or 5.3. Where the first number is my section number and the ...
1
vote
0answers
44 views

Counter too large if number of alphabet chapters is more that 26 [duplicate]

Possible Duplicate: Error: Counter too large! with \alph{cntr} and cntr>26 I need Alphabetic numeration of my chapters. But if they are more than 26 LaTeX gives an error message. How I ...
4
votes
1answer
387 views

How to set the number of the first citation?

I am using BibTeX and natbib for my citations. In the bibliography the first entry usually starts with [1]. Now I would like to shift all the numbers in the bibliography and text by a certain offset, ...
5
votes
1answer
3k views

No Counter Theorem1 is defined

I got an exception in the following latex code: "No Counter Theorem1 is defined", what is the problem? \documentclass[conference]{IEEEtran} \newtheorem{definition}[theorem1]{Definition} ...
6
votes
1answer
3k views

Redefining a theorem counter

I have a document with a lot of lemmas and theorems. In the main part of the document there are sections and subsections, so I defined \newtheorem{lem}{Lemma}[subsection] to number the lemmas ...
6
votes
3answers
7k views

How to reset chapter and section counter with \part

To get the output Toc or pdf bookmark below: Part I Chapter I Chapter II Part II Chapter I Chapter II I need to reset the chapter counter. I google and get one method. ...
1
vote
2answers
166 views

How to make additional paragraph commands that use sectioning counters?

I would like to be able to use the following additional (new) commands: \sparagraph, \ssparagraph, \sssparagraph. All of these will use the \paragraph formatting but, will use different counters. The ...
17
votes
2answers
3k views

Error: Counter too large! with \alph{cntr} and cntr>26

I would like to have \alph{counter} for values larger than 26. The following MnWE gives me the error ! LaTeX Error: Counter too large. \documentclass{article} \begin{document} \begin{enumerate} ...
4
votes
1answer
2k views

Chngcntr: \counterwithout not working

I need to place the tables section after my appendix. I've used \counterwithin{table}{section} to number appendix tables A.1, A.2, etc. Then I use \counterwithout{table}{section} so that the tables ...
17
votes
3answers
450 views

Extracting the “parent” counter of a sectional unit

I am interested in finding the "parent" counter of a specific sectional unit. For example, in the following document structure 1. A section 1.1 A subsection 1.1.1 A subsubsection 1.1.2 A ...
9
votes
1answer
1k views

Revert (reverse) \numberwithin effect

How can I revert the action of \numberwithin{mycounter}{section} so that mycounter does not reset with a new section? Example: (This is not exactly my case but this is easy to understand.) I would ...
15
votes
2answers
298 views

A new kind of “symbol wrapping”

alphalph defines three methods for continuing a set of symbols if you hit the end. alph continues like so: a,b,c…z,aa,ab,ac… mult continues like so: a,b,c…z,aa,bb,cc… wrap continues like so: ...
6
votes
3answers
426 views

Odd interaction of secnumdepth and section-based counters

In the following MWE: \documentclass{book} \newcounter{exnum}[subsection] \begin{document} \chapter*{Chapter} \section*{Section 1} \subsection{Subsection A} \setcounter{exnum}{1} ...
1
vote
1answer
377 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
3answers
1k views

Table of Contents numbering in decimals?

I have created my first LaTeX document, its very small and have 4 sections. The problem is the numbering is in decimals and looks a little odd, I have searched every where, I'm sure its a simple fix. ...
0
votes
1answer
297 views

Counting letters inside paragraph

I am trying to make a new command \part which is defined such that each time I type \part the output equals \paragraph*(letter) where letter is bold. So, with typing the letter manualy in, the ...
4
votes
2answers
423 views

Numbering theorems within the innermost sectioning environment present at that point in the document?

Here is what I am trying to achieve: Chapter 1. ... Theorem 1.1. ... Section 1.1. ... Theorem 1.1.1. ... Subsection 1.1.1. ... Theorem 1.1.1.1. Is this even possible? If so, how? ...
2
votes
1answer
565 views

Refering to the same (alphabetically “numbered”) footnote more than once

Following my previous post concerning the change of numbering in footnote to temporally be alphabetical, I'm trying to merge this with the possibility to refer various time to the same footnote as ...