RE: Mathematica fonts, pdflatex, and MiKTeX 2.4
- To: mathgroup at smc.vnet.net
- Subject: [mg44425] RE: [mg44378] Mathematica fonts, pdflatex, and MiKTeX 2.4
- From: "David Turner" <dturner at faulkner.edu>
- Date: Sat, 8 Nov 2003 04:51:06 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Ron, I use Mathematica 5 and MiKTeX 2.4 under Windows XP. The following procedure works for me: 1. Create and export the graphic using Mathematica and TeX fonts. (I use jpeg for faster processing.) For example, In[1]:= $TextStyle = {FontFamily -> "cmr12", FontSize -> 22}; In[2]:= gr49:= Show[Graphics[{AbsoluteThickness[2], Line[{{0,4}, {8,-4}, {14,8}, {16,0}}]}], Axes->True, AxesLabel-> (StyleForm[#, FontFamily->"cmmi12", FontSize->24]& /@{"x", "F"}), Ticks->{{2,4,6,8,10,12,14,16}, Automatic}, ImageSize->{432, 266}]; In[3]:= Export["C:\Physics\TeX\Example49.jpg", gr49]; 2. Include the graphic in a LaTeX document. (I have had better luck with LaTeX then pdflatex.) For example, \usepackage{graphicx} ... \includegraphics[bb=0 0 432 266]{C:/Physics/TeX/Example49.jpg} 3. Typset the document with LaTeX. 4. Convert the dvi to pdf with dvipdfm.exe (located in the texmf\miktex\bin directory). I use WinEdt 5.3 as my text editor. It is possible to place a dvipdfm speed button on the WinEdt toolbar so that the conversion to pdf takes a single click of the mouse. 5. View the pdf with Adobe Acrobat. David Turner -----Original Message----- From: Ron Lee [mailto:ronlee at ms4.hinet.net] To: mathgroup at smc.vnet.net Subject: [mg44425] [mg44378] Mathematica fonts, pdflatex, and MiKTeX 2.4 I have figures that use Mathematica fonts. (The pdf figures were converted from eps format either using Perl script or Imagemagic.) After updating to MiKTeX 2.4 pdflatex can no longer work with the figures (no problems for dvips). It shows the following error message: Error: pdflatex (file Math2.pfa): CharStrings dict: more entries than dict size (223) ==> Fatal error occurred, the output PDF file is not finished! How may I solve the problem? Thanks. Regards, Ron Lee