I'm looking for this to represent dyadics/tensors. Right now the combi-
nation '\boldsymbol{\mathsf{P}}' is working fairly well, but I think the
outline character would be even more distinct from a bold vector char.
If such a font does exist, where to find it? Thanks.
- Dushan Mitrovich
Would the blackboard symbols be appropriate for your purposes? They're
certainly hollow-ish, though maybe not exactly what you had in mind.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=numbersets
Regards,
Tristan
--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\\ http://www.nothingisreal.com/ >< To finish what you
You are using VTeX, so I think you can use a font such
as Helevtica-Bold and turn it into a "hollow" (outlined)
font on-the-fly. I've never used this trick so far, so I
need some time to find out how it is done. Please, be
patient.
Walter
Put the folowing lines into the document preamble; notice
that this work ONLY with VTeX !!!!!
%%%%%%%%%%%%%%%%%%% snip %%%%%%%%%%%%%%%%%%%%
\begingroup
\catcode32=10 %
\aliasfont tenhl = phvb7t outline=2
\endgroup
\DeclareFontFamily{U}{hollow}{}
\DeclareFontShape{U}{hollow}{m}{n}{<->tenhl}{}
\DeclareMathAlphabet{\mathhl}{U}{hollow}{m}{n}
%%%%%%%%%%%%%%%%%%% snap %%%%%%%%%%%%%%%%%%%%%
Thus, a new math alphabet \mathhl is defined, which prints
"hollow" letters in math mode. Example:
$\mathhl{T}$ is a tensor
If you consider the outline of the characters as too thin,
increase the value after the keyword "outline" to 3 or 4.
The above definition uses the bold Helvetica font. To use,
say, CM-Sansserif Bold instead, replace "phvb7t" with
"cmssbx10"
Is this what you were looking for?
Walter
2) If you need just one letter at a time, can't you do something
like (completely untested)
\newcommand\outlinechar[1]{%
\makebox[l]{0pt}{\color{black}#1}%
{\color{white}#1}
}
3) You can definately do something like this in raw postscript:
%\ifcameraready
%\else
\typeout{Warning: Debugging version}
\special{!userdict begin /bop-hook{
gsave
290 200 translate
65 rotate
/Times-Roman findfont
116 scalefont setfont
% >> 0 0 moveto 0.85 setgray (diff) show
0 1 3 { % -- i (0 <= i <= 3 by step 1)
dup % -- i i
0.025 mul 0.825 add % -- i 0.825+0.025*i
exch 0 exch % -- 0.825+0.025*i 0 i
moveto % -- 0.825+0.025*i
setgray (\debugstr) show % --
} for
% <<
grestore}def
end}
%\fi
Prints out value of \debugstr in various shades of grey.
Just reserve a box for it.
4) Print the character twice:
\makebox[1pt][l]{N}N
You should be able to do this with NFSS. I'm not sure if this is right,
but I think (according to the Companion), that you want something like
this. ol is the Outline shape.
\fontshape{ol}\selectfont This should be in outline font.
YMMV depending an the base font you are using. The default font will not
do, so you'll need to specify something different with \fontfamily{}
See Page 190 of the LaTeX Companion for more information.
PS. Does anyone know how to make a full catalogue of every family, with
every supported shape and weight? I've looked at nfssfont.tex, but it
doesn't seem to allow me to select a different shape, and I don't know
what font families are available to me.
--
Cameron Kerr
camero...@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Thanks for the suggestion. Haven't tried this yet, but will look into it
after I get my paper done. Meanwhile, Walter Schmidt's instructions are
doing the job nicely.
- Dushan
Johan,
This will take some experimenting, which will have to wait for some free
time. Your #(2) is probably the most applicable, as I only need to define
two or three such hollow symbols. Thanks for the suggestions - I'll try
them when I get the chance.
- Dushan
Walter, Yes! This is terrific! Thank you much, it works like a charm.
With the now-obvious symbol contrast, it already let me catch three
instances where I had mistakenly used '\dyad' when it should have been
'\vctr'.
- Dushan
> Dushan Mitrovich schrieb:
>
>>Does a 'hollow' font exist, in which the character outline is a black
>>line and the interior is white. The characters would have to be pretty
>>fat (bold weight) to have the interior space visible.
>>I'm looking for this to represent dyadics/tensors.
>
>
> Put the folowing lines into the document preamble; notice
> that this work ONLY with VTeX !!!!!
^^^^^^^^^^^^^^^^^^^^^^^^
what a pity!
Is there a simple way to do the same for MIkTeX?
> %%%%%%%%%%%%%%%%%%% snip %%%%%%%%%%%%%%%%%%%%
>
> \begingroup
> \catcode32=10 %
> \aliasfont tenhl = phvb7t outline=2
> \endgroup
> \DeclareFontFamily{U}{hollow}{}
> \DeclareFontShape{U}{hollow}{m}{n}{<->tenhl}{}
> \DeclareMathAlphabet{\mathhl}{U}{hollow}{m}{n}
>
[...]
Regards, Zarko
>Walter Schmidt wrote:
>
>> Dushan Mitrovich schrieb:
>>
>>>Does a 'hollow' font exist, in which the character outline is a black
>>>line and the interior is white. The characters would have to be pretty
>>>fat (bold weight) to have the interior space visible.
>>>I'm looking for this to represent dyadics/tensors.
>>
>>
>> Put the folowing lines into the document preamble; notice
>> that this work ONLY with VTeX !!!!!
> ^^^^^^^^^^^^^^^^^^^^^^^^
> what a pity!
>Is there a simple way to do the same for MIkTeX?
Isn't there a LaTeX package that writes some appropriate ps code
to display a font as outline (redefining show perhaps)? I seem
to remember such a thing, but that it had some unsuspected name.
A search of the Catalogue got me nothing.
Dan
--
Dan Luecking Department of Mathematical Sciences
University of Arkansas Fayetteville, Arkansas 72701
luecking at uark dot edu
macro \pstextpath from file pst-char.tex
PSTricks
--
Étienne Riga
no, that's for drawing text along a general path. \pscharpath is the
baby.
\pscharpath[linewidth=0.4]{\fontfamily{phv}\selectfont MOUSE}
seems ok (though not terribly wonderful on-screen). don't know
whether the linewidth def is actually necessary.
it should be possible to set outlines up at font selection time with
one of those strings in psfonts.map -- i doodled with this earlier,
but my postscript coding is too rusty.
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge
> Isn't there a LaTeX package that writes some appropriate ps code
> to display a font as outline (redefining show perhaps)?
Not exectly the same, but the so-called "Blue Book" (aka "PostScript
Language Tutorial and Cookbook", by Adobe Systems Inc.) contains
(program 16, at page 199) a PostScript snippet that generates an
outline font starting from a generic "filled" font (the snippet uses
Helvetica-Bold); to the resulting font a new name is given (in the
snippet, Helvetica-Outline).
If you are interested, the "Blue Book", edited in 1985, is now freely
available --- e.g. through the following URL:
http://www-cdf.fnal.gov/offline/PostScript/BLUEBOOK.PDF
--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybe...@cq.vasa.vg
A good reference to have. Thank you.
- Dushan
But, after a short meditation, not so easy to use. If you want to
print from a PostScript program, yes, but not if you need a new font
for LaTeX. Here is what I would do:
1) start from a good quality font, e.g. the URW helvetica clone that
comes with Ghostscript (Nimbus);
2) load the font inside the public domain font editor "pfaedit" (at
pfaedit.sourceforge.net); pfaedit has a menu (element -> effects ->
outline) that leaves the 'outline' of every selected character
(also more than one selected character);
3) change the name of the font, and the unique id, and save the font
under a different name (maybe NimbusOutline);
4) if needed, repeat for the italic, bold and bold-italic variants; or
do that for the bold variant only;
5) use the TeX tool "fontinst" to make the 'hollow' font available for
LaTeX.
Is this what you want?
http://www.radicaleye.com/dvipsman/dvips.html#IDX568
Jim Hefferon
Thanks for the URL, but the answer at the moment is, I don't know. I went
to that site and saved the page contents, but haven't yet had time to dig
into them. But there are some doubts about my being able to use that,
because VTeX/2 skips the DVI step, producing a PDF (or PS) file directly
from TeX. We'll see.
-Dushan
Hmm, thanks for these instructions. I've long looked for a non-profes-
sional font editor for use in OS/2, and not found one. I'll look at
pfaedit carefully and try your steps.
- Dushan
% Hmm, thanks for these instructions. I've long looked for a non-profes-
% sional font editor for use in OS/2, and not found one. I'll look at
% pfaedit carefully and try your steps.
For this purpose, pfaedit is overkill. If you want to edit the font,
load it in a binary editor, search for /PaintType and change it from
/PaintType 0 def
to
/PaintType 2 def
fontlab used to have an OS/2 version. I don't know if it's still available.
It's probably not hard to install pfaedit provided you have X installed.
--
Patrick TJ McPhee
East York Canada
pt...@interlog.com
It just occurred to me (really) that you can do this with postscript, too.
It's similar to re-encoding, but instead of setting the encoding vector,
you define /PaintType in the font dictionary:
/Times-Roman findfont % load times roman
dup length dict copy % make a copy of it
dup begin % set the current dict to that copy
/PaintType 2 def % define paint type for the copy
end % restore the previous dict
/Times-Open exch definefont % define it as /Times-Open
pop % clear away a copy left behind by definefont
Now it can be accessed as normal
/Times-Open findfont 10 scalefont setfont 72 720 moveto (Howdy) show
With apologies for my self-agrandisment.
> In article <c05rdj$qan$1...@news.eusc.inter.net>,
> Patrick TJ McPhee <pt...@interlog.com> wrote:
> % In article <7xdJA5aA...@abq.com>,
> % Dushan Mitrovich <an...@spamming.org> wrote:
> %
> % % Hmm, thanks for these instructions. I've long looked for a non-profes-
> % % sional font editor for use in OS/2, and not found one. I'll look at
> % % pfaedit carefully and try your steps.
> %
> % For this purpose, pfaedit is overkill. If you want to edit the font,
> % load it in a binary editor, search for /PaintType and change it from
Hmmm. With pfaedit you may choose the width of the contour line. Is
that easy, acting in your way?
StrokeWidth is the stroking width in case that /PaintType=2
units are "character coordinate system" ( scalefont value/1000, i
think ). the book doesn't seem to say what the default value is.
With pfaedit, you run the risk of the outlines being modified, hints dropped
and so on. I'm not saying that any of this will happen, but with any graphics
editor, there's likely to be some interpretation of the input unless it's
in the native format for the editor. In any case, pfaedit is not installed
on the majority of machines (whereas everyone has a binary editor :-).