jfbu <j...@free.fr> writes: > Le 08/02/2023 à 00:15, Dimitar Dimitrov a écrit : >> Suppose I have the following `math.tex` file >> ```latex >> \documentclass[12pt]{article} >> \special{background White} >> \usepackage[active,tightpage]{preview} >> \begin{document} >> \begin{preview} >> \fontsize{14}{17}\selectfont $x$ >> \end{preview} >> \end{document} >> ``` >> I want to get an SVG file with a white background, so I do: >> 1. `latex math.tex` >> 2. `dvisvgm -o math.svg —no-fonts math.dvi` > > (Seems -- does transmogrified into en em-dash here, probably by your mailer) > > works for me after moving the `\special{background White}` inside the > preview environment > > I tried with Red too to confirm
The proper way to get it into every output file is by using \AtBeginDvi{\special{background White}} -- David Kastrup