Skip to content

Instantly share code, notes, and snippets.

@SamWhited
Created March 1, 2012 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamWhited/1947524 to your computer and use it in GitHub Desktop.
Save SamWhited/1947524 to your computer and use it in GitHub Desktop.
PoeTeX: an /ɪɡˈzɑːmpəl/ poem by Sam Whited
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\documentclass[a4paper,11pt]{article}
% Use [PoetryTeX](http://samwhited.github.com/poetrytex/).
\usepackage{fontspec,poetrytex}
% Use a different font for IPA.
\newfontfamily\ipa{Charis SIL}
% Change the indentation length.
\setlength{\ptgap}{1.7em}
\begin{document}
\thispagestyle{empty}
\begin{poem}{PoE\TeX}{An {\ipa /ɪɡˈzɑːmpəl/} poem}
There once was a poem called PoE\TeX\\*
That's name sounded somewhat {\ipa /pəˈθɛtɛk/}.\\*
\ptind It was really quite sad,\\*
\ptind to see pronunciation so bad,\\*
And to read such a terrible {\ipa /ˈlɪme(ə)rɛk/}!
\end{poem}
\end{document}
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8
\documentclass[a4paper,11pt]{article}
% Use [PoetryTeX](http://samwhited.github.com/poetrytex/).
\usepackage{tipa,poetrytex}
% Change the indentation length.
\setlength{\ptgap}{1.7em}
\begin{document}
\thispagestyle{empty}
\begin{poem}{PoE\TeX}{An {\tipaencoding /Ig"zA:mp@l/} poem}
There once was a poem called PoE\TeX\\*
That's name sounded somewhat {\tipaencoding /p@"TEtEk/}.\\*
\ptind It was really quite sad,\\*
\ptind to see pronunciation so bad,\\*
And to read such a terrible {\tipaencoding /"lIme(@)rEk/}!
\end{poem}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment