• 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

Revisión1cf4ef796c9808f54a66c13761235251315d6882 (tree)
Tiempo2013-02-07 04:22:04
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

How to write a text with TeX that looks hand-written.

Cambiar Resumen

Diferencia incremental

diff -r 114af65c8c40 -r 1cf4ef796c98 latex-documents/signerica.tex
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latex-documents/signerica.tex Wed Feb 06 20:22:04 2013 +0100
@@ -0,0 +1,58 @@
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{Signerica_Fat.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+Some text written by a crazed madman.
54+Also, can I load the fonts as a sort of preset/alias? Since for a lot I have basically font families, so around 10 variants (oblique, bold, bold oblique, regular, etc). I would like to avoid repeating a declaration if possible.}
55+
56+
57+
58+\end{document}
\ No newline at end of file