banner



How To Make Cthulhu Template

(Improved answer thanks to Bruno'due south assist on his code)

I've implemented some of the things I mentioned in my earlier answer, but I felt this was different enough to get a separate answer.

Once once again, tex.sx provided me with a couple of things I needed for this. Bruno Le Floch wrote some code that rotates arguments at a random angle and helped shortening it for this respond. Martin Scharrer showed how to execute a command for every word. Cheers to both of them.

Starting at the top of the code, here'south what I did to change the pattern:

  • default font size 17 via extarticle document class
  • double line spacing
  • define a command \eldersign that inserts an elder sign, sized in relation to the electric current font size. You lot demand to find an elder sign that y'all can utilize, I put in the placeholder eldersignimagefile. I recommend using a PNG image or another format providing groundwork transparency.
  • change the default font to Teen Spirit – you can utilize whatsoever font you lot similar, there certainly are better ones on the Internet. Use them with XeLaTeX and fontspec, as I described in my other answer. (I haven't tested Bruno's and Martin's code with XeLaTeX though.) With a different font, you might desire to cull a unlike font size and different rotation angles.
  • remove page number
  • free parchment groundwork paradigm that I institute at http://www.alfredom.com/fine art/free-half-dozen.htm, here named backgroundimagefile
  • centered everything
  • changed the text color to MidnightBlue (svgnames color scheme)

Whenever you lot desire to typeset text crazily, you have to laissez passer it equally an argument to \cthulhu. For an elderberry sign, but utilise \eldersign. Yous might desire to adjust your prototype to suit the text colour.

DISCLAIMER

This is just hacked together and you will very probable run into issues once you kickoff using it more extensively. Take it as inspiration. It was fun for me putting it together. Feel complimentary to make suggestions on how to improve this.

          \documentclass[17pt]{extarticle}% This is a document class providing more font size options  \usepackage[svgnames]{xcolor} \usepackage{graphicx} \usepackage{emerald}% font package \usepackage[doublespacing]{setspace}% line spacing \usepackage[T1]{fontenc} \usepackage{wallpaper}  % cheers to Bruno Le Floch: https://tex.stackexchange.com/q/9331/4012 % and in his comments to https://tex.stackexchange.com/a/29458/4012 \usepackage{rotating} \usepackage[first=-half dozen,last=6]{lcg}% you can play around with these values \makeatletter \newcommand{\globalrand}{\rand\global\cr@nd\cr@nd} \makeatother  \newcommand{\randomrotation}[i]{\globalrand\turnbox{\value{rand}}{#1}\phantom{#one}}  % thanks to Martin Scharrer: https://tex.stackexchange.com/q/11598/4012 \makeatletter \def\cthulhu#ane{%     \@cthulhu#1 \@empty } \def\@cthulhu#1 #2{%    \randomrotation{#1}\space    \ifx #2\@empty\else     \expandafter\@cthulhu    \fi    #2% } \makeatother % ----------  \newcommand{\eldersign}{\raisebox{-.5\height}{\includegraphics[height=3ex]{eldersignimagefile}}}  \renewcommand*{\rmdefault}{fts}  \brainstorm{document}\pagestyle{empty}\CenterWallPaper{}{backgroundimagefile}  \centering% that madman wouldn't justify his writings \color{MidnightBlue}% my pick for "looks like ink"  \cthulhu{Hello, I am crazy. I am a Cthulhu worshipping gibbering madman, unhinged by the horrors I accept witnessed. I am a Cthulhu worshipping gibbering madman, unhinged by the horrors I have witnessed. I am a Cthulhu worshipping gibbering madman, unhinged by  the horrors I have witnessed. I am a Cthulhu worshipping gibbering madman, unhinged by  the horrors I take witnessed. I am a Cthulhu worshipping gibbering madman, unhinged by  the horrors I have witnessed.} \eldersign  \end{document}                  

picture of the output

On the other points you mentioned: I don't think Dropcaps would look good here; they convey something of a plannedness which wouldn't be in the way of my madman. As for font size changes and random word spacing, I don't know how to exercise that automarandomly.

How To Make Cthulhu Template,

Source: https://tex.stackexchange.com/questions/29402/how-do-i-make-my-document-look-like-it-was-written-by-a-cthulhu-worshipping-madm

Posted by: bishoplonswellot.blogspot.com

0 Response to "How To Make Cthulhu Template"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel