LaTeX forum ⇒ Math & Science ⇒ Problem with Typeset on MikTex and solving it

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Achava
Posts: 6
Joined: Tue Jun 02, 2020 10:07 pm

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: 4163
Joined: Thu Nov 01, 2012 4:08 pm
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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Achava
Posts: 6
Joined: Tue Jun 02, 2020 10:07 pm
Here is the code I used

\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}

Here is the error this time

This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7440 64-bit)entering extended mode(Page41.texLaTeX2e <2020-02-02> patch level 5L3 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.?

There is nothing about environment this time which I do remember the first time I ran it. I don't understand this error either.

Ijon Tichy
Posts: 274
Joined: Mon Dec 24, 2018 10:12 am
Simple typo: You've used \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.

Achava
Posts: 6
Joined: Tue Jun 02, 2020 10:07 pm
Thank you. The code now works.