Math & ScienceProblem with Typeset on MikTex and solving it

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

Problem with Typeset on MikTex and solving it

Post by Achava »

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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with Typeset on MikTex and solving it

Post by Johannes_B »

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

Problem with Typeset on MikTex and solving it

Post by Achava »

Here is the code I used

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}
Here is the error this time

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.
?
There is nothing about environment this time which I do remember the first time I ran it. I don't understand this error either.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Problem with Typeset on MikTex and solving it

Post by Ijon Tichy »

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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Achava
Posts: 6
Joined: Tue Jun 02, 2020 10:07 pm

Problem with Typeset on MikTex and solving it

Post by Achava »

Thank you. The code now works.
Post Reply