Last active
December 30, 2020 18:08
-
-
Save wtsnjp/d6d9fa300efa392c6b22412d16481278 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% +++ | |
% latex = "pdflatex" | |
% sequence = ["latex", "pdf2png", "png2gif"] | |
% | |
% [programs.pdf2png] | |
% command = "magick" | |
% opts = [ | |
% "%B.pdf", | |
% "-background white", | |
% "-alpha remove", | |
% "-density 144", | |
% ] | |
% args = ["%B.png"] | |
% | |
% [programs.png2gif] | |
% command = "magick" | |
% opts = ["-delay 5"] | |
% args = [ | |
% "%B-0.png", | |
% "%B-1.png", | |
% "%B-2.png", | |
% "%B-3.png", | |
% "%B-4.png", | |
% "%B-5.png", | |
% "%B-6.png", | |
% "%B-7.png", | |
% "%B-8.png", | |
% "%B-9.png", | |
% "%B-10.png", | |
% "%B-11.png", | |
% "%B-12.png", | |
% "%B-13.png", | |
% "%B-14.png", | |
% "%B-15.png", | |
% "%B-16.png", | |
% "%B-17.png", | |
% "%B-18.png", | |
% "%B-19.png", | |
% "%B-20.png", | |
% "%B-21.png", | |
% "%B-22.png", | |
% "%B-23.png", | |
% "%B-24.png", | |
% "%B-25.png", | |
% "%B-26.png", | |
% "%B-27.png", | |
% "%B-28.png", | |
% "%B-29.png", | |
% "%B-30.png", | |
% "%B-31.png", | |
% "%B.gif" | |
% ] | |
% +++ | |
\documentclass{article} | |
\usepackage[paperwidth=15cm, paperheight=15cm, margin=0cm]{geometry} | |
\usepackage[svgnames]{xcolor} | |
\usepackage{scsnowman} | |
\usepackage{tcfaspin} | |
\makeatletter | |
\chardef\faAllTicks=32 | |
\chardef\faStopTicks=0 | |
\long\def\beginframe#1\endframe{% | |
#1\clearpage | |
\edef\x{\noexpand\chardef\noexpand\faStopTicks | |
=\number\numexpr\faStopTicks+1\relax}\x\relax | |
\ifnum\faStopTicks<\faAllTicks\beginframe #1\endframe\fi} | |
\makeatother | |
\pagestyle{empty} | |
\begin{document} | |
\centering | |
\beginframe | |
\mbox{}\vfill | |
\faSpin{\scsnowman[scale=40, | |
muffler=Red,hat=Green,buttons=RoyalBlue, | |
arms=Brown,snow=SkyBlue]}% | |
\vfill | |
\endframe | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% +++ | |
% latex = "pdflatex" | |
% sequence = ["latex", "tex2img"] | |
% | |
% [programs.tex2img] | |
% command = "tex2img" | |
% opts = [ | |
% "--resolution 5", | |
% "--keep-page-size", | |
% "--no-transparent", | |
% "--delete-display-size", | |
% "--merge-output-files", | |
% '--animation-delay "0"', | |
% ] | |
% args = ["%B.pdf", "%B.gif"] | |
% +++ | |
\documentclass{article} | |
\usepackage[paperwidth=15cm, paperheight=15cm, margin=0cm]{geometry} | |
\usepackage[svgnames]{xcolor} | |
\usepackage{scsnowman} | |
\usepackage{tcfaspin} | |
\makeatletter | |
\chardef\faAllTicks=32 | |
\chardef\faStopTicks=0 | |
\long\def\beginframe#1\endframe{% | |
#1\clearpage | |
\edef\x{\noexpand\chardef\noexpand\faStopTicks | |
=\number\numexpr\faStopTicks+1\relax}\x\relax | |
\ifnum\faStopTicks<\faAllTicks\beginframe #1\endframe\fi} | |
\makeatother | |
\pagestyle{empty} | |
\begin{document} | |
\centering | |
\beginframe | |
\mbox{}\vfill | |
\faSpin{\scsnowman[scale=40, | |
muffler=Red,hat=Green,buttons=RoyalBlue, | |
arms=Brown,snow=SkyBlue]}% | |
\vfill | |
\endframe | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% +++ | |
% sequence = ["tcspingif"] | |
% [programs.tcspingif] | |
% command = "tcspingif" | |
% opts = ["-d 144", "-e pdflatex"] | |
% +++ | |
\documentclass[margin=25pt]{standalone} | |
\usepackage[svgnames]{xcolor} | |
\usepackage{scsnowman}% ゆきだるま☃! | |
\usepackage{tcfaspin}% 回転! | |
\begin{document} | |
% \scsnowman を回転させる | |
\faSpin{\scsnowman[scale=40, | |
muffler=Red,hat=Green,buttons=RoyalBlue, | |
arms=Brown,snow=SkyBlue]}% | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ time llmk -s faster-im.tex llmk -s faster-im.tex 15.94s user 3.72s system 218% cpu 9.017 total