Math & Science ⇒ Problem with Typeset on MikTex and solving it
Problem with Typeset on MikTex and solving it
I have a problem which I cannot solve using MikTex in Windows 10 Home. I typed in the first usepackage program on page 41 of the Stefan Kottwitz book Beginner's Guide. I then ran Typeset in MikTex and the code failed telling me there was a problem with the environment. I know very little about the Windows operating system and haven't found a way to solve the problem. How do I solve it?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem with Typeset on MikTex and solving it
Please copy the example you have problems with. I don't know what is on page 41.
Use texworks (which is installed with MikTeX) to compile your first documents.
Use texworks (which is installed with MikTeX) to compile your first documents.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Problem with Typeset on MikTex and solving it
Here is the code I used
Here is the error this time
There is nothing about environment this time which I do remember the first time I ran it. I don't understand this error either.
Code: Select all
\documentclass {article}
\usepackage {xspace}
\newcommand {\TUG} {\textsc {TeX Users Group} \xspace}
\begin {document}
\section {The \TUG}
TheTUG is an organization for people who are interested in \Tex\ or \LaTeX.
\end {document}
Code: Select all
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7440 64-bit)
entering extended mode
(Page41.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-05-15>
("C:\Program Files\MikTex\tex/latex/base\article.cls"
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
("C:\Program Files\MikTex\tex/latex/base\size10.clo"))
("C:\Program Files\MikTex\tex/latex/tools\xspace.sty")
("C:\Program Files\MikTex\tex/latex/l3backend\l3backend-pdfmode.def")
No file Page41.aux.
LaTeX Font Warning: Font shape `OT1/cmr/bx/sc' undefined
(Font) using `OT1/cmr/bx/n' instead on input line 5.
! Undefined control sequence.
l.6 ...ation for people who are interested in \Tex
\ or \LaTeX.
?
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Problem with Typeset on MikTex and solving it
Simple typo: You've used
BTW: Please use code tags (or the "Select code" field) to mark code in you postings.
\Tex
, but the correct spelling of the command is \TeX
. Note, TeX is case-sensitive.BTW: Please use code tags (or the "Select code" field) to mark code in you postings.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

Problem with Typeset on MikTex and solving it
Thank you. The code now works.