Skip to content

Commit

Permalink
Merge pull request #1240 from kmuto/makelines
Browse files Browse the repository at this point in the history
TeX: \makelinesマクロの追加
  • Loading branch information
kmuto authored Dec 29, 2018
2 parents 97f5a86 + 86c7788 commit 6a5511a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions templates/latex/review-jlreq/review-jlreq.cls
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,25 @@ cls]
\hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\let\clearoddpage\cleardoublepage@left

%% 行のサンプル。\makelines{行数} で「■□■□…」からなる行を指定行数配置する
\def\makelines#1{%
\@tempcnta\z@\relax
\def\@makeline@f@size{\f@size}%
\@whilenum\@tempcnta<#1\do{%
\advance\@tempcnta\@ne\relax
\noindent\rlap{\the\@tempcnta}\nobreak
\makelines@neline\par}%
}
\def\makelines@unit@#10#2\relax{%
\ifx!#2!\relax\else\relax\fi}%
\newcounter{makelines@unit}
\def\makelines@neline{%
\c@makelines@unit\@ne
\@whilenum\c@makelines@unit<\dimexpr(\textwidth + \Cwd)/\Cwd\do{%
\expandafter\makelines@unit@\the\c@makelines@unit0\relax
\advance\c@makelines@unit\@ne}%
}

% シンプルな通しノンブル
\ifrecls@serialpage
\jlreqsetup{frontmatter_pagination=continuous}
Expand Down
19 changes: 19 additions & 0 deletions templates/latex/review-jsbook/review-jsbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,25 @@
\hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\let\clearoddpage\cleardoublepage@left

%% 行のサンプル。\makelines{行数} で「■□■□…」からなる行を指定行数配置する
\def\makelines#1{%
\@tempcnta\z@\relax
\def\@makeline@f@size{\f@size}%
\@whilenum\@tempcnta<#1\do{%
\advance\@tempcnta\@ne\relax
\noindent\rlap{\the\@tempcnta}\nobreak
\makelines@neline\par}%
}
\def\makelines@unit@#10#2\relax{%
\ifx!#2!\relax\else\relax\fi}%
\newcounter{makelines@unit}
\def\makelines@neline{%
\c@makelines@unit\@ne
\@whilenum\c@makelines@unit<\dimexpr(\textwidth + \Cwd)/\Cwd\do{%
\expandafter\makelines@unit@\the\c@makelines@unit0\relax
\advance\c@makelines@unit\@ne}%
}

%% coverオプションによる表紙判定の上書き
\def\recls@tmp{true}\ifx\recls@forcecover\recls@tmp
\@reclscovertrue
Expand Down

0 comments on commit 6a5511a

Please sign in to comment.