From a08621ebce05d54645dc7d9d735a33d72079827d Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Thu, 30 Apr 2020 23:46:26 -0400 Subject: [PATCH] Documentation for counter inset. --- lib/doc/UserGuide.lyx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/lib/doc/UserGuide.lyx b/lib/doc/UserGuide.lyx index 7da3737b49..210801622f 100644 --- a/lib/doc/UserGuide.lyx +++ b/lib/doc/UserGuide.lyx @@ -147,7 +147,7 @@ logicalmkup \papersides 2 \paperpagestyle default \tablestyle default -\tracking_changes true +\tracking_changes false \output_changes false \change_bars false \postpone_fragile_content false @@ -29887,20 +29887,33 @@ name "sec:Counters" \begin_layout Standard -\change_inserted -584632292 1588303631 +\change_inserted -584632292 1588304632 One powerful feature of \SpecialChar LaTeX is its ability to manage counters, like the one for this section ( +\change_unchanged + \begin_inset CommandInset counter LatexCommand value -counter "subsection" +counter "section" value "0" vtype "arabic" lyxonly "false" \end_inset -), automatically. + +\change_inserted -584632292 1588304519 +). + Mostly, this is handled automatically, but there are times one wants to + modify counters directly. + This can be done in LyX using the counter inset, which is accessible from + the Insert menu. + This allows one to set a counter's value; to reset it (to zero); to add + to the value (or subtract from it, since the value added can be negative); + to save it; to restore the saved value; and to print the value. + These effects can also be limited to LyX itself. + And they will appear in HTML and DocBook output, as well as in LaTeX. \end_layout