Path: news.mathworks.com!not-for-mail
From: "Thomas " <thomas.liebscher@uni-potsdam.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Print Euro symbol
Date: Sat, 18 Aug 2007 20:56:23 +0000 (UTC)
Organization: Bundeskriminalamt Wiesbaden
Lines: 22
Message-ID: <fa7mdn$m75$1@fred.mathworks.com>
References: <fa4vb9$2ep$1@fred.mathworks.com> <fa51an$6$1@fred.mathworks.com> <fa558g$ppv$1@fred.mathworks.com>
Reply-To: "Thomas " <thomas.liebscher@uni-potsdam.de>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187470583 22757 172.30.248.38 (18 Aug 2007 20:56:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 18 Aug 2007 20:56:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 107947
Xref: news.mathworks.com comp.soft-sys.matlab:424432


Finally, I found a solution by switching to symbol font.

To get a PDF with a figure containing the string "Less than 
10&#8364; per piece." the following code could be used:

% --------------------------
fh = figure;
text(fh,0.5,0.5,strcat('Less than 10\fontname{Symbol}',char
(160),'\fontname{Helvetica}per piece.');
print(fh,'-dpsc2','test.ps');
% --------------------------

Finally, the postscript file "test.ps" needs to be 
distilled to PDF.

The '&#8364;' symbol will not be displayed in the MATLAB figure 
but it will show up in the PDF. 

(The archaic printer driver functions of MATLAB are 
hopelessly outdated. The use of Unicode encoding and system 
available fonts in graphics is standard elsewhere.)