summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/aeb_pro/acromemory/examples/dinos/myDinos.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/aeb_pro/acromemory/examples/dinos/myDinos.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/aeb_pro/acromemory/examples/dinos/myDinos.tex')
-rw-r--r--macros/latex/contrib/aeb_pro/acromemory/examples/dinos/myDinos.tex43
1 files changed, 43 insertions, 0 deletions
diff --git a/macros/latex/contrib/aeb_pro/acromemory/examples/dinos/myDinos.tex b/macros/latex/contrib/aeb_pro/acromemory/examples/dinos/myDinos.tex
new file mode 100644
index 0000000000..4d2676311c
--- /dev/null
+++ b/macros/latex/contrib/aeb_pro/acromemory/examples/dinos/myDinos.tex
@@ -0,0 +1,43 @@
+\documentclass{article}
+\usepackage{web}
+\usepackage{multido}
+
+\margins{0pt}{0pt}{0pt}{0pt} % left,right,top, bottom
+\screensize{2in}{2in} % height, width
+
+\font\MPLD=MPLD at 1in
+
+\pagestyle{empty}
+\parindent0pt
+
+\newcount\myCnt \myCnt=97
+\def\thiscolor{red}
+
+\begin{document}
+\MPLD
+\multido{\i=1+1}{10}{%
+ \begin{minipage}[c][2in][c]{2in}
+ \ifodd\i\gdef\thiscolor{red}\else\gdef\thiscolor{blue}\fi
+ \begin{center}
+ \textcolor{\thiscolor}{\char\the\myCnt}%
+ \end{center}
+ \end{minipage}
+ \global\advance\myCnt1\relax
+}
+\end{document}
+
+To save each page to the same folder that your icon file is sitting, execute
+the following JavaScript with the icon PDF open in Acrobat.
+
+var thisPath = /.*\//i.exec(this.path)[0];
+var filename = this.documentFileName.replace(/\.pdf$/i,"");
+try {
+ for (var i = 0; i < this.numPages; i++) {
+ var j = i+1;
+ var index = (j < 10 ) ? ("0"+j) : (""+j);
+ this.extractPages({
+ nStart: i,
+ cPath: thisPath+filename+"_" + index +".pdf"
+ });
+ }
+} catch (e) { console.println("Aborted: " + e) }