|
From: <Giu...@ct...> - 2004-10-27 13:41:20
|
Hi everybody, I would like to use a calligraphic lower-case l (LaTeX: \ell) in a label using gnuplot (set terminal postscript enhanced). It seems not listed among the available characters within the Symbol font. What other relatively "standard" postscript font would you recommend me to use, hopefully containing also other relevant math characters? Thank you in advance. Giuseppe. |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-27 20:08:43
|
On Wednesday 27 October 2004 06:41 am, Giu...@ct... wrote: > > I would like to use a calligraphic lower-case l (LaTeX: \ell) in a label > using gnuplot (set terminal postscript enhanced). > > It seems not listed among the available characters within the Symbol font. Correct. > What other relatively "standard" postscript font would you recommend me to > use, hopefully containing also other relevant math characters? The only fonts promised [sort of] by the Adobe PostScript spec are Times, Helvetica, Courier, and Symbol. You are of course free to specify any font you like, but you cannot count on it being present in the device you are printing to, so you must embed it in your PostScript file. If TeX is installed on your system then you probably have at least some subset of the Computer Modern fonts used by TeX. Probably they are in /usr/share/texmf/fonts/type1/ or /usr/local/share/texmf/fonts/type1/ All of these are usable by gnuplot, with the caveat that the character encodings for the Computer Modern fonts are idiosynchratic in the extreme. You should probably test the font using the demo script ..../demo/charset.dem which can help you figure out which character codes correspond to which glyphs. So for example: set terminal postscript enhanced "texsya" \ fontfile /usr/share/texmf/fonts/type1/public/txfonts/txbsya.pfb set output 'texsya.ps' load 'charset.dem' Having said all that, I have to point out that so far as I know \ell is not defined here; it must be a special from one of the add-on LaTeX packages. I believe the font you want is (on my machine anyhow) /usr/share/texmf/fonts/afm/yandy/mathtime/rmtmi.afm But you would have to convert this from an *.afm file to a *.pfa or *.pfb file in order for gnuplot to import it. hope that helps -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Daniel J S. <dan...@ie...> - 2004-10-27 20:55:12
|
Ethan Merritt wrote:
>Having said all that, I have to point out that so far as I know \ell is not
>defined here; it must be a special from one of the add-on LaTeX packages.
>
Looking in the LaTeX companion, I don't see any special symbol next to
the \ell. But this is a math font only character. So to access it you
must have some trick to get into the math environment. I'm not sure how
you are using this, but if it using the font directly, not via TeX or
LaTeX, then you should use the symbol's definition, which can be found
in fontmath.ltx as:
\DeclareSymbolFont{letters} {OML}{cmm} {m}{it}
\DeclareMathSymbol{\ell}{\mathord}{letters}{"60}
(Note that LaTeX math fonts are not as flexible as the normal text font.)
Dan
|
|
From: Harald H. <h.h...@tu...> - 2004-10-27 20:32:22
|
On Wed, 27 Oct 2004 Giu...@ct... wrote:
> Hi everybody,
>
> I would like to use a calligraphic lower-case l (LaTeX: \ell) in a label
> using gnuplot (set terminal postscript enhanced).
>
> It seems not listed among the available characters within the Symbol font.
If you have LaTeX installed gnuplot has normally has access to these
fonts. You just have to embed the font file and access the glyph by the
octal code. See ps_fontfile_doc.pdf that is included in gnuplot.
Here (untested):
set terminal postscript enhanced fontfile 'cmmi10.pfb'
set label "{/CMMI10 \140}" at 0,0
> What other relatively "standard" postscript font would you recommend me to
> use, hopefully containing also other relevant math characters?
In this way, you have access to all math characters LaTeX knows (that are
available as Type 1 fonts).
Harald
--
Harald Harders
h.h...@tu...
http://www.harald-harders.de
|
|
From: Harald H. <h.h...@tu...> - 2004-10-27 20:36:23
|
On Wed, 27 Oct 2004, Ethan Merritt wrote: > All of these are usable by gnuplot, with the caveat that the character > encodings for the Computer Modern fonts are idiosynchratic in the extreme. > You should probably test the font using the demo script ..../demo/charset.dem > which can help you figure out which character codes correspond to which > glyphs. So for example: > set terminal postscript enhanced "texsya" \ > fontfile /usr/share/texmf/fonts/type1/public/txfonts/txbsya.pfb > set output 'texsya.ps' > load 'charset.dem' > > Having said all that, I have to point out that so far as I know \ell is not > defined here; it must be a special from one of the add-on LaTeX packages. See my other post. The \ell ist in the standard font cmmi10.pfb. > I believe the font you want is (on my machine anyhow) > /usr/share/texmf/fonts/afm/yandy/mathtime/rmtmi.afm This is only an Adobe Font Metric file which does not contain any glyph information. It is part of the MathTime font by the company Y&Y (RIP). > But you would have to convert this from an *.afm file to a *.pfa or *.pfb > file in order for gnuplot to import it. That is not possible. You have to have either a pfb or a pfa of a font (or, or course ttf). Harald -- Harald Harders h.h...@tu... http://www.harald-harders.de |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-27 21:16:41
|
On Wednesday 27 October 2004 01:36 pm, Harald Harders wrote: > > See my other post. The \ell ist in the standard font cmmi10.pfb. I didn't see it there. I looked. I attach the PostScript output of charset.dem run on this font. The \ell glyph is not represented by any 8-bit character. Does one have to embed a re-encode command of some sort in order to access additional glyphs? If so, do we need to add this to gnuplot as an adjunct to the fontfile processing? > > But you would have to convert this from an *.afm file to a *.pfa or *.pfb > > file in order for gnuplot to import it. > That is not possible. You have to have either a pfb or a pfa of a font > (or, or course ttf). OK. I thought you could convert. I forgot you could use ttf. In that case the easiest answer is probably to use the lower case "l" in .../ttfonts/vladimir.ttf or .../ttfonts/kunstler.ttf By the way. I think it would be nice if the PS_load_fontfile routine echoed the FontName of the font to the terminal. Even if you know the file name of the font, you don't always know what to call it in your text strings. For example, vladimir.ttf is referred to as "VladimirScript", but I only know that because I looked for the FontName record in the output PostScript file from gnuplot. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |
|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-27 21:28:45
|
On Wednesday 27 October 2004 02:16 pm, Ethan Merritt wrote: > By the way. I think it would be nice if the PS_load_fontfile routine > echoed the FontName of the font to the terminal. Never mind. It already does, of course, but only if you are running interactively. I was running 'gnuplot charset.dem' from the command line. Sorry for the noise. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |