Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

New documentclass in Lyx

158 views
Skip to first unread message

Bronek Baraniecki

unread,
Nov 24, 2000, 7:04:50 PM11/24/00
to
Hi,
The question for me is how to force Lyx to accept and incorporate
documentclasses, which are not standard in LaTeX but are very suitable for
polish language, my native, I am writing in.

These are "mwcls" classes including book, article, report, letter. Look at:
http://www.mimuw.edu.pl/~wolinski/mwcls.html

It would be nice to have "mwbk" or "mwart" option in
"Layout/document/documentclass". I have put these files in the LaTeX search
path "/usr/share/texmf/tex/latex/", but Lyx failed to notice them.

Please, advise how could it be done.

with love

--
Bronek Baraniecki
bru...@at.pl

Tomasz Łuczak

unread,
Nov 25, 2000, 3:00:00 AM11/25/00
to

Bronek Baraniecki napisał(a):

> It would be nice to have "mwbk" or "mwart" option in
> "Layout/document/documentclass". I have put these files in the LaTeX search
> path "/usr/share/texmf/tex/latex/", but Lyx failed to notice them.
>
> Please, advise how could it be done.

Udało mi się nakłonić mojego LyXa do nowej klasy mwcls.

1. Skopiowałem pliki klasy do katalogu /lyx/tex (plik mw*)
2. Aby LyX zauważył klasę nalezy utworzyć w katalogu /lyx/layout pliki
mwart.layout i mwbk.layout itd. Ja skopiowałem pliki article.layout i
book.laytout
3. W plikach mw*layout należy zmienić drugi wiersz:
#\DeclareLaTeXClass{nazwa_stylu}
Gdzie nazwa stylu to odpowiednio mwbk, mwart itd w każdym pliku po kolei.
4. Następnie należy uruchomić skrypt konfiguracyjny \lyx\configure
5 Dla sprawdzenia czy sš zarejestrowane nowe klasy w Lyksie, należy przejrzeć
plik /lyx/textclass.txt, wktórem powinny byc nowe klasy.
6. Spawdzić działanie w Lyksie
Uwaga. Należy przedtem poprawnie zainstalować platex, aby dzielenie wyrazów
odbywało się zgodnie z polskš gramatykš

Pozdrawiam
Tomasz Łuczak
t...@technodat.com.pl

P.S. Wielkie podziękowania dla p. Marcina Wolińskiego za mwclass.


tlu.vcf

Herbert Voss

unread,
Nov 26, 2000, 3:00:00 AM11/26/00
to
Bronek Baraniecki wrote:
>
> Hi,
> The question for me is how to force Lyx to accept and incorporate
> documentclasses, which are not standard in LaTeX but are very suitable for
> polish language, my native, I am writing in.
>
> These are "mwcls" classes including book, article, report, letter. Look at:
> http://www.mimuw.edu.pl/~wolinski/mwcls.html

these are always real latex classes, which can't be read by lyx.

> It would be nice to have "mwbk" or "mwart" option in
> "Layout/document/documentclass". I have put these files in the LaTeX search
> path "/usr/share/texmf/tex/latex/", but Lyx failed to notice them.

you have to "translate" them to lyx.layout format. often the classes
are similiar to others, so you can adopt a given lyx.layout.

have a look at lyx:

help->customizing lyx (chapter 6)
Chapter 6 Installing New Document Classes, Layouts, and Templates

Herbert


--
Herber...@alumni.TU-Berlin.de
http://perce.de/lyx/


Tomasz Łuczak

unread,
Nov 27, 2000, 3:00:00 AM11/27/00
to
Bronek Baraniecki napisał(a):

> It would be nice to have "mwbk" or "mwart" option in
> "Layout/document/documentclass". I have put these files in the LaTeX
search
> path "/usr/share/texmf/tex/latex/", but Lyx failed to notice them.
>

Bronek Baraniecki

unread,
Nov 27, 2000, 3:00:00 AM11/27/00
to
Hallo,
It was really stupid that I had overlooked Castomization
Chapter. Nevertheless, if I have to solve the problem
by myself, it would probably be unrealistic and time
consuming, since I am not TeX'nician, not programmer, nor
mathematician.

I have received very precise sugestions and explicite help
from many Lyx users and gorus.
Finaly I put all the "mwcls" real LaTeX classes into
"/lyx/tex/" folder. Then I made Lyx Layouts for
every new class, e.g. "mwbk.layout" just by copying e.g.
"book.layout" and changing the second line
\DeclareLaTeXClass{mwbk},
put them into $HOME:~/.lyx/layout/ folder, than run
Edit/Reconfigure.

Now it works, but looks like there is still some work to be
done. I have, for example, problems exporting Lyx document
(mwbk) to pdflatex. Problems are associated mainly with
hyperref package, I gues. Maybe because I'm using
"sfheadings" option for changing section/titles fontfamily.
There is a mistake, but do not know where is it.

Finaly, I want to say Thank You for everybody who responded
and helped me.
Many thanks for Michal, Paul, Tomasz, Wojtek and for you,
Herbert. Special thanks for a Team of Lyx developers for so
fine and friendly word enviroment. And for Marcin Wolski
for his mwcls classes.
love,
Bronek.

Here exerpts from test.log:

This is pdfTeX, Version 3.14159-14f-released-20000525
(Web2C 7.3.2x) (format=pdflatex 2000.11.26) 27 NOV 2000
00:32 **Testd01.tex
(Testd01.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
LaTeX2e <2000/06/01> Loaded hyphenation patterns for
american, polish. (/usr/share/texmf/tex/latex/base/mwbk.cls
Document Class: mwbk 2000/06/01 v0.38 A LaTeX document class (MW)
\l@nohyphenation=\language2
(/usr/share/texmf/tex/latex/base/mwbk10.clo
File: mwbk10.clo 2000/06/01 v0.38 A document class size option (MW)


(/usr/share/texmf/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2000/10/04 v6.71 Hyperref: PDFDocEncoding definition (HO)
)
Package hyperref Info: Option `bookmarks' set `true' on input line 1603.
Package hyperref Info: Option `bookmarksopen' set `true' on input line 1603.

(/usr/share/texmf/tex/latex/pl-qx/ot4antt.fd
File: ot4antt.fd 1998/05/15 v0.8 font definition file for OT4/antt (P.K.)
)
Rozdzia\l 1.

Package hyperref Warning: Token not allowed in a PDFDocEncoded string:
(hyperref) \kern -12.0pt
(hyperref) removed on input line 32.

Package hyperref Warning: The anchor of a bookmark and its parent's must not
(hyperref) be the same. Added a new anchor on input line 35.


--
Bronek Baraniecki
Tel/Fax: +48 89 512-2227
bru...@at.pl


Bronek Baraniecki

unread,
Nov 27, 2000, 3:00:00 AM11/27/00
to
Witam,

Serdecznie dziękuję za reakcję i wskazówki, dla mnie bardzo
pomocne. Chyba trochę przedwcze¶nie wysłałem moje SOS.
Kiedy bowiem zajrzałem do Rozdziału podręcznika Lyx
Customization, znalazłem wyraĽne wskazówki. Ale Twoje uwagi
zdecydowanie skróciły mi drogę.

Teraz (chyba) w zasadzie wszystko działa. Nawet kiedy
używam opcję (w mwbk) sfheadings, ale tylko w eksporcie
*.dvi Eksport do pdflatex, z użyciem pakietu hyperref, nie
wychodzi jeszcze.

Jeszcze raz pięknie dziękuję.
Pozdrawiam,

Bronek.

On sob, 25 lis 2000, Tomasz Łuczak napisał:
>
> 1. Skopiowałem pliki klasy do katalogu /lyx/tex (plik mw*)
> 2. Aby LyX zauważył klasę nalezy utworzyć w katalogu /lyx/layout pliki
> mwart.layout i mwbk.layout itd. Ja skopiowałem pliki article.layout i
> book.laytout
> 3. W plikach mw*layout należy zmienić drugi wiersz:
> #\DeclareLaTeXClass{nazwa_stylu}
> Gdzie nazwa stylu to odpowiednio mwbk, mwart itd w każdym pliku po kolei.
> 4. Następnie należy uruchomić skrypt konfiguracyjny \lyx\configure

> 5 Dla sprawdzenia czy są zarejestrowane nowe klasy w Lyksie, należy przejrzeć


> plik /lyx/textclass.txt, wktórem powinny byc nowe klasy.
> 6. Spawdzić działanie w Lyksie
> Uwaga. Należy przedtem poprawnie zainstalować platex, aby dzielenie wyrazów

> odbywało się zgodnie z polską gramatyką


>
> Pozdrawiam
> Tomasz Łuczak
> t...@technodat.com.pl
>
> P.S. Wielkie podziękowania dla p. Marcina Wolińskiego za mwclass.

Podpisuję się z pełn± wdzięczno¶ci±.
Bronek
----------------------------------------

--
Bronek Baraniecki
bru...@at.pl


0 new messages