diff --git a/articles/layouts/layout.tex.erb b/articles/layouts/layout.tex.erb deleted file mode 100644 index a5a8c44..0000000 --- a/articles/layouts/layout.tex.erb +++ /dev/null @@ -1,350 +0,0 @@ -\documentclass[<%= @documentclassoption %>]{<%= @documentclass %>} -<%- if @texcompiler == "uplatex" -%> -\usepackage[deluxe,uplatex]{otf} -<%- else -%> -\usepackage[deluxe]{otf} -<%- end -%> -\usepackage[dvipdfmx]{xcolor} -\usepackage[dvipdfmx]{graphicx} -\usepackage{framed} -\usepackage{wrapfig} -\definecolor{shadecolor}{gray}{0.9} -\definecolor{shadecolorb}{gray}{0.1} -\definecolor{reviewgreen}{rgb}{0,0.4,0} -\definecolor{reviewblue}{rgb}{0.2,0.2,0.4} -\definecolor{reviewred}{rgb}{0.7,0,0} -\definecolor{reviewdarkred}{rgb}{0.3,0,0} -\usepackage{lmodern} -\usepackage[T1]{fontenc} -\usepackage{textcomp} -\usepackage[utf8]{inputenc} -\usepackage{ascmac} -\usepackage{float} -\usepackage{alltt} -\usepackage{amsmath} - -%% if you use @{} (underline), use jumoline.sty -%%\usepackage{jumoline} - -\newenvironment{shadedb}{% - \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolorb}}% - \MakeFramed {\FrameRestore}}% - {\endMakeFramed} - -<%- unless ["utbook", "tbook"].include?(@documentclass) -%> -%\usepackage[top=10zw,bottom=12zw,left=10zw,right=10zw]{geometry} -%\usepackage[top=5zw,bottom=5zw,left=1zw,right=1zw]{geometry} -<%- end -%> - -\newcommand{\parasep}{\vspace*{3zh}} -\setlength{\footskip}{30pt} - -<%- if @texcompiler == "uplatex" -%> -\usepackage[dvipdfmx,bookmarks=true,bookmarksnumbered=true,colorlinks=true,% - pdftitle={<%= @config.name_of("booktitle") %>},% - pdfauthor={<%= @config.names_of("aut").join(I18n.t("names_splitter")) %>}]{hyperref} -% uplatexでのBookmarkの文字化け対策(日本語向け) -\usepackage[dvipdfmx]{pxjahyper} -<%- else -%> -%% Bookmarkの文字化け対策(日本語向け) -\ifnum 46273=\euc"B4C1 % 46273 == 0xB4C1 == 漢(EUC-JP) - \usepackage{atbegshi}% - \AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}% - %%\AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}% -\else - \usepackage{atbegshi}% - \AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}}% - %%\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}% -\fi - -\usepackage[dvipdfm,bookmarks=true,bookmarksnumbered=true,colorlinks=true,% - pdftitle={<%= @config.name_of("booktitle") %>},% - pdfauthor={<%= @config.names_of("aut").join(I18n.t("names_splitter")) %>}]{hyperref} -<%- end -%> - -<%- if ["utbook", "tbook"].include?(@documentclass) -%> -\newcommand{\headfont}{\gtfamily\sffamily\bfseries} -\usepackage{plext} -<%- end -%> - -<%- if config["highlight"] && config["highlight"]["latex"] == "listings" -%> -<%- if config["language"] == "ja" -%> -\usepackage{listings,jlisting} -<%- else -%> -\usepackage{listings} -<%- end -%> -\renewcommand{\lstlistingname}{<%= I18n.t("list")%>} -\lstset{% - breaklines=true,% - breakautoindent=false,% - breakindent=0pt,% - fontadjust=true,% - backgroundcolor=\color{shadecolor},% - frame=single,% - framerule=0pt,% - basicstyle=\ttfamily\scriptsize,% - commentstyle=\color{reviewgreen},% - identifierstyle=\color{reviewblue},% - stringstyle=\color{reviewred},% - keywordstyle=\bfseries\color{reviewdarkred},% -} - -\lstnewenvironment{reviewemlistlst}[1][]{\lstset{#1}}{} -\lstnewenvironment{reviewemlistnumlst}[1][]{\lstset{numbers=left, #1}}{} -\lstnewenvironment{reviewlistlst}[1][]{\lstset{#1}}{} -\lstnewenvironment{reviewlistnumlst}[1][]{\lstset{numbers=left, #1}}{} -\lstnewenvironment{reviewcmdlst}[1][]{\lstset{backgroundcolor=\color{white}, frameround=tttt, frame=trbl, #1}}{} -<%- end -%> - -\newenvironment{reviewimage}{% - \begin{figure}[H] - \begin{center}}{% - \end{center} - \end{figure}} - -\newenvironment{reviewdummyimage}{% - \begin{figure}[H] - \begin{center}\begin{alltt}}{% - \end{alltt}\end{center} - \end{figure}} - -\newenvironment{reviewemlist}{% - \medskip\small\begin{shaded}\setlength{\baselineskip}{1.3zw}\begin{alltt}}{% - \end{alltt}\end{shaded}} - -\newenvironment{reviewlist}{% - \begin{shaded}\small\setlength{\baselineskip}{1.3zw}\begin{alltt}}{% - \end{alltt}\end{shaded}\par\vspace*{0.5zw}} - -\newenvironment{reviewcmd}{% - \color{white}\medskip\small\begin{shadedb}\setlength{\baselineskip}{1.3zw}\begin{alltt}}{% - \end{alltt}\end{shadedb}} - -\newenvironment{reviewbox}{% - \medskip\small\begin{framed}\setlength{\baselineskip}{1.3zw}\begin{alltt}}{% - \end{alltt}\end{framed}} - -\newenvironment{reviewtable}[1]{% - \begin{center}\small\setlength{\baselineskip}{1.2zw} - \begin{tabular}{#1}}{% - \end{tabular} - \end{center}} - -\newenvironment{reviewcolumn}{% - \begin{framed} - }{% - \end{framed} - \vspace{2zw}} - -\newcommand{\reviewcolumnhead}[2]{% -{\noindent\large <%= I18n.t("column_head")%>: #2}} - -\newcommand{\reviewtablecaption}[1]{% - \caption{#1}} - -\newcommand{\reviewimgtablecaption}[1]{% - \caption{#1}\vspace{-3mm}} - -\newcommand{\reviewbackslash}[0]{% - \textbackslash{}} - -\newcommand{\reviewlistcaption}[1]{% - \medskip{\small\noindent #1}\vspace*{-1.3zw}} - -\newcommand{\reviewemlistcaption}[1]{% - \medskip{\small\noindent #1}\vspace*{-1.3zw}} - -\newcommand{\reviewcmdcaption}[1]{% - \medskip{\small\noindent #1}\vspace*{-1.3zw}} - -\newcommand{\reviewindepimagecaption}[1]{% - \begin{center}#1\end{center}} - -\newcommand{\reviewboxcaption}[1]{% - \medskip{\small\noindent #1}\vspace*{-1.3zw}} - -\newcommand{\reviewimageref}[2]{<%= I18n.t("image")%> #1} -\newcommand{\reviewtableref}[2]{<%= I18n.t("table")%> #1} -\newcommand{\reviewlistref}[1]{<%= I18n.t("list")%> #1} -\newcommand{\reviewbibref}[2]{#1} -\newcommand{\reviewcolumnref}[2]{<%= I18n.t("columnname")%> #1} -\newcommand{\reviewsecref}[2]{#1} - -\newcommand{\reviewminicolumntitle}[1]{% - {\large <%= I18n.t("memo_head")%>: #1}\\} - -<%- if @config["toctitle"].present? -%> -\renewcommand{\contentsname}{<%= @config["toctitle"]%>} -<%- end -%> - -\newenvironment{reviewminicolumn}{% - \vspace{1.5zw}\begin{screen}}{% - \end{screen}\vspace{2zw}} - -\newcommand{\reviewkw}[1]{\textbf{\textgt{#1}}} -\newcommand{\reviewami}[1]{\mask{#1}{A}} -\newcommand{\reviewem}[1]{\textbf{#1}} -\newcommand{\reviewstrong}[1]{\textbf{#1}} -\newcommand{\reviewunderline}{\Underline} - -%% @ is ignored in LaTeX with default style -\newcommand{\reviewstrike}[1]{#1} - -%%%% for ulem.sty: -%%\renewcommand{\reviewstrike}[1]{\sout{#1}} -%% -%%%% for jumoline.sty: -%%\renewcommand{\reviewstrike}[1]{\Middleline{#1}} - -\newcommand{\reviewth}[1]{\textgt{#1}} -\newcommand{\reviewtitlefont}[0]{\usefont{T1}{phv}{b}{n}\gtfamily} -\newcommand{\reviewmainfont}[0]{} -\newcommand{\reviewcolophon}[0]{\clearpage} -\newcommand{\reviewappendix}[0]{\appendix} - -%% 部構成を取るとき、付録の目次が1段下がるので追加する -%% \renewcommand{\reviewappendix}[0]{% -%% \addcontentsline{toc}{part}{付録} -%% \appendix} - -\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) -\def\maxwidth{% - \ifdim\Gin@nat@width>\linewidth - \linewidth - \else - \Gin@nat@width - \fi -} -\makeatother - -<%- if @config["usepackage"] -%> -<%= @config["usepackage"] %> -<%- end -%> - -\usepackage[T1]{fontenc} - -\begin{document} - -\reviewmainfont - -\frontmatter -\pagenumbering{arabic} - -<%- if @config["titlepage"] -%> -<%- if @custom_titlepage -%> -<%= @custom_titlepage %> -<%- else -%> -\begin{titlepage} -<%- if @config["coverimage"] -%> - \begin{center} - \includegraphics[<%= @coverimageoption%>]{./images/<%= @config["coverimage"] %>} - \end{center} - \clearpage -<%- end -%> -\thispagestyle{plainhead} -\setcounter{page}{1} -\begin{center}% - \mbox{} \vskip5zw - \reviewtitlefont% - {\Huge <%= @config.name_of("booktitle") %> \par}% - \vskip 15em% - {\huge - \lineskip .75em - \begin{tabular}[t]{c}% - <%= @authors %> - \end{tabular}\par}% - \vfill - {\large <%= @config["date"] %> <%= I18n.t("edition")%>\hspace{2zw}<%= I18n.t("published_by", @config.names_of("pbl").join(I18n.t("names_splitter")))%>\par}% -\vskip4zw\mbox{} - \end{center}% -\end{titlepage} -<%- end -%> -<%- end -%> - -%%% originaltitle -<%- if @config["originaltitlefile"] -%> -<%= @custom_originaltitlepage %> -<%- end -%> - -%%% credit -<%- if @config["creditfile"] -%> -<%= @custom_creditpage %> -<%- end -%> - -%% preface -<%= @input_files["PREDEF"] %> - -<%- if @config["toc"] -%> -\setcounter{tocdepth}{<%= @config["toclevel"] %>} -\tableofcontents -<%- end -%> - -\begingroup - \cleardoublepage - \edef\continuenumber{\endgroup - \noexpand\mainmatter - \setcounter{page}{\the\value{page}}% - } - -\mainmatter -\continuenumber - -\renewcommand{\chaptermark}[1]{\markboth{\prechaptername\thechapter\postchaptername~#1}{}} -<%= @input_files["CHAPS"] %> -\renewcommand{\chaptermark}[1]{\markboth{\appendixname\thechapter~#1}{}} -\reviewappendix -<%= @input_files["APPENDIX"] %> - -%% backmatter begins -<%- if @input_files["POSTDEF"] or @config["colophon"] -%> -\backmatter -<%- end -%> - -<%- if @input_files["POSTDEF"] -%> -<%= @input_files["POSTDEF"] %> -<%- end -%> - -%%% profile -<%- if @config["profile"] -%> -<%= @custom_profilepage %> -<%- end -%> - -%%% advfile -<%- if @config["advfile"] -%> -<%= @custom_advfilepage %> -<%- end -%> - -%%% colophon -<%- if @config["colophon"] -%> -<%- if @custom_colophonpage -%> -<%= @custom_colophonpage %> -<%- else -%> -%% okuduke -\reviewcolophon -\thispagestyle{plainhead} - -\vspace*{\fill} - -{\noindent\reviewtitlefont\Large <%= @config.name_of("booktitle") %>} \\ -\rule[8pt]{14cm}{1pt} \\ -{\noindent -<%= @config["pubhistory"].to_s.gsub(/\n/){"\n\n\\noindent\n"} %> -} - -\begin{tabular}{ll} -<%= @okuduke %> -\end{tabular} - \\ -\rule[0pt]{14cm}{1pt} \\ -<%= @config.names_of("rights").join('\\' + '\\') %> \\ -<%- end -%> -<%- end -%> - -%%% backcover -<%- if @config["backcover"] -%> -<%= @custom_backcoverpage %> -<%- end -%> - -\end{document}