Last active
August 4, 2019 21:39
-
-
Save cmplstofB/dece4d37b6343eb140934b337e257e1d to your computer and use it in GitHub Desktop.
自己ビルドできる(e-up)TeX文書
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%= 2>&- /dev/null || iffalse() { :; } | |
\iffalse | |
<<. make -f - run clean | |
.POSIX: | |
.SUFFIXES: | |
PROGNAME = $(basename ${0%.*}) | |
BASEDIR = $(test "${0##*[^.]/}" = "$0" && pwd || (cd "${0%/*}" && pwd)) | |
SRCFILE = \$(BASEDIR)/\$(PROGNAME).tex | |
PDFFILE = \$(BASEDIR)/\$(PROGNAME).pdf | |
TEX = ptex2pdf | |
TEXFLAGS = -e -u -ot '\$(TEXFLAGS_OT)' -od '\$(TEXFLAGS_OD)' --output-directory=. | |
TEXFLAGS_OT = --file-line-error \\ | |
--halt-on-error \\ | |
--interaction=nonstopmode | |
TEXFLAGS_OD = -f uptex-ipaex.map | |
PDFVIEWER = texdoc --just-view | |
all: \$(PDFFILE) | |
\$(PDFFILE): \$(SRCFILE) | |
@\$(TEX) \$(TEXFLAGS) \$< > '/dev/null' 2> '/dev/null' | |
run: \$(PDFFILE); @\$(PDFVIEWER) \$< | |
clean: | |
-@rm -f -r \$(PROGNAME).log | |
. | |
exit $? | |
$ | |
\fi | |
%% PDFの版 | |
\special{pdf:minorversion 7}% | |
%% 文書情報 | |
\immediate\special{pdf:tounicode UTF8-UTF16 [/ActualText]}% | |
\special{pdf:docview << /Lang (ja) >>}% | |
\special{pdf:docinfo << | |
/Title (自己ビルドできるε-upTeXの文書) | |
/Author (B̅ (cmplstofB)) | |
/Subject (ε-upTeXによるPDF文書の例) | |
/Keywords (ε-upTeX;PDF) | |
/Creator (ε-upTeX (3.14159265-% | |
p\number\ptexversion.\number\ptexminorversion\ptexrevision-% | |
u\number\uptexversion\uptexrevision-% | |
\number\epTeXversion-% | |
\number\eTeXversion\eTeXrevision)) | |
>>}% | |
\special{pdf:docview << /ViewerPreferences << | |
/DisplayDocTitle true | |
>> >>}% | |
%% 字体 | |
\font\seventeenbf=cmb10 at 17pt\relax | |
\immediate\special{pdf:mapline uphminbn-h unicode :0:NotoSerifCJK-Bold.ttc -l jp04}% | |
\font\seventeenbmc=uphminbn-h at 17pt\relax | |
\def\seventeenbvarepsiron{{\font\seventeenbgr=fcmbgr at 17pt\seventeenbgr e}} | |
%% 本文 | |
\centerline{% | |
\seventeenbf\seventeenbmc 自己ビルドできる\seventeenbvarepsiron-up\kern-.05em\TeX の文書} | |
\medskip | |
\centerline{$\bar B$ ({\tt cmplstofB})} | |
\bigskip | |
こんにちは,\TeX! | |
$$ | |
E = mc^2 | |
$$ | |
\bye |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%= 2>&- /dev/null || iffalse() { :; } | |
\iffalse | |
<<. make -f - run clean | |
.POSIX: | |
.SUFFIXES: | |
PROGNAME = $(basename ${0%.*}) | |
BASEDIR = $(test "${0##*[^.]/}" = "$0" && pwd || (cd "${0%/*}" && pwd)) | |
SRCFILE = \$(BASEDIR)/\$(PROGNAME).tex | |
PDFFILE = \$(BASEDIR)/\$(PROGNAME).pdf | |
TEX = ptex2pdf | |
TEXFLAGS = -l -e -u -ot '\$(TEXFLAGS_OT)' -od '\$(TEXFLAGS_OD)' --output-directory=. | |
TEXFLAGS_OT = --file-line-error \\ | |
--halt-on-error \\ | |
--interaction=nonstopmode | |
TEXFLAGS_OD = -f uptex-ipaex.map | |
PDFVIEWER = texdoc --just-view | |
all: \$(PDFFILE) | |
\$(PDFFILE): \$(SRCFILE) | |
@\$(TEX) \$(TEXFLAGS) \$< > '/dev/null' 2> '/dev/null' | |
run: \$(PDFFILE); @\$(PDFVIEWER) \$< | |
clean: | |
-@rm -f -r \$(PROGNAME).log | |
. | |
exit $? | |
$ | |
\fi | |
\RequirePackage{plautopatch} | |
\documentclass[ | |
fleqn, | |
twocolumn, | |
notitlepage, | |
uplatex, | |
dvipdfmx, | |
ja=modern, | |
japaram={ | |
jis2004=true, | |
units=true | |
}, | |
textwidth=55zw, | |
magstyle=nomag, | |
paragraph-mark=, | |
label-section=modern | |
]{bxjsarticle} | |
% フォント | |
\usepackage{local-fonts} | |
%% 数式 | |
\usepackage{local-stix2} | |
% 言語 | |
\usepackage[greek,english,main=japanese]{babel}\和暦 | |
\usepackage{bxwareki} | |
% 和文 | |
\usepackage{pxrubrica} | |
% 数学 | |
\usepackage{local-siunitx} | |
\usepackage{local-mathtools} | |
\renewcommand*{\vec}[1]{\ensuremath{\mathbfit{#1}}} | |
% その他 | |
\usepackage{bxtexlogo}\bxtexlogoimport{*,**} | |
\usepackage{local-commands} | |
\usepackage[ | |
dvipdfmx, | |
bookmarks=true, | |
bookmarksnumbered=true, | |
pdfdisplaydoctitle=true, | |
pdfusetitle=true, | |
pdflang={ja} | |
]{hyperref} | |
\renewcommand{\postsectionname}{節} | |
\setxkanjiskip{0.2zw plus 0.05zw minus 0.1zw} | |
\title{自己ビルドできる\upLaTeXe{}文書} | |
\author{\(\bar{B}\) (\texttt{cmplstofB})} | |
\begin{abstract} | |
これは自己ビルドできる\upLaTeXe{}文書である。 | |
\end{abstract} | |
\begin{document} | |
\maketitle | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment