Whoops.
This one too is small.
rh
Martin Vermeer wrote:
> On Fri, 13 Apr 2007 09:47:28 -0400
> Richard Heck <[EMAIL PROTECTED]> wrote:
>
>
>> Martin Vermeer wrote:
>>
>>> On Thu, Apr 12, 2007 at 10:23:24PM -0400, Richard Heck wrote:
>>>
>>>
>>>> This seems pretty straightforward: Alignment, line spacing, and such
>>>> can't be set in captions; it leads to invalid LaTeX output. This
>>>> disables it. Will commit unless someone objects.
>>>>
>>>>
>>> I like small patches ;-)
>>>
>>> Are captions the only place where this is invalid?
>>>
>>>
>> It's already disabled in ERT and charstyles, and sometimes in tables. I
>> don't see any other insets where it should be disabled, but if anyone
>> knows of one do let me know.
>>
>
> So you're using the forceDefaultParagraphs mechanism? Would be fun to
> see the actual patch ;-)
>
>
>> That said, it seems to me that it would be nice if there were a
>> "ForceDefault" setting in layouts so that one could disable this kind of
>> thing in, say, the title, or in some other kind of environment. You can
>> now disable alignments by using AlignPossible, but there's no way to
>> disable line spacing, say.
>>
>
> Yes, I agree.
>
> - Martin
>
--
==================================================================
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
Index: insetcaption.h
===================================================================
--- insetcaption.h (revision 17789)
+++ insetcaption.h (working copy)
@@ -78,6 +78,8 @@
void setCustomLabel(docstring const & label);
///
void addToToc(TocList &, Buffer const &) const;
+ /// Captions don't accept alignment, spacing, etc.
+ bool forceDefaultParagraphs(idx_type) const { return true; }
private:
///