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 / 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 / hello.tex
Last active Jul 21, 2019
LaTeX: Which kind of “LaTeX” am I using?
View hello.tex
%%
%% This is file 'hello.tex'.
%%
%% Copyright (c) 2018,2019 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This file is distributed under the MIT License.
%%
\documentclass[a4paper]{article}
@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 / readme-song.md
Last active Jul 15, 2019
LaTeX: 素敵☃な楽曲を組版する
View readme-song.md

注意:このLaTeX文書はWindows専用です。

比較的新しいLuaTeXエンジンが必要です。

コンパイル方法:

lualatex -shell-escape song
@zr-tex8r
zr-tex8r / bxhanoi.sty
Created Feb 6, 2012
The Tower of Hanoi with graphics, in LaTeX
View bxhanoi.sty
%
% bxhanoi.sty : The "Tower of Hanoi" puzzle shown in graphics
%
%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxhanoi}[2012/02/01]
%% variables
\newcount\bxhp@step
@zr-tex8r
zr-tex8r / bxamstext.sty
Last active Jun 23, 2019
LaTeX: ヤバくない \text の実装
View bxamstext.sty
%% bxamstext.sty
%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxamstext}[2015/12/19 v0.2]
%% preparation
\def\bxtt@pkgname{bxamstext}
%% load packages
@zr-tex8r
zr-tex8r / Dockerfile
Last active Jun 19, 2019
Docker container that can do SATySFi
View Dockerfile
FROM ocaml/opam2:debian-9-ocaml-4.06.0
USER root
RUN apt update && apt install -y \
build-essential \
autoconf \
git \
m4 \
unzip \
@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=`わかめサラダ`|);
You can’t perform that action at this time.