Hello, 

i found a funny thing in my lyx 1.1.3, on alpha with
flore:/users/laih2/ymorere/lyx/faq_latex >latex
This is TeX, Version 3.14159 (C version 6.1)
**

when i use comment environment it puts in the tex file :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 \newenvironment{lyxcode}
   {\begin{list}{}{
     \setlength{\rightmargin}{\leftmargin}
     \raggedright
     \setlength{\itemsep}{0pt}
     \setlength{\parsep}{0pt}
     \verbatim@font}%
    \item[]}
   {\end{list}}
   \usepackage{verbatim}
   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

and without the use of it i've got :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 \newenvironment{lyxcode}
   {\begin{list}{}{
     \setlength{\rightmargin}{\leftmargin}
     \raggedright
     \setlength{\itemsep}{0pt}
     \setlength{\parsep}{0pt}
     \verbatim@font}%
    \item[]}
   {\end{list}}
   
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

in the first case i've got a lot of problem with line like this : 

\begin{lyxcode}
pstops~\char`\"{}2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)\char`\"{}~un.ps~deux.ps
\end{lyxcode}

latex does not recognize ~\char`\"{} !!!!

in the second case all work fine. no problem.

so perhaps my distribution of latex is too old but, my question is :

is it a bug or a feature....

I must say that i tried to compiled the first case on a miktex
ditribution 1.09 and on a redhat 6.0 teTeX ditribution the result is
the same...


for information i put here my latex preamble :

%% This LaTeX-file was created by <ymorere> Tue Jan 18 08:44:59 2000
%% LyX 1.0 (C) 1995-1999 by Matthias Ettrich and the LyX Team

%% Do not edit this file unless you know what you are doing.
\documentclass[10pt,oneside,french]{book}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin= 20mm,bmargin= 20mm,lmargin= 20mm,rmargin= 20mm}
\usepackage{amsmath}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{babel}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\usepackage{latexsym}

\makeatletter


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 \newenvironment{lyxcode}
   {\begin{list}{}{
     \setlength{\rightmargin}{\leftmargin}
     \raggedright
     \setlength{\itemsep}{0pt}
     \setlength{\parsep}{0pt}
     \verbatim@font}%
    \item[]}
   {\end{list}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{amssymb}
\usepackage{amsmath,amsthm}
\usepackage{supertabular}
\usepackage{longtable}
\usepackage{graphics}
\usepackage{array}
\usepackage{color}
\usepackage{colortbl}
\usepackage{fancybox}
\usepackage{rotating}
\usepackage{multirow}
\usepackage{subeqnarray}
\usepackage[obeyspaces,hyphens]{url}

\def \datemoi{\number\day\
       \ifcase\month \or janvier \or f\'evrier \or mars \or avril \or mai \or \juin 
\or juillet
       \or a\^out \or septembre \or octobre \or novembre \or d\'ecembre \fi
       \ \number\year}

\def \heure{{\count0=\time \divide\count0 by 60
        \count1 =\count0 \multiply\count1 by 60
        \advance \count1 by -\time
        \deuxchiffres{\count0}h \deuxchiffres{-\count1}}}
\def \deuxchiffres#1{\edef \next{\number#1}%
    \expandafter\deuxchiffresaux\next\end}
\def \deuxchiffresaux#1#2\end{\def\next{#2}%
    \ifx \next\empty 0#1\else #1#2\fi}


\pagestyle{fancy}
% ceci permet d'avoir les noms de chapitre et section en minuscules
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} \fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}

\fancyfoot[LE,RO]{Yann MOR\`{E}RE [EMAIL PROTECTED]}
\fancyfoot[LO]{Made with \LyX}
%\fancyfoot[RE]{le \datemoi\ \`a \heure}
\fancyfoot[RE]{ \datemoi}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\addtolength{\headheight}{0.5pt}  % espace pour le filet

\fancypagestyle{plain}{ %pages de tetes de chapitre
    \fancyhead{}    %supprime l'entete
    \fancyfoot{}    %supprime le pied de page
    \renewcommand{\headrulewidth}{0pt} %le filet haut
    \renewcommand{\footrulewidth}{0pt}}  %le filet bas

\makeatletter
\renewcommand{\l@section}{\@dottedtocline{1}{1.5em}{3em}}
\renewcommand{\l@subsection}{\@dottedtocline{2}{3.8em}{3.8em}}
\renewcommand{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
\renewcommand{\l@paragraph}{\@dottedtocline{4}{10em}{5em}}
\renewcommand{\l@subparagraph}{\@dottedtocline{5}{12em}{6em}}
\makeatother


\setlength{\parindent}{0pt}
\makeatother

\AtBeginDocument{
  \renewcommand{\labelitemi}{\(\rhd\)}
  \renewcommand{\labelitemii}{\(\triangleright\)}
}

\begin{document}


Another annoying thing is that my redefinition of \parindent does not
work. It seems to be good in lyx but not in latex....

Arglll : putting the french package after all other makes it works!!!!

Ian


-- 
 "Y faut liiirrreee... Arlequin, c'est le champion de l'amourrr..."
                                                         Dany Boon.
 ____________________________________________________________
( Yann MORERE              mailto:[EMAIL PROTECTED])
( Doctorant en Automatique http://www.multimania.com/ymorere )

Reply via email to