Skip to content

Instantly share code, notes, and snippets.

View wtsnjp's full-sized avatar

Takuto Asakura wtsnjp

View GitHub Profile

TeX 芸人実力判定問題の一覧

問題の難易度が出題者により明確に示されていない場合や元ネタがリンク切れの場合は ? 印付きで筆者の独断と偏見に基づき代替の値を入れています.

一緒に TeX 芸人有段者を目指しましょう!

警告:TeX 芸は,あなたにとって時間浪費の原因の一つとなります.このリストは用法用量を守って正しくお使いください.

問題名 難易度 リンク
#!/usr/bin/env texlua
--
-- usage: texlua fuzzy.lua KEYWORD
--
kpse.set_program_name(arg[-1])
function main()
if not arg[1] then
\documentclass{article}
\usepackage{amsmath}
\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\makeatletter
\newcommand{\oopen}{%
\bgroup\hskip-.4em
\mathop{(}\limits^{\vbox to -1.2\ex@{\kern-\tw@\ex@
\hbox{\hskip.4em\scriptsize\ensuremath{\circ}}\vss}}%
@wtsnjp
wtsnjp / rainbow.tex
Last active February 26, 2018 05:01
\documentclass{article}
\usepackage{xcolor}
\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\makeatletter
\chardef\popen=`(
\chardef\pclose=`)
\catcode`(=\active
\catcode`)=\active
%#!lualatex
\documentclass[uplatex]{jsarticle}
\usepackage[utf8]{inputenc}
\usepackage[prefercjkvar]{pxcjkcat}
\cjkcategory{cjk12}{noncjk}
\usepackage{okumacro}
\usepackage{newunicodechar}
%#!lualatex
\documentclass{article}
\usepackage{xparse}
\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\ExplSyntaxOn
\NewDocumentCommand { \MakeRustAre } { m }
{
\tl_set:Nn \l_tmpa_tl { #1 }
\makeatletter
\newif\if@wrong\@wrongtrue
\def\CheckAnswer#1{%
\def\x@ans{E394D353A8067671DDDEC726F1D054C8}%
\let\x@tmpa\@empty
\expandafter\@tfor\expandafter\@char\expandafter:\expandafter=\x@ans
\do{\xdef\x@tmpa{\expandafter\x@tmpa\expandafter\string\@char}}%
\xdef\x@tmpb{\pdfmdfivesum{#1}}%
\ifx\x@tmpa\x@tmpb\relax
%#!lualatex
\documentclass[12pt]{beamer}
\usepackage{arev}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
% hack
\IfFileExists{self.pdf}{%
\directlua{os.rename("self.pdf", "self2.pdf")}
\documentclass{article}
\usepackage{textcomp}
\makeatletter
\let\orgtexttt\texttt
\edef\x@store{\the\catcode`\'}
\catcode`\'=\active
\def\texttt{%
\bgroup
\catcode`\'=\active
@wtsnjp
wtsnjp / ltxpkg-install.zsh
Last active June 18, 2018 12:03
Installing LaTeX packages to your local TEXMF tree (TEXMFHOME)
#
# This is file 'ltxpkg-install.zsh'.
#
# Copyright (c) 2018 Takuto ASAKURA (wtsnjp)
# GitHub: https://github.com/wtsnjp
# Twitter: @wtsnjp
#
# This package is distributed under the MIT License.
#