Skip to content

Instantly share code, notes, and snippets.

View kmaed's full-sized avatar
🐻‍❄️
Cute!!

Kazuki Maeda kmaed

🐻‍❄️
Cute!!
View GitHub Profile
@kmaed
kmaed / numeric-ja-examples.bib
Created February 5, 2012 18:44
biblatex で日本語を使ってみる
@article{piyo,
title="The world of {PIYO}",
author="Piyo, T.",
journal="J. Piyo",
volume="1",
pages="1--10",
year="2012",
publisher="Piyopiyo"
}
@kmaed
kmaed / install-w32tex.py
Created May 22, 2012 03:47
Install W32TeX on Wine
#!/usr/bin/python
# install-w32tex.py -- Install W32TeX on Wine environment
# Copyright (c) 2012--2014 Kazuki Maeda <[email protected]>
import os
import sys
import time
# default values
@kmaed
kmaed / pdwithbmb.tex
Created July 19, 2012 00:05
powerdot with beamerboxesrounded
\documentclass{powerdot}
\makeatletter
\newif\ifbmb@shadow
\newdimen\beamer@lastskip
\let\beamer@colorhook\relax
\newcount\beamer@coveringdepth
\def\beamer@lastminutepatches{}
\makeatother
@kmaed
kmaed / zathurarc
Created July 24, 2012 06:08
Emacs like key bindings for zathura
set adjust-open width
map \< goto top
map \> goto bottom
map b navigate previous
map e follow
map f navigate next
map p goto top
map <C-+> zoom in
@kmaed
kmaed / test-ascmac.pdf
Created August 7, 2012 17:47
ascmac.sty with LuaTeX-ja
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kmaed
kmaed / nal.tex
Created September 25, 2012 12:45
2012/09/25 の解答
\documentclass[a4paper]{article}
\makeatletter
^^5c^^64^^65^^66^^5c^^4e^^61^^62^^65^^41^^7a^^7a^^4c^^69^^6b^^65^^23^^31^^7b^^5c^^65^^78^^70^^61^^6e^^64^^61^^66^^74^^65^^72^^5c^^40^^4e^^61^^62^^65^^41^^7a^^7a^^4c^^69^^6b^^65^^5c^^63^^73^^6e^^61^^6d^^65^^20^^63^^40^^23^^31^^5c^^65^^6e^^64^^63^^73^^6e^^61^^6d^^65^^7d
^^5c^^64^^65^^66^^5c^^40^^4e^^61^^62^^65^^41^^7a^^7a^^4c^^69^^6b^^65^^23^^31^^7b^^5c^^62^^65^^67^^69^^6e^^67^^72^^6f^^75^^70^^5c^^69^^66^^6e^^75^^6d^^5c^^6e^^75^^6d^^65^^78^^70^^72^^23^^31^^2f^^33^^2a^^33^^3d^^23^^31^^5c^^41^^68^^6f^^46^^6f^^6e^^74^^5c^^66^^69^^5c^^65^^78^^70^^61^^6e^^64^^61^^66^^74^^65^^72^^5c^^40^^4e^^61^^62^^65^^41^^7a^^7a^^54^^65^^73^^74^^5c^^74^^68^^65^^23^^31^^5c^^72^^65^^6c^^61^^78^^5c^^74^^68^^65^^23^^31^^5c^^65^^6e^^64^^67^^72^^6f^^75^^70^^7d
^^5c^^64^^65^^66^^5c^^40^^4e^^61^^62^^65^^41^^7a^^7a^^54^^65^^73^^74^^23^^31^^7b^^5c^^69^^66^^78^^23^^31^^5c^^72^^65^^6c^^61^^78^^5c^^65^^6c^^73^^65^^5c^^69^^66^^78^^23^^31^^33^^5c^^41^^68^^6f^^46^^6f^^6e^^74^^5c^^66^^69^^5c^^65^^78^^7
@kmaed
kmaed / makecounterprinter.sty
Created September 27, 2012 02:00
2012/09/26 の解答
^^5c^^64^^65^^66^^5c^^6d^^61^^6b^^65^^63^^6f^^75^^6e^^74^^65^^72^^70^^72^^69^^6e^^74^^65^^72^^23^^31^^23^^32^^7b^^5c^^64^^65^^66^^23^^31^^23^^23^^31^^7b^^5c^^65^^78^^70^^61^^6e^^64^^61^^66^^74^^65^^72^^5c^^70^^72^^6f^^74^^65^^63^^74^^5c^^65^^78^^70^^61^^6e^^64^^61^^66^^74^^65^^72^^23^^32^^5c^^65^^78^^70^^61^^6e^^64^^61^^66^^74^^65^^72^^7b^^5c^^74^^68^^65^^5c^^63^^73^^6e^^61^^6d^^65^^20^^63^^40^^23^^23^^31^^5c^^65^^6e^^64^^63^^73^^6e^^61^^6d^^65^^7d^^7d^^7d
@kmaed
kmaed / length.tex
Created September 29, 2012 20:28
2012/09/17 の解答(!?)
%#! lualatex
\documentclass[a4paper]{article}
\def\length#1{%
\directlua{\unexpanded{
require('lualibs-unicode')
local input = [[#1]]
local state = 'r'
% print(input)
for i = 1, utf.len(input) do
local r = utf.byte(utf.sub(input, i, i))
@kmaed
kmaed / length.tex
Created September 30, 2012 06:32
2012/09/17 の解答(!!?)
%#! lualatex
\documentclass[a4paper]{article}
\makeatletter
\def\len@begin{\directlua{
local len_count = 0
local len_flag = true
while len_flag do
local t = token.get_next()
% print(token.csname_name(t))
if token.csname_name(t) == 'len@end' then
@kmaed
kmaed / numtohex.tex
Created October 8, 2012 09:55
2012/10/08 の失敗例
%#! luatex
\catcode`\@=11
\def\len@begin{\directlua{
local len_count = 0
local len_flag = true
while len_flag do
local t = token.get_next()
if token.csname_name(t) == 'len@end' then
len_flag = false
len_count = len_count+2 % \newcount\@tempcnta の分を足す