LaTeX Why Doesn't My LaTeX Code Compile Correctly?

  • Thread starter Thread starter latentcorpse
  • Start date Start date
  • Tags Tags
    Code Issues Latex
AI Thread Summary
The discussion revolves around a user seeking help with LaTeX code that is not compiling as expected. The provided code includes mathematical equations and conditions related to functions U and A, which involve constants and bounded solutions of the wave equation. A suggestion is made to use LyX, a free multi-platform LaTeX front-end, which simplifies the writing process by allowing users to see their work in a more visual format, reducing compiling issues. The importance of using the correct document class and packages, such as amsart, amssymb, and latexsym, is emphasized. Additionally, it is noted that certain equations do not require the use of display math environments, which could be causing compilation errors. The discussion highlights the need for clarity in LaTeX syntax to avoid common pitfalls.
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?
 

Similar threads

Replies
3
Views
2K
Replies
8
Views
12K
Replies
4
Views
3K
Replies
1
Views
3K
Replies
7
Views
3K
Replies
3
Views
6K
Back
Top