From f2461d37fbf50a9a0469fd575362ab099d8e0390 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 30 Jun 2020 10:08:04 +0900
Subject: acromemory update

---
 .../acromemory/examples/dinos/myDinos_files.tex    | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 texmf-dist/doc/latex/acromemory/examples/dinos/myDinos_files.tex

(limited to 'texmf-dist/doc/latex/acromemory/examples/dinos/myDinos_files.tex')

diff --git a/texmf-dist/doc/latex/acromemory/examples/dinos/myDinos_files.tex b/texmf-dist/doc/latex/acromemory/examples/dinos/myDinos_files.tex
new file mode 100644
index 00000000..427b0dfd
--- /dev/null
+++ b/texmf-dist/doc/latex/acromemory/examples/dinos/myDinos_files.tex
@@ -0,0 +1,71 @@
+% This files needs to be compiled with lualatex or xelatex. In the case of
+% MiniPics-LilDino, a type1 font, xelatex works, but lualatex does not.
+\documentclass{article}
+\usepackage{multido}
+\usepackage{shellesc}
+
+\newcommand\amBaseName{myDinos}
+
+\pagestyle{empty}
+\parindent0pt
+
+\newcount\myCnt \myCnt=97
+\def\thiscolor{red}
+
+\begin{document}
+
+\newwrite \wrtfiles
+\long\def\IR#1{\immediate\write\wrtfiles{#1}}
+
+% Create \amBaseName_01.tex, \amBaseName_02.tex, etc
+\multido{\i=1+1}{10}{%
+\ifnum\i<10\relax\edef\x{0\i}\else\edef\x{\i}\fi
+\immediate\openout\wrtfiles \amBaseName_\x.tex
+\ifodd\i\string\relax
+  \gdef\thiscolor{red}\else
+  \gdef\thiscolor{blue}\fi
+\IR{%
+\string\documentclass{article}^^J%
+\string\usepackage{web}^^J%
+\string\usepackage{multido}^^J%
+\string\usepackage{fontspec}^^J%
+\string\usepackage{anyfontsize}^^J%
+\string\setmainfont[Mapping=tex-text]{MiniPics-LilDinos}^^J%
+\string\let\string\WriteBookmarks\string\relax^^J%
+\string\margins{0pt}{0pt}{0pt}{0pt}^^J%
+\string\screensize{2in}{2in}^^J%
+\string\pagestyle{empty}^^J%
+\string\parindent0pt^^J%
+\string\begin{document}^^J%
+  \string\fontsize{72}{72}\string\selectfont^^J%
+  \string\begin{minipage}[c][2in][c]{2in}^^J%
+  \string\begin{center}^^J%
+  \string\textcolor{\thiscolor}{\string\char\the\myCnt}^^J%
+  \string\end{center}^^J%
+  \string\end{minipage}^^J%
+\string\end{document}
+}
+    \immediate\closeout\wrtfiles
+    \global\advance\myCnt1\relax
+}
+
+% Now compile each of this TEX file using xelatex. Use
+% xelatex here because it successfully uses the MiniPics-LilDinos
+% font. For a different font, perhaps lualatex can be use.
+\multido{\i=1+1}{10}{%
+  \ifnum\i<10\relax\edef\x{0\i}\else\edef\x{\i}\fi
+  \ShellEscape{xelatex \amBaseName_\x.tex}
+}
+
+% Copy \amBaseName_01.pdf to \amBaseName.pdf, it will be use
+% to measure the size of a typical tile.
+\ShellEscape{copy \amBaseName_01.pdf \amBaseName.pdf}
+
+% Convert \amBaseName_01.pdf to \amBaseName.eps, it will be used
+% to measure the size of a typical tile for the dvips -> distiller workflow.
+\ShellEscape{pdftops -eps \amBaseName_01.pdf \amBaseName.eps}
+
+See separate files just created.
+
+\end{document}
+
-- 
cgit v1.2.3

