[pstricks] fonts and uput

Patrick Drechsler patrick at pdrechsler.de
Tue Jun 20 01:47:45 CEST 2006


Richard Hensh wrote on 19 Jun 2006 20:27:28 MET:

> How do I get the uput command to use a particular font? 
>
> In the following minimal example, I would like the word
> ``font'' to be typeset using the default fonts from the
> document. Instead, the font chosen seems to be CMMI10?

> Is this a PSTricks restriction?

You were using math fonts within the `uput' command.

--8<------------------------schnipp------------------------->8---
\documentclass[10pt,dvips]{article}

\usepackage{pst-plot,pst-math,pstricks-add}%

%%Use the type-1 Latin Modern fonts.
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}

\begin{document}

font

$font$

\begin{pspicture}(-6,6)(-6,6)
  \uput{4pt}[0](2,1){font}
\end{pspicture}

\begin{pspicture}(-6,6)(-6,6)
  \uput{4pt}[0](2,1){$font$}
\end{pspicture}

\end{document}
--8<------------------------schnapp------------------------->8---

HTH

Patrick
-- 
DJ:"You may not say YES,NO,BLACK,WHITE. OK, let's start. Are you still
sober?"
Caller: "No."
              Friday night radio documents the search for intelligence 




More information about the PSTricks mailing list