Skip to content

Instantly share code, notes, and snippets.

☃️
Happy TeXing!

Takuto ASAKURA wtsnjp

☃️
Happy TeXing!
Block or report user

Report or block wtsnjp

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
View awesome-expl3.txt
GS1: Typeset EAN barcodes using TeX rules, only
acro: Typeset acronyms
algobox: Typeset Algobox programs
aligned-overset: Fix alignment at \overset or \underset
beuron: The script of the Beuronese art school
breqn: Automatic line breaking of displayed equations
bxjaholiday: Support for Japanese holidays
cascade: Constructions with braces to present mathematical demonstrations
cellprops: Accept CSS-like selectors in tabular, array, ...
chemformula: Command for typesetting chemical formulas and reactions
View wtxsection.sty
%%
%% This is file 'wtxsection.sty'.
%%
%% Copyright 2019 Takuto ASAKURA (wtsnjp)
%% GitHub: https://github.com/wtsnjp
%% Twitter: @wtsnjp
%%
%% This package is distributed under the MIT License.
%%
View esum_optimized.tex
\catcode`\@=11
\def\esum#1{\x@esum{\z@}{#1}}
\def\x@hop#1\fi{\fi #1}
\def\x@esum#1#2{%
\ifnum#2<\tw@\number#1\else
\x@hop\expanded{%
\noexpand\x@esum{\the\numexpr #1+#2-\tw@}{\the\numexpr#2-\tw@}%
}\fi}
\esum{90000}\bye
View esum.tex
\catcode`\@=11
\def\esum#1{\the\numexpr\x@esum{#1}\relax}
\def\x@esum#1{%
\ifnum#1<\tw@\z@\else
\expandafter\x@esum\expandafter{\numexpr#1-\tw@\relax}+#1\fi}
\esum{100}\bye
@wtsnjp
wtsnjp / bibstalin.bst
Created Aug 8, 2019
A BibTeX style for stalin sort
View bibstalin.bst
% Joke BibTeX bibliography style `bibstalin'
% Version 0.1 (2019-08-08) for BibTeX versions 0.99a or later.
% Copyright 1984, 1985, 1988, 2010 Howard Trickey and Oren Patashnik.
% Copyright 2019 Takuto Asakura (wtsnjp)
% Unlimited copying and redistribution of this file are permitted as long as
% it is unmodified. Modifications (and redistribution of modified versions)
% are also permitted, but only if the resulting file is renamed to something
% besides btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
% This restriction helps ensure that all standard styles are identical.
% The file btxbst.doc has the documentation for this style.
View notexcode.sty
%%
%% This is file 'notexcode.sty'.
%%
%% Copyright 2019 Takuto ASAKURA (wtsnjp)
%% GitHub: https://github.com/wtsnjp
%% Twitter: @wtsnjp
%%
%% This package is distributed under the MIT License.
%%
View latex.ltx.txt
\def 1221
\fi 798
\expandafter 552
\let 537
\else 487
\relax 383
\z@ 327
\endcsname 271
\csname 271
\global 243
View tl-build.sh
svn co --depth empty svn://tug.org/texlive/trunk/
svn up --set-depth infinity ./Build
svn up --set-depth infinity ./TODO
svn up --set-depth infinity ./Master/readme-html.dir
svn up --set-depth immediates ./Master
svn up --set-depth infinity ./Master/readme-html.dir
svn up --set-depth infinity ./Master/readme-txt.dir
svn up --set-depth infinity ./Master/source
svn up --set-depth infinity ./Master/texmf-dist
svn up --set-depth infinity ./Master/tlpkg
View snowman.cow
##
## A Snowman for everyone!
##
$the_cow = <<EOC;
$thoughts
$thoughts _[_]_
(")
>-( : )-<
(__:__)
EOC
View goal.tex
% plain TeX
\catcode`@=11
\def\x@cmd(#1){\edef\x@tmp{#1}\ifx\x@tmp\empty
o\expandafter\x@cmd\else\x@fin #1\fi}\def\x@fin'#1'{#1}
\catcode`g=13\chardef\x@s=`g\defg{\char\x@s\x@cmd}
\catcode`@=12
% tests
\noindent
g('al')\break
You can’t perform that action at this time.