I am using the svg
package to include flag emojis as .svg files in my text with \includesvg{}
. However, since I need to render a lot of flags which are the same, and each flag takes a lot of time, it hits the Overleaf compile time limit. Is there a way of optimising the rendering of repeats of the same .svg file, so that it doesn't time out? Unfortunately I can't use \emoji
as the class file I am using requires pdflatex as a compiler.
\documentclass{article}
% SVG figures
\usepackage{svg}
\def\sweflag{\includesvg[width=1.5em]{flags/se}}
\begin{document}
Sweden is great! \sweflag\sweflag\sweflag\sweflag\sweflag\sweflag\sweflag\sweflag\sweflag
\end{document}
\emoji
for sure