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 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
View ack.tex
\documentclass{article}
\usepackage{expl3}
\ExplSyntaxOn
% \my_ack:nn { <m> } { <n> }
\cs_new:Npn \my_ack:nn #1#2
{
\int_compare:nNnTF { #1 } = { \c_zero_int }
{ % m = 0
\int_eval:n { #2 + 1 }
View inline-math-tag.tex
\documentclass{article}
\newcommand{\inlineTag}{%
\refstepcounter{equation}%
\bgroup\normalfont\normalcolor (\theequation)\egroup}
\begin{document}
This is a sample inline math: $x\;\inlineTag\label{math:x}$.
Look at Equation (\ref{math:x})!
View fully_expandable_parity.tex
% plain TeX
\catcode`@=11
\def\EvenOrOdd#1{\x@even@or@odd\empty #1\@nil}
\def\x@even@or@odd#1#2{%
\ifx#2\@nil
\x@hop@else\x@@even@or@odd #11\relax
\else
\x@hop@fi\x@even@or@odd{#1-}%
\fi}
\def\x@@even@or@odd#1\relax{\ifnum#1>\z@\expandafter E\else\expandafter O\fi}
View seq2seq_map.tex
%#!lualatex
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\cs_generate_variant:Nn \seq_set_split:Nnn { Nnx }
\cs_new:Npn \my_test:n #1 {
\int_eval:n { #1 * 3 } |
}
@wtsnjp
wtsnjp / _texdoc
Last active Jul 30, 2018
A zsh completion for Texdoc
View _texdoc
#compdef texdoc
#
# This is file '_texdoc' a zsh completion script for texdoc.
#
# Copyright (c) 2018 Takuto ASAKURA (wtsnjp)
# GitHub: https://github.com/wtsnjp
# Twitter: @wtsnjp
#
# This script is distributed under the MIT License.
You can’t perform that action at this time.