0

I am running this code with XeLaTeX and LuaLaTeX :

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{miama}

\begin{document}

\fmmfamily

Some text.

\end{document}

It compiles but produces no pdf, and there is this 'problem' : The miama-t source file could not be found. and PK font miama-t1 could not be created. Any idea ?

6
  • I don't know about LuaLaTeX but your code is for LaTeX document... not for XeLaTeX that needs commands like : \usepackage{xltxtra} and \setromanfont[Mapping=tex-text]{Linux Libertine O} or \setmainfont[Mapping=tex-text]{Linux Libertine O}
    – koleygr
    Commented Oct 14, 2017 at 17:19
  • 1
    @koleygr xltxtra would be for XeLaTeX, but fontspec is sufficient (and the relevant package).
    – TeXnician
    Commented Oct 14, 2017 at 17:31
  • To your actual problem: You should not use fontenc with T1 with XeLaTeX/LuaLaTeX.
    – TeXnician
    Commented Oct 14, 2017 at 17:32
  • While T1-encoding is not a suitable encoding for lualatex, the document in itself should nevertheless compile. Assuming that you are a miktex user: run on a command line updmap. Commented Oct 14, 2017 at 17:34
  • I was following the commands found here, completely lost now. I was able to use the font because it is installed in the system.
    – alfred
    Commented Oct 14, 2017 at 17:36

2 Answers 2

1

You get the error because your map-files are not up-to-date. As a miktex user run on a command line updmap.

Beside this your example is not a suitable use of the font with xelatex and lualatex. Use the font with this engines e.g. like this:

\documentclass{book}
\usepackage{fontspec}
\setmainfont{miama.otf}
\begin{document}

Some text.

\end{document}

enter image description here

See the documentation of fontspec for more examples and commands.

2
  • It should work in the sense that you shouldn't get an error. So run updmap -- it will enable the font for pdflatex too. Commented Oct 14, 2017 at 17:54
  • Yes it did, I can run my initial code now, thank you.
    – alfred
    Commented Oct 14, 2017 at 18:07
1

If you would like one day to use also with pdfLaTeX for Miama Nueva Font, you can take this simple code. It works with the engines: pdfLaTeX, XeLaTeX and LuaLaTeX.

\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{miama}
\begin{document}
\miama{Right now it's raining in my country after a long time without rain.}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .