itsme213 wrote:
>> itsme213 wrote:
>>> I am editing a doc-book article, and have several paras that I would 
>>> like to "demote" into a new sub-section. I thought I could select 
>>> these paras and "wrap" them into a section as it is quite compatible 
>>> with the content model for a section, but that option does not appear.
>>>
>> Sorry because this is not very intuitive.
> 
> Do you mean because the <section> parent also requires a <title> 
> element, so it would not be a plain "wrap"? Strictly speaking you are 
> right, but imo it would be quite intuitive if XXE looked a little bit 
> "deeper" to find a matching place for such editing operations, where 
> possible. 

For example: we have a "add" command which does just this. In practice, 
this gives a behavior which is not easy to predict for the average user. 
Precise, tree oriented, commands (e.g. Insert After, Into, Before) may 
be more tedious to use but, at least, they are very straightforward to use.


> Friendlier for the end user, perhaps?
> 

No, the Demote command works just fine. It will to its job of creating a 
valid chapter or section, having an empty title.

You just have to remember that if you want to wrap several sibling 
paragraphs in a section using command Demote, you need to explicitly 
select the *first* paragraph, then apply DocBook|Demote.

Generally commands acting on several elements require you to explicitly 
select all these elements. (In the case of Demote, doing this causes the 
Demote command to be grayed. Just select one element, the demote point, 
if you want this command to work.)

Reply via email to