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

gentombowをvendor/に入れる #1140

Merged
merged 1 commit into from
Oct 15, 2018
Merged
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
2 changes: 2 additions & 0 deletions lib/review/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def generate_texmacro(dir)
tdir = File.join(@review_dir, '/templates/latex', @template)
@logger.error "#{tdir} not found." unless File.exist?(tdir)
FileUtils.cp Dir.glob(tdir + '/*.*'), texmacrodir
# provide gentombow from vendor/. current version is 2018/08/30 v0.9j
FileUtils.cp File.join(@review_dir, '/vendor/gentombow/gentombow.sty'), File.join(texmacrodir, 'gentombow09j.sty')
end

def generate_rakefile(dir)
Expand Down
16 changes: 11 additions & 5 deletions templates/latex/review-jsbook/review-jsbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,17 @@
% \RequirePackage[hiddenfolio=\recls@hiddenfolio,tombobleed=\recls@tombobleed]{gentombow-hiddenfolio}%
% }%
}{%
\recls@warning{%
package gentombow: not installed^^J
option tombopaper: not available}%
\PassOptionsToClass{tombo}{jsbook}%
}%
\IfFileExists{gentombow09j.sty}{% from vendor/gentombow.
\AtEndOfClass{%
\RequirePackage[pdfbox,\recls@tombowopts]{gentombow09j}%
\settombowbleed{\recls@tombobleed}%
\recls@set@hiddenfolio{\recls@hiddenfolio}}%
}{%
\recls@warning{%
package gentombow: not installed^^J
option tombopaper: not available}%
\PassOptionsToClass{tombo}{jsbook}%
}}%
\else\def\recls@tmp{ebook}\ifx\recls@cameraready\recls@tmp
\@camerareadytrue\@pdfhyperlinktrue\@reclscovertrue
\PassOptionsToClass{papersize}{jsbook}%
Expand Down
163 changes: 163 additions & 0 deletions vendor/gentombow/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt

## Intermediate documents:
*.dvi
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf

## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.brf
*.run.xml

## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync

## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa

# achemso
acs-*.bib

# amsthm
*.thm

# beamer
*.nav
*.snm
*.vrb

# cprotect
*.cpt

#(e)ledmac/(e)ledpar
*.end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R

# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls

# gnuplottex
*-gnuplottex-*

# hyperref
*.brf

# knitr
*-concordance.tex
*.tikz
*-tikzDictionary

# listings
*.lol

# makeidx
*.idx
*.ilg
*.ind
*.ist

# minitoc
*.maf
*.mtc
*.mtc[0-9]
*.mtc[1-9][0-9]

# minted
_minted*
*.pyg

# morewrites
*.mw

# mylatexformat
*.fmt

# nomencl
*.nlo

# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd

# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/

# pdfcomment
*.upa
*.upb

#pythontex
*.pytxcode
pythontex-files-*/

# Texpad
.texpadtmp

# TikZ & PGF
*.dpth
*.md5
*.auxlock

# todonotes
*.tdo

# xindy
*.xdy

# xypic precompiled matrices
*.xyc

# WinEdt, Emacs
*~
*.bak
*.sav

# endfloat
*.ttt
*.fff

# Latexian
TSWLatexianTemp*

# tests
tests/*.pdf
27 changes: 27 additions & 0 deletions vendor/gentombow/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2016-2018 Hironobu Yamashita
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 changes: 36 additions & 0 deletions vendor/gentombow/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
KANJI = -kanji=utf8
FONTMAP = -f ipaex.map -f ptex-ipaex.map
TEXMF = $(shell kpsewhich -var-value=TEXMFHOME)

all: bounddvi.pdf bounddvi-en.pdf \
gentombow.pdf gentombow-ja.pdf #pxgentombow.pdf

.SUFFIXES: .tex .dvi .pdf
.tex.dvi:
platex $(KANJI) $<
platex $(KANJI) $<
rm *.aux *.log
.dvi.pdf:
dvipdfmx $(FONTMAP) $<

bounddvi-en.dvi: bounddvi-en.tex
latex $<
latex $<
rm *.aux *.log
gentombow.pdf: gentombow.tex
pdflatex $<
pdflatex $<
rm *.aux *.log

.PHONY: install clean
install:
mkdir -p ${TEXMF}/doc/latex/gentombow
cp ./Makefile ${TEXMF}/doc/latex/gentombow/
cp ./LICENSE ${TEXMF}/doc/latex/gentombow/
cp ./README.md ${TEXMF}/doc/latex/gentombow/
cp ./*.pdf ${TEXMF}/doc/latex/gentombow/
cp ./*.tex ${TEXMF}/doc/latex/gentombow/
mkdir -p ${TEXMF}/tex/latex/gentombow
cp ./*.sty ${TEXMF}/tex/latex/gentombow/
clean:
rm -f *.dvi *.pdf
49 changes: 49 additions & 0 deletions vendor/gentombow/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# gentombow

This bundle provides a LaTeX package for generating Japanese-style
crop marks (called 'tombow' in Japanese) for practical use in
self-publishing.

## Bundle contents

- gentombow.sty:
Generate crop marks (called 'tombow' in Japanese) for
practical use in self-publishing.
It provides the core 'tombow' feature if not available.
- pxgentombow.sty:
(Superseded by gentombow.sty; for compatibility only.)
- bounddvi.sty:
Set papersize special to DVI file.
Can be used on LaTeX/pLaTeX/upLaTeX (with DVI output mode)
with dvips or dvipdfmx drivers.
Old version (v6.0) of this package, written by Koichi INOUE
in 2004, is available at
https://www.ma.ns.tcu.ac.jp/Pages/TeX/bounddvi.sty.html
(dead link).
Now it is maintained by Hironobu Yamashita by his courtesy.

## Character encoding

All the package files (.sty) contain ASCII characters only.
All the document files (.tex) are encoded in UTF-8.

## Installation

- *.sty -> $TEXMF/tex/latex/gentombow
- *.tex, *.pdf -> $TEXMF/doc/latex/gentombow

## Repository

The bundle is maintained on GitHub:
https://github.com/aminophen/gentombow

## License

The bundle may be distributed and/or modified under the terms of
the 3-clause BSD license (see [LICENSE](./LICENSE)).

## Release Date

$RELEASEDATE

Hironobu Yamashita
Binary file added vendor/gentombow/bounddvi-en.pdf
Binary file not shown.
Loading