commit 291a62263e9f90391c26adaf819743be8d853bf4
Author: Koji Yokota <[email protected]>
Date: Mon Nov 18 10:14:59 2024 +0900
Add front/main/backmatter styles to JLReq layout
---
.../Japanese_Article_%28JLReq_Class%29.lyx | 18 +-
lib/layouts/jlreq-book.layout | 40 ++++
lib/layouts/jlreq-common.inc | 232 ++++++++++-----------
3 files changed, 173 insertions(+), 117 deletions(-)
diff --git a/lib/examples/ja/Articles/Japanese_Article_%28JLReq_Class%29.lyx
b/lib/examples/ja/Articles/Japanese_Article_%28JLReq_Class%29.lyx
index 2ca6f402fc..00bb0423d9 100644
--- a/lib/examples/ja/Articles/Japanese_Article_%28JLReq_Class%29.lyx
+++ b/lib/examples/ja/Articles/Japanese_Article_%28JLReq_Class%29.lyx
@@ -539,6 +539,7 @@ LaTeXプリアンブル
\end_layout
\begin_layout JLReq Setup
+
sidenote_type=symbol
\end_layout
@@ -2340,7 +2341,22 @@ appendix_
\end_inset
に変えることによって,
-本文部分/後付け/付録に関する設定に変えることができます.
+本文部分/後付け/付録に関する設定に変えることができます(これらは
+\begin_inset Flex MenuItem
+status collapsed
+
+\begin_layout Plain Layout
+\begin_inset Info
+type "l7n"
+arg "Japanese Book (JLReq Class)"
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+でのみ使用することができます).
\end_layout
\begin_layout Itemize
diff --git a/lib/layouts/jlreq-book.layout b/lib/layouts/jlreq-book.layout
index 68120b08cc..4abb6b490c 100644
--- a/lib/layouts/jlreq-book.layout
+++ b/lib/layouts/jlreq-book.layout
@@ -20,3 +20,43 @@ Input jlreq-common.inc
ClassOptions
Other book
End
+
+Style Front_Matter
+ Category Structure
+ LatexType Command
+ LatexName frontmatter
+ KeepEmpty 1
+ ResetArgs 1
+ Margin First_Dynamic
+ NextNoIndent 1
+ ParSkip 0
+ TopSep 2.5
+ BottomSep 0.5
+ ParSep 0
+ Align Center
+ LabelType Static
+ LabelBottomSep 0
+ LeftMargin M
+ LabelString "--- Front Matter ---"
+
+ Font
+ Family Sans
+ Series Bold
+ Size Largest
+ Color textlabel1
+ EndFont
+End
+
+Style Main_Matter
+ CopyStyle Front_Matter
+ Category Structure
+ LatexName mainmatter
+ LabelString "--- Main Matter ---"
+End
+
+Style Back_Matter
+ CopyStyle Front_Matter
+ Category Structure
+ LatexName backmatter
+ LabelString "--- Back Matter ---"
+End
diff --git a/lib/layouts/jlreq-common.inc b/lib/layouts/jlreq-common.inc
index d601c4ab3b..46d94817a6 100644
--- a/lib/layouts/jlreq-common.inc
+++ b/lib/layouts/jlreq-common.inc
@@ -1,104 +1,104 @@
# Japanese jlreq textclass definition file.
-# Author : Koji Yokota ([email protected])
+# Author : Koji Yokota ([email protected])
#
# This class internally loads following packages:
-# Any time: l3keys2e, lmodern
-# With non-LuaLaTeX: everyhook
-# With LuaLaTeX: luatexja, luatexja-adjust
+# Any time: l3keys2e, lmodern
+# With non-LuaLaTeX: everyhook
+# With LuaLaTeX: luatexja, luatexja-adjust
Format 107
Style Part
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the part"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the part"
+ InsertCotext 1
EndArgument
End
Style Part*
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the part"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the part"
+ InsertCotext 1
EndArgument
End
Style Chapter
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the chapter"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the chapter"
+ InsertCotext 1
EndArgument
TocLevel 0
End
Style Chapter*
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the chapter"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the chapter"
+ InsertCotext 1
EndArgument
End
Style Section
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the section"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the section"
+ InsertCotext 1
EndArgument
TocLevel 1
End
Style Section*
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the section"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the section"
+ InsertCotext 1
EndArgument
End
Style Subsection
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the subsection"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the subsection"
+ InsertCotext 1
EndArgument
TocLevel 2
End
Style Subsection*
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the subsection"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the subsection"
+ InsertCotext 1
EndArgument
End
Style Subsubsection
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the subsubsection"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the subsubsection"
+ InsertCotext 1
EndArgument
TocLevel 3
End
Style Subsubsection*
Argument post:1
- LabelString "Subtitle|u"
- Tooltip "Subtitle of the subsubsection"
- InsertCotext 1
+ LabelString "Subtitle|u"
+ Tooltip "Subtitle of the subsubsection"
+ InsertCotext 1
EndArgument
End
Style Abstract_over_Columns
- CopyStyle Abstract
- InTitle 1
- LabelString "Abstract"
- Category FrontMatter
- LatexType Command
- LatexName jlreqabstract
+ CopyStyle Abstract
+ InTitle 1
+ LabelString "Abstract"
+ Category FrontMatter
+ LatexType Command
+ LatexName jlreqabstract
Preamble
\newcommand{\jlreqabstract}[1]{%
\begin{abstract}%
@@ -109,39 +109,39 @@ Style Abstract_over_Columns
End
Style JLReq_Setup
- InPreamble 1
- LatexType Command
- LatexName jlreqsetup
- Category FrontMatter
- LabelType Static
- LabelString "JLReq Setup"
- LabelSep "M"
- LeftMargin "MMMMMMM"
+ InPreamble 1
+ LatexType Command
+ LatexName jlreqsetup
+ Category FrontMatter
+ LabelType Static
+ LabelString "JLReq Setup"
+ LabelSep "M"
+ LeftMargin "MMMMMMM"
Font
- Family Typewriter
- Size Small
+ Family Typewriter
+ Size Small
EndFont
LabelFont
- Color eolmarker
- Family Sans
+ Color eolmarker
+ Family Sans
EndFont
- ParagraphGroup 1
- PassThru 1
- HTMLTag !--
+ ParagraphGroup 1
+ PassThru 1
+ HTMLTag !--
End
InsetLayout Flex:Endnote
- LyxType custom
- LatexType Command
- LatexName endnote
- Counter footnote
- Decoration Classic
- LabelString "Endnote"
- ForcePlain 1
- BgColor background
+ LyxType custom
+ LatexType Command
+ LatexName endnote
+ Counter footnote
+ Decoration Classic
+ LabelString "Endnote"
+ ForcePlain 1
+ BgColor background
ResetsFont true
- HTMLLabel \arabic{footnote}
- HTMLInnerTag div
+ HTMLLabel \arabic{footnote}
+ HTMLInnerTag div
HTMLStyle
span.flex_endnote_label {
vertical-align: super;
@@ -165,18 +165,18 @@ InsetLayout Flex:Endnote
padding: 1em;
}
EndHTMLStyle
- AddToToc footnote
- IsTocCaption true
- DocBookTag footnote
- DocBookTagType inline
+ AddToToc footnote
+ IsTocCaption true
+ DocBookTag footnote
+ DocBookTagType inline
End
InsetLayout Flex:Sidenote
- CopyStyle Flex:Endnote
- LatexName sidenote
- LabelString "Sidenote"
- HTMLLabel \arabic{footnote}
- HTMLInnerTag div
+ CopyStyle Flex:Endnote
+ LatexName sidenote
+ LabelString "Sidenote"
+ HTMLLabel \arabic{footnote}
+ HTMLInnerTag div
HTMLStyle
span.flex_sidenote_label {
vertical-align: super;
@@ -201,21 +201,21 @@ InsetLayout Flex:Sidenote
}
EndHTMLStyle
Argument post:1
- LabelString "Note"
- MenuString "Endnote contents"
- Tooltip "Contents of the sidenote. Only makes
sense when \jlreqsetup{sidenote_type=symbol} is specified in the preamble."
- Mandatory 0
- LeftDelim {
- RightDelim }
+ LabelString "Note"
+ MenuString "Endnote contents"
+ Tooltip "Contents of the sidenote. Only makes sense when
\jlreqsetup{sidenote_type=symbol} is specified in the preamble."
+ Mandatory 0
+ LeftDelim {
+ RightDelim }
EndArgument
End
InsetLayout Flex:Warichu
- CopyStyle Flex:Endnote
- LatexName warichu
- LabelString "Warichu"
- HTMLLabel \arabic{footnote}
- HTMLInnerTag div
+ CopyStyle Flex:Endnote
+ LatexName warichu
+ LabelString "Warichu"
+ HTMLLabel \arabic{footnote}
+ HTMLInnerTag div
HTMLStyle
span.flex_warichu_label {
vertical-align: super;
@@ -242,17 +242,17 @@ InsetLayout Flex:Warichu
End
InsetLayout Flex:Warichu*
- CopyStyle Flex:Warichu
- LatexName warichu*
- LabelString "Warichu*"
- PassThru 1
- MultiPar 1
- ParbreakIgnored 1
+ CopyStyle Flex:Warichu
+ LatexName warichu*
+ LabelString "Warichu*"
+ PassThru 1
+ MultiPar 1
+ ParbreakIgnored 1
Font
- Family Typewriter
+ Family Typewriter
EndFont
- HTMLLabel \arabic{footnote}
- HTMLInnerTag div
+ HTMLLabel \arabic{footnote}
+ HTMLInnerTag div
HTMLStyle
span.flex_warichu__label {
vertical-align: super;
@@ -279,36 +279,36 @@ InsetLayout Flex:Warichu*
End
InsetLayout Flex:Tatechuyoko
- LatexType Command
- LyxType charstyle
- LatexName tatechuyoko*
- LabelString "Tatechuyoko"
- Decoration Conglomerate
+ LatexType Command
+ LyxType charstyle
+ LatexName tatechuyoko*
+ LabelString "Tatechuyoko"
+ Decoration Conglomerate
End
InsetLayout Flex:Jidori
- CopyStyle Flex:Tatechuyoko
- LatexName jidori
- LabelString "Jidori"
+ CopyStyle Flex:Tatechuyoko
+ LatexName jidori
+ LabelString "Jidori"
Argument 1
- LabelString "Length"
- MenuString "Jidori Length|L"
- Tooltip "Length of Jidori. Contents is fit to
this length."
- Mandatory 1
- AutoInsert 1
+ LabelString "Length"
+ MenuString "Jidori Length|L"
+ Tooltip "Length of Jidori. Contents is fit to this length."
+ Mandatory 1
+ AutoInsert 1
EndArgument
End
InsetLayout Flex:Akigumi
- CopyStyle Flex:Tatechuyoko
- LatexName akigumi
- LabelString "Akigumi"
- MenuString "Akigumi (LuaLaTeX)"
+ CopyStyle Flex:Tatechuyoko
+ LatexName akigumi
+ LabelString "Akigumi"
+ MenuString "Akigumi (LuaLaTeX)"
Argument 1
- LabelString "Char Space"
- MenuString "Char Space|D"
- Tooltip "Distance between chars is set to this
length."
- Mandatory 1
- AutoInsert 1
+ LabelString "Char Space"
+ MenuString "Char Space|D"
+ Tooltip "Distance between chars is set to this length."
+ Mandatory 1
+ AutoInsert 1
EndArgument
End
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs