Skip to content

Instantly share code, notes, and snippets.

@marbu
Last active September 8, 2017 21:27
Show Gist options
  • Save marbu/8f2f9bbb84b02d9786b7d08cb5392b04 to your computer and use it in GitHub Desktop.
Save marbu/8f2f9bbb84b02d9786b7d08cb5392b04 to your computer and use it in GitHub Desktop.
Exporting initials typeseted in yinit font into svg
*~
*.swp
*.aux
*.log
*.pdf
*.dvi
*.svg
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass[a4paper]{article}
% language and fonts
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% lettrine package for typesetting initials
\usepackage{lettrine}
% use yinit for for letterine initials
\renewcommand{\LettrineFontHook}{\usefont{U}{yinit}{m}{n}}
% turn off page numbering
\pagenumbering{gobble}
\begin{document}
\lettrine{V}{oluptate laudantium} voluptate et consequatur suscipit molestiae.
Perspiciatis amet molestiae fugiat odio aut sint. Non ut fuga harum sit illum
atque laborum. Qui deleniti accusamus nihil. Voluptatem delectus voluptas omnis
aut.
\end{document}
.PHONY: all clean
all: example.pdf.svg example.dvi.svg
example.pdf: example.tex
pdflatex $? -o $@
example.dvi: example.tex
latex $? -o $@
example.pdf.svg: example.pdf
pdf2svg $? $@
example.dvi.svg: example.dvi
dvisvgm -n $? -o $@
clean:
rm -f *.pdf *.dvi *.svg *.aux *.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment