Skip to content

Instantly share code, notes, and snippets.

💭
🍣

Takayuki YATO zr-tex8r

💭
🍣
Block or report user

Report or block zr-tex8r

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zr-tex8r
zr-tex8r / nyc2019.tex
Created Jan 3, 2019
LaTeX:2019年の年賀状
View nyc2019.tex
\documentclass{article}
\usepackage[papersize={100mm,148mm},margin=0cm,
noheadfoot]{geometry}
\usepackage{luatexja-fontspec}
\usepackage{amsmath,tikz,graphicx,xcolor,xparse}
\usetikzlibrary{calc}
\newfontface{\fSegoe}{segoeuiz.ttf}
\newfontface{\fUniv}{UniversalisADFStd-BoldCond.otf}
\newfontface{\fNishiki}{Nishiki-teki.ttf}
\newjfontface{\jNishiki}{Nishiki-teki.ttf}
@zr-tex8r
zr-tex8r / texmas.readme.md
Last active Dec 29, 2018
LaTeX: Merry TeXmas 2018
View texmas.readme.md

This is a plain XeTeX documnt, so you must compile it with xetex command.

@zr-tex8r
zr-tex8r / bxrawstr.lua
Last active Dec 22, 2018
LaTeX:「verbatimな文字列」を任意の場所で使う(bxrawstrパッケージ)
View bxrawstr.lua
--
-- This is file 'bxrawstr.lua'.
--
-- Copyright (c) 2018 Takayuki YATO (aka. "ZR")
-- GitHub: https://github.com/zr-tex8r
-- Twitter: @zr_tex8r
--
-- This package is distributed under the MIT License.
--
luatexbase.provides_module{
View affsnowman.satyh
% affsnowman.satyh: Affine-transformed snowman pictures
%
% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
% GitHub: https:%github.com/zr-tex8r
% Twitter: @zr_tex8r
% Distributed under the MIT License.
@require: pervasives
@require: list
@zr-tex8r
zr-tex8r / scarticle.satyh
Last active Dec 23, 2018
SATySFi:非常に画期的な文書クラス
View scarticle.satyh
% scarticle.satyh: An essential docuemnt class for SATySFi
%
% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
% GitHub: https:%github.com/zr-tex8r
% Twitter: @zr_tex8r
% Distributed under the MIT License.
@require: pervasives
@require: list
@zr-tex8r
zr-tex8r / grcnum.tex
Created Dec 15, 2018
LaTeX: TeXでもイオニア式記数法したい件
View grcnum.tex
\documentclass[a4paper]{article}
\usepackage{fontspec}
\setmainfont{GentiumPlus}
\makeatletter %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN
%---------------------------------------補助マクロ
%% ユニークトークン
% \my@nil : 値がないことを表す.
% ※デバッグの便宜のため保護付にする.
@zr-tex8r
zr-tex8r / ackermann.tex
Created Dec 11, 2018
LaTeX: TeXでもアッカーマン関数したい件
View ackermann.tex
\documentclass[a4paper]{article}
\makeatletter %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN
%% 変数
\newif\ifmy@ok % 真偽値の返り値専用のスイッチ
\let\my@ret\relax % トークン列返り値専用のマクロ
\newcount\my@m
\newcount\my@mm
\newcount\my@n
\newbox\my@box
@zr-tex8r
zr-tex8r / texfile.lua
Created Dec 5, 2018
To pass to the TeX command a file name containing dangerous characters
View texfile.lua
local ptn = '[\\{}#^~%%]' -- dangerous characters
local fa, c = arg[#arg]:gsub(ptn, '~\\%1')
if c > 0 then
arg[#arg] = [[\bgroup\escapechar-1\let~\string\xdef\x{]]..
fa..[[}\egroup\input\x\relax]]
end
arg[0] = nil
os.exec(arg)
@zr-tex8r
zr-tex8r / hello.tex
Created Dec 1, 2018
LaTeX: Which kind of “LaTeX” am I using?
View hello.tex
%%
%% This is file 'hello.tex'.
%%
%% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This file is distributed under the MIT License.
%%
\documentclass[a4paper]{article}
You can’t perform that action at this time.