Text Formattingunknown errror

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
pawanmishra
Posts: 3
Joined: Sat Sep 11, 2021 4:08 pm

unknown errror

Post by pawanmishra »

Code: Select all

Code, edit and compile here:
%% @texfile{
%% filename = "amstex.tex",
%% version = "2.2",
%% date = "2001/08/07",
%% time = "13:15:36 EDT",
%% checksum = "45167 1806 2947 78927"="1797",
%% filetype = "AMS-TeX: documentstyle",
%% author = "American Mathematical Society",
%% copyright = "Copyright 1985, 1990, 1991, 2001
%% American Mathematical Society,
%% all rights reserved. Copying of this file is
%% authorized only if either:
%% (1) you make absolutely no changes to your copy
%% including name; OR
%% (2) if you do make changes, you first rename it
%% to some other name.",
%% address = "American Mathematical Society,
%% Technical Support,
%% Publications Technical Group,
%% P. O. Box 6248,
%% Providence, RI 02940,
%% USA",
%% telephone = "401-455-4080 or (in the USA and Canada)
%% 800-321-4AMS (321-4267)",
%% FAX = "401-331-3842",
%% email = "tech-support@ams.org (Internet)",
%% codetable = "ISO/ASCII",
%% keywords = "amstex, ams-tex, tex",
%% abstract = "This file contains the AMS-TeX Version 2.2
%% macro package. It is intended to be used in
%% conjunction with plain TeX. The macros defined
%% herein are chiefly oriented to the construction
%% of mathematical formulas, both display and
%% nondisplay, using AMS conventions for fonts,
%% spacing, and other details."
%% docstring = "The checksum field above contains a CRC-16
%% checksum as the first value, followed by the
%% equivalent of the standard UNIX wc (word
%% count) utility output of lines, words, and
%% characters. This is produced by Robert
%% Solovay's checksum utility.",
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last edited by Stefan Kottwitz on Sun Sep 12, 2021 9:33 am, edited 1 time in total.
Reason: code marked

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

pawanmishra
Posts: 3
Joined: Sat Sep 11, 2021 4:08 pm

unknown errror

Post by pawanmishra »

File ended while scanning definition of \shave.

<inserted text>
}
<*> main.tex

I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
<*> main.tex

*** (job aborted, no legal \end found)


Here is how much of TeX's memory you used:
738 strings out of 480906
7323 string characters out of 5908280
250064 words of memory out of 5000000
16434 multiletter control sequences out of 15000+600000
535088 words of font info for 29 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
12i,0n,15p,349b,8s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!
pawanmishra
Posts: 3
Joined: Sat Sep 11, 2021 4:08 pm

unknown errror

Post by pawanmishra »

pawanmishra wrote:File ended while scanning definition of \shave.

<inserted text>
}
<*> main.tex

I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
<*> main.tex

*** (job aborted, no legal \end found)


Here is how much of TeX's memory you used:
738 strings out of 480906
7323 string characters out of 5908280
250064 words of memory out of 5000000
16434 multiletter control sequences out of 15000+600000
535088 words of font info for 29 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
12i,0n,15p,349b,8s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

unknown errror

Post by Stefan Kottwitz »

Welcome to the forum!

The original file amstex.tex has this definition of \shave:

Code: Select all

\def\shave#1{\mathop{\hbox{$\m@th\fontdimen13 \tenex\z@ %1
\displaystyle{#1}$}}\fontdimen13 \tenex\buffer}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In your file amstex.tex, there's in line :

Code: Select all

\def\shave#1{\mathop{\hbox{$\m@th\fontdimen13 \tenex\z %1 \displaystyle{#1}$}}\fontdimen13 \tenex\buffer}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Since the line is moved up behind the percent % sign, it's commented out and disabled, so the \shave command is incomplete. Make a line break after %1 and save the file, or download it from https://ctan.org/tex-archive/macros/amstex.

Btw. amstex.tex is obsolete and should not be used anymore. From CTAN:
AMS-TeX is no longer supported by the AMS, nor is it used by the AMS publishing program. The AMS does not recommend creating any new documents using AMS-TeX
It's recommended to use amsmath instead.

Stefan
LaTeX.org admin
Post Reply