Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🍣🦆

Takayuki YATO zr-tex8r

💭
🍣🦆
View GitHub Profile
@zr-tex8r
zr-tex8r / 01sample.tex
Last active Jan 21, 2021
例のdvipdfmxのCMapのアレ
View 01sample.tex
% upLaTeX文書
% KleeOne-Regular.ttf と Adobe-Japan1-KleeOne-Regular を配置する
\documentclass[uplatex,dvipdfmx,a4paper]{jsarticle}
\usepackage{otf}
\usepackage[noalphabet]{pxchfon}% unicodeは無し
\setminchofont{KleeOne-Regular.ttf}% クレー One
\begin{document}
\CID{1481}城市\ajSnowman\ajLig{ウルシ}\CID{7652}飾区
\ajMaruHira{1}\ajKuroMaruHira{42}\ajKakuKata{1}\ajKuroKakuKata{42}%
\ajMaru{12}\ajMaru{34}\ajMaru{56}
@zr-tex8r
zr-tex8r / wdsnowman2021.tex
Created Jan 17, 2021
LaTeX: Happy World Day of Snowman!
View wdsnowman2021.tex
\documentclass[margin=0pt]{standalone}
\usepackage{xcolor,tikz,scsnowman}
\usetikzlibrary{calc}
\newcommand*{\cLet}{\pgfmathsetmacro}
\cLet{\yA}{115}\cLet{\yB}{15}\cLet{\vSS}{12}
\cLet{\vRA}{1}\cLet{\vRB}{5}\cLet{\vRS}{3}
\cLet{\vT}{\number\faStopTicks/\number\faAllTicks}
\cLet{\vA}{-mod(\vT*\vRA,1)*360}
\cLet{\vB}{-mod(\vT*\vRB,1)*360}
\cLet{\vS}{-mod(\vT*\vRS,1)*360}
@zr-tex8r
zr-tex8r / bxkvcmd-sty
Created Jan 4, 2021
LaTeX:key-value型の引数指定をもつユーザ命令を(LaTeXレベルで)定義する
View bxkvcmd-sty
%%
%% This is file 'bxkvcmd.sty'.
%%
%% Copyright (c) 2021 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
@zr-tex8r
zr-tex8r / nyc2021.tex
Created Jan 1, 2021
LaTeX: New year post card of the year 2021
View nyc2021.tex
\documentclass{article}
\usepackage[papersize={100mm,148mm},margin=0cm,
noheadfoot]{geometry}
\usepackage{luatexja-fontspec}
\usepackage{amsmath,tikz,graphicx,xcolor,xparse}
\usetikzlibrary{calc,positioning}
\newfontface{\fRobo}{RobotoSlab-Bold.otf}
\newfontface{\fChicago}{QTChicagoland.otf}
\newfontface{\fNishiki}{Nishiki-teki.ttf}
\newjfontface{\jNishiki}{Nishiki-teki.ttf}
@zr-tex8r
zr-tex8r / texadvent.md
Last active Dec 26, 2020
TeX & LaTeX Advent Calendar 実績
View texadvent.md

TeX & LaTeX Advent Calendar

**「とっておきの TeX/LaTeX ネタを皆で持ち寄って楽しむ」**というコンセプトの技術系アドベントカレンダーです。

2012年から始まっており、以降毎年開催されています。

今年のやつ

View texmas2020.tex
^^`^^;^^`\^^$^^%^^&\!^^;\^^$^^%^^&^^=^^`\!\^^:#1^^;^^=^^`%^^'^^`1~^^`^^"
\!\[{^^2}\!\<{%% --:--:--:--:--:--:--:-- 2 @ 2 @ --:--:--:--:--:--:--:--
\^^#^^3^^.^^!^^-^^%}\!\]{^^3}\^^:?\!\>{\^^%^^.^^$^^#^^3^^.^^!^^-^^%}%**%
\!\={\^^,^^%^^4}\=\?\^^#^^!^^4^^#^^/^^$^^%\=\#\^^:\?`*\?`\^\?`.\?`\*%[#\
\?`/\?`\^\!\|{^^5}\=\@\^^%^^$**%**&\?`\@\?`//*\=\+%+5.//)=\?..{**!};@^^:
\..!^^$//6..!^^.//#..%\=\&\..'//,^^/.."^^!//,\#6\=\%\^^,**#..#///..$**%%
\@\_{\<..,**/..7^^%\[^^#..!\]..%\>}\!\^^!{\?\(\?`+\%\(\)\+\(\@^^.//%%7;)
\+\)\@**.^^%}\=\^^"\**!\=\^^#\..!\!\..${\^^!\**"\..#}\=\..%\..$%.:8:*:8:
\@\({\**$//!**9}\@\){\<//9..%**!\[\>}\!\**'{{\)`/\+\)\@...**%\(\)\+\(\)%
\//$\..%\^^!\..$\+\)\?`\^\//$\^^%\_{\&\!\..:@^^:{%%.(.**$!\\;//:%@>./++.
@zr-tex8r
zr-tex8r / defaults.yaml
Created Jul 27, 2020
Pandoc:節番号のスタイルを変えるやつ
View defaults.yaml
input-files:
- test.md
filters:
- numbering.lua
output-file: test_out.html
standalone: true
table-of-contents: true
toc-depth: 2
number-sections: true
@zr-tex8r
zr-tex8r / tcspingif.pl
Last active Dec 21, 2020
tcfaspinを利用した“回るLaTeX文書”からアニメGIF画像を生成する
View tcspingif.pl
#!/usr/bin/env perl
use v5.12;
my $program = "tcspingif";
my $version = "0.6.1";
my $mod_date = "2020/12/20";
use constant DEFAULT_TICKS => 32;
use constant CYCLE => 2; # seconds
my ($ticks, $in_file, $out_file);
my $engine = "pdflatex";
@zr-tex8r
zr-tex8r / scframe.satyh
Created Dec 21, 2020
SATySFi: To make an animated GIF image of a spinning snowman
View scframe.satyh
% scframe.satyh
%
% Copyright (c) 2020 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 / yubaba.lua
Created Dec 12, 2020
Pandoc: Pandocで湯婆婆するLuaフィルタ
View yubaba.lua
-- yubaba.lua
--
-- @copyright 2020 Takayuki YATO (aka. "ZR")
-- GitHub: https://github.com/zr-tex8r
-- Twitter: @zr_tex8r
-- This program is distributed under the MIT License.
--
local filter_name = 'yubaba'
---------------------------------------- 設定