auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] problem fill LaTeX-fill-environment kills %%


From: Arash Esbati
Subject: Re: [AUCTeX-devel] problem fill LaTeX-fill-environment kills %%
Date: Sat, 04 Mar 2017 12:22:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2

Uwe Brauer <address@hidden> writes:

> Now I put a doble %% in the line with the first item, leaving a space
>
> \documentclass[addpoints,12pt]{exam}
> \begin{document}
> \begin{questions}
>
> \titledquestion{Regresión}
> Se ha medido el contenido de oxígeno, $Y$, en mg/litro de un
>  lago, a una profundidad de $X$ metros, obteniéndose los
>  siguientes datos:
>  \begin{equation*}
>  \begin{tabular}{c|cccccc}
>  $X$ & 15 & 20 & 30 & 40 & 50 & 60\\
>  \hline
>  $Y$ & 6.5 & 5.6 & 5.4 & 6 & 4.6 & 1.4
>  \end{tabular}
>  \end{equation*}
>  \begin{enumerate}
>    \item Dibujar la nube de puntos.   %%
>
>    \item Calcular el coeficiente de correlación.
>  \end{enumerate}
> \end{questions}
> \end{document}
>
> Now for me running LaTeX-fill-environment kills %%
>
> Can somebody please confirm it? When I delete the empty line
> everything is fine, but the behavior seems annoying.

Hi Uwe,

I put the cursor in several places in your example above and hit `C-c
C-q C-e'.  I can't reproduce what you describe.

BTW, LaTeX has also an array environment; you could write your code like
this:

\begin{equation*}
  \begin{array}{c|cccccc}
    X & 15 & 20 & 30 & 40 & 50 & 60\\
    \hline
    Y & 6.5 & 5.6 & 5.4 & 6 & 4.6 & 1.4
  \end{array}
\end{equation*}

Best, Arash



reply via email to

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