Skip to content

Instantly share code, notes, and snippets.

View munepi's full-sized avatar

Munehiro Yamamoto munepi

View GitHub Profile
@munepi
munepi / texconf2023_texlive_yamamoto_slide.pdf
Last active April 24, 2024 03:36
TeXConf 2023発表資料『TeX Liveインストールの“いま”を知る』
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@munepi
munepi / reject_sender.tsv
Created September 5, 2023 02:10
List of block domains
01intern.com DISCARD
01internship.com DISCARD
0daymusic.org DISCARD
168cash.com.tw DISCARD
1grandtrunk.com DISCARD
21vets.org DISCARD
2track.info DISCARD
3aco-opolis.com DISCARD
555us.net DISCARD
7filtrov.shop DISCARD
%#! ptex2pdf -l -u -ot '--synctex=1' -od '-vv -V6 -z3' test-mrsw7basic
%% 場当たり的に、モリサワ基本7書体をotfパッケージの高々7つ分の仮想フォントに割り当てます。
\documentclass[dvipdfmx,uplatex,a5paper,papersize]{jsbook}
\usepackage{lmodern}
\usepackage[deluxe,jis2004,uplatex]{otf}
\makeatletter
\DeclareRobustCommand\ltseries{\not@math@alphabet\ltseries\relax
\romanfamily{lmss}\romanseries{m}% \romanseries\ltdefault
\kanjiseries\ltdefault\selectfont}
\DeclareRobustCommand\ebseries{\not@math@alphabet\ebseries\relax
@munepi
munepi / D45.json
Created February 20, 2022 14:26
D45.json: **unofficial** KBDfans D45 definition file for REMAP https://remap-keys.app/
{
"name": "D45",
"vendorId": "0x4B42",
"productId": "0x0010",
"lighting": {
"extends": "none",
"keycodes": "qmk"
},
"matrix": {
"rows": 4,
@munepi
munepi / README.txt
Last active September 9, 2023 10:40
TeX-style shebang
This repository moved.
munepi/runtexshebang
https://github.com/munepi/runtexshebang
@munepi
munepi / README_scsnowman-ol_HHKB_design_template2020-11-26.txt
Last active February 9, 2022 16:31
遊舎工房さんのHHKBキーキャップ刻印サービスで作成した☃キーキャップのIllustrator形式データ
# scsnowman-ol_HHKB_design_template2020-11-26.ai について
Illustrator形式ファイル
scsnowman-ol_HHKB_design_template2020-11-26.ai
は、2021年4月24日現在に、遊舎工房さんの
HHKBキーキャップ刻印サービス
https://shop.yushakobo.jp/products/hhkb_keycaps_marking
で公開されていたテンプレート
HHKB_design_template2020-11-26.zip
を元にしました。
@munepi
munepi / diff.tex
Created January 8, 2021 06:42
On another example of latexdiff Producing Error with Simple Tabular https://tex.stackexchange.com/questions/309144/latexdiff-producing-error-with-simple-tabular
%DIF 1a1-3
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL old.tex Tue Jan 5 16:46:48 2021
%DIF ADD new.tex Tue Jan 5 17:40:47 2021
%#!latexdiff old.tex new.tex | perl -0pe "s/%DIFDELCMD < \\\\\\\\\n%DIFDELCMD < %%%/\\\\\\\\/mg" > diff.tex && lualatex diff %DIF >
% #!latexdiff --filter-script=./post-tex.pl old.tex new.tex > diff.tex && lualatex diff %DIF >
% #!latexdiff old.tex new.tex > diff.tex && lualatex diff %DIF >
%DIF -------
\documentclass{article}
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
@munepi
munepi / build1.sh
Last active December 24, 2020 08:49
TeX & LaTeX Advent Caleandar 2020 23日目の例 https://qiita.com/munepi/items/7ff9d00505735bd80790
#!/bin/bash
pandoc -o book.pdf --pdf-engine=lualatex \
-V papersize=a5 -V documentclass=bxjsbook -V classoption=pandoc \
-V indent=1zw \
--number-sections \
--from=markdown+ignore_line_breaks --to=latex \
--toc --strip-comments \
--top-level-division=chapter --standalone \
chpre.md ch01.md ch02.md ch03.md chpost.md
@munepi
munepi / test-yensign-escapechar.tex
Last active March 8, 2020 14:54
Testing to use TeX-style escape sequences beginning with a YEN SIGN "¥" (Unicode U+00A5) character: This example is only available for LuaLaTeX or XeLaTeX.
%#!lualatex
%% We remark that this example is only available for LuaLaTeX or XeLaTeX.
\catcode`¥=0 %<= yen sign 0x00A5
\let¥¥=\\
¥documentclass{article}
¥begin{document}
Hello {¥LaTeX} world!
¥end{document}
@munepi
munepi / dvipdfmx-def_r15878.patch
Last active August 10, 2020 02:22
dvipdfmx.def (r15878): proposed-change for TeX Live 2012 frozen
--- /opt/texlive/2012/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def.distro2008-07-06 09:42:25.000000000 +0900
+++ /opt/texlive/2012/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def2014-06-09 22:25:59.000000000 +0900
@@ -108,7 +108,7 @@
\@makeother\-%
\immediate\openin\@inputcheck#1 %
\ifeof\@inputcheck
- \immediate\write18{extractbb \Gin@base\Gin@ext}
+ \immediate\write18{extractbb \Gin@base\Gin@ext}%
\immediate\openin\@inputcheck#1 %
\fi