Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] review-jlreqの縦書きにおける大扉・奥付の回転 #1737

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions samples/syntax-book/config-jlreq-tate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# call me by 'REVIEW_TEMPLATE=review-jlreq REVIEW_CONFIG_FILE=config-jlreq-tate.yml rake pdf'
inherit: ["config.yml"]
# texdocumentclass: ["review-jlreq", "media=print,paper=b5"]
texdocumentclass: ["review-jlreq", "media=ebook,paper=b5,tate"]
# texdocumentclass: ["review-jlreq", "media=print,paper=b5,bleed_margin=3mm,cover=true,Q=14,startpage=3,serial_pagination=true,hiddenfolio=nikko-pc"]
142 changes: 100 additions & 42 deletions templates/latex/review-jlreq/review-base.sty
Original file line number Diff line number Diff line change
Expand Up @@ -352,30 +352,65 @@
\ifdefined\review@titlepage
\ifthenelse{\isundefined{\review@titlefile}}{%
\def\reviewtitlepagecont{%
\begin{titlepage}
\thispagestyle{empty}
\begin{center}%
\mbox{}%
\vskip5\zw
\reviewtitlefont%
{\Huge\review@booktitlename\par}%
\ifdefined\review@subtitlename
\vskip 1em%
{\Large\review@subtitlename\par}%
\fi
\vskip 15em%
{\huge
\lineskip .75em
\begin{tabular}[t]{p{\textwidth}}%
\centering\review@titlepageauthors
\end{tabular}\par}%
\vfill
{\large\review@date \review@intn@edition%
\hspace{2\zw}%
\review@intn@publishedby\par}%
\vskip4\zw\mbox{}
\end{center}%
\end{titlepage}\clearpage
\if@tate% 縦書き大扉
\begin{titlepage}
\thispagestyle{empty}
\begin{minipage}<y>{\textheight}
\begin{center}
\mbox{}%
\vskip5\zw
\reviewtitlefont%
{\Huge\review@booktitlename\par}%
\ifdefined\review@subtitlename
\vskip 1em%
{\Large\review@subtitlename\par}%
\fi
\vskip 15em%
{\huge
\lineskip .75em
\begin{tabular}[t]{p{\textwidth}}%
\centering\review@titlepageauthors
\end{tabular}\par}%
\end{center}
\end{minipage}
\hfill
\begin{minipage}<y>{\textheight}
\begin{center}
\reviewtitlefont%
{\large\review@date \review@intn@edition%
\hspace{2\zw}%
\review@intn@publishedby\par}%
\vskip4\zw\mbox{}
\end{center}
\end{minipage}
\end{titlepage}
\clearpage
\else% 横書き大扉
\begin{titlepage}
\thispagestyle{empty}
\begin{center}%
\mbox{}%
\vskip5\zw
\reviewtitlefont%
{\Huge\review@booktitlename\par}%
\ifdefined\review@subtitlename
\vskip 1em%
{\Large\review@subtitlename\par}%
\fi
\vskip 15em%
{\huge
\lineskip .75em
\begin{tabular}[t]{p{\textwidth}}%
\centering\review@titlepageauthors
\end{tabular}\par}%
\vfill
{\large\review@date \review@intn@edition%
\hspace{2\zw}%
\review@intn@publishedby\par}%
\vskip4\zw\mbox{}
\end{center}%
\end{titlepage}\clearpage
\fi
}
}{%
\def\reviewtitlepagecont{\review@titlefile}
Expand Down Expand Up @@ -407,24 +442,47 @@
\ifdefined\review@colophon
\ifthenelse{\isundefined{\review@colophonfile}}{%
\def\reviewcolophonpagecont{%
\reviewcolophon
\thispagestyle{empty}
\vspace*{\fill}
{\noindent\reviewtitlefont\Large\review@booktitlename}\\
\ifdefined\review@subtitlename
{\noindent\reviewtitlefont\large\review@subtitlename} \\
\fi
\rule[8pt]{\textwidth}{1pt} \\
{\noindent\review@pubhistories}

\begin{tabularx}{\dimexpr\textwidth-0.5em}{lX}
\review@colophonnames
\end{tabularx}
 \\
\rule[0pt]{\textwidth}{1pt} \\
\ifdefined\review@rights
\review@rights
\fi
\reviewcolophon
\if@tate% 縦書き奥付
\thispagestyle{empty}
\hfill
\begin{minipage}<y>{\textheight}
{\noindent\reviewtitlefont\Large\review@booktitlename}\\
\ifdefined\review@subtitlename
{\noindent\reviewtitlefont\large\review@subtitlename} \\
\fi
\rule[8pt]{\textwidth}{1pt} \\
{\noindent\review@pubhistories}
\vspace{.5\Cvs}

\begin{tabularx}{\dimexpr\textwidth-0.5em}{lX}
\review@colophonnames
\end{tabularx}%
 \\
\rule[0pt]{\textwidth}{1pt} \\
\ifdefined\review@rights
\review@rights
\fi
\end{minipage}
\else% 横書き奥付
\thispagestyle{empty}
\vspace*{\fill}
{\noindent\reviewtitlefont\Large\review@booktitlename}\\
\ifdefined\review@subtitlename
{\noindent\reviewtitlefont\large\review@subtitlename} \\
\fi
\rule[8pt]{\textwidth}{1pt} \\
{\noindent\review@pubhistories}

\begin{tabularx}{\dimexpr\textwidth-0.5em}{lX}
\review@colophonnames
\end{tabularx}%
 \\
\rule[0pt]{\textwidth}{1pt} \\
\ifdefined\review@rights
\review@rights
\fi
\fi
}%
}{%
\def\reviewcolophonpagecont{\review@colophonfile}
Expand Down
11 changes: 11 additions & 0 deletions templates/latex/review-jlreq/review-jlreq.cls
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@
\RequirePackage{pxjahyper}
\fi

% 縦書き対処
\if@tate
\def\recls@tmp{uplatex}\ifx\recls@tmp\recls@engine
\RequirePackage{plext}
\fi
\def\recls@tmp{lualatex}\ifx\recls@tmp\recls@engine
\RequirePackage{lltjext}
\fi
\jlreqsetup{frontmatter_pagebreak={}}% これを入れないと大扉前に白が入る
\fi

%% include fullpage graphics
\edef\grnchry@head{\dimexpr\topmargin+1in+\headheight+\headsep}
\edef\grnchry@gutter{\evensidemargin}
Expand Down