Skip to content

Commit

Permalink
A5 Templateを作成
Browse files Browse the repository at this point in the history
  • Loading branch information
mhidaka committed Sep 18, 2017
1 parent ef83fc5 commit e54618f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
4 changes: 2 additions & 2 deletions articles/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ texstyle: techbooster-doujin
#
# LaTeX用のdocumentclassを指定する
# texdocumentclass: ["jsbook", "oneside,14pt,uplatex"]
texdocumentclass: ["jsbook", "b5j,twoside,openany,uplatex"]
# texdocumentclass: ["jsbook", "a5j,twoside,openany,uplatex,9pt"]
# texdocumentclass: ["jsbook", "b5j,twoside,openany,uplatex"]
texdocumentclass: ["jsbook", "a5j,twoside,openany,uplatex,9pt"]
#
# LaTeX用のコマンドを指定する
# texcommand: "uplatex"
Expand Down
10 changes: 7 additions & 3 deletions articles/layouts/layout.tex.erb
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@
\newcommand{\reviewcolophon}[0]{\clearpage}
\newcommand{\reviewappendix}[0]{\appendix}

\renewenvironment{quote}{%
\begin{shaded}\small\setlength{\baselineskip}{1.3zw}}{%
\end{shaded}\par\vspace*{0.5zw}}

\makeatletter
%% maxwidth is the original width if it is less than linewidth
%% otherwise use linewidth (to make sure the graphics do not exceed the margin)
Expand Down Expand Up @@ -322,8 +326,8 @@

\vspace*{\fill}

{\noindent\reviewtitlefont\Large <%= @config.name_of("booktitle") %>} \\
\rule[8pt]{14cm}{1pt} \\
{\noindent\reviewtitlefont\large <%= @config.name_of("booktitle") %>} \\
\rule[8pt]{10cm}{1pt} \\
{\noindent
<%= @config["pubhistory"].to_s.gsub(/\n/){"\n\n\\noindent\n"} %>
}
Expand All @@ -332,7 +336,7 @@
<%= @okuduke %>
\end{tabular}
 \\
\rule[0pt]{14cm}{1pt} \\
\rule[0pt]{10cm}{1pt} \\
<%= @config.names_of("rights").join('\\' + '\\') %> \\
<%- end -%>
<%- end -%>
Expand Down
28 changes: 14 additions & 14 deletions articles/sty/techbooster-doujin.sty
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
\end{alltt}\end{shadedb}}

%% from review-pdfmaker
\usepackage{longtable}
\usepackage{fancyhdr}
\usepackage{ulem}
\pagestyle{fancy}
Expand Down Expand Up @@ -65,21 +66,24 @@
\fi%
}

\setlength{\paperheight} {257 truemm}
\setlength{\paperwidth} {182 truemm}
\setlength{\textheight} {190 truemm}
\setlength{\textwidth} {130 truemm}
\setlength{\marginparwidth} {15 truemm}
\setlength{\marginparsep} {2 truemm}
\setlength{\oddsidemargin} {26 truemm}
\setlength{\evensidemargin} {26 truemm}
\setlength{\topmargin} {10 truemm}
\setlength{\headsep} {15 truemm}
\setlength{\paperheight} {210 truemm}
\setlength{\paperwidth} {148 truemm}
\setlength{\textheight} {173 truemm}
\setlength{\textwidth} {113 truemm}
\setlength{\marginparwidth} {0 truemm}
\setlength{\marginparsep} {0 truemm}
\setlength{\oddsidemargin} {15 truemm}
\setlength{\evensidemargin} {15 truemm}
\setlength{\topmargin} {5 truemm}
\setlength{\headsep} {5 truemm}
\setlength{\headheight} {5 truemm}
\setlength{\footskip} {10 truemm}
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
\renewcommand{\baselinestretch}{0.96}

\setlength{\headwidth}{\textwidth}

\usepackage{fancyvrb}
\VerbatimFootnotes
\usepackage{seqsplit}
Expand Down Expand Up @@ -152,7 +156,3 @@
\renewcommand{\reviewcolumnhead}[2]{%
{\noindent\large\sffamily #2}
\vspace{\baselineskip}}

%%シングルクォート対応
\usepackage{upquote,textcomp}
\xspcode`'=0

0 comments on commit e54618f

Please sign in to comment.