Skip to content

Instantly share code, notes, and snippets.

View wtsnjp's full-sized avatar

Takuto Asakura wtsnjp

View GitHub Profile
%%
%% 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.
%%
@wtsnjp
wtsnjp / wtref-showkeys-amsmath.tex
Created December 24, 2023 10:03
This doesn't work well
%#!xelatex
\tracingmacros=1
\documentclass{article}
\usepackage[right=15cm]{geometry}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage[color]{showkeys}
\definecolor{refkey}{gray}{.6}
@wtsnjp
wtsnjp / latex_bot.py
Created December 15, 2023 09:51
LaTeX. Not LaTex.
#
# usage: python latex_bot.py
#
import os
import re
import twitter
import logging
from logging.handlers import RotatingFileHandler
@wtsnjp
wtsnjp / _texdoc
Last active February 3, 2023 16:38
A zsh completion for 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.

Keybase proof

I hereby claim:

  • I am wtsnjp on github.
  • I am wtsnjp (https://keybase.io/wtsnjp) on keybase.
  • I have a public key whose fingerprint is 7D45 D966 7541 A27F 4E9F 33AB A86A 25E0 5DCC 52FF

To claim this, I am signing this object:

@wtsnjp
wtsnjp / nabeazz.web
Created December 21, 2022 11:52
NabeAzz in WEB
% nabeazz.web
\centerline{\bf A NabeAzz Program}
\centerline{\sl by wtsnjp}
\vskip .5cm
This is my first program to write with the \.{WEB} system. This program is a
solution of the NabeAzz problem, which is a well-known problem in Japanese
{\TeX} community as the counterpart to the FizzBuzz problem
(see \.{https://zrbabbler.hatenablog.com/entry/20110815/1313398638}).
@ First of all, decide how many numbers to print.
#!/usr/bin/env texlua
--
-- This is file 'wtspingif.lua'.
--
-- Copyright 2020 Takuto ASAKURA (wtsnjp)
-- GitHub: https://github.com/wtsnjp
-- Twitter: @wtsnjp
--
-- This package is distributed under the MIT License.
% +++
% latex = "pdflatex"
% sequence = ["latex", "pdf2png", "png2gif"]
%
% [programs.pdf2png]
% command = "magick"
% opts = [
% "%B.pdf",
% "-background white",
% "-alpha remove",
We can't make this file beautiful and searchable because it's too large.
File Producer CreationDate
/usr/local/texlive/2019/texmf-dist/doc/chktex/ChkTeX.pdf pdfTeX-1.40.17 D:20160916074930+09'00'
/usr/local/texlive/2019/texmf-dist/doc/vlna/vlna.pdf GNU Ghostscript 7.07 nil
/usr/local/texlive/2019/texmf-dist/doc/metapost/drv/drv-guide.pdf dvips + GPL Ghostscript 8.71 D:20110222185326+01'00'
/usr/local/texlive/2019/texmf-dist/doc/metapost/mptrees/mptrees-doc.pdf pdfTeX-1.40.17 D:20170601215109+02'00'
/usr/local/texlive/2019/texmf-dist/doc/metapost/mcf2graph/mcf_manual.pdf pdfTeX-1.40.19 D:20191215121502+09'00'
/usr/local/texlive/2019/texmf-dist/doc/metapost/mcf2graph/mcf_example.pdf pdfTeX-1.40.19 D:20191215121613+09'00'
/usr/local/texlive/2019/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.pdf LuaTeX-1.07.0 D:20191215121648+09'00'
/usr/local/texlive/2019/texmf-dist/doc/metapost/fiziko/fiziko.pdf LuaTeX-0.80.0 D:20190308143229+03'00'
/usr/local/texlive/2019/texmf-dist/doc/metapost/mpattern/mpattern_test.pdf http://createpdf.adobe.com V5.6.4 D:20050531114104-07'00'
@wtsnjp
wtsnjp / sctexdoc.lua
Last active August 10, 2020 13:12
画期的な Texdoc
#!/usr/bin/env texlua
--
-- This is file 'sctexdoc.lua'.
--
-- Copyright 2017-2020 Takuto ASAKURA (wtsnjp)
-- GitHub: https://github.com/wtsnjp
-- Twitter: @wtsnjp
--
-- This package is distributed under the MIT License.