[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-AUCTeX] 11.83; Wrong intendation and vertical shifting in math mode

From: Frank Küster
Subject: [Bug-AUCTeX] 11.83; Wrong intendation and vertical shifting in math mode display
Date: Mon, 24 Jul 2006 10:56:02 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

In the following equation code, some things go wrong:

- the closing brace for the exponent that is started by `e^{' in the
  ninth-last line is wrongly indented, and the `-\frac' in the line
  following `e^{' should be indented by two more places, too.

- The index zero two lines later looks weird - the underscore is in the
  middle of the `0' instead near its bottom where it should be

- in the two occurences of `^2' below, the digit is shifted below the
  baseline instead above.

Here is a screenshot:

PNG image

and here is the file:


\title{End-to-end Distance Distribution in a Rigid Rod with flexible
\author{Frank Küster}

\section{A simpler model:  Gaussian chain at one end}

We assume that the linker can be modelled by a gaussian chain.  For
the sake of simplicity, in a first step we consider a rod with one
flexible linker, while the other dye fixed is the other end of the
rod\footnote{but of course completely free to rotate}.

\subsection{Two dimensions}

To dissect the problem, we first look at a two-dimensional system:


We have
  r = r_0 + r_g \cos \theta \text{ and } r_g = \frac{r - r_0}{\cos \theta}
The angles are equally distributed with $-\pi < \theta < \pi$,
$P(\theta)=\text{const.}$.  The normalization condition is
  1 = \int_{-\pi}^{\pi} P(\theta) d\theta = \text{const.} (\pi -
  (-\pi)) = 2 \pi \text{const.}
  P(\theta) = \frac{1}{2 \pi}

For any given $\theta$, the probability of the distance being $r$ is
the product of the probability of that angle, and the distance being
$r$ at that angle:
  P_{\theta}(r) = P(\theta) P_g(r_g=\frac{r-r_0}{cos \theta}
To get the overall probability $P(r)$, we have to integrate over all

  P(r) = 2 \int_0^{\pi} P(\theta) P_g(\frac{r-r_0}{\cos \theta}) d\theta

\subsection{Three dimensions}

This gives an additional angle $\phi$, which is also equally
distributed between $-\pi$ and $\pi$, but here $r$ is independent of
$\phi$.  Therefore

  P(r) = 2 \int_{0}^{\pi} P(\phi)\; 2 \int_{0}^{\pi} P(\theta)
  P_g(\frac{r-r_0}{\cos \theta}) \;d\theta\, d\phi

Since the inner integral is independent of $\theta$, we can separate
the integrations:
  P(r) = 2 \int_{0}^{\pi} P(\phi) \;d\phi \cdot 
         2 \int_0^{\pi} P(\theta) P_g(\frac{r-r_0}{\cos \theta}) \;d\theta
Substituting the expressions for the individual distribution
functions, we get
  P(r) = 2 \int_0^{\pi} \frac{1}{2\pi} d\phi \cdot 
         2 \int_0^{\pi} \frac{1}{2\pi} 
                          4 \pi \left( 
                              r - r_0
                            \nicefrac{2}{3}\pi \langle r^2\rangle
                            2\langle r^2\rangle


%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
Of course, any hints how to make AUCTeX's display the equation better by
changing line breads etc. are also appreciated.  As well as corrections
for the physics ;-)

Regards, Frank

Emacs  : GNU Emacs (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2006-06-26 on pacem, modified by Debian
Package: 11.83

current state:
 AUCTeX-date "2006-06-07"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("style" "auto" "/home/frank/texmf/tex/latex/style" 
                  "/home/frank/.auctex-styles/" "/home/frank/.auctex-styles/" 
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %S%(PDFout) \"%(mode)\\input %t\"" 
TeX-run-TeX nil
                     (plain-tex-mode texinfo-mode ams-tex-mode) :help "Run 
plain TeX")
                    ("LaTeX" "%l \"%(mode)\\input{%t}\"" TeX-run-TeX nil 
(latex-mode doctex-mode) :help "Run LaTeX")
                    ("MakePDF" "make %s.pdf" TeX-run-TeX nil t) ("MakeTeil1" 
"make teil1" TeX-run-command nil t)
                    ("MakeTeil2" "make teil2" TeX-run-command nil t)
                    ("Makeinfo" "makeinfo %t" TeX-run-compile nil 
(texinfo-mode) :help "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil 
(texinfo-mode) :help
                     "Run Makeinfo with HTML output")
                    ("AmSTeX" "%(PDF)amstex %S%(PDFout) \"%(mode)\\input %t\"" 
TeX-run-TeX nil (ams-tex-mode) :help
                     "Run AMSTeX")
                    ("ConTeXt" "texexec --once --texutil %(execopts)%t" 
TeX-run-TeX nil (context-mode) :help
                     "Run ConTeXt once")
                    ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil 
(context-mode) :help
                     "Run ConTeXt until completion")
                    ("ConTeXt Clean" "texutil --purgeall" TeX-run-interactive 
nil (context-mode) :help
                     "Clean temporary ConTeXt files")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run 
                    ("View" "%V" TeX-run-discard t t :help "Run Viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help "View the 
printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help 
"Generate PostScript file")
                    ("Index" "makeindex %s" TeX-run-command nil t :help "Create 
index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) 
:help "Check LaTeX file for correctness")
                    ("Spell" "<ignored>" TeX-run-ispell-on-document nil t :help 
"Spell-check the document")
                    ("Other" "" TeX-run-command t t :help "Run an arbitrary 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]