]> git.lyx.org Git - features.git/commit
Let the Foot inset have a different Layout when inside a title
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Nov 2014 13:53:11 +0000 (14:53 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Dec 2014 09:15:02 +0000 (10:15 +0100)
commit53436891f79150cdb053b52dfd38540b9652c9cc
tree2f2a862052390e9f546c877caf6ce1e6238ee416
parent565cb2a3f0c5993fc086e846ee05ee245a4e36d7
Let the Foot inset have a different Layout when inside a title

This allows to address two main issues
 * \thanks does only accept one paragraph, while \footnote allows several (ticket #2666)
 * footnotes in titling environments were not numbered on screen.

Moreover, the code reduces hardcoding of features, which is always a good thing.

There are several pieces in this commit:

 * new numbering type \fnsymbol for counters

 * the Foot inset changes its layoutName() to Foot:InTitle when inside a paragraph with InTitle property. This is set when running updateBuffer.

 * Foot:intitle uses the \thanks command, does not allow multiple paragraphs and marks its contents as moving argument.

 * The InsetLayouts for Foot now have properLaTeXName/Type, so that InsetFoot::latex can be removed; further code simplification is probably possible.

 * HTML preamble has been updated (thanks rgheck).

Fixes: #2666
lib/layouts/stdcounters.inc
lib/layouts/stdinsets.inc
src/Counters.cpp
src/insets/InsetFoot.cpp
src/insets/InsetFoot.h
src/insets/InsetFootlike.cpp