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 / kana-mix-tate.tex
Created Apr 16, 2017
LaTeX:LuaLaTeXだとかな混植が簡単にできて最高だという件
View kana-mix-tate.tex
% LuaLaTeX文書,UTF-8
% jlreqクラス・縦組の例
\documentclass[lualatex,tate,paper=a6,twocolumn]{jlreq}
\usepackage{luatexja-fontspec}
\setmainjfont[
YokoFeatures={JFM=jlreq}, %jlreqのJFMを
TateFeatures={JFM=jlreqv}, %維持する
AltFont={% 代替フォント設定
{Range="3040-"30FF, Font=IPAexMincho},
{Range={`☃,`⛄}, Font=SourceHanSans}},
@zr-tex8r
zr-tex8r / README.md
Last active Mar 27, 2019
LaTeX: To make blinking text (if you dare)
View README.md

bxblink Package

LaTeX: To make blinking text (if you dare)

System requirement

  • TeX format: LaTeX.
  • TeX engine: Anything.
  • DVI driver: dvips / dvipdfmx / pdfTeX / XeTeX.
@zr-tex8r
zr-tex8r / newera.tex
Created Mar 26, 2019
LaTeX:BXglyphwikiで新元号するかもしれないやつ
View newera.tex
%#!lualatex
\documentclass[margin=2bp]{standalone}
\usepackage[svgnames]{xcolor}
\usepackage{tikz,tikzducks,luatexja}
\usepackage[cache=5]{bxglyphwiki}
\definecolor{myframe}{rgb}{0.65,0.50,0.35}
\begin{document}
\begin{tikzpicture}[x=1bp,y=1bp]
\useasboundingbox (0,0) rectangle (140,140);
\draw[myframe, line width=6pt, rounded corners=2pt]
@zr-tex8r
zr-tex8r / reviewbreakall.tex
Last active Mar 15, 2019
LaTeX: \reviewbreakall のようなナニカ
View reviewbreakall.tex
\documentclass{article}
\makeatletter %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN
\newif\ifreview@ba@break
\def\review@ba@end{\review@ba@end@}
\DeclareRobustCommand{\reviewbreakall}[1]{%
\begingroup
\review@ba@breakfalse
\review@break@all@a#1\review@ba@end
\endgroup
}
@zr-tex8r
zr-tex8r / test.enc
Created Feb 21, 2019
TeX: IPAex明朝で欧文TFMしてdvipdfmxするとアレ
View test.enc
/test [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/zero /one /two /three /four /five /six /seven
/eight /nine /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
@zr-tex8r
zr-tex8r / zrmakecmap.lua
Last active Feb 18, 2019
To make CMap files from OpenType font files using texlua
View zrmakecmap.lua
-- zrmakecmap.lua
prog_name = "zrmakecmap"
version = "0.3"
mod_date = "2015/10/09"
verbose = false
sort = false
inencoding = "utf16"
fwid = true
---------------------------------------- preparations
filename, fontname, outname, jis_map = nil
@zr-tex8r
zr-tex8r / test-bad.tex
Created Feb 2, 2019
TeX言語:表組み(alignment)中でチョット複雑なコードを動かすとアレ
View test-bad.tex
% This code gives an error.
\documentclass[a4paper]{article}
\makeatletter %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN
\newcount\xx@k \newcount\xx@n
% \EvenOddTable{<max-number>}
\newcommand*\EvenOddTable[1]{%
\global\xx@k=\z@ \global\xx@n=#1\relax
\begin{tabular}{cc}%
Even&Odd\\\hline
\@whilenum{\xx@k<\xx@n}\do{%
@zr-tex8r
zr-tex8r / tckarakasa.sty
Created Feb 5, 2015
LaTeX: Paragraph formatting like “karakasa-renban”
View tckarakasa.sty
% tckarakasa.sty
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{tckarakasa}[2015/02/05 v0.1]
%% preparations
\def\tckk@pkgname{tckarakasa}
\def\tckk@error{\PackageError\tckk@pkgname}
\providecommand\bxDebug[1]{}
@zr-tex8r
zr-tex8r / zrdecompttc.lua
Last active Jan 27, 2019
Converts TTC font files to TTF files
View zrdecompttc.lua
-- zrdecompttc.lua
prog_name = "zrdecompttc"
version = "0.4"
mod_date = "2016/11/03"
verbose = false
dryrun = false
----------------------------------------
ttc_file, ttf_base, ttf_ext, ttf_idb = nil
----------------------------------------
do
@zr-tex8r
zr-tex8r / squareroot.saty
Created Jan 7, 2019
SATySFi:サイン・コサインを使って平方根を求める
View squareroot.saty
@require: stdja
@require: list
% sqrt r = sin(acos(1 - 2r)/2) (for 0 < r < 1)
let sqrt-b r =
sin (acos (1. -. r *. 2.) /. 2.)
% NOTE: behavior undefined
let get-invalid-value () = 0. /. 0.
You can’t perform that action at this time.