This is a version of texmas.tex where TCX conversion is decoded.
It is just an ordinary (yes🙃) plain TeX code, so you can compile it with pdftex
.
pdftex texmasd.tex
\catcode`\{=1 \catcode`\}=2 \catcode`\$=3 \catcode`\^=7 | |
\mathcode`\+="202B \mathcode`\-="2200 \mathcode`\=="303D | |
\hsize=77mm \vsize=22mm \scriptspace=0.5pt | |
\parfillskip=0pt plus 1fil \nulldelimiterspace=1.2pt | |
\delimiterfactor=901 \delimitershortfall=5pt | |
\thinmuskip=3mu \medmuskip=4mu \thickmuskip=5mu | |
\font\tt=cmr10 \font\st=cmr7 \tt\fam0 | |
\font\tm=cmmi10 \font\ts=cmsy10 \font\tx=cmex10 | |
\textfont0=\tt \scriptfont0=\st \scriptscriptfont0=\st | |
\textfont1=\tm \scriptfont1=\tm \scriptscriptfont1=\tm |
This is a version of texmas.tex where TCX conversion is decoded.
It is just an ordinary (yes🙃) plain TeX code, so you can compile it with pdftex
.
pdftex texmasd.tex
// Typst version as int array, such as (0, 11, 0). | |
#let version = { | |
// >=0.9.0 : gets exact version | |
// <0.9.0 : error (sys.version is undefined) | |
let sys-version() = { | |
array(sys.version) | |
} | |
// checks whether chr is a valid counting symbol | |
let check-by-numbering(chr) = { | |
"B" not in str(numbering(chr + "A", 2, 1)) |
%#!lualatex | |
\documentclass{article} | |
\usepackage[papersize={100mm,148mm},margin=0cm, | |
noheadfoot]{geometry} | |
\usepackage{luatexja-fontspec} | |
\usepackage{amsmath,tikz,graphicx,xcolor,xparse,pgfmath,ifthen} | |
\newboolean{soeikakupoptai} | |
%↓チュノムの漢字を出力するフォントの設定. | |
%trueの場合は"創英角ポップ体"が使われる. | |
%falseの場合は"花園明朝A/B"が使われる. |
#let TeX = { | |
[T]; "\u{2060}" | |
box({h(-0.1667em); box(move(dy: 0.2153em)[E]); h(-0.125em)}) | |
"\u{2060}"; [X] | |
} | |
#let LaTeX = { | |
[L]; "\u{2060}" | |
box(style(styles => { | |
let size = measure([T], styles) | |
h(-0.36em) |
Compile with:
pdftex --translate-file ./texmas texmas.tex
// \begingroup \catcode`\#=12 | |
#let s = ``` | |
\endgroup \newdimen\pwd \newdimen\pht | |
\pwd=160bp \pht=90bp | |
\ifnum\ifx\pdfoutput\unDef0\else\pdfoutput\fi>0 | |
\pdfpagewidth=\pwd \pdfpageheight=\pht \let\os\relax | |
\else \def\os{\special{papersize=\the\pwd,\the\pht}}\fi | |
\shipout\vbox to\pht{\os \font\ff=cmr10 at 36bp \vskip-1inplus1fil | |
\moveleft1in\hbox to\pwd{\hfil\ff \TeX!!\hfil}\vskip1inplus1fil} | |
\output{\setbox0\box255\deadcycles=0}\bye |
% upLaTeX+dvipdfmx用の横組みの文書の例 | |
\documentclass[uplatex,dvipdfmx,a4paper]{jsarticle} | |
\usepackage{schira} | |
\begin{document} | |
吾輩は{\schira}である。 | |
意味はまだない。 | |
\end{document} |