- layouts/layout.tex.erbの93行目の直後に「\usepackage{pdfpages}」を追加
91 \usepackage{float}
92 \usepackage{alltt}
93 \usepackage{amsmath}
94 \usepackage{pdfpages} % ← 追加
95
| ## リポジトリをローカルにコピー(オリジナルからforkした場合) | |
| git clone https://github.com/yourname/c93-onestop-techbook.git . | |
| git remote add upstream https://github.com/onestop-techbook/c93-onestop-techbook.git | |
| ## リポジトリをローカルにコピー(forkせずにオリジナルを直接使う場合) | |
| git clone https://github.com/onestop-techbook/c93-onestop-techbook.git . | |
| ## トピックブランチを作る | |
| git branch | grep '^\*' # 現在のブランチを確認 | |
| git fetch upstream # リポジトリをforkしてない場合は不要 |
| % -*- coding: utf-8 -*- | |
| %% | |
| %% 使い方: | |
| %% | |
| %% 1. config.ymlがあるのと同じディレクトリに「_cover.tex」を保存。 | |
| %% 2. _covert.texの内容を適当に変更。 | |
| %% 3. config.ymlの最後のほうに、「 coverfile: _cover.tex」を追加(以下を参照)。 | |
| %% 4. rake pdfを実行 | |
| %% |
| #!/bin/sh | |
| ## | |
| ## @(#) opensslコマンドでファイルを暗号化/復号する。 | |
| ## パスワードはパスワードファイルから自動的に読み込む。 | |
| ## | |
| ## 事前準備: | |
| ## $ vi ~/.pass # パスワードファイルを作成 | |
| ## $ sudo chown ~/.pass # 所有者を root に変更 | |
| ## $ sudo chmod 600 ~/.pass # root のみアクセス可能に変更 |
| %% -*- coding: utf-8 -*- | |
| \documentclass[uplatex,dvipdfmx,a5paper,10pt,papersize]{jsbook} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[deluxe]{otf} | |
| \usepackage{lmodern} | |
| \renewcommand{\headfont}{\gtfamily\sffamily\bfseries} | |
| %% サンセリフ体のフォントを変更 | |
| %% https://tug.org/FontCatalogue/roboto/ |
| %% -*- coding: utf-8 -*- | |
| \documentclass[uplatex,dvipdfmx,a5paper,14pt,papersize]{jsbook} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[deluxe]{otf} | |
| \usepackage{lmodern} | |
| \renewcommand{\headfont}{\gtfamily\sffamily\bfseries} | |
| %% 日本語フォントを細いものに変更(Notoフォント前提) | |
| \special{pdf:mapline uphminr-h unicode NotoSerifCJK-Light.ttc} % 明朝体 |
| %% -*- coding: utf-8 -*- | |
| \documentclass[uplatex,dvipdfmx,a5paper,10pt,papersize]{jsbook} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[deluxe]{otf} | |
| \usepackage{lmodern} | |
| \renewcommand{\headfont}{\gtfamily\sffamily\bfseries} | |
| %% 日本語フォントを細いものに変更(Notoフォント前提) | |
| \special{pdf:mapline uphminr-h unicode NotoSerifCJK-Light.ttc} % 明朝体 |
| % -*- coding: utf-8 -*- | |
| %% | |
| %% xpinyin package example | |
| %% | |
| %% How to compile: | |
| %% | |
| %% $ docker pull kauplan/xetex | |
| %% $ mkdir -p build | |
| %% $ opt="-halt-on-error -file-line-error -output-directory=build" | |
| %% $ docker run --rm -it -v $PWD:/work kauplan/xetex /bin/bash -c "cd /work; xelatex $opt example1.tex" |
91 \usepackage{float}
92 \usepackage{alltt}
93 \usepackage{amsmath}
94 \usepackage{pdfpages} % ← 追加
95
| ReVIEW::LATEXBuilder.class_eval do | |
| def compile_href(url, label) | |
| if /\A[a-z]+:/ =~ url | |
| if label | |
| #macro('href', escape_url(url), escape(label)) # original | |
| escape(label) + macro('footnote', macro('url', escape_url(url))) | |
| else | |
| macro('url', escape_url(url)) | |
| end | |
| else |
| % -*- coding: utf-8 -*- | |
| \documentclass[dvipdfmx,uplatex]{jsarticle} | |
| \usepackage[deluxe]{otf} | |
| \usepackage[T1]{fontenc} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage{lmodern} | |
| %%%%% | |
| \newcommand{\ifempty}[1]{% |