From: Riccardo Lattanzi <rlattanzi@gm...>  20040628 21:30:19

Thanks everybody for helping. For those who ask about \mathscr I found it on one of the tutorials available online (pag 78 of PDF, pag 64 in the text): http://www.ctan.org/texarchive/info/lshort/english/lshort.pdf Does anybody know how to solve the other display problem I wrote about: e^{i [( k _{lx}  \, k _{{l'} x}^*) is displayed with the subscript letters not aligned (at different levels). So the first "k" has the subscript "lx" at a higher position than the subscript "l'x" of the second "k". Is that solvable, or it has to do with the fact that the second "k" has also the superscript "*" (and the symbol ') and Latex automatically moves down the subscript? Best Regards, Riccardo On Mon, 28 Jun 2004 22:45:52 +0200 (=?iso88591?Q?Westeurop=E4ische_Sommerzeit?=), Cornelius C. Noack <noack@...> wrote: > > 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 > ................................................................. > > > lattanzi.tex  2K Download > 