LaTeX forum ⇒ Text FormattingGoMono Font Shape undefined

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

GoMono Font Shape undefined

Postby AMpeLIos88 » Fri Dec 09, 2016 5:24 pm

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.


  1. \documentclass[A4paper]{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[T1]{fontenc}
  4. \usepackage{lmodern}
  5. \usepackage{GoMono}
  6.  
  7. \newcommand{\fonts}[1]{%
  8. \fontfamily{GoMono}\selectfont%
  9. #1}
  10.  
  11. \begin{document}
  12. \section{grace a}
  13. Usage notes: When you want to credit someone or something for a
  14. positive situation or event, use the French expression grâce à.
  15.  
  16. \fonts{Par exemple…}


Line 23 is the last line (\fonts etc.). What am I doing wrong here?

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3404
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Dec 09, 2016 8:11 pm

I don't have the font, so cannot test, but try
  1. \newcommand{\fonts}[1]{%
  2. \fontfamily{GoMono}\ttfamily%
  3. #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

Postby AMpeLIos88 » Sat Dec 10, 2016 8:48 am

I get the errormessage:" Finished with exit code 1"

User avatar
Stefan Kottwitz
Site Admin
Posts: 8208
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Dec 10, 2016 11:42 am

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
Site admin

AMpeLIos88
Posts: 5
Joined: Sun Nov 27, 2016 2:59 pm

Postby AMpeLIos88 » Sat Dec 10, 2016 1:46 pm

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 14 times

AMpeLIos88
Posts: 5
Joined: Sun Nov 27, 2016 2:59 pm

Postby AMpeLIos88 » Sun Dec 11, 2016 2:03 pm

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.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 5 guests