Fonts & Character SetsArial in a Template

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Arial in a Template

Post by sw3quant »

I have just recieved a journal template: http://www.inderscience.com/www/downloa ... column.zip and tried to compile it on my win7 machine using WinEdt 6.0 and get the following error:

Code: Select all

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ly1\ly1ptm.fd"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo")Running miktex-makemf.exe...
miktex-makemf: The ARIALBD source file could not be found.

Running hbf2gf.exe...


hbf2gf (CJK ver. 4.8.0)


Couldn't find `ARIAL.cfg'

miktex-maketfm: No creation rule for font ARIALBD.

! Font \titfont=ARIALBD at 14.0pt not loadable: Metric (TFM) file not found.
l.462 \font\titfont=ARIALBD at 14pt
                                   
? 

Process has been terminated ...
I see here: http://tug.org/pipermail/texhax/2012-June/019334.html that someone has had a similiar problem.

Can anyone help me follow these instructions? I dont know how to get WinEdt to generate a TFM file, nor what a "corking directory is".

many thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Arial in a Template

Post by localghost »

This template is 14(!) years old and therefore outdated. Furthermore the underlying class uses obsolete packages. A strange thing is that it sets LY1 font encoding (see the fontenc manual for details). But changing that to T1 doesn't help. And there is no hint for Arial at first sight. The class tries to set Times as roman font, Helvetica as sans serif font and Courier as mono spaced font.

The Arial related stuff is needed for the title font. Its definition indicates that the font itself might be provided by a non common TeX distribution or font vendor (Y&Y TeX because of the LY1 encoding, see above).

Present the problem to the journal people or the maintainers of that class, respectively. If they really want you to use this template, it's their job to fix the problem and they should also be able to do that. Otherwise forget the template.

A possible remedy without help of the journal people would be to redefine the title font (and all other critical font definitions) so that the template compiles with a common TeX distribution. I'm thinking of a command like \DeclareFixedFont (see »LaTeX2e Font Selection«, also know as font guide).


Thorsten
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Arial in a Template

Post by sw3quant »

thank you for your response.

I have emailed the journal and asked for their comment and shall post it when I get it.

In the mean time I have been trying to get your suggestion of \DeclareFixedFont{} working, but have not been able to.

I placed

Code: Select all

\DeclareFixedFont{\typewriterfont}
just above the

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%% 
in the template and tried to compile, but have been getting exactly the same error as before.

Did you manage to get it to compile? And if so can you post your tex file?
thank you!
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Arial in a Template

Post by sw3quant »

Had a response from the journal -- they simply gave me a new template (see attachement).

Re the above URL, someone else gave me the below comment:
It would appear to be someone attempting to generate a PDF which makes use of the Arial font via plain TeX.

The first stage is to extract the TeX Font Metrics (TFM) from the True-Type Font (TTF) file which defines Arial. This file tells TeX the bounding box of each glyph in the font allowing it to typeset the document.

The second part creates a test document in Plain TeX (as opposed to, e.g. LaTeX or ConTeXt). From context it would appear that the actual PDF language itself is inserted directly into the output at one point to embed the Arial font.

Presumably the '\arial' is telling plain Tex (which is undoubtedly the PDFTeX variant) to make use of the Arial font. The plumbing which tells PDFTeX what to do here is beyond my ken.

After indicating that the test document should be compiled with pdftex
(note: not pdflatex), the pdffonts command is used to display the fonts embedded in the PDF. Presumably this command ships with the author's TeX installation.
Attachments
latex_singlecolumn_2010.zip
(220.37 KiB) Downloaded 365 times
Post Reply