Why Doesn't My LaTeX Code Compile Correctly?

  • Context: LaTeX 
  • Thread starter Thread starter latentcorpse
  • Start date Start date
  • Tags Tags
    Code Issues Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 4K views
latentcorpse
Messages
1,411
Reaction score
0
hi i wrote the following code. i think it's fairly easy to understand what I am trying to get it to print. but LaTeX really doesn't like it. any advice?

\documentclass[12pt]{report}
\usepackage{float}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{mathrsfs}


\begin{document}
\begin{subequations}
\begin{equation}
U(\theta,t)=\beta \ln{t} + \gamma + \nu(\theta,t) t^{-\frac{1}{2}}+\kappa(\theta,t)
\end{equation}
where $\beta$ and $\gamma$ are constants, $\nu$ is a bounded solution of the wave equation $\nu''=\ddot{\nu}$ and the remainder, $\kappa$, obeys
\begin{align*}
| \kappa(\theta,t) | &\leqslant C_7 t^{-\frac{3}{2}} \\
| \partial_t \kappa(\theta,t)| &\leqslant C_8 t^{-\frac{3}{2}}
\end{align*}
and
\begin{equation}
A(\theta,t)= \begin{cases}
\alpha + \beta^2 \ln{t} & \quad \text{ if $\nu(\theta,t)=0 \forall \theta,t$} \\
\delta t + \epsilon(\theta,t) & \quad \text{ if $\nu(\theta,t) \neq 0$ for some $\theta$ and $t$}
\end{cases}
\end{equation}
\end{subequations}
\end{document}
 
Physics news on Phys.org
My advice is "www.lyx.org"[/URL]. It is a multi-platform LaTeX front-end (also free) that is a WYSIWYM (mean) (opposed to the OOo and MS WYSIWYG (get) ). No more need for $mathstuff$ and no more front matter (you can still add new codes via the Preamble option in the Document menu). I've been using it since version 1.4.2 (now on version 1.6.4).

What is great about it is you can see your work (math-type work I mean) as you are writing so there will be no compiling issues unless your single line of math-code is missing something necessary, like {,}, or something else of that nature.
 
Last edited by a moderator:
Use the amsart document class along with the amssymb and latexsym packages.
 
What is the error LaTeX gives?
 
\begin{align*}
| \kappa(\theta,t) | &\leqslant C_7 t^{-\frac{3}{2}} \\
| \partial_t \kappa(\theta,t)| &\leqslant C_8 t^{-\frac{3}{2}}
\end{align*}

these don't need to be in an equation or $$'s?