Move the RefPrefix definitions to their own file, for easy inclusion in

other layouts. Also fix up some of those layotus.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33836 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-22 11:59:22 +00:00
parent c0f4aa8c4b
commit b30f7c3e9e
8 changed files with 48 additions and 9 deletions

View File

@ -1135,6 +1135,7 @@ dist_layouts_DATA =\
layouts/stdlayouts.inc \
layouts/stdletter.inc \
layouts/stdlists.inc \
layouts/stdrefprefix.inc \
layouts/stdsections.inc \
layouts/stdstarsections.inc \
layouts/stdstruct.inc \

View File

@ -123,6 +123,7 @@ Style Part
Align Center
LabelType Static
LabelString "Part"
RefPrefix part
# standard font definition
Font
@ -154,6 +155,7 @@ Style Section
LabelType Counter
LabelCounter section
LabelString "Section \arabic{section}"
RefPrefix sec
OptionalArgs 1
Font
@ -196,6 +198,7 @@ Style Subsection
LabelType Counter
LabelCounter subsection
LabelString "Subsection \arabic{section}.\arabic{subsection}"
RefPrefix sub
OptionalArgs 1
# standard font definition
@ -1235,4 +1238,3 @@ Preamble
\def\gobbletableofcontents#1{\origtableofcontents}
}
EndPreamble

View File

@ -656,3 +656,4 @@ Input stdinsets.inc
Input stdfloats.inc
Input numarticle.inc
Input stdcounters.inc
Input stdrefprefix.inc

View File

@ -239,4 +239,3 @@ Style Acknowledgements
Size Normal
EndFont
End

View File

@ -130,6 +130,7 @@ Input stdlayouts.inc
Input stdfloats.inc
Input stdcounters.inc
Input stdinsets.inc
Input stdrefprefix.inc
Style Title

View File

@ -0,0 +1,38 @@
# Standard RefPrefix definitions.
# This defines the label prefixes for use with refstyle.sty.
#
# Author: Richard Heck <rgheck@comcast.net>
#
# Note that this file is included in stdsections.inc, which is included
# in stdclass.inc, so any file that includes either of these will get
# the standard RefPrefix definitions.
Format 25
IfStyle Part
RefPrefix part
End
IfStyle Chapter
RefPrefix chap
End
IfStyle Section
RefPrefix sec
End
IfStyle Subsection
RefPrefix sub
End
IfStyle Subsubsection
RefPrefix sub
End
IfStyle Paragraph
RefPrefix par
End
IfStyle Subparagraph
RefPrefix par
End

View File

@ -26,7 +26,6 @@ Style Part
BottomSep 4
ParSep 0.8
Align Center
RefPrefix part
Alignpossible Center
Font
Series Bold
@ -54,7 +53,6 @@ Style Chapter
ParSep 0.8
Align Block
OptionalArgs 1
RefPrefix cha
Font
Series Bold
Size Huge
@ -80,7 +78,6 @@ Style Section
ParSep 0.7
Align Block
OptionalArgs 1
RefPrefix sec
Font
Series Bold
Size Larger
@ -101,7 +98,6 @@ Style Subsection
Series Bold
Size Large
EndFont
RefPrefix sub
HTMLTag h3
End
@ -117,7 +113,6 @@ Style Subsubsection
Series Bold
Size Normal
EndFont
RefPrefix sub
HTMLTag h4
End
@ -129,7 +124,6 @@ Style Paragraph
LatexName paragraph
TopSep 0.4
BottomSep 0
RefPrefix par
End
@ -140,7 +134,7 @@ Style Subparagraph
LatexName subparagraph
NextNoIndent 0
LeftMargin MM
RefPrefix subp
End
Input stdrefprefix.inc
Input numarticle.inc

View File

@ -57,6 +57,7 @@ Style Chapter
BottomSep 0.8
ParSep 0.8
Align Block
RefPrefix chap
OptionalArgs 1
Font
Series Bold
@ -80,6 +81,7 @@ Style Section
BottomSep 0.7
ParSep 0.7
Align Block
RefPrefix sec
OptionalArgs 1
Font
Series Bold
@ -94,6 +96,7 @@ Style Subsection
TopSep 0.9
BottomSep 0.5
ParSep 0.5
RefPrefix sub
Font
Series Bold
Size Large