在LaTex中,为什么我的脚本无法正确加载?

问题描述 投票:0回答:1
\documentclass{article}
\usepackage{graphicx}

\begin{document}

\title{Introduction to \LaTeX{}}
\author{Author's Name}

\maketitle

\begin{abstract\myhowse}
The abstract text goes here.
\end{abstract}

\section{Introduction}
Here is the text of your introduction.

\begin{equation}
    \label{simple_equation}
    \alpha = \sqrt{ \beta }
\end{equation}

\subsection{Subsection Heading Here}
Write your subsection text here.

\begin{figure}
    \centering
    \includegraphics[width=3.0in]{myfigure}
    \caption{Sim}ulation Results}
    \label{simulationfigure}
\end{figure}

section{Conclusion}
Write your conclusion here.

\end{document}

[当我尝试编译时,控制台被阻塞而没有错误,并且不进行任何编译,太奇怪了,上周代码稳定运行了

你能给我我们的建议吗?

latex
1个回答
0
投票

脏代码:

\documentclass{article}
\usepackage{graphicx}

\begin{document}

\title{Introduction to \LaTeX{}}
\author{Author's Name}

\maketitle

\begin{abstract\myhowse} << here a error: a extra backslash assigned
The abstract text goes here.
\end{abstract}

\section{Introduction}
Here is the text of your introduction.

\begin{equation}
    \label{simple_equation}
    \alpha = \sqrt{ \beta }
\end{equation}

\subsection{Subsection Heading Here}
Write your subsection text here.

\begin{figure}
    \centering
    \includegraphics[width=3.0in]{myfigure}
    \caption{Sim}ulation Results} << error here: extra bracket added
    \label{simulationfigure}
\end{figure}

section{Conclusion} << error here: missing backslash
Write your conclusion here.

\end{document}

固定代码:

\documentclass{article}
\usepackage{graphicx}

\begin{document}

\title{Introduction to \LaTeX{}}
\author{Author's Name}

\maketitle

\begin{abstractmyhowse}
The abstract text goes here.
\end{abstract}

\section{Introduction}
Here is the text of your introduction.

\begin{equation}
    \label{simple_equation}
    \alpha = \sqrt{ \beta }
\end{equation}

\subsection{Subsection Heading Here}
Write your subsection text here.

\begin{figure}
    \centering
    \includegraphics[width=3.0in]{myfigure}
    \caption{Simulation Results}
    \label{simulationfigure}
\end{figure}

\section{Conclusion}
Write your conclusion here.

\end{document}

我希望这会有用!

© www.soinside.com 2019 - 2024. All rights reserved.