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 / zrlistttc.lua
Created Sep 1, 2019
Lua: To list the font names (and other information) of all the fonts in a TTC/OTC file
View zrlistttc.lua
-- zrdecompttc.lua
prog_name = 'zrlistttc'
version = '0.2'
mod_date = '2019/08/31'
----------------------------------------
verbose = false
content = { 6 }
langid = nil
ttc_file = nil
----------------------------------------
@zr-tex8r
zr-tex8r / badwidth.zvp
Created Aug 21, 2019
upTeX:「和文VFの参照先の和文TFMが幅異常」なやつ
View badwidth.zvp
(VTITLE BADWIDTH)
(FAMILY BADWIDTH)
(FACE F MRR)
(CODINGSCHEME TEX KANJI TEXT)
(DESIGNSIZE R 10.0)
(CHECKSUM O 2152613461)
(FONTDIMEN
(SLANT R 0.0)
(SPACE R 0.0)
(STRETCH R 0.1)
@zr-tex8r
zr-tex8r / scsnowman-zrsymmetric.def
Created Aug 8, 2019
LaTeX:scsnowmanで対称なゆきだるま☃
View scsnowman-zrsymmetric.def
%%
%% This is file 'scsnowman-zrsymmetric.def'.
%%
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
\NeedsTeXFormat{LaTeX2e}
@zr-tex8r
zr-tex8r / biggggg.lua
Created Jul 31, 2019
Pandoc:“Markdownはデカイ文字を書くのに便利”的なフィルタ
View biggggg.lua
-- biggggg.lua
--
-- @copyright 2019 Takayuki YATO (aka. "ZR")
-- GitHub: https://github.com/zr-tex8r
-- Twitter: @zr_tex8r
-- This program is distributed under the MIT License.
--
local filter_name = 'biggggg'
---------------------------------------- 設定
@zr-tex8r
zr-tex8r / japara.lua
Created Jul 20, 2019
Pandoc:Markdownを「ワープロ式」の段落表現で書きたい人のためのLuaフィルタ
View japara.lua
-- japara.lua
--
-- @copyright 2019 Takayuki YATO (aka. "ZR")
-- GitHub: https://github.com/zr-tex8r
-- Twitter: @zr_tex8r
-- This program is distributed under the MIT License.
--
local filter_name = 'japara'
---------------------------------------- 設定
@zr-tex8r
zr-tex8r / dotest.lua
Created Jul 15, 2019
Incompatibility result on use of LuaFFI on LuaTeX, between version 1.10 and 1.07
View dotest.lua
ffi = require "ffi"
ffitest = ffi.load("ffitest")
ffi.cdef[[
void test1(unsigned long);
]]
ffitest.test1(42) -->I got 42.
ffitest.test1(42.0) -->I got 42.
ffitest.test1(42.195) -->I got 0. (LuaTeX 1.10.0 / Lua 5.3)
-->I got 42. (LuaTeX 1.07.0 / Lua 5.2)
@zr-tex8r
zr-tex8r / saizeriya-test.saty
Created May 28, 2019
SATySFi:「サイゼリヤで1000円あれば最大何kcal摂れるのか」を解くパッケージ
View saizeriya-test.saty
@require: stdja
@require: saizeriya
%@import: saizeriya
%------------------------------------------------- メニューデータ
let the-menu = [
(|calorie=130;cost=299;name=`彩りガーデンサラダ`|);
(|calorie=115;cost=349;name=`小エビのサラダ`|);
(|calorie=134;cost=299;name=`やわらかチキンのサラダ`|);
(|calorie=92;cost=299;name=`わかめサラダ`|);
@zr-tex8r
zr-tex8r / menu.csv
Created May 25, 2019
Pandoc:「サイゼリヤで1000円あれば最大何kcal摂れるのか」を解くLuaフィルタ
View menu.csv
彩りガーデンサラダ 130 299
小エビのサラダ 115 349
やわらかチキンのサラダ 134 299
わかめサラダ 92 299
イタリアンサラダ 196 299
シーフードサラダ 229 599
半熟卵とポークのサラダ 433 599
コーンクリームスープ 142 149
冷たいパンプキンスープ(季節限定) 105 149
たっぷり野菜のミネストローネ(季節限定) 222 299
@zr-tex8r
zr-tex8r / bxpgfcurpage.sty
Last active Sep 1, 2019
LaTeX:とにかくTikZでcurrent pageしたいときに使うやつ
View bxpgfcurpage.sty
%%
%% This is file 'bxpgfcurpage.sty'.
%%
%% Copyright (c) 2019 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 / pxxspace.sty
Created Apr 30, 2019
LaTeX: (u)pLaTeXでxspaceするためのやつ
View pxxspace.sty
%%
%% This is file 'pxxspace.sty'.
%%
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
You can’t perform that action at this time.