auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set background using \special{...}


From: David Kastrup
Subject: Re: Set background using \special{...}
Date: Wed, 08 Feb 2023 20:58:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

jfbu <jfbu@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]