Skip to content

Instantly share code, notes, and snippets.

View zr-tex8r's full-sized avatar
💭
🍣🦆⛄

Takayuki YATO zr-tex8r

💭
🍣🦆⛄
View GitHub Profile
@zr-tex8r
zr-tex8r / jsclasses.dtx.diff
Created February 7, 2014 00:43
LaTeX* Adding to jsclasses support for new base font size settings
--- org/jsclasses.dtx Thu Jan 02 19:42:00 2014
+++ jsclasses.dtx Mon Feb 03 01:51:42 2014
@@ -301,6 +301,10 @@
\DeclareOption{43pt}{\renewcommand{\@ptsize}{33}}
\DeclareOption{12Q}{\renewcommand{\@ptsize}{1200}}
\DeclareOption{14Q}{\renewcommand{\@ptsize}{1400}}
+\DeclareOption{10ptj}{\renewcommand{\@ptsize}{1001}}
+\DeclareOption{10.5ptj}{\renewcommand{\@ptsize}{1051}}
+\DeclareOption{11ptj}{\renewcommand{\@ptsize}{1101}}
+\DeclareOption{12ptj}{\renewcommand{\@ptsize}{1201}}
@zr-tex8r
zr-tex8r / hello.tex
Created March 22, 2014 02:41
An example of a TeX document that is not a LaTeX document. (plain TeX)
Hello, plain {\TeX} world!\bye
@zr-tex8r
zr-tex8r / sample.tex
Last active August 29, 2015 14:02
LaTeX source for a sample image
\documentclass{article}
\usepackage[papersize=60bp,margin=10bp]{geometry}
\begin{document}
\pdfpageattr{/CropBox[5 5 55 55]}
\noindent\TeX!
\end{document}
@zr-tex8r
zr-tex8r / bxxbb.sty
Last active August 29, 2015 14:02
LaTeX: to create xbb files (for use with dvipdfmx) only using pdfLaTeX
% bxxbb.sty
%
% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxxbb}[2014/06/15 v0.1]
% preparationd
\def\bxxb@pkgname{bxxbb}
% environment check
@zr-tex8r
zr-tex8r / image.tex
Last active August 29, 2015 14:02
LaTeX: What kind of bounding boxes do dvipdfmx use in including PDF image files?
% This is a pdfLaTeX document.
\documentclass{article}
% The papersize is set to 250bp x 250bp, which will
% make the MediaBox equal [0 0 250 250].
\usepackage[papersize=250bp,margin=0pt,noheadfoot]{geometry}
\pagestyle{empty}
% No compression; PDF version still might be 1.5.
\pdfcompresslevel=0
\pdfobjcompresslevel=0
\setlength{\parindent}{0pt}
@zr-tex8r
zr-tex8r / image.tex
Created June 30, 2014 13:15
LaTeX: mediabb が結局アレな件
% This is a pdfLaTeX document.
\documentclass{article}
\usepackage[papersize=250bp,margin=0pt,noheadfoot]{geometry}
\pagestyle{empty}
\pdfcompresslevel=0
\pdfobjcompresslevel=0
\setlength{\parindent}{0pt}
\begin{document}
\pdfpageattr{%
/CropBox [50 50 150 150]
@zr-tex8r
zr-tex8r / tcxmediabb.sty
Created August 5, 2014 10:41
LaTeX: dvipdfmx で mediabb できるかも知れないやつ
% tcxmediabb.sty
%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tcxmediabb}[2014/08/05 v0.1]
%% preparations
\def\tcqmb@pkgname{tcxmediabb}
\def\tcqmb@error{\PackageError\tcqmb@pkgname}
\def\tcqmb@warn{\PackageWarningNoLine\tcqmb@pkgname}
@zr-tex8r
zr-tex8r / tceasylist.sty
Last active August 29, 2015 14:06
LaTeX: An extension to easylist, where an arbitrary symbol can be used as list starters
%
% tceasylist.sty
%
%% package declaratoin
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tceasylist}[2014/09/15 v0.2]
%% preparations
\def\tcel@pkgname{tceasylist}
\def\tcel@error{\PackageError\tcel@pkgname}
@zr-tex8r
zr-tex8r / tcpdfcrop.bat
Created October 16, 2014 17:38
バッチで作る、劣化版pdfcrop
@echo off
setlocal
set FROM=%~n1
set TO=%~n2
set TPX=_tcpc
if not exist %FROM%.pdf exit /B
if "%TO%"=="" exit /B
if exist %TO%.pdf del %TO%.pdf
if exist %TO%.pdf del exit /B
gswin32c -dBATCH -dNOPAUSE -q -sDEVICE=bbox %FROM%.pdf 2>%TPX%1.tex
@zr-tex8r
zr-tex8r / message.txt
Created November 10, 2014 15:24
A message on the day 11/11
0092,0101,0120,0112,0097,0110,0100,0097,0102,0116,0101,0114,3949,9304,3688,3683,9257,2678,2558,6904,7226,2767,5950,7159,4078,3822,4303,3481,6873,6896,9255,2045,6876,7370,3159,2257,2246,7346,6865,3166,2655,8006,3070,2560,4956,6795,6527,2523,3167,5112,6895,6815,6879,3042,2885,6467,1535,2906,8397,3012,1486,2904,2737,2248,7337,7157,4695,4092,4063,6607,4083,2904,8395,7358,1419,2200,6399,6524,2829,2502,4089,4060,6989,3820,2683,2273,2811,8442,2769,5951,0889,3315,6316,3428,4886,5112,3783,6126,2514,5911,2643,6447,6271,2896,2967,3293,6880,6174,9258,7305,5116,1973,2043,9263,5116,2571,2629,6830,6005,4697,2517,7347,2982,3028,2157,6392,7967,3029,4061,2777,0896,7224,6877,8397,9260,2245,2621,9297,2634,3952,6868,2251,7369,7037,9304,3694,5972,6316,2144,3190,2164,2257,5886,7317,3412,6127,6123,6830,3685,3584,4303,8441,1532,4078,2886,6461,6619,1529,2955,8063,7301,2648,7039,7244,6001,8014,3345,3085,3172,8398,3479,3172,5023,3698,2522,2243,8117,8396,3040,3258,2558,5948,0898,7372,2746,2612,8394,3721,7422,4091,2144,1867,2942,2192,2045