]> 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>
Fri, 21 Nov 2014 09:23:56 +0000 (10:23 +0100)
commit9b530e59c2b74828f3a68f3bb7ee3dee0365cdc0
tree47ba5d6d3f60e96b90da69f798a1f5b9dcc2b25a
parent0385ef0e192a779aed13aab0fd4a9bd4a03f37e0
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.

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