微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

LaTeXt PDF 文件打不开

如何解决LaTeXt PDF 文件打不开

我有一个 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 无法打开,我收到错误消息“它可能已损坏或使用了 Preview 无法识别的文件格式。”我需要一个特殊的程序来使用 beamer 吗?是这个问题吗,我只下载了 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}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。