• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiona0f0d9a326aefc2b36de202c7383cd86cfda76a8 (tree)
Time2022-12-25 06:30:03
AuthorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

A simple script to write a letter from Babbo Natale.

Change Summary

Incremental Difference

diff -r 289936490e7e -r a0f0d9a326ae latex-documents/babbo-natale.tex
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latex-documents/babbo-natale.tex Sat Dec 24 22:30:03 2022 +0100
@@ -0,0 +1,71 @@
1+% \documentclass[12pt]{article}
2+
3+
4+% Use xelatex (and not pdflatex!!!) to compile
5+
6+\documentclass[17pt]{extarticle}
7+
8+\usepackage{fontspec}
9+
10+\usepackage[doublespacing]{setspace}% line spacing
11+% \usepackage[T1]{fontenc}
12+
13+\usepackage[svgnames]{xcolor}
14+\usepackage{graphicx}
15+
16+% thanks to Bruno Le Floch: http://tex.stackexchange.com/q/9331/4012
17+% and in his comments to http://tex.stackexchange.com/a/29458/4012
18+\usepackage{rotating}
19+\usepackage[first=-6,last=6]{lcg}% you can play around with these values
20+\makeatletter
21+\newcommand{\globalrand}{\rand\global\cr@nd\cr@nd}
22+\makeatother
23+
24+\newcommand{\randomrotation}[1]{\globalrand\turnbox{\value{rand}}{#1}\phantom{#1}}
25+
26+
27+\setmainfont{FountainPen.ttf}
28+
29+
30+% thanks to Martin Scharrer: http://tex.stackexchange.com/q/11598/4012
31+\makeatletter
32+\def\cthulhu#1{%
33+ \@cthulhu#1 \@empty
34+}
35+\def\@cthulhu#1 #2{%
36+ \randomrotation{#1}\space
37+ \ifx #2\@empty\else
38+ \expandafter\@cthulhu
39+ \fi
40+ #2%
41+}
42+\makeatother
43+% ----------
44+
45+
46+
47+% \renewcommand*{\rmdefault}{fts}
48+
49+
50+\begin{document}\pagestyle{empty}
51+
52+\cthulhu{
53+Cari bambini,}
54+ \newline
55+\cthulhu{
56+Vi ringrazio a nome mio e delle renne per la vostra gentilezza. Le mie
57+renne erano stanche e sono state contente di mangiare le carote che
58+avete lasciato.
59+Io invece avevo fame e ho mangiato con piacere i sushki che ho trovato
60+sotto l'albero. Spero che gradirete i doni che vi ho lasciato. Siate
61+buoni e obbedite ai vostri genitori anche nel 2023.
62+Vi auguro buon Natale e un felice 2023
63+}
64+
65+
66+
67+\cthulhu{
68+Babbo Natale
69+}
70+
71+\end{document}