LaTeX 코드가 컴파일되지 않는 문제

LaTeX 코드가 컴파일되지 않는 문제

LaTeX 코드를 컴파일하는 데 문제가 있습니다. 최근에 저는 숙제를 작성하기 위해 LaTeX를 배우고 있습니다. 오류는 다음과 같습니다: runaway 논쟁?, 누락된 $가 삽입되었습니다.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[]{amsthm} 
\usepackage[]{amssymb} 
\usepackage{flexisym}
\usepackage{amsmath}

\title{Desarrollo}
\author{Example}
\date\today

\begin{document}
\maketitle 
\subsection*{Desarrollo}
\textit{
\textbf{iii.} Encuentre los intervalos de concavidad y los puntos de inflexión.
}



\text{Calculemos $f\textprime\textprime(x)$}

\begin{align*}
    &\text{Teniamos anteriormente que la derivada era}\\
    f\textprime(x)&=\tan x \cdot \sec^{2}x\\\\
    f\textprime\textprime(x)&=\sec^{2}(x) + [(1)\cdot(\sec ^{2}x)\cdot + x\cdot(\sec ^2x)\textprime]\\
    &=\sec^{2}x+(\sec^{2}x+2\sec ^{2}x \cdot \tan x)\\
    &=\sec^{2}x+\sec^{2}x+2\sec ^{2}x \cdot \tan x\\
    &=2\sec^{2}x+2\cdot \sec^{2}x\cdot \tan x\\\\
    &\text{Podemos factorizar por $\sec^{2}x$}\\
    f \textprime \textprime(x)&=\sec ^{2}x (2+2 \tan x)\\\\
    &\text{Entonces calculamos sus puntos criticos}\\


\end{align*}


\clearpage



\end{document}

보너스: 누구든지 LaTeX로 숙제를 작성할 수 있는 좋은 자료가 있다면 기꺼이 받을 것입니다.

답변1

나는 환경에서 여분의 빈 줄을 제거 align*하고 자료의 일부를 재배열하여 새로운 부분, 즉 2차 도함수의 파생에 시각적 초점을 더 두었습니다. 예를 들어, 1차 도함수의 공식을 다시 설명하기 위해 표시된 방정식을 사용할 필요가 없다고 생각합니다. \intertext제쳐두고 설명하는 주석을 조판하는 데 사용하십시오 . 또한 모든 인스턴스 \textprime'. (내 생각 엔 매크로 flexisym에 액세스하기 위해 패키지를 로드한 \textprime것 같죠?)

여기에 이미지 설명을 입력하세요

\documentclass{article}
%\usepackage[utf8]{inputenc} % that's the default nowadays
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{amsthm,amssymb,amsmath}
%\usepackage{flexisym} % no longer needed

\begin{document}
\subsection*{Desarrollo}

\textit{\textbf{iii.} Encuentre los intervalos de concavidad y los puntos de inflexión.}

\medskip
Calculemos $f''(x)$.

Teniamos anteriormente que la derivada era $f'(x)=\tan x \sec^2 x$.
\begin{align*}
    f''(x)&= \sec^2 (x) + [(1)(\sec ^2 x) + x(\sec^2 x)'\,]\\
          &= \sec^2 x+(\sec^2 x+2\sec^2 x \cdot \tan x)\\
          &= \sec^2 x+\sec^2 x+2\sec ^2 x \cdot \tan x\\
          &= 2\sec^2 x+2 \sec^2 x \tan x\\
\intertext{Podemos factorizar por $\sec^2 x$:}
    f''(x)&= 2\sec ^2 x (1+\tan x)\,.
\end{align*}
Entonces calculamos sus puntos criticos.

\end{document}

답변2

 \documentclass{article}
 \usepackage[utf8]{inputenc}
 \textwidth=16cm
  \oddsidemargin=1cm
  \usepackage{blindtext}
  \title{Desarrolo}
  \date{\today}
  \author{Example}
  \begin{document}
  \maketitle

   \section{Introduction}
    \blindtext

    \subsection*{Desarrollo}
    \textit{
     \textbf{iii.} Encuentre los intervalos de concavidad y los puntos de  
     inflexión.
        }

    \vspace{1cm}

    \noindent
    \section*{Calculemos $f''(x)$}


        Teniamos anteriormente que la derivada era\medskip

    \hspace{2cm}{  f'(x)= $ tan\;x \cdot sec^{2}\left[x\right]$\medskip}

   \hspace{2cm}{\begin{tabular}{rl} 
     f'(x)  = & $sec^{2}(x) + \left[(1)\cdot(sec ^{2}x)\cdot + x\cdot(sec  
    ^2x)'\right]$  \\ 
    =& $sec^{2}{x}+(sec^{2}{x}+2sec ^{2}{x} \cdot tan {x})$\\
    =& $sec^{2}{x}+sec^{2}{x}+2 sec^{2}{x} \cdot tan {x}$\\
    = & $2 sec^{2}{x}+2\cdot sec^{2}{x}\cdot tan {x}$\\
    \end{tabular}\medskip }   

    Podemos factorizar por $\sec^{2}{x}$\\\medskip    

    {\hspace{2cm}{ f'(x) = =$ sec ^{2} x (2+2 tan x)$\medskip}

    Entonces calculamos sus puntos criticos\medskip

    \clearpage

    \end{document}

이것은 간단한 라텍스 설명으로 공식화됩니다. 요구 사항에 따라 수정할 수 있습니다.

관련 정보