Skip to content

Instantly share code, notes, and snippets.

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

Hironobu Yamashita aminophen

☃️
☃️⛄️🍣🦆🐦🤯🤮😱🤔🙃
View GitHub Profile
@aminophen
aminophen / ucs_toucs.tex
Last active October 16, 2022 12:58
Test for \ucs and \toucs: check if a number is in the range of JIS X 0208
%#!eptex -ini -etex
\let\dump\relax
\input plain
\newlinechar=`^^J
\newcount\tempcnta
\newcount\CharCount
\xdef\KINTERNAL{%
\ifnum\ucs"3000="3000 \string\ucs
@aminophen
aminophen / jpbase.ist
Last active June 6, 2021 11:47
索引スタイルのベース
% jpbook.ist - general settings, part of mendex package.
% also works with makeindex.
% これは mendex スタイルファイルのサンプルです
%% Use general commands (M. Yamamoto, @munepi)
headings_flag 1
heading_prefix "\n\\makeidxhead{"
heading_suffix "}"
%
delim_0 "\\idxdelim "
@aminophen
aminophen / allkana-jisx0208.idx
Created June 3, 2021 13:32
mendex: 仮名文字の並べ替えテスト用
\indexentry{ぁ}{1}
\indexentry{あ}{2}
\indexentry{ぃ}{3}
\indexentry{い}{4}
\indexentry{ぅ}{5}
\indexentry{う}{6}
\indexentry{ぇ}{7}
\indexentry{え}{8}
\indexentry{ぉ}{9}
\indexentry{お}{10}
@aminophen
aminophen / latex-develop-83f0f81-26bbad2-all.diff
Created May 23, 2021 03:09
LaTeX2e develop branch 83f0f81 -- 26bbad2 変更点(フォント関係のみ)
diff --git a/base/ltfssaxes.dtx b/base/ltfssaxes.dtx
index 4e3b4d98..86c84b11 100644
--- a/base/ltfssaxes.dtx
+++ b/base/ltfssaxes.dtx
@@ -35,7 +35,7 @@
%
%
\ProvidesFile{ltfssaxes.dtx}
- [2020/12/22 v1.0h LaTeX Kernel (NFSS Axes handing)]
+ [2021/03/18 v1.0i LaTeX Kernel (NFSS Axes handing)]
@aminophen
aminophen / labels.tex
Created June 7, 2020 02:21
\box\@labels and macrocode environment
% \iffalse
\documentclass{article}
\usepackage{doc}
\begin{document}
\DocInput{\jobname}
\end{document}
% \fi
%
% \makeatletter
% \tracingonline1
@aminophen
aminophen / default-haranoaji.patch
Created March 16, 2020 12:28
TeX Live: 原ノ味フォントをデフォルトに
Index: Master/texmf-dist/web2c/updmap-hdr.cfg
===================================================================
--- Master/texmf-dist/web2c/updmap-hdr.cfg (revision 54348)
+++ Master/texmf-dist/web2c/updmap-hdr.cfg (working copy)
@@ -95,11 +95,11 @@
# @jaEmbed@ in a map file name will be replaced with this value, and
# the respective map file used.
#
-jaEmbed ipaex
+jaEmbed haranoaji
@aminophen
aminophen / 20200314-jfont-nowarn.tex
Last active March 14, 2020 09:35
pLaTeX: 和文フォントの警告を消す
\makeatletter
%
\newif\if@shape@roman@kanji
%
\DeclareRobustCommand\romanshape[1]{\merge@font@shape{#1}}
\DeclareRobustCommand\kanjishape[1]{\merge@kanji@shape{#1}}
\DeclareRobustCommand\fontshape[1]{%
\@shape@roman@kanjitrue
\kanjishape{#1}\romanshape{#1}%
\@shape@roman@kanjifalse}
@aminophen
aminophen / 20190727-fontdef.tex
Created February 4, 2020 13:28
pTeX: ある fontdef トークンが欧文フォントか和文横組フォントか和文縦組フォントか
\catcode`\@=11
\ifx\@firstoftwo\@undefined
\def\@firstoftwo#1#2{#1}
\fi
\ifx\@secondoftwo\@undefined
\def\@secondoftwo#1#2{#2}
\fi
\def\ptexutil@ifjfont#1{\putl@parse@fontdef{#1}%
@aminophen
aminophen / example06.tex
Last active February 1, 2020 21:21 — forked from kauplan/example06.tex
日本語を細字のゴシック体、英数字を細字のサンセリフ体にし、かつ「第1章」が明朝体になる症状や脚注の英数字が細くならない症状を回避する
%% -*- coding: utf-8 -*-
\documentclass[uplatex,dvipdfmx,a5paper,10pt,papersize]{jsbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[deluxe]{otf}
\usepackage{lmodern}
\renewcommand{\headfont}{\gtfamily\sffamily\bfseries}
%% 日本語フォントを細いものに変更(Notoフォント前提)
\special{pdf:mapline uphminr-h unicode NotoSerifCJK-Light.ttc} % 明朝体
@aminophen
aminophen / luatexja-nfss.diff
Created January 23, 2020 14:27
luatexja-nfss.diff
diff --git a/src/luatexja.sty b/src/luatexja.sty
index 82a5615..5b53dca 100644
--- a/src/luatexja.sty
+++ b/src/luatexja.sty
@@ -35,13 +35,13 @@
\expandafter\let\csname ifltj@in@latex\expandafter\endcsname
\csname iftrue\endcsname
\NeedsTeXFormat{LaTeX2e}
- \ProvidesPackage{luatexja}[2019/09/26 Japanese Typesetting with Lua(La)TeX]
+ \ProvidesPackage{luatexja}[2020/01/27 Japanese Typesetting with Lua(La)TeX]