Skip to content

Instantly share code, notes, and snippets.

💭
🍣🦆

Takayuki YATO zr-tex8r

💭
🍣🦆
View GitHub Profile
@zr-tex8r
zr-tex8r / tckcatvalue.sty
Created Oct 31, 2019
TeX:和文文字トークンの和文カテゴリコードの値を展開限定文脈で取得する
View tckcatvalue.sty
%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tckcatvalue}[2019/10/31 v0.1]
\def\xx@pkgname{tckcatvalue}
%% engine
\chardef\xx@uptex=\ifx\enablecjktoken\@undefined 0 \else 1 \fi
%% inspect the type and set it to \xx@type
% 1 = upTeX, old pTeX
@zr-tex8r
zr-tex8r / uwaasome-expl3.md
Created Oct 28, 2019
LaTeX: expl3に依存する(ドライバ依存的にヤバい)パッケージ・クラス
View uwaasome-expl3.md
  • l3*** packages
  • beamerswitch class
  • ctexart class
  • ctexbook class
  • ctexrep class
  • l3doc class
  • moderncv class
  • oblivoir-base class
  • acro
  • adigraph
@zr-tex8r
zr-tex8r / 00batch.sh
Last active Oct 27, 2019
Pandoc:LaTeX出力において見出し中でLaTeX命令を使うためのLuaフィルタ(オソロシイ)
View 00batch.sh
#!/bin/bash
pandoc test.md --lua-filter header_latex.lua -o test.tex
uplatex -halt-on-error testmain || exit
uplatex -halt-on-error testmain || exit
dvipdfmx testmain || exit
rm testmain.dvi testmain.aux testmain.log
@zr-tex8r
zr-tex8r / README.md
Last active Oct 22, 2019
LaTeX:TeXの脚注をナントカにする
View README.md
@zr-tex8r
zr-tex8r / README.md
Last active Oct 22, 2019
LaTeX:scsnowmanで対称なゆきだるま
View README.md
@zr-tex8r
zr-tex8r / README.md
Last active Oct 22, 2019
LaTeX: 文献一覧を本質的にする文献スタイル
View README.md
@zr-tex8r
zr-tex8r / README.md
Last active Oct 22, 2019
LaTeX: Premium everyday!
View README.md
@zr-tex8r
zr-tex8r / ptexguide.md
Created Oct 4, 2019
「日本語にサッパリ興味のない開発者のためのpTeXガイド」の構想
View ptexguide.md

概略

この文書の目的

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

pTeXとその仲間

@zr-tex8r
zr-tex8r / gist:c7c0fd0f904596cf0e7acf72f5f94c5b
Created Oct 2, 2019
LaTeX: To refuse (u)pTeX and show an essential-esque error
View gist:c7c0fd0f904596cf0e7acf72f5f94c5b
%%
%% This is file 'dcnoptex.sty'.
%%
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
@zr-tex8r
zr-tex8r / pxghost.sty
Created Jan 5, 2013
LaTeX: ghost insertion
View pxghost.sty
% pxghost.sty
%% package declaration
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{pxghost}
%% preparations
\def\pxqgg@pkgname{pxghost}
%---------------------------------------
% use an arbitrary font available in T1 encoding
\font\pxqgg@TI=ec-lmr10 at 1.23456pt
\chardef\pxqgg@cwm=23 % compwordmark (in T1)
You can’t perform that action at this time.