Skip to content

Commit

Permalink
表紙を
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Dec 29, 2023
1 parent 6e835e6 commit 50a52e3
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 5 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
pdf:
needs: reviewdog-github-check
name: Make PDF
name: Make PDF for print
runs-on: ubuntu-latest
container:
image: huideyeren/review
Expand Down Expand Up @@ -93,3 +93,34 @@ jobs:
with:
name: LouisaTechVol1Rev2.pdf
path: LouisaTechVol1Rev2.pdf

pdf-download:
needs: reviewdog-github-check
name: Make PDF for eBook
runs-on: ubuntu-latest
container:
image: huideyeren/review
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install gems.
run: bundle install
- name: Copy plantuml.
run: cp /java/plantuml.jar .
- name: Check tools
run: dot -V && blockdiag --version && java -jar plantuml.jar -version
- name: convert PlantUML
run: pwd | bash ./plantuml.sh >> .plantuml.log
- name: Show .plantuml.log
run: cat .plantuml.log
- name: Convert SVG to PDF
run: pwd | python3 svg.py >> .svg.log
- name: Show .svg.log
run: cat .svg.log
- name: Build PDF.
run: bundle exec rake clean pdf
- name: Upload artifact.
uses: actions/upload-artifact@v2
with:
name: LouisaTechVol1Rev2.pdf
path: LouisaTechVol1Rev2.pdf
6 changes: 3 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ toc: null
#
# 表紙に配置し、書籍の影絵にも利用する画像ファイル。省略した場合はnull (画像を使わない)。画像ディレクトリ内に置いてもディレクトリ名は不要(例: cover.jpg)
# PDFMaker 固有の表紙設定は pdfmaker セクション内で上書き可能
coverimage: cover.jpg
coverimage: c103-tech.png
#
# 表紙の後に大扉ページを作成するか。省略した場合はtrue (作成する)
titlepage: null
Expand All @@ -153,7 +153,7 @@ colophon: true
# colophon_order: ["aut", "csl", "trl", "dsr", "ill", "cov", "edt", "pbl", "contact", "prt"]

# 裏表紙データファイル (PDFMaker向けにはLaTeXソース断片、EPUBMaker向けにはHTMLファイル)
# backcover: null
backcover: cover.tex

# プロフィールページファイル (PDFMaker向けにはLaTeXソース断片、EPUBMaker向けにはHTMLファイル)。ファイル名を指定すると著者紹介として入る
# profile: null
Expand Down Expand Up @@ -385,7 +385,7 @@ pdfmaker:
# TeX版で利用する表紙画像。
# 仕上がりサイズ+塗り足し3mmありのPDFまたはIllustratorファイル(PDF互換オプション付き)を推奨。
# 拡縮はされず「そのまま」貼り付けられる
coverimage: cover.png
coverimage: c103-tech.pdf
#
# TeXコンパイル前に実行するプログラム。変換後のTeXソースを調整したいときに使用する。
# 渡される引数1=作業用展開ディレクトリ、引数2=呼び出しを実行したディレクトリ
Expand Down
Binary file added images/c103-tech-ura.pdf
Binary file not shown.
Binary file added images/c103-tech.pdf
Binary file not shown.
Binary file added images/c103-tech.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion images/cover.tex
Original file line number Diff line number Diff line change
@@ -1 +1 @@
\includecover[width=\paperwidth,height=\paperheight]{cover.png}
\includecover[width=\paperwidth,height=\paperheight]{c103-tech-ura.pdf}

0 comments on commit 50a52e3

Please sign in to comment.