Compare commits

...

2 Commits

Author SHA1 Message Date
Koji Yokota
6bfa5f2e38 Make upLaTeX a default compiler for Japanese documents 2024-12-08 11:12:26 +09:00
Koji Yokota
291a62263e Add front/main/backmatter styles to JLReq layout 2024-12-08 11:11:49 +09:00
4 changed files with 174 additions and 118 deletions

View File

@ -635,7 +635,7 @@ def checkLatex(dtl_tools):
''' Check latex, return lyx_check_config '''
path, LATEX = checkProg('a Latex2e program', ['latex $$i', 'latex2e $$i'])
#-----------------------------------------------------------------
path, PLATEX = checkProg('pLaTeX, the Japanese LaTeX', ['platex $$i'])
path, PLATEX = checkProg('pLaTeX, the Japanese LaTeX', ['uplatex $$i', 'platex $$i'])
if PLATEX:
# check if PLATEX is pLaTeX2e
writeToFile('chklatex.ltx', r'\nonstopmode\makeatletter\@@end')

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
# Japanese jlreq textclass definition file.
# Author : Koji Yokota (yokota6@gmail.com)
# Author : Koji Yokota (yokota@lyx.org)
#
# This class internally loads following packages:
# Any time: l3keys2e, lmodern