Skip to content

Instantly share code, notes, and snippets.

@kmaed kmaed/numtohex.tex
Created Oct 9, 2012

What would you like to do?
2012/10/08 の失敗例2
%#! luatex
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
print(); print()
print('len(yourcode)=' .. tostring(len_count))
len_count = len_count + 1
\length{% ここから
\def\numtohex@aux{\numexpr\count@+`0\ifnum\count@>9+7\fi}% ここまで
\numtohex{042}\show\result %==>2A
\numtohex{`\\}\show\result %==>5C
\count0=3 \numtohex{\count0}\show\result %==>03

This comment has been minimized.

Copy link
Owner Author

kmaed commented Oct 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.