Pavel Sanda wrote:
New patch attached. I don't have time to test it right now but will
later. But it should work.
i'm sure i knew how to deliver correct params to paragraph-params-apply,
but now my guesses dont work :) please can you give me samples for params
for centering or (no)indent for paragraph-params lfun ?
paragraph-params \align center
paragraph-params \noindent
paragraph-params \indent
paragraph-params \paragraph_spacing single
Look at ParagraphParams::read() for the details of all of these. They
ought to be documented, too.
If you make a selection and there are nested insets (branches,
floats), these inner paragraphs will not be affected. I am not sure
this is what we want (otherwise the loop should use a ParIterator,
which is not more difficult).
i would intuitively expect more that paragraphs inside the insets wont be
changed by this. but it may be difficult to gain consesus on this.
what others think ?
I've been thinking about this a fair bit, and I agree with you, Pavel.
Suppose, for example, that there are footnotes. I don't expect
"paragraph-params \align center" to center all the footnotes, too. Maybe
some other things you'd expect to be modified. I don't know.
Modulo this, which should be straightforward. We could also check
whether \noindent is legitimate.
looking on the rest of the patch i didnt see how to easily make indent
toggling as i made available in previous patches. is it still possible to make
something like "paragraph-indent toggle" ? i started to use it and became
almost addicted to it :)
Not at present, and it wouldn't be easy to add, given the form of the
code now.
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto