Text FormattingGoMono Font Shape undefined

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
AMpeLIos88
Posts: 5
Joined: Sun Nov 27, 2016 2:59 pm

GoMono Font Shape undefined

Post by AMpeLIos88 »

I get the following error when I try to create a PDF:
LaTeX Font Warning: Font shape `T1/GoMono-Regular-tlf-t1/m/n' undefined
(Font) using `T1/cmr/m/n' insLaTeX Font Warning: Font shape `T1/GoMono-Regular-tlf-t1/m/n' undefined
(Font) using `T1/cmr/m/n' instead on input line 23.tead on input line 23.

Code: Select all

\documentclass[A4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{GoMono}

\newcommand{\fonts}[1]{%
    \fontfamily{GoMono}\selectfont%
    #1}

\begin{document}
\section{grace a}
Usage notes: When you want to credit someone or something for a
positive situation or event, use the French expression grâce à.

   \fonts{Par exemple…}
Line 23 is the last line (\fonts etc.). What am I doing wrong here?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

GoMono Font Shape undefined

Post by Johannes_B »

I don't have the font, so cannot test, but try

Code: Select all

\newcommand{\fonts}[1]{%
    \fontfamily{GoMono}\ttfamily%
    #1}
I would give that command fonts another name, though.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
AMpeLIos88
Posts: 5
Joined: Sun Nov 27, 2016 2:59 pm

Font Shape undefined

Post by AMpeLIos88 »

I get the errormessage:" Finished with exit code 1"
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Font Shape undefined

Post by Stefan Kottwitz »

This seems like the final error message / compiling summary. Can you post the complete / first error message? Even better, post the .log file as attachment.

Stefan
LaTeX.org admin
AMpeLIos88
Posts: 5
Joined: Sun Nov 27, 2016 2:59 pm

Font Shape undefined

Post by AMpeLIos88 »

Okay, the complete log. I have added it as an attachment. If you want it pasted into the text as code, then let me know.
Attachments
franseboek.log.txt
(63.49 KiB) Downloaded 820 times
AMpeLIos88
Posts: 5
Joined: Sun Nov 27, 2016 2:59 pm

GoMono Font Shape undefined

Post by AMpeLIos88 »

1. LaTeX Font Info: Try loading font information for T1+GoMono-TLF on input lin
e 29.

2. (/usr/share/texlive/texmf-dist/tex/latex/gofonts/T1GoMono-TLF.fd
File: T1GoMono-TLF.fd 2016/11/18 (autoinst) Font definitions for T1/GoMono-TLF.

)
3. LaTeX Font Info: Font shape `T1/GoMono-TLF/m/n' will be
(Font) scaled to size 10.0pt on input line 29.

4. ! Font T1/GoMono-TLF/m/n/10=GoMono-Regular-tlf-t1 at 10.0pt not loadable: Metri
c (TFM) file not found.
<to be read again>
relax
l.29 \french{Par exemple}

5. I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
So Latex tries to use the GoMono fonts (1), locates the fonts on the system (2), automatically scales the size of the font to be used to 10pxt, tells me that the GoMono font is not readable, because Metric(TFM) file is not found (4), and gives me advice on how to tackle it (5).

That is how far I have got now.
Post Reply