Kornel Benko wrote: > Am Sonntag, 2. Juni 2013 um 13:27:24, schrieb Jürgen Spitzmüller > <sp...@lyx.org> >> Kornel Benko wrote: >> > Missing initial values in stdcounters.inc >> > >> > E.g. >> > Counter chapter >> > InitialValue 1 >> > PrettyFormat "Chapter ##" >> > End >> > >> > Kornel >> >> Are these initial values really needed? I.e., couldn't we assume a >> default initial value (probaby "0") if none is explicitly given? >> >> Jürgen > > I'd like them rather explicitly set. And some tool, which grumbles if > its not set for some counter in a layout.
This could be done in check_layouts, but I'd rather not like to do it (see below). > (I for one don't like too many defaults) This is a good rule which I use myself in many cases. However, in this case there is another one: If you design file formats, design them in such a way that makes it difficult to produce invalid files. In this case, the latter aspect is more important IMHO, since most styles do not need initial values. Also, looking at Richards initial commit, I believe that he wanted to do this. I am going to fix the problem using a default value of 0 if Richard does not turn up until this evenging, or somebody has a really strong reason not to do so. Georg