Skip to content

Instantly share code, notes, and snippets.

Avatar

Takuto ASAKURA wtsnjp

View GitHub Profile
View scbxjaholiday.sty
%%
%% This is file 'scbxjaholiday.sty'.
%%
%% Copyright 2020 Takuto ASAKURA (wtsnjp)
%% GitHub: https://github.com/wtsnjp
%% Twitter: @wtsnjp
%%
%% This package is distributed under the MIT License.
%%
View custom_toc2.tex
%#!platex
\documentclass[a4paper,dvipdfmx]{jsarticle}
\usepackage{bxjalipsum}
% \enabletoc するまで何も目次に表示させない
\setcounter{tocdepth}{-2}
% 目次記載を始めたい位置で \enabletoc を宣言する
\newcommand{\enabletoc}{%
% tocdepth カウンタの値はお好きなように
View custom_toc.tex
%#!platex
\documentclass[a4paper,dvipdfmx]{jsarticle}
\usepackage{bxjalipsum}
% 目次を開始したいページ数を設定
\def\tocStartPage{2}
% TeX 言語ハック
\makeatletter
\let\@ori@contentsline\contentsline
View covid19.tex
% +++
% clean_files = ["%B.aux", "%B.log", "data.csv"]
% clobber_files = ["%B.pdf", "%B.png", "%B-2.png"]
% sequence = ["tex2img"]
%
% [programs.tex2img]
% command = "tex2img"
% opts = [
% '--latex "lualatex -shell-escape"',
% "--no-transparent",
View texmf_doc.tsv
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 / clsopts.sty
Created Dec 12, 2019
LaTeX: local class options
View clsopts.sty
%%
%% This is file 'clsopts.sty'.
%%
%% Copyright 2019 Takuto ASAKURA (wtsnjp)
%% GitHub: https://github.com/wtsnjp
%% Twitter: @wtsnjp
%%
%% This package is distributed under the MIT License.
%%
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
You can’t perform that action at this time.