Fonts & Character Sets\usepackage{fontspec} - MikTex - Texmaker - Error Messages ?

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
stryct
Posts: 2
Joined: Mon Aug 03, 2015 11:09 pm

\usepackage{fontspec} - MikTex - Texmaker - Error Messages ?

Post by stryct »

Hello,
I ran into some problems today, when I tried to use XeLaTex so that I can use fonts like Arial and Calibri in my Document. At first it didn't seem to work at all, but now I realized that it shows the following error messages when I implement \usepackage {fontspec}

Code: Select all

LaTeX error: "kernel/property-unknown"
!
! The key property '.choice_code:n' is unknown.
!
! See the LaTeX3 documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.1173 }
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a coding error.
|
| LaTeX has been asked to set the property '.choice_code:n' for key
| 'fontspec-renderer/Renderer': this property is not defined.
|...............................................
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "kernel/property-unknown"
!
! The key property '.generate_choices:n' is unknown.
!
! See the LaTeX3 documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.1173 }
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a coding error.
|
| LaTeX has been asked to set the property '.generate_choices:n' for key
| 'fontspec-renderer/Renderer': this property is not defined.
|...............................................
When I use the command \setmainfont{myfont}
it gives me this error:

Code: Select all

! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{m/n}{{m/n}{normal}{m/sc}{...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{m/sc}{{m/n}{normal}{m/sc}...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{bx/n}{{m/n}{normal}{m/sc}...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{bx/sc}{{m/n}{normal}{m/sc...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{m/it}{{m/n}{normal}{m/sc}...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{m/si}{{m/n}{normal}{m/sc}...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{bx/it}{{m/n}{normal}{m/sc...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\l_fontspec_defined_shapes_tl ...* '\str_case:nnn
{bx/si}{{m/n}{normal}{m/sc...
l.20 \setmainfont{Calibri}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
. fontspec info: "defining-font"
.
. Font family 'Calibri(0)' created for font 'Calibri' with options [].
.
. This font family consists of the following shapes:
.
. * '{m/n}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{n/}' with NFSS spec.:
. <->"Calibri/ICU:script=latn;language=DFLT;"
.
. * '{m/sc}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{sc/,Letters=SmallCaps,}' with NFSS spec.:
. <->"Calibri/ICU:script=latn;language=DFLT;+smcp;"
.
. * '{bx/n}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{n/}' with NFSS spec.:
. <->"Calibri/B/ICU:script=latn;language=DFLT;"
.
. * '{bx/sc}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{sc/,Letters=SmallCaps,}' with NFSS spec.:
. <->"Calibri/B/ICU:script=latn;language=DFLT;+smcp;"
.
. * '{m/it}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{it/}' with NFSS spec.:
. <->"Calibri/I/ICU:script=latn;language=DFLT;"
.
. * '{m/si}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{si/,Letters=SmallCaps,}' with NFSS spec.:
. <->"Calibri/I/ICU:script=latn;language=DFLT;+smcp;"
.
. * '{bx/it}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{it/}' with NFSS spec.:
. <->"Calibri/BI/ICU:script=latn;language=DFLT;"
.
. * '{bx/si}{{m/n}{normal}{m/sc}{small caps}{bx/n}{bold}{bx/sc}{bold small
. caps}{m/it}{italic}{m/si}{italic small caps}{bx/it}{bold italic}{bx/si}{bold
. italic small caps}}{si/,Letters=SmallCaps,}' with NFSS spec.:
. <->"Calibri/BI/ICU:script=latn;language=DFLT;+smcp;"
.................................................
Requested font "Calibri/ICU:script=latn;language=DFLT;" at 10.0pt
-> I^^N/Windows/Fonts/calibri.ttf
(C:\Users\Christoph\OneDrive\Seminararbeit\SeminararbeitLaTeX.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 28.
LaTeX Font Info: ... okay on input line 28.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 28.
LaTeX Font Info: ... okay on input line 28.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 28.
LaTeX Font Info: ... okay on input line 28.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 28.
LaTeX Font Info: ... okay on input line 28.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 28.
LaTeX Font Info: ... okay on input line 28.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 28.
LaTeX Font Info: ... okay on input line 28.
LaTeX Font Info: Checking defaults for EU1/lmr/m/n on input line 28.
LaTeX Font Info: ... okay on input line 28.
LaTeX Font Info: Checking defaults for T3/cmr/m/n on input line 28.
LaTeX Font Info: Try loading font information for T3+cmr on input line 28.
(X:\Programme\MikTex\tex\latex\tipa\t3cmr.fd
File: t3cmr.fd 2001/12/31 TIPA font definitions
)
LaTeX Font Info: ... okay on input line 28.
Requested font "Calibri/ICU:script=latn;language=DFLT;" at 12.0pt
-> N^^N/Windows/Fonts/calibri.ttf
[....]
So it looks like it doesnt work, but when I press "show PDF" I can see that it actually worked... ?
You can also see that in the log above, first some errors and then it says "Requested font ... Calibri... okay"
I would be so happy if somebody could tell me what is happening here.
I read something about a bug in MikTex but that should have been fixed with the latest update. Also I reinstalled & redownloaded everything so I should have the latest versions of everything.

Thanks in advance :)

PS: Here is the full log file ... : http://www.pasteall.org/60116

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: \usepackage{fontspec} - MikTex - Texmaker - Error Messag

Post by Johannes_B »

There was a bug introduced with some update two weeks ago. Make another one, issues will be gone ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
stryct
Posts: 2
Joined: Mon Aug 03, 2015 11:09 pm

\usepackage{fontspec} - MikTex - Texmaker - Error Messages ?

Post by stryct »

Johannes_B wrote:There was a bug introduced with some update two weeks ago. Make another one, issues will be gone ;-)
By "another one" you mean another update ? Because I downloaded everything yesterday, so I thought that is already up to date and there shouldn't be any errors. Or do you mean updating with the update/package manager tools that come with miktex ?

EDIT: I updated all the miktex-[...] and the fontspec package(s) with the "Update (Admin)"-Tool and now all the errors are gone :)
Although I thought I did the same thing yesterday,... I must have done something different.
Thanks for the fast help :)
Post Reply