Skip to content

Instantly share code, notes, and snippets.

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

Hironobu Yamashita aminophen

☃️
☃️⛄️🍣🦆🐦🤯🤮😱🤔🙃
View GitHub Profile
@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 / zrlistttc.lua
Last active September 1, 2019 13:45 — forked from zr-tex8r/zrlistttc.lua
Lua: To list the font names (and other information) of all the fonts in a TTC/OTC file
-- zrlistttc.lua
-- ref. zrdecompttc.lua
prog_name = 'zrlistttc'
version = '0.4'
mod_date = '2019/08/31'
----------------------------------------
verbose = false
ttc_index = nil
content = { 6 }
langid = nil
@aminophen
aminophen / pxtatescale.sty
Last active January 22, 2017 19:23 — forked from zr-tex8r/pxtatescale.sty
Support for correct scaling in pTeX vertical writing
% pxtatescale.sty
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pxtatescale}[2017/01/23 v0.5]
\def\pxqtg@pkgname{pxtatescale}
\@ifpackageloaded{graphics}{}{%else
\PackageError\pxqtg@pkgname{Package 'graphics' not loaded}\@ehc}
\begingroup
% the patch is necessary only when dvipdfmx.def is used
\def\pxqtg@tempa{dvipdfmx.def}
\ifx\Gin@driver\pxqtg@tempa %%% if-level 1
@aminophen
aminophen / pxeverysel.md
Last active October 15, 2016 13:02 — forked from zr-tex8r/pxeverysel.sty
LaTeX: (u)pLaTeX で everysel できるかもしれないやつ、の改変版
@aminophen
aminophen / tcpdfcrop.bat
Last active August 14, 2019 03:02 — forked from zr-tex8r/tcpdfcrop.bat
ZR氏による「バッチで作る、劣化版pdfcrop」の改善版
@echo off
echo tcpdfcrop v0.9.4 (2015-08-06)
setlocal
if /I "%~1"=="/h" (
set BBOX=HiResBoundingBox
shift
) else (
set BBOX=BoundingBox
)
set FROMDIR=%~dp1