mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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.
This commit is contained in:
parent
87960e3dd8
commit
dfaa4e9466
@ -23,6 +23,9 @@ Input numrevtex.inc
|
||||
|
||||
Provides natbib-internal 1
|
||||
Provides url 1
|
||||
Provides tablefootnote 1
|
||||
Provides footnote-alternative 1
|
||||
|
||||
SecNumDepth 4
|
||||
TocDepth 3
|
||||
DefaultStyle Standard
|
||||
@ -286,6 +289,9 @@ Float
|
||||
End
|
||||
|
||||
|
||||
OutlinerName video "Videos"
|
||||
|
||||
|
||||
InsetLayout Flex:Float_Link
|
||||
CopyStyle Flex:URL
|
||||
LabelString "Float link"
|
||||
@ -349,6 +355,12 @@ InsetLayout Flex:Surname
|
||||
End
|
||||
|
||||
|
||||
# RevTeX uses normal footnotes in tables
|
||||
InsetLayout Foot:InFloatTable
|
||||
CopyStyle Foot
|
||||
End
|
||||
|
||||
|
||||
NoStyle Chapter
|
||||
NoStyle Chapter*
|
||||
NoStyle LyX-Code
|
||||
|
@ -16,8 +16,11 @@ Format 65
|
||||
Columns 1
|
||||
Sides 1
|
||||
PageStyle Headers
|
||||
|
||||
Provides natbib-internal 1
|
||||
Provides url 1
|
||||
Provides tablefootnote 1
|
||||
Provides footnote-alternative 1
|
||||
|
||||
SecNumDepth 4
|
||||
TocDepth 3
|
||||
@ -277,5 +280,11 @@ Style Keywords
|
||||
End
|
||||
|
||||
|
||||
# RevTeX uses normal footnotes in tables
|
||||
InsetLayout Foot:InFloatTable
|
||||
CopyStyle Foot
|
||||
End
|
||||
|
||||
|
||||
Input stdfloats.inc
|
||||
Input stdcounters.inc
|
||||
|
@ -118,7 +118,10 @@ int InsetFoot::docbook(odocstream & os, OutputParams const & runparams) 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.addPreambleSnippet(
|
||||
from_ascii("\\makesavenoteenv{"
|
||||
|
Loading…
Reference in New Issue
Block a user