Last active
September 8, 2017 21:27
-
-
Save marbu/8f2f9bbb84b02d9786b7d08cb5392b04 to your computer and use it in GitHub Desktop.
Exporting initials typeseted in yinit font into svg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ | |
*.swp | |
*.aux | |
*.log | |
*.dvi | |
*.svg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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