鼠尾草有问题

鼠尾草有问题

我似乎无法按照上一篇文章中提供的链接中的说明生成 .sty 文件,

我的日志文件显示:

This is pdfTeX, Version 3.141592653-2.6-1.40.24 (MiKTeX 22.1) (preloaded format=pdftex 2022.9.12)  18 SEP 2022 11:16
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**/Users/paulallen/Desktop/AllLatex/sage/sage2
(/Users/paulallen/Desktop/AllLatex/sage/sage2
! Undefined control sequence.
l.1 \documentclass
                  {article}
? H
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

? 
! Undefined control sequence.
l.2 \usepackage
               {sagetex}
? 
! Undefined control sequence.
l.4 \begin
          {document}
? 
! Undefined control sequence.
l.7 your \LaTeX
               {} document. For example, there are
? 
! Undefined control sequence.
<recently read> \sage 
                      
l.8 $\sage
          {number_of_partitions(1269)}$ integer partitions of $1269$.
? 
! Undefined control sequence.
l.14 \begin
           {sageblock}
? 
[1{/Users/paulallen/Library/Application Support/MiKTeX/texmfs/data/fonts/map/pd
ftex/pdftex.map}] )</Library/Application Support/MiKTeX/texmfs/install/fonts/ty
pe1/public/amsfonts/cm/cmmi10.pfb></Library/Application Support/MiKTeX/texmfs/i
nstall/fonts/type1/public/amsfonts/cm/cmmi7.pfb></Library/Application Support/M
iKTeX/texmfs/install/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on sage2.pdf (1 page, 37777 bytes).
PDF statistics:
 18 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

我尝试按照建议的方式运行示例 Tex 两次,但它仍然没有给我一个 .sty 文件,我只在最终的 PDF 中看到?? 标记,任何帮助都将不胜感激,这让我很头疼,因为所有的文献都让它看起来很简单。

相关内容