Jürgen Spitzmüller schreef:
Rainer Dorsch wrote:
If I open the settings dialog in both tables in cell "C1", in the first I
can select if it should be header, first header, etc. In the second table
this is greyed out. And in the latex code it is shown that it is used both
in head and first head and that is not what I want. I want to be it part of
the data, i.e. not in head or first head.
Why can't I choose in the second table for C1 if it is in head/first head
or none of them?
It turns out that the problem is that row 1 in Rainer's second table has both
"head" and "first head" set, which we consider invalid (a row can only by
either a head or a first head[1]): getStatus disables SET_LTFIRSTHEAD if
there's already a head and SET_LTHEAD if there's already a first head. So, in
Rainer's case, the two functions mutually disable each other, that's why
everything is greyed out in the dialog.
The only possibility to fix such files is to edit them in an editor.
A possible (yet maybe not complete) fix for branch is attached: It assures
only one of "head"/"first head" or "foot"/"last foot" is set. It sets them to
non-first, because this generates the same output as a combined first/non-
first setting (see below).
It is slightly more general: you also can't select 'head' and 'foot' at
the same time. Neither 'head' and 'last foot', etc..
PS. The user can also use the command "tabular-feature unset-ltlastfoot"
in the command buffer to correct his document.
Vincent