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 / 00batch.sh
Last active Oct 27, 2019
Pandoc:LaTeX出力において見出し中でLaTeX命令を使うためのLuaフィルタ(オソロシイ)
View 00batch.sh
#!/bin/bash
pandoc test.md --lua-filter header_latex.lua -o test.tex
uplatex -halt-on-error testmain || exit
uplatex -halt-on-error testmain || exit
dvipdfmx testmain || exit
rm testmain.dvi testmain.aux testmain.log
@zr-tex8r
zr-tex8r / README.md
Last active Oct 22, 2019
LaTeX:TeXの脚注をナントカにする
View README.md
@zr-tex8r
zr-tex8r / ptexguide.md
Created Oct 4, 2019
「日本語にサッパリ興味のない開発者のためのpTeXガイド」の構想
View ptexguide.md

概略

この文書の目的

  • 日本語機能でないパッケージのため。
  • 日本語(の組版・の文字コード)の知識はいらない。
  • その話もできる限り避ける。
  • e-の方がメイン。

pTeXとその仲間

@zr-tex8r
zr-tex8r / gist:c7c0fd0f904596cf0e7acf72f5f94c5b
Created Oct 2, 2019
LaTeX: To refuse (u)pTeX and show an essential-esque error
View gist:c7c0fd0f904596cf0e7acf72f5f94c5b
%%
%% This is file 'dcnoptex.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 / 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 / README.md
Last active Oct 22, 2019
LaTeX:scsnowmanで対称なゆきだるま☃
View README.md
@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)
You can’t perform that action at this time.