On Sun, Nov 05, 2006 at 06:07:20PM +0100, Herbert Voss wrote:

> Enrico Forestieri schrieb:
> > On Sun, Nov 05, 2006 at 04:21:47PM +0100, Herbert Voss wrote:
> > 
> >> Enrico Forestieri schrieb:
> >>
> >>>>> I think that we should leave the 256, but if you and others don't agree,
> >>>>> then please also make the corresponding changes to texparser.C
> >>>> only the characters 0,13,32,35-38,65-90,92,94,95,97-123,125-127
> >>>> have a catcode other than 12. All others from the 256 possible
> >>>> ones have 12.
> >>> Right. But I could catcode them and, if this is not taken into account,
> >>> a bug can arise, at least with tex2lyx. See my other post.
> >> and where is the sense of having catcodes??
> >> The user or any package author can redefine the catcodes
> >> just as he like ... and LyX doesn't really knows ...
> >> Making characters active is done in nearly all packages.
> > 
> > Try to import in LyX the attached file.
> 
> oh come on, this snippet of code says nothing. Making
> a character active is only one sort of playing with catcodes.

Maybe yes, or maybe not. That was simply an example of what could go
wrong. The fact that you or me cannot foresee a practical application
for changing catcodes doesn't really matter. When you someway limit
what you can do, is a bad thing, IMO.

> btw.: what does LyX say with (I cannot test, cvs doesn't compile)

You can also use 1.4.3, anyway tex2lyx fails with the "\def", as you
can see from the attached.

-- 
Enrico
#LyX file created by  tex2lyx 0.1.2
\lyxformat 245
\begin_document
\begin_header
\textclass article
\begin_preamble

\catcode`\§=\active
\def\{\sin}

\end_preamble
\language english
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize default
\use_geometry false
\use_amsmath 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header

\begin_body

\begin_layout Standard


\begin_inset Formula \[
y=§x
\]
\end_inset

 
\end_layout

\end_body
\end_document

Reply via email to