Fix footnotes in table with RevTeX4

These classes come with their own working implementation of table
footnotes, so we are not supposed to use the tablefootnote or
footnote package.

Also add missing outliner name.

(cherry picked from commit dfaa4e9466)
This commit is contained in:
Juergen Spitzmueller 2017-12-27 15:43:40 +01:00
parent 110422022f
commit 196032f79f
3 changed files with 25 additions and 1 deletions

View File

@ -23,6 +23,9 @@ Input numrevtex.inc
Provides natbib-internal 1 Provides natbib-internal 1
Provides url 1 Provides url 1
Provides tablefootnote 1
Provides footnote-alternative 1
SecNumDepth 4 SecNumDepth 4
TocDepth 3 TocDepth 3
DefaultStyle Standard DefaultStyle Standard
@ -286,6 +289,9 @@ Float
End End
OutlinerName video "Videos"
InsetLayout Flex:Float_Link InsetLayout Flex:Float_Link
CopyStyle Flex:URL CopyStyle Flex:URL
LabelString "Float link" LabelString "Float link"
@ -349,6 +355,12 @@ InsetLayout Flex:Surname
End End
# RevTeX uses normal footnotes in tables
InsetLayout Foot:InFloatTable
CopyStyle Foot
End
NoStyle Chapter NoStyle Chapter
NoStyle Chapter* NoStyle Chapter*
NoStyle LyX-Code NoStyle LyX-Code

View File

@ -16,8 +16,11 @@ Format 65
Columns 1 Columns 1
Sides 1 Sides 1
PageStyle Headers PageStyle Headers
Provides natbib-internal 1 Provides natbib-internal 1
Provides url 1 Provides url 1
Provides tablefootnote 1
Provides footnote-alternative 1
SecNumDepth 4 SecNumDepth 4
TocDepth 3 TocDepth 3
@ -277,5 +280,11 @@ Style Keywords
End End
# RevTeX uses normal footnotes in tables
InsetLayout Foot:InFloatTable
CopyStyle Foot
End
Input stdfloats.inc Input stdfloats.inc
Input stdcounters.inc Input stdcounters.inc

View File

@ -118,7 +118,10 @@ int InsetFoot::docbook(odocstream & os, OutputParams const & runparams) const
void InsetFoot::validate(LaTeXFeatures & features) const void InsetFoot::validate(LaTeXFeatures & features) const
{ {
if (!features.saveNoteEnv().empty()) { // Use footnote package to provide footnotes in tables
// unless an alternative approach is built in the class.
if (!features.saveNoteEnv().empty()
&& !features.isProvided("footnote-alternative")) {
features.require("footnote"); features.require("footnote");
features.addPreambleSnippet( features.addPreambleSnippet(
from_ascii("\\makesavenoteenv{" from_ascii("\\makesavenoteenv{"