bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] [SOLVED] (was: preview-1.287; preview seems to scan commen


From: Uwe Brauer
Subject: [Bug-AUCTeX] [SOLVED] (was: preview-1.287; preview seems to scan commented commands)
Date: Sun, 12 Oct 2014 21:39:32 +0200
User-agent: Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b33 (linux)

   > Hi Uwe,
   > 2014-10-12 19:12 GMT+02:00 Uwe Brauer <address@hidden>:

   > I can reproduce the bug with XEmacs but not with GNU Emacs, though I'm
   > not familiar enough with preview internals to find the culprit by
   > myself.


Sort of solved:

\newcounter{ubcomment}
\newcommand{\ubcomment}[2][]{%
\stepcounter{ubcomment}%
{%
%\todo[color={red!100!green!33},size=\small]{%
\todo[color={red!90!},size=\footnotesize]{%
\textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}%
}}

Gives an error and its commented out version as well:
,----
| 
| Runaway argument?
| \newcommand {\ubcomment }[2][]{^^M\stepcounter {ubcomment}^^M{^^M\todo \ETC.
| ! File ended while scanning use of ^^M.
| <inserted text> 
|                 \par 
| <*> &prv_test-preview test-preview.tex
|                                       
| ! Emergency stop.
| <*> &prv_test-preview test-preview.tex
|                                       
| No pages of output.
| Transcript written on test-preview.log.
`----

However 
\newcounter{ubcomment}
\newcommand{\ubcomment}[2][]{%
\stepcounter{ubcomment}%
{%
\todo[color={red!90!},size=\footnotesize]{%
\textbf{Fixme: UB [\uppercase{#1}\theubcomment]:}~#2}%
}}

does not give an error, nor its commented out version.

Odd odd, but I can live with it.


Uwe 




reply via email to

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