LaTeXt PDF文件未打开

  • 本文关键字:文件 PDF LaTeXt latex
  • 更新时间 :
  • 英文 :


我有一个LaTeXt文件,我下载了MacTeX,这是我第一次为一个类。这是我下载的唯一一个程序。我打开TeXShop,写了如下代码

documentclass{beamer}
title{Introduction to LaTeX}
author{Abdulahad Ghuman}
date{March 3, 2021}
begin{document}
maketitle
begin{frame}
frametitle{What is LaTeX}
begin{itemsize}
item LaTeX is used to prepare documents with high-quality typesetting
item LaTeX is pronounced as Lay-tech not La=tex
item LaTeX is used for technical or scientific documents
end{itemsize}
end{frame}
begin{frame}
frametitle{Why use LaTeX}
begin{itemsize}
item Easily accommodates academic use
item Predefined layouts make documents look professional
item Mathematical symbols and equations are easily integrated
item Footnotes and bibliographies can also be easily made
item Creates more beautiful documents
item Portable and compatible among multiple devices
end{itemsize}
end{frame}
begin{frame}
frametitle{How to install LaTeX for Windows}
begin{itemsize}
item Download MiKTeX which is a typesetting system for Windows
item Download a text editor such as WinEdit, however, WinEdit costs $30
end{itemsize}
end{frame}
begin{frame}
frametitle{How to install LaTeX for Mac}
begin{itemsize}
item Download TexShop which includes everything
item Alternatively you can download MacTeX
end{itemsize}
end{frame}
begin{frame}
frametitle{Basic format for LaTeX documents}
begin{itemsize}
item The preamble includes Documentclass and Packages
item The front matter can include the title, author, date, etc
item The body includes the content of the document
item Optionally, you can also include a bibliography
end{itemsize}
end{frame}
end{document}

PDF打不开,我得到错误"可能损坏或使用的文件格式预览无法识别"。我需要一个特殊的程序来使用激光吗?是这个问题吗,我只下载了MacTeX。还有一个程序叫做LaTeXiT。另外,我该如何添加美学元素?在我的文件真正打开之后。

编辑:我的Mac版本是10.15.4,我看到"如果你运行的是Mac OS 10.3到10.12,请点击这里获取旧版本的MacTeX"。这是问题所在吗?

两个问题:

  • $是latex启动内联数学模式的特殊字符。要实际键入$,请使用$

  • 应该是itemize而不是itemsize


documentclass{beamer}
title{Introduction to LaTeX}
author{Abdulahad Ghuman}
date{March 3, 2021}
begin{document}
maketitle
begin{frame}
frametitle{What is LaTeX}
begin{itemize}
item LaTeX is used to prepare documents with high-quality typesetting
item LaTeX is pronounced as Lay-tech not La=tex
item LaTeX is used for technical or scientific documents
end{itemize}
end{frame}
begin{frame}
frametitle{Why use LaTeX}
begin{itemize}
item Easily accommodates academic use
item Predefined layouts make documents look professional
item Mathematical symbols and equations are easily integrated
item Footnotes and bibliographies can also be easily made
item Creates more beautiful documents
item Portable and compatible among multiple devices
end{itemize}
end{frame}
begin{frame}
frametitle{How to install LaTeX for Windows}
begin{itemize}
item Download MiKTeX which is a typesetting system for Windows
item Download a text editor such as WinEdit, however, WinEdit costs $30
end{itemize}
end{frame}
begin{frame}
frametitle{How to install LaTeX for Mac}
begin{itemize}
item Download TexShop which includes everything
item Alternatively you can download MacTeX
end{itemize}
end{frame}
begin{frame}
frametitle{Basic format for LaTeX documents}
begin{itemize}
item The preamble includes Documentclass and Packages
item The front matter can include the title, author, date, etc
item The body includes the content of the document
item Optionally, you can also include a bibliography
end{itemize}
end{frame}
end{document}

最新更新