From: Cornelius C. Noack <noack@ph...>  20040628 20:46:01

Hi Ricardo, since you say you are new to LaTeX, I must commend you on a certain amount of bravery, tackling an already pretty advanced task. You made about 4 different errors simultaneously. That is not so unusal for a first draft; but obviously you had trouble understanding the significance of the various error messages (in your case coming from 3 different programs: TeX, LaTeX and the amsmath package), and that is also quite common in the beginning. So here is the most important advice:  Comment out as much as possible (literally even everything  between the '\begin{document}' and the '\end{document}')  until you get the source running errorfree, and then work  your way up from there! I have taken your example and commented all your errors; cf. the attachment. I hope you understand everything now; if not, you should read both the LaTeX and the AmsMath documentation. The code I sent back should run errorfree; if it doesn't, there is an installation problem, get back to this list in that case. Here are a few more comments: (i) the command \mathscr is unkown to TeX, LaTeX and amsmath (and to me, by the way). I have replaced it by \textsc just to show you what's wrong, (ii) 'letterpaper' should be the default (unless you have a very special installation), so that is superfluous (but innocuous), (iii) the sitation is similar for the 'amsfonts' package: you need that only when you need rather special math fonts (usually not for regular physics texts), (iv) the most nontrivial error is the mix of generic LaTeX math constructions and those of amsmath. These are often pretty tricky to find. You should by all means at least browse through the amsmath users's guide, available, e.g., from ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf I hope this is of some help to you. Regards, ccn.  On Mon, 28 Jun 2004, Riccardo Lattanzi wrote: > Hi, > > I'm new to Latex and I really want to learn it. > I'm trying to write a report containing some mathematical expression... > so far it doesn't compile and I can't understand why. > Can anybody help me with this? > I'm pasting the code lines below. > Thanks, > Riccardo > > \documentclass[letterpaper,12pt]{article} > \usepackage{amsfonts} > \usepackage{amsmath} > \author{Riccardo Lattanzi} > \title{Analytical expression for the noise covariance matrix for > different sample geometry} > \begin{document} > \maketitle > \tableofcontents > \section{General expression} > \begin{displaymath} > \Psi _{ \mathscr{ll}'}=\sigma \int_{V_S} \, \mathcal{E}_{\mathscr l > }(\mathbf r) \cdot > {\mathcal{E}_{\mathscr l'}}^*(\mathbf r) d^3 \mathbf r$ > \end{displaymath} > \begin{displaymath} > \mathcal{E} _{\mathscr l }(\mathbf r) = \sum _{\mathscr l } \, > \mathcal{E} _{\mathscr l }^{^{+,}} > e^{i {\mathbf k} _{\mathscr l } \cdot \, \mathbf r  \, i \omega t }$ > \end{displaymath} > > \section{Filled cylinder: length 2*l, radius a} > > \begin{equation} \label{eq:sgnl} > \begin{align} > > \Psi _{ \mathscr{ll}'}& =\sigma \mathcal{E}_{\mathscr l} \cdot > {\mathcal{E}_{\mathscr l'}}^* \int _{\mathscr l }^{\mathscr l } > e^{i ( k _{{\mathscr l} z}  \, k _{{\mathscr {l'}} z}^*) z}dz \, > \int _0 ^{r_c} rdr \, \int _0 ^{2 \pi} > e^{i [( k _{{\mathscr l} x}  \, k _{{\mathscr {l'}} x}^*) \cos{\theta} + > ( k _{{\mathscr l} y}  \, k _{{\mathscr {l'}} y}^*) \sin{\theta}]r}d{\theta} \\ > > \frac{2\sin{(k _{{\mathscr l} z}  \, k _{{\mathscr {l'}} z}^*) l}{(k > _{{\mathscr l} z}  \, k _{{\mathscr {l'}} z}^*)} > > > \end{align} > \end{equation} > > > \end{document} > > >  > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 2429  > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit http://www.blackhat.com > _______________________________________________ > MiKTeXUsers mailing list > MiKTeXUsers@... > https://lists.sourceforge.net/lists/listinfo/miktexusers >  ................................................................. Prof.Dr. Cornelius C. Noack Phones: Inst. f. Theor. Physik FB 1 office : +49 (421) 2182427 Universit"at Bremen secretary: 2422 OttoHahnAllee Fax : 4869 D  28334 Bremen home : +49 (421) 34 22 36 Fax: 346 7872 Email: noack at physik.unibremen.de or ccnoack at mailaps.org WWWpage: http://www.itp.unibremen.de/~noack ................................................................. 