LaTeX forum ⇒ Math & ScienceProblem 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

Postby Achava » Wed Jun 03, 2020 4:23 am

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?

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

Postby Johannes_B » Wed Jun 03, 2020 5:34 am

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

Postby Achava » Wed Jun 03, 2020 3:48 pm

Here is the code I used

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass {article}
  2. \usepackage {xspace}
  3. \newcommand {\TUG} {\textsc {TeX Users Group} \xspace}
  4. \begin {document}
  5. \section {The \TUG}
  6. TheTUG is an organization for people who are interested in \Tex\ or \LaTeX.
  7. \end {document}


Here is the error this time

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7440 64-bit)
  2. entering extended mode
  3. (Page41.tex
  4. LaTeX2e <2020-02-02> patch level 5
  5. L3 programming layer <2020-05-15>
  6. ("C:\Program Files\MikTex\tex/latex/base\article.cls"
  7. Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
  8. ("C:\Program Files\MikTex\tex/latex/base\size10.clo"))
  9. ("C:\Program Files\MikTex\tex/latex/tools\xspace.sty")
  10. ("C:\Program Files\MikTex\tex/latex/l3backend\l3backend-pdfmode.def")
  11. No file Page41.aux.
  12.  
  13. LaTeX Font Warning: Font shape `OT1/cmr/bx/sc' undefined
  14. (Font) using `OT1/cmr/bx/n' instead on input line 5.
  15.  
  16. ! Undefined control sequence.
  17. l.6 ...ation for people who are interested in \Tex
  18. \ or \LaTeX.
  19. ?


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: 274
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Wed Jun 03, 2020 4:06 pm

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

Postby Achava » Wed Jun 03, 2020 10:37 pm

Thank you. The code now works.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 4 guests