Skip to content

Instantly share code, notes, and snippets.

View aminophen's full-sized avatar
☃️
☃️⛄️🍣🦆🐦🤯🤮😱🤔🙃

Hironobu Yamashita aminophen

☃️
☃️⛄️🍣🦆🐦🤯🤮😱🤔🙃
View GitHub Profile
@zr-tex8r
zr-tex8r / 2023texmas.md
Created December 24, 2023 15:47
TeX: Merry TeXmas 2023

Compile with:

pdftex --translate-file ./texmas texmas.tex

@h20y6m
h20y6m / jfont-in-encoding.tex
Last active March 8, 2023 14:30
新しい upLaTeX で min10 してみるやつ
%#!uplatex
%% upLaTeX で min10 してみる
%% TeX Live 2023 以降の uplatex が必要
% ----------------------------------------------------------------------
% どうして uplatex じゃないの?
\ifnum\jis"2121="3000 \else
\typeout{Why not run `uplatex'?}
@zr-tex8r
zr-tex8r / test.tex
Last active February 16, 2023 14:09
新しいLaTeXで(u)pLaTeXしたいやつ
\ExplSyntaxOn
%---------------------------------------
%% \token_if_jachar:N <token>
% Tests if <token> is a jachar token or not.
\bool_lazy_or:nnTF
{ \sys_if_engine_ptex_p: }
{ \sys_if_engine_uptex_p: }
{
\use:x
{
@h20y6m
h20y6m / platex-lab.sty
Last active May 31, 2022 14:20
(u)pLaTeX で latex-lab するためのなにか
\ExplSyntaxOn
% (u)pLaTeXでなければ何もしない
\bool_lazy_or:nnF
{ \sys_if_engine_ptex_p: }
{ \sys_if_engine_uptex_p: }
{
\ExplSyntaxOff
\file_input_stop:
}
@h20y6m
h20y6m / l3str-ptex-utf8.tex
Last active May 6, 2022 11:56
l3str-convert with (u)pLaTeX
%#!platex -no-guess-input-enc -kanji=utf8
% -*- coding: utf-8 -*-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% l3names
%
\ExplSyntaxOn
% \tex_toucs:D already part of expl3 <2022-04-10>
%\tex_global:D \tex_let:D \tex_toucs:D \toucs
\ExplSyntaxOff
@k16shikano
k16shikano / jackpodsc.tex
Last active May 22, 2020 10:01
TeXでスロットマシン
% inspired by https://tex.stackexchange.com/questions/524022/switch-string-commands-based-on-random-values-to-produce-random-cards
\documentclass{article}
\usepackage{xparse}
\usepackage{scsnowman}
\usepackage{multicol}
\ExplSyntaxOn
\NewDocumentCommand{\jackpodsc}{}
{\three_snowmen:}
@trueroad
trueroad / haranoaji-tlpost.pl
Last active April 18, 2020 14:08
Post action for haranoaji to link or copy files for TeX Live tlgs
#
# haranoaji-tlpost.pl:
# Post action for haranoaji to link or copy files for TeX Live tlgs
# https://gist.github.com/trueroad/f83f2fbf68aa49ea7f3ab0708bf5fb9e
#
# Copyright (C) 2020 Masamichi Hosoda.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@zr-tex8r
zr-tex8r / ptexguide.md
Created October 4, 2019 15:35
「日本語にサッパリ興味のない開発者のためのpTeXガイド」の構想

概略

この文書の目的

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

pTeXとその仲間

@zr-tex8r
zr-tex8r / zrlistttc.lua
Created September 1, 2019 09:27
Lua: To list the font names (and other information) of all the fonts in a TTC/OTC file
-- 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 August 21, 2019 09:59
upTeX:「和文VFの参照先の和文TFMが幅異常」なやつ
(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)