どうやら世間(のごく一部)では、来週はプレミアムフライデーのようです。
というわけで、LaTeX 文書を“プレミアムフライデー対応”にするパッケージを作ってみました。是非とも、今作成中の文書に導入して、来るべき日に備えておきましょう!
- scpremiumfriday パッケージ (GitHub:zr-tex8r)
例によって、使用法は非常に簡単で、対象の文書のプレアンブルのどこかで \usepackage
で読み込むだけです(オプションはありません)。
[report.tex]
% upLaTeX文書 \documentclass[uplatex,dvipdfmx,a4paper]{jsarticle} \usepackage{scpremiumfriday}% プレミアムフライデー対応!! \usepackage{graphicx} \title{より優れた温暖化対策効果をもつ新しい海賊の構成とその評価} \author{ナンデモ研究所\quad 何樫 誰香} \begin{document} \maketitle %...以下本文が続く
この文書を、非プレミアムなフツーの日にコンパイルすると……。
This is e-upTeX, Version 3.14159265-p3.7-u1.21-160201-2.6 (utf8.uptex) (TeX Live 2016/W32TeX) (preloaded format=uplatex) restricted \write18 enabled. entering extended mode (./report.tex pLaTeX2e <2016/11/29u01> (based on LaTeX2e <2017/01/01> patch level 3) ………(略)……… (c:/texlive/2016/texmf-dist/tex/latex/graphics-def/dvipdfmx.def))) No file report.aux. [1] [2] [3] [4] [5] (./report.aux) ) Output written on report.dvi (5 pages, 25308 bytes). Transcript written on report.log.
……フツーです。
ところが、同じ文書を、今度はプレミアムフライデーの朝方にコンパイルすると……
This is e-upTeX, Version 3.14159265-p3.7-u1.21-160201-2.6 (utf8.uptex) (TeX Live 2016/W32TeX) (preloaded format=uplatex) restricted \write18 enabled. entering extended mode (./report.tex pLaTeX2e <2016/11/29u01> (based on LaTeX2e <2017/01/01> patch level 3) ………(略)……… (c:/texlive/2016/texmf-dist/tex/latex/graphics-def/dvipdfmx.def))) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ____ ___HHHH _____ WOW! / . . \ |NICE!| It's Premium Friday today! \ --- / |~~~~~ V :#######: Y How are you going to spend time \/ o*"*\/ after 3 p.m.? { o } \_______/ HURRAY!! ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% No file report.aux. [1] [2] [3] [4] [5] (./report.aux) ) Output written on report.dvi (5 pages, 25308 bytes). Transcript written on report.log.
なんと、☃さんから素敵なメッセージが届きます! 最高ですね!
それでは、プレミアムな日の、プレミアムな時間(午後 3 時以降)に文書をコンパイルしたらどうなるでしょうか。
This is e-upTeX, Version 3.14159265-p3.7-u1.21-160201-2.6 (utf8.uptex) (TeX Live 2016/W32TeX) (preloaded format=uplatex) restricted \write18 enabled. entering extended mode (./report.tex pLaTeX2e <2016/11/29u01> (based on LaTeX2e <2017/01/01> patch level 3) ………(略)……… (c:/texlive/2016/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def)) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ____ ___HHHH _____ WOW! / . . \ |NICE!| It's Premium Friday today! \ --- / |~~~~~ V :#######: Y Now it's time to go home.... \/ o*"*\/ { o } \_______/ HURRAY!! ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [1] ) Output written on report.dvi (1 page, 8396 bytes). Transcript written on report.log.
メッセージがチョット変わりました……アッ、よく見ると 5 ページの文書のはずなのに、今回は 1 ページしか出力されていません。何が起こったのでしょう? 気になる人は、是非とも、“プレミアムな時間”に scpremiumfriday を読みこんだ文書*1をコンパイルしてみてください!
*1:graphicx とか (x)color を使った文書の方がベターです。