3

I'm trying to use Garamond font family using mathdesign package in a Vietnamese document. My goal is to get the text in the box:

enter image description here

This is the page 18 of this document which is exactly a translation of page 18 of this document:

enter image description here

I follow all the instructions I have, especially on the above documents, and get this code:

\documentclass{article}
\usepackage[vietnamese]{babel}
\usepackage[garamond]{mathdesign}
\begin{document}
Xin chào Việt Nam $a+b+\sqrt{\pi}$.
\end{document}

but it cause an error:

! Font T5/mdugm/m/n/10=ugmr8v at 10.0pt not loadable: Metric (TFM) file not found.
  <to be read again>
  relax
  l.3 \babel@aux{vietnamese}{}

However, still working with mathdesign, but charter font produces a good output (of course there are some warnings, but it is normal if you use Vietnamese as your document language):

\documentclass{article}
\usepackage[vietnamese]{babel}
\usepackage[charter]{mathdesign}
\begin{document}
Xin chào Việt Nam $a+b+\sqrt{\pi}$.
\end{document}

enter image description here

I got confused - I don't understand why. I made a workaround and do some search but either they don't help me at all or they are a bit too complicated.

I hope you can help me with some ideas.

I'm using Windows 10, MiKTeX 2.9.

I'm sorry if this question is a duplicate. As I said, I read many questions here and more about Garamond but I got nothing :(


I know I can use XeLaTeX or LuaLaTeX - it is very easy, but I want to use pdfLaTeX, as my document is very looooong so it would takes centuries to compile using XeLaTeX or LuaLaTeX.

  • I get the expected output with TeX Live picture (click) – egreg Dec 11 '18 at 15:24
  • @egreg On Overleaf it produces a very strange string Xin chÕào ViòệẤt Nam. I cannot even compile using MiKTeX. Do you have any idea of the reason of this? I suppose there are some missing but necessary packages, but I don't know which. – user156344 Dec 11 '18 at 15:58
  • The strange accented characters are an encoding problem. Are you sure you don't have \usepackage[some option not utf8]{inputenc}? – egreg Dec 11 '18 at 18:12
0

I have tried installing the URW Garamond fonts in MiKTeX without success (some garbled results) due to missing font definitions for Font T5/mdugm/m/it/10=ugmri8v at 10.0pt not loadable: Metric (TFM) file not found. with the result most of the Vietnamese text is missing enter image description here

However whilst testing I found the default EB Garamond seems to be good enough. For comparison I cannot see any character differences using the source files.

enter image description here

0

After two months, today I just re-research on how to solve this problem, and it appears that I have successfully solved. I post here in case any Vietnamese people also wants to use Garamond in mathdesign.

It seems that there is a bug in the MiKTeX tree for fonts like Garamond. I went to the official VnTeX site and downloaded the compressed file vntex-nonfree-3.2.zip, which contains the fixes.

I extract the file and copy the three folders in it to my MiKTeX tree. In my computer, it is

C:\Users\< me >\AppData\Local\Programs\MiKTeX 2.9

The three available folders doc, fonts and tex will be overwritten and the bugs are fixed.

Then I went to the command line and type

initexmf --update-fndb

then

updmap

(more information about these commands: see here)

Now I can use Garamond of mathdesign in my document!

\documentclass{article}
\usepackage[garamond]{mathdesign}
\usepackage[utf8]{vietnam}
\begin{document}
Xin chào Việt Nam 123456789
\end{document}

enter image description here

EB Garamond, as suggested by KJO, is great. I just don't really like the numbers of that font :) It is good for novels and articles but not really good for scientific document.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy