LaTeX cls class on LyX

2023-07-30 Thread Bruno Schneider
Hello, I'm having trouble using a LaTeX cls document class on LyX. I'm
using LyX 2.3.7 and TeX Live 2022.20230122 on Debian.

I've copied the cls file (classname.cls) into
~/texmf/tex/latex/classname and ran texhash.

Now, I can compile the example .tex file on some other directory using
pdflatex. Output is generated as intended.

Then, I have asked LyX to reconfigure and restarted it.

Still, when I go to "Document -> Settings -> Document Class" the class
is not there.

Please help.

-- 
Bruno Schneider
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Document stoped compileing with strange error: LaTeX Error: Missing begin{document}.

2014-07-11 Thread Bruno Morgado
Hi,
but how do I do that from Lyx?
-- 
Bruno Morgado
Sent with Airmail

On 11 Jul 2014 at 18:43:55, Eisa Ayed (eisalen...@yahoo.com) wrote:

This is normal behavior. Just compile the file twice after compiling the .bib 
file. Roughly: 

Pdflatex file.tex
Bibtex file.tex
Pdflatex file.tex
Pdflatex file.tex


Sent from my iPhone

On Jul 11, 2014, at 8:16 PM, Bruno Morgado  wrote:

Hi all,
I was writing the introduction to my PhD thesis and since the references to
some pictures were showing up as ??

Document stoped compileing with strange error: LaTeX Error: Missing begin{document}.

2014-07-11 Thread Bruno Morgado
Hi all,
I was writing the introduction to my PhD thesis and since the references to
some pictures were showing up as ?? I changed the label of one of those
pictures in the hopes that it solved the problem.

Well, it didn't, in fact I can't compile my thesis anymore.

Now it fails with the error LaTeX Error: Missing begin{document}

I tried to delete that picture to no avail, I also tried to create a new
document and copy past everything but it didn't work as well.

Any ideas?

Here is the complete log:

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded
format=pdflatex 2014.7.11)  11 JUL 2014 18:13
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**Thesis_Intro.tex
(./Thesis_Intro.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 78 languages loaded.

(/usr/local/texlive/2014/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 43.
)) (/usr/local/texlive/2014/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2014/04/30 v1.2b Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/latin9.def
File: latin9.def 2014/04/30 v1.2b Input encoding file
)) (/usr/local/texlive/2014/texmf-dist/tex/latex/tools/array.sty
Package: array 2008/09/09 v2.4c Tabular extension package (FMi)
\col@sep=\dimen103
\extrarowheight=\dimen104
\NC@list=\toks16
\extratabsurround=\skip43
\backup@length=\skip44
) (/usr/local/texlive/2014/texmf-dist/tex/latex/float/float.sty
Package: float 2001/11/08 v1.3d Float enhancements (AL)
\c@float@type=\count87
\float@exts=\toks17
\float@box=\box26
\@float@everytoks=\toks18
\@floatcapt=\box27
) (/usr/local/texlive/2014/texmf-dist/tex/latex/units/units.sty
Package: units 1998/08/04 v0.9b Typesetting units
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
) (/usr/local/texlive/2014/texmf-dist/tex/latex/units/nicefrac.sty
Package: nicefrac 1998/08/04 v0.9b Nice fractions
\L@UnitsRaiseDisplaystyle=\skip45
\L@UnitsRaiseTextstyle=\skip46
\L@UnitsRaiseScriptstyle=\skip47
)) (/usr/local/texlive/2014/texmf-dist/tex/latex/base/textcomp.sty
Package: textcomp 2005/09/27 v1.99g Standard LaTeX package
Package textcomp Info: Sub-encoding information:
(textcomp)   5 = only ISO-Adobe without \textcurrency
(textcomp)   4 = 5 + \texteuro
(textcomp)   3 = 4 + \textohm
(textcomp)   2 = 3 + \textestimated + \textcurrency
(textcomp)   1 = TS1 - \textcircled - \t
(textcomp)   0 = TS1 (full)
(textcomp) Font families with sub-encoding setting implement
(textcomp) only a restricted character set as indicated.
(textcomp) Family '?' is the default used for unknown fonts.
(textcomp) See the documentation for details.
Package textcomp Info: Setting ? sub-encoding to TS1/1 on input line 71.
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
)
LaTeX Info: Redefining \oldstylenums on input line 266.
Package textcomp Info: Setting cmr sub-encoding to TS1/0 on input line 281.
Package textcomp Info: Setting cmss sub-encoding to TS1/0 on input line 282.
Package textcomp Info: Setting cmtt sub-encoding to TS1/0 on input line 283.
Package textcomp Info: Setting cmvtt sub-encoding to TS1/0 on input line 284.
Package textcomp Info: Setting cmbr sub-encoding to TS1/0 on input line 285.
Package textcomp Info: Setting cmtl sub-encoding to TS1/0 on input line 286.
Package textcomp Info: Setting ccr sub-encoding to TS1/0 on input line 287.
Package textcomp Info: Setting ptm sub-encoding to TS1/4 on input line 288.
Package textcomp Info: Setting pcr sub-encoding to TS1/4 on input line 289.
Package textcomp Info: Setting phv sub-encoding to TS1/4 on input line 290.
Package textcomp Info: Setting ppl sub-encoding to TS1/3 on input line 291.
Package textcomp Info: Setting pag sub-encoding to TS1/4 on input line 292.
Package textcomp Info: Setting pbk sub-encoding to TS1/4 on input line 293.
Package textcomp Info: Setting pnc sub-encoding to TS1/4 on input line 294.
Package textcomp Info: Setting pzc sub-encoding to TS1/

Re: Fwd: Is there a template for "User Guide", like the one used for Lyx

2013-05-28 Thread Bruno Vernay
On Tue, May 28, 2013 at 1:21 AM, Uwe Stöhr  wrote:
> Am 27.05.2013 17:23, schrieb Bruno Vernay:
>
>> I found that the Lyx "User Guide" is quite close to what I would like
>> to do. But I didn't find a template matching its document class "book
>> (Koma script)".
>
>
> What is your LyX version, and what is your OS?
> If you are on Windows, just open an Internet connection and use the menu
> Tools->reconfigure. This will automatically install all LaTeX packages and
> document classes you need.

I use Lyx 2.0.6 on "MS-Windows XP SP3".
I reconfigured it and restarted, didn't see much differences so.

>
>> My very simple question would be: can I just open the
>> doc/UserGuide.lyx, save it as myfile.lyx and start modifying the
>> document ?? or is it a bad idea?
>
> A good idea, I would say because I also write technical documentations using
> this as template (OK, I set up the UserGuide as it currently is ;-) )

Kool. I found that even the "docbook-article" is OK, but requires.
Anyway, I started with the "UserGuide" and will stick to it for now.

>
> But for larger things I recommend to start with the thesis template that you
> find in LyX's template folder in the subfolder thesis.

I won't do larger things. My average document is about 20 pages (A4).
I guess 80 pages is about the maximum that can be managed in my
projects, above I split them, because nobody would consider reading
them.

>
> regards Uwe
>

One things that bugs me a lot is how cluttered the templates and
examples are. For example the "new from template" shows a lot of
cryptic files names that could have been categorized as scientific
journals, books, literacy, CV, asian, cyrillic, persian, bidi
languages ...
Why isn't there some kind of "distribution" with packages relevant to
only chemistry or games or serbian documents ?  Like the Eclipse
packages for example

Regards
Bruno


Fwd: Is there a template for "User Guide", like the one used for Lyx

2013-05-27 Thread Bruno Vernay
Hello,

I would like to use Lyx to create User guides and Technical reference
documents about computer/software.

They usually includes menus like "File -> Save as ..,  sample code,
file names, program outputs ...
(Typically, what Docbook includes by default.)

After some research, I didn't find anything obvious. Found:
 - http://wiki.lyx.org/Layouts/Layouts or
http://www.latextemplates.com/ all beautiful, but nothing about
computer science.
 - http://www.ctan.org/pkg/refman or memoir but they are old and maybe
not directly usable in Lyx

I am not against learning some Latex commands, but I would like to
start rapidly and with a layout that would be close and perene for
computer science.

I found that the Lyx "User Guide" is quite close to what I would like
to do. But I didn't find a template matching its document class "book
(Koma script)".

My very simple question would be: can I just open the
doc/UserGuide.lyx, save it as myfile.lyx and start modifying the
document ?? or is it a bad idea?

Is there some place to gather around a common subjects like
mathematics, poetry/hollywood, chemistry, chess/music/recipes,
journal, books ...

Thanks
--
Bruno VERNAY


Citation of Authors With the Same Last Name with Natbib

2010-06-17 Thread Bruno-

Hi, I've got 2 authors with the same last name and I'm using Natbib. How can
I show the initials of the first names of these authors?
To do something like this:

(R.A Harris, 1995) 
(Z.S Harris, 1951)

Now in both cases, only surname appears. And if I put them together, LyX
shows (Harris, 1995, 1951). What should I do? 
In the bibtex, they appear as:

@BOOK{harris1951methods,
  title = {{Methods in structural linguistics}},
  publisher = {University of Chicago Press Chicago},
  year = {1951},
  author = {Harris, Z.S.}
}
@BOOK{harris1995linguistics,
  title = {{The linguistics wars}},
  publisher = {Oxford University Press, USA},
  year = {1995},
  author = {Harris, R.A.}
}



Thanks a lot.


-- 
View this message in context: 
http://lyx.475766.n2.nabble.com/Citation-of-Authors-With-the-Same-Last-Name-with-Natbib-tp5190503p5190503.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Problems with Elsearticle template

2010-05-30 Thread Bruno Cocciaro


From: Bruno Cocciaro 
Sent: Saturday, May 29, 2010 8:21 PM
To: lyx-users@lists.lyx.org 
Subject: Problems with Elsearticle template


> I cannot add hyperlink in a file opened from elsearticle template.

My problem is partially solved.
After creating a new file from New from template->Elsearticle.lyx, I must do
Document->settings-PDF Properties
and select Use hyperref support

to avoid the errors I described in my previous post.

But I receive similar errors (but not only 2, very much more) when I try to 
view the pdf of my elsearticle file that I created modifing the Elsearticle.lyx 
which I obtained when installed the Elsearticle class.

Evidently there is something in my file which conflict with the hyperref 
support (I receive errors also if I do not insert any hyperref in my file but 
only set the "Use hyperref support").

I'll go to try to understand which is the conflicting part that I inserted and, 
eventually, I'll askk again for help.

Thank you.

Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Problems with Elsearticle template

2010-05-29 Thread Bruno Cocciaro
I cannot add hyperlink in a file opened from elsearticle template.

I use Win 7, Lyx 1.6.5, MixTex 2.8.

After opened a new file from Elsearticle template, if I add a hyperlink (http: 
...) and try to view the pdf I receive the erros:


Error:
Argument of \x has an extra }

Description:
 ...r\proc...@me\string\@la...@\@nil{author} 
%

I've run across a `}' that doesn't seem to match anything.

For example, `\def\a#1{...}' and `\a}' would produce

this error. If you simply proceed now, the `\par' that

I've just inserted will cause me to report a runaway

argument that might be the root of the problem. But if

your `}' was spurious, just type `2' and it will go away.



and


Error:
Paragraph ended before \x was complete.

Description:
 ...r\proc...@me\string\@la...@\@nil{author} 
%

I suspect you've forgotten a `}', causing me to apply this

control sequence to too much text. How can we recover?

My plan is to forget the whole thing and hope for the best.




May anyone help me?

Thank you


Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Re: Elseartice on Lyx

2010-04-16 Thread Bruno Cocciaro
but ... shouldn't anyone advice administrators of

ftp.uniRoma2.it

to correct their psnfss package?

Or is it normal that  the any package may be different if dowloaded from 
different link ?

Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Re: Elseartice on Lyx

2010-04-16 Thread Bruno Cocciaro
> shouldn't it be 
> ftp.uni-erlangen.de
> ?
> Wolfgang
yes of course. I mistaped the link.


Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Re: Elseartice on Lyx

2010-04-14 Thread Bruno Cocciaro
Ohhh, problem solved.

My packages was downloaded from 

ftp.uniRoma2.it

and package psnfss did not contain pifont.psy !!!
As I said I added pifont.psy at that package but after that I obtained the 
problem I said.

So I deleted the package and downloaded it again from a different link:

ftp.uni-erlagen.de

now the package contains the file pifont.sty.
After reconfigured Lyx and opened elsarticle template, when I went to view the 
pdf, Lyx asked me first time to update somethingh (I do not remember what) and 
the pdf opened wthout any problem. If I repeat the open of the template and ask 
for the pdf I obtain it without any problem (and without any further request to 
dowload somethngh).

Seems that the psnfss package dowloadable from ftp.uniRoma2.it should be 
corrected.

Thank you very much to any of you.


Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Re: Elseartice on Lyx

2010-04-14 Thread Bruno Cocciaro

--
From: "rgheck" 
Sent: Wednesday, April 14, 2010 1:45 PM
To: "Bruno Cocciaro" 
Cc: 
Subject: Re: Elseartice on Lyx

Apparently, you are missing the info for this font. I'm not sure why the 
elsearticle template wants it, but you can try installing it however 
MikTeX allows you to do that.


rh




the folder

C:\Program Files\MiKTeX 2.8\tex\latex\psnfss

contains the file pifont.sty

I putted that file into that folder after downloaded from web (is that a 
wrong action?).


When pifont.sty was not in that folder I was obataining a different error. 
This one:


"LaTeX Error: File `pifont.sty' not found."


If I delete the file, reconfigure Lyx, and open again the template 
elsarticle, I obtain again the error

"LaTeX Error: File `pifont.sty' not found." when I try to view the pdf.


Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire) 


Elseartice on Lyx

2010-04-13 Thread Bruno Cocciaro
Hello all,

I am very new on Lyx (and on Latex too), I hope anyone may help me.


I use Win 7, Lyx 1.6.5, MixTex 2.8.
Opening the template elsearticle and trying to view the dvi (same problems if I 
ask for the pdf or for the ps) I always obtain this:

 {\Pifont{psy} 
}

I wasn't able to read the size data for this font,

so I will ignore the font specification.

[Wizards can fix TFM files using TFtoPL/PLtoTF.]

You might try inserting a different font spec;

e.g., type `I\font='.


And the dvi does not appear.

May anyone help me?
Tank you very much.


Bruno Cocciaro

--- Li portammo sull'orlo del baratro e ordinammo loro di volare.
--- Resistevano. Volate, dicemmo. Continuavano a opporre resistenza.
--- Li spingemmo oltre il bordo. E volarono. (G. Apollinaire)

Issue with LyX 1.5.3

2008-03-23 Thread Bruno Azria
Gents,

I am a new user of the LyX system, which I find outstanding.

I face the following issue:
- when I try to open the User's Guide from the LyX Help menu, I get the
following error message : "Document class not available : layout file
requested by this document is not available : scrbook.layout is not usable.
LyX will not be able to produce output",
- actually I cannot find this layout in the MiKteX distribution, but it
exists in the LyK/resource folder,
- I try to change the Document class to a simpler one, Book for example, but
it still does not want to produce any output and yields the following
message "LaTeX Error: File `floatflt.sty' not found".

Please can someone help me or provide solving hints?

Environment:
- LyX 1.5.3
- Windows XP Pro SP2
- MikTek  2.7.2845

Kind regards,
Thank you and Happy Easter,
Bruno
Paris, France


Re: Using movie15 with LyX to insert movies in PDF output

2008-01-17 Thread Bruno C.
Hello,
Sorry i deleted the first mail so maybe I will not give a proper reply.
My opinion is that you cannot generate a pdf file from a latex file containing 
movie15 commands using lyx.
You can use lyx to export the latex code and then you will have to use the 
technique specified in the movie15 documentation.

At least that's the way I did it!> Gerard Ateshian ha scritto:
> > pdfTeX error (ext5): cannot open file for embedding.
>
> I think that when you ask LyX to generate the pdf a latex file is
> generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
> directly there.
>
> As LyX doesn't know that you are including the movie it cannot make a
> copy (or a link) from the file to the temporary location.
>
> You can try to copy the movie file by hand in the temporary location, or
> some similar workaround.
>
> --
> Lorenzo `paulatz' Paulatto
> Trieste
>
> ``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio avesse
> fatto l'universo più proporzionato alla piccola capacità del lor discorso.''
>  --Galileo Galilei (Opere VII)
>
>
>  --
>  Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
>  Sponsor:
>  Raggruppa i tuoi finanziamenti in uno: pagherai un’unica rata fino al 50% 
> più bassa della tua attuale! Clicca qui e chiedi maggiori informazioni a 
> Prometeo!
> *
>  Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7433&d=16-1
>



Re: Double quotes not working correctly

2008-01-02 Thread Bruno
Paul Smith <[EMAIL PROTECTED]> writes:

> It works fine here on Fedora 8 (Linux). Find an old document of yours
> with the desired quotes, and open it on your current version of LyX.
> Do you see the quotes correctly?
> 
> Paul
> 
> 

Yes, it does, and I can operate with them (copy/paste). The problem is not in
showing them, but in typing. 





Double quotes not working correctly

2007-12-28 Thread Bruno
I used to have open/close double quotes (`` and '') working correctly, but since
I upgrade to v1.5 they don't work anymore. I get only a standard ", no matter
how I configure the quotes. I think this might be connected to a keyboard or
enconding issue. Any tips?

Thanks a lot,

Bruno



new layout

2007-11-07 Thread Bruno C.
Hy,
I want to have the title of my document with a gray background.
I managed to do that in this way using xcolor and the text inside a 
Box(minipage) so that 100% col has the appropriate background.
I did the following:

\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Standard
\backslash
colorbox{gray}{
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Box Frameless
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
width "100col%"
special "none"
height "1in"
height_special "totalheight"
status open
\begin_layout Standard
THE TITLE IS HERE
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Standard
}
\end_layout
\end_inset
\end_layout

/
Now I want to make it an environment.
The problem is the following then:
The "begin part" of my environment contains an open bracket
which is closed in my "end part".
Within those two brackets there's it the text of the title that I woud be able 
to insert...
Is there a way to do that?
I want to be able to just click in lyx style menu, choose i.e. Title, type in 
the title and this one would be rendered in the pdf with a grey background ...

Thanx






Re: trouble adding figures (latex style breaks them)

2007-03-22 Thread Bruno Schneider

On 3/22/07, Bruno Schneider wrote:

Figures are EPS, and since I can usually work with figures, I checked
the document's LaTeX preamble.

It has

  \input{mz.sty}

at the end. If I remove this line, Figures are exported OK.

Looking at the mz.sty file, I can't figure out what breaks the
figures, perhaps someone can help me...


Updated, simplified version of the problem:

Start a new LyX file. Add a floating figure. Edit the LaTeX preamble
and add "\input{mz.sty}" (mz.sty is attached in previous post). Now
the figure no longer works.

However, if you edit mz.sty and comment out line 24
(\renewcommand{\empty}{\emptyset}), it works.

Interestingly, if you change line 24 to
"\renewcommand{\empty}{$\emptyset$}" it also works, but an empty set
sign appears in the figure.

So it seems "\empty" is used in figures. Can anybody explain that?

--
Bruno Schneider
http://www.dcc.ufla.br/~bruno/


trouble adding figures (latex style breaks them)

2007-03-22 Thread Bruno Schneider

Hi all,

I received a LyX file that when exported to PDF (ps2pdf), has no figures.

I'm using LyX 1.4.3 on Linux. When I open the lyx file and do a "file

export > PDF (ps2pdf)" a get several errors like:


Missing $ inserted

where the figures are.

Figures are EPS, and since I can usually work with figures, I checked
the document's LaTeX preamble.

It has

 \input{mz.sty}

at the end. If I remove this line, Figures are exported OK.

Looking at the mz.sty file, I can't figure out what breaks the
figures, perhaps someone can help me...

I have attached the mz.sty file and error details from the log and the
temporary tex file (they are attached so that line numbers don't
change.


--
Bruno Schneider
http://www.dcc.ufla.br/~bruno/
%
% mz.sty
%
% Copyright (c) 1995 by Marc Mengel <[EMAIL PROTECTED]>
%
% Permission is hereby granted for you to use, copy, and modify this file
% provided you:
%   * retain the above copyright notice
%   * clearly note any changes from the original
%   * send any good improvements back to me
%
% A nicely font independent LaTeX style for Z, works with old and new LaTeX
%
\typeout{Style Option 'mz'. Marc Mengel's Z style. Version 1.0 Oct 13 1995}
%
% Spacing
%\newcommand{\also}{\\[0.5ex]}
\newcommand{\also}{\\[0.2ex]}

% overrides of existing LaTeX commands
\renewcommand{\t}[1]{\hspace*{#1ex}}% note: this breaks accents...
\renewcommand{\star}{^*}% overrides plain asterisk...
\renewcommand{\div}{{\mathsf{\ div\ }}} % overrides dot over dot symbol
\renewcommand{\empty}{\emptyset}% don't know why these need renew
\renewcommand{\notin}{\not\in}  % 
\renewcommand{\iff}{\Leftrightarrow}% 
%
\let \mzmesh=\# % make \# a command 
\renewcommand{\#}{{\mathsf{\mzmesh}}}   % (why does this work?)
%
% Outer Grouping Environments
%
% These first 3 mean something to ztc, but not to anyone else
\newenvironment{spec}{\relax}{\relax}
\newenvironment{nocheck}{\relax}{\relax}
\newenvironment{comment}{\relax}{\relax}
%
% General purpose zed box for 
% zed, schema, etc.
% outer layer is an array{l} stack like this
%    <= topline
%  |
%  | <= left bracket <= empty right bracket
%  |   guts
%  | <= bottom line
%
% the guts is *another* array this time an array{}
% so folks can set tabs, etc.
% its built with \mztopbox{toplinecommand}{leftbracket}
% at the top and \mzbotbox{bottomlinecommand}
% at the bottom.  

\newcommand{\mztopbox}[2]{
\[
\array{l}
#1\\[-1ex] 
\! \left#2 \array{l} 
\ \\[-1.7ex]
%\hspace*{-0.6em}
% update by Nelson S. Rosa
\hspace*{0.0em}
\array{}
}
\newcommand{\mzbotbox}[1]{
\ \\[0ex]
\endarray
\endarray
\right. \\[-1.65ex]
#1
\endarray
\]
}
%\newcommand{\mzwidth}{4.2in}
\newcommand{\mzwidth}{3.0in}
%
% horizontal line commands
%
\newcommand{\where}{% separator for schemas, axdef, etc.
\ \\[-1ex]
\hspace*{-0.55em} \overline{\hspace{1in}} \\[0ex]
}
\newcommand{\mzbotline}{ % bottom of schema box, line above
\overline{\makebox[\mzwidth]{\hfill}}
}
\newcommand{\mznoline}{ % invisible line, same width as others
\makebox[\mzwidth]{\hfill}
\ \\[-1ex]
}
\newcommand{\mzsline}[1]{ % schema top line, with name
\hspace*{-0.65em}
\raisebox{0.05ex}{
\makebox[\mzwidth][l]{
\makebox[1em]{\hrulefill}
$#1$
\hrulefill
}
}
}
\newcommand{\mzgline}[1]{ % gendef top line, with name
\underline{\makebox[\mzwidth][l]{\makebox[1em]{\hrulefill}$#1$\hrulefill}}
}
%
% actual environments built with 'em
%
\newenvironment{axdef}{ % axiom -- no top or bottom, just left
\mztopbox{\mznoline}{|}
}{
\mzbotbox{\mznoline}
}
%\newenvironment{gendef}[1]{% gendef -- double top w/name & bottom
%   \mztopbox{\mzgline{#1}}{|}
%}{
%   \mzbotbox{\mzbotline}
%}
\def \gendef[#1] {\mztopbox{\mzgline{[#1]}}{|}}
\def \endgendef {\mzbotbox{\mzbotline}}
\newenvironment{schema}[1]{ % schema -- single top w/name & bottom
\mztopbox{\mzsline{#1}}{|}
}{
\mzbotbox{\mzbotline}
}
\newenvironment{syntax}{% synatax -- no top,bottom,or left
\mztopbox{\mznoline}{.}
}{
\mzbotbox{\mznoline}
}
\newenvironment{zed}{   % zed -- same as syntax
\mztopbox{\mznoline}{.}
}{
\mzbotbox{\mznoline}
}


%
% handy macros for various things
%
\newcommand{\mzovr}[2]{ % overlay two symbols
\makebox[0pt][l]{$#1$}#2
}   
\newco

Re: LyX Export ASCII - Bibliography

2006-02-09 Thread Bruno Pinaud
Hi,
I'm using the html export to do that.
First export to html then open the html file in word or copy/paste it from 
your browser. latex2html parse the bibliography.

Le Jeudi 9 Février 2006 18:08, Konrad Hofbauer a écrit :
> Any idea how to achieve this in a simple manner?

-- 
Bruno PINAUD


Re: Lyx and algorithm

2006-02-03 Thread Bruno Pinaud
Thanks a lot !

Le Vendredi 3 Février 2006 18:51, Stephen Buonopane a écrit :
> On Feb 3, 2006, at 12:39 PM, Bruno Pinaud wrote:
> > Hi,
> > Is it possible to have the algorithms number working like figures
> > number or
> > tables number ? i.e. The number of the chapter followed by the number
> > of the
> > figure for example and resetting the counter at the beginning of each
> > chapter.
>
> Add the following to your preamble
>
> \numberwithin{algorithm}{chapter}

-- 
Bruno PINAUD



Lyx and algorithm

2006-02-03 Thread Bruno Pinaud
Hi,
Is it possible to have the algorithms number working like figures number or 
tables number ? i.e. The number of the chapter followed by the number of the 
figure for example and resetting the counter at the beginning of each 
chapter.

Thanks.
-- 
Bruno PINAUD