#LyX 2.4 created this file. For more info see https://www.lyx.org/
-\lyxformat 598
+\lyxformat 599
\begin_document
\begin_header
\save_transient_properties true
status collapsed
\begin_layout Plain Layout
-StepMasterCounter
+Step
+\change_deleted 731793113 1604355211
+Master
+\change_inserted 731793113 1604355212
+Parent
+\change_unchanged
+Counter
\end_layout
\end_inset
\end_inset
-] Steps the master counter of a given counter at the beginning of a new
- sequence of layouts.
+] Steps the
+\change_deleted 731793113 1604355214
+master
+\change_inserted 731793113 1604355216
+parent
+\change_unchanged
+ counter of a given counter at the beginning of a new sequence of layouts.
This is currently only useful when
\begin_inset Flex Code
status collapsed
\backslash
myinset{content}\SpecialChar ldots
}
+\change_unchanged
+
\end_layout
\end_inset
\backslash
emph{content}}\SpecialChar ldots
}
+\change_unchanged
+
\end_layout
\end_inset
\backslash
emph
+\change_unchanged
+
\end_layout
\end_inset
\change_inserted -712698321 1597733292
0
+\change_unchanged
+
\end_layout
\end_inset
\end_deeper
\begin_layout Standard
If LabelString is not defined, a default value is constructed as follows:
- if the counter has a master counter
+ if the counter has a
+\change_deleted 731793113 1604355218
+master
+\change_inserted 731793113 1604355221
+parent
+\change_unchanged
+ counter
\begin_inset Flex Code
status collapsed
\begin_layout Plain Layout
+
+\change_deleted 731793113 1604355223
master
+\change_inserted 731793113 1604355226
+parent
+\change_unchanged
+
\end_layout
\end_inset
\begin_layout Plain Layout
\backslash
-themaster.
+the
+\change_inserted 731793113 1604355228
+parent
+\change_deleted 731793113 1604355230
+master
+\change_unchanged
+.
\backslash
arabic{counter}
\end_layout
\change_inserted 1075283030 1598469476
para
+\change_unchanged
+
\end_layout
\end_inset
# This script will update a .layout file to current format
# The latest layout format is also defined in src/TextClass.cpp
-currentFormat = 86
+currentFormat = 87
# Incremented to format 4, 6 April 2007, lasgouttes
# Incremented to format 86, 20 October 2020 by tcuvelier
# New tag DocBookSection.
+# Incremeted to format 87, 2 November 2020 by rkh
+
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").
i += 1
continue
+ if format == 86:
+ if lines[i].lstrip().lower().startswith(b"stepmastercounter"):
+ pattern = re.compile(b"stepmastercounter", re.IGNORECASE)
+ lines[i] = pattern.sub(b"StepParentCounter", lines[i])
+ i += 1
+ continue
+
if 82 <= format <= 85:
# nothing to do.
i += 1
}
if (needEnumCounterReset(it)) {
- // Increase the master counter?
- if (layout.stepmastercounter)
+ // Increase the parent counter?
+ if (layout.stepparentcounter)
counters.stepParent(enumcounter, utype);
// Maybe we have to reset the enumeration counter.
if (!layout.resumecounter)
LT_REFPREFIX,
LT_RESETARGS,
LT_RESUMECOUNTER,
- LT_STEPMASTERCOUNTER,
+ LT_STEPPARENTCOUNTER,
LT_RIGHTDELIM,
LT_FORCELOCAL,
LT_TOGGLE_INDENT,
margintype = MARGIN_STATIC;
latextype = LATEX_PARAGRAPH;
resumecounter = false;
- stepmastercounter = false;
+ stepparentcounter = false;
intitle = false;
inpreamble = false;
needprotect = false;
{ "rightmargin", LT_RIGHTMARGIN },
{ "spacing", LT_SPACING },
{ "spellcheck", LT_SPELLCHECK },
- { "stepmastercounter", LT_STEPMASTERCOUNTER },
+ { "stepparentcounter", LT_STEPPARENTCOUNTER },
{ "textfont", LT_TEXTFONT },
{ "toclevel", LT_TOCLEVEL },
{ "toggleindent", LT_TOGGLE_INDENT },
lex >> resumecounter;
break;
- case LT_STEPMASTERCOUNTER:
- lex >> stepmastercounter;
+ case LT_STEPPARENTCOUNTER:
+ lex >> stepparentcounter;
break;
case LT_ARGUMENT:
"\tInPreamble " << inpreamble << "\n"
"\tTocLevel " << toclevel << "\n"
"\tResumeCounter " << resumecounter << "\n"
- "\tStepMasterCounter " << stepmastercounter << '\n';
+ "\tStepParentCounter " << stepparentcounter << '\n';
// ResetArgs does not make sense here
for (LaTeXArgMap::const_iterator it = latexargs_.begin();
it != latexargs_.end(); ++it)
docstring counter;
/// Resume counter?
bool resumecounter;
- /// Step master counter?
- bool stepmastercounter;
+ /// Step parent counter?
+ bool stepparentcounter;
/// Prefix to use when creating labels
docstring refprefix;
/// Depth of XML command
// You should also run the development/tools/updatelayouts.py script,
// to update the format of all of our layout files.
//
-int const LAYOUT_FORMAT = 86; // tcuvelier: DocBookSection.
+int const LAYOUT_FORMAT = 87; // rkh: master --> parent for counters
// Layout format for the current lyx file format. Controls which format is