2 columns document with columns of different width

2001-02-22 Thread Raymond Ouellette

I would like to know if it is possible to create a document wich has 2
columns of different width, for exemple a wide column at the right side
of the page, approx 13 cm wide, and a smaller one of 4 cm at the left
side. The main text would be in the main column, and the left column
would be used only for section or subsections titles, tables titles, or
figures titles.

I tried with a reverse margin note but I lost the result if I change the
basic font of the document from time to helvetica for instance.

I'm responsible for Education Bulletins where I work and I would like to
give a try to LyX for documents such as this one:
http://www.meq.gouv.qc.ca/STAT/Bulletin/bulletin_15.pdf (225 ko in
french) or
http://www.meq.gouv.qc.ca/STAT/Bulletin/bulletin_15an.pdf (177 ko
translated in english).

R. Ouellette


--

dit et transmis sous Linux!






Algorithm options

2001-02-22 Thread Claus Hentschel

I am using the algorithm float in LyX together with the listing package.
Most things work as I want them to use. So I am able to change the float's
name as well as the name of the list of floats with these commands in the
LyX preambel:
\floatname{algorithm}{XYZ}
\renewcommand{\listalgorithmname}{List of XYZs}

But how can I change the *numbering scheme* of algorithm floats to insert
the chapter's number? By default algotithms are just counted throuout the
document. Every time I insert
\usepackage{algorithm}[chapter]
in the preamble I got errors.

Another question is how to change the floating behaviour of that float type?
By default (reading the sty file) that float type is set to respect options
{htbp}{loa}. I want them to use {tbp} instead. (BTW: What does {loa} mean?
The float documentation -- just a README -- doesn't say anything about!)

Claus






Re: [Fwd: A XML Layout]

2001-02-22 Thread Jose Abilio Oliveira Matos

On Thu, Feb 22, 2001 at 12:34:00AM +0100, ben wrote:
 John O'Gorman a crit :
 
  Another reloated question.
  The old linuxdoc stylesheets produced very attractive docbook output.
 
  With the new SGMLdoc, how can we obtain similar presentation?

  The dsssl stylesheets allow a greater range of customization then the old
scheme with linuxdoc.

  IIRC, You should search in the sgmltools(-lite) documentation since they
have one type of transformation that is very similar to that of linuxdoc.

  John O'Gorman
 
 Actually I don't know. As far as I know, the output translation is
 completely different between the linuxdoc translation (using the sgml2xxx
 perl scripts) and the DocBook translation (using the jade/jadetex tools,
 called by sgmltools). But, maybe I'm wrong.

  I think John is only interested in the final output. There are many people
who really like the linuxdoc output look. :-) I am one of those. :-)

-- 
Jos



Re: Minitoc for Appendix

2001-02-22 Thread Martin Adorni

Herbert Voss wrote:
 
 Martin Adorni wrote:
 
  Here's the problem:
  * The listing of chapters with minitoc can only be done if I define the
  appendix being a part and use \parttoc. The definition part* didn't work
  - empty minitoc.
  * That part definition results in an entry of the 'normal' TOC in a more
  emphasised way than a chapter what I don't like (The appendix is really
  not of major importance). Furthermore, the words 'Part I.' are written
  above 'Appendix' :-(
 
  What can I do?
  Is there another way to have a minitoc with chapters listed?
  Or do I have to redefine the part environment to get rid of 'Part I.'
  and have a TOC entry like a chapter -- in this case what are the
  commands?
 
 try the following chaptoc.sty. i adopted it from a texbook,
 but can't remeber if it worked with appendix.
 put it in ~/.TeX and add in latex preamble \usepackage{chaptoc}
 
 Herbert

I've looked into the *.sty document. I know some LateX commands, but
that's too much. So, before using it I've some questions:

1) % erweitere Mini-TOC bei jeder \section
   \renewcommand{\sectionmark}[1]
   ...
   % Aus LaTeX.ltx mit nderungen fr Mini-TOC
   \renewcommand{\@makechapterhead}[1]
   ...
   % Sternform ohne TOC
   \renewcommand{\@makeschapterhead}[1]
   ...
   ?? As far as I know this would change the previous layout. Is it
necessary?

2) Final question -- sounds very silly -- how to work with it? The
following commands are new:
- \newcommand{\@mystarttoc}[1] ...
- \newcommand{\myaddtocont}[1] ...
Does \myaddtocont add a chapter to a new TOC which can be listed with
\mystarttoc?

Thanks for help.
Martin



Help on multi reference footnote

2001-02-22 Thread Flink Del Dinky

Is it possible to refrence an existing footnote instead of creating a 
new footnote?

I tried labeling the foot note then cross-refrencing to it.  That 
actually worked except the cross-refrence was regular size text and not 
superscripted like a regular footnote.

I've looked for a superscript menu option but couldn't find one.  I 
aknow in math mode you can get superscripting by pressing the '^' key. 
But you can't do cross-refrencing in math mode.

Any ideas?




Re: 2 columns document with columns of different width

2001-02-22 Thread Jean-Marc Lasgouttes

 "Raymond" == Raymond Ouellette [EMAIL PROTECTED] writes:

Raymond I would like to know if it is possible to create a document
Raymond wich has 2 columns of different width, for exemple a wide
Raymond column at the right side of the page, approx 13 cm wide, and
Raymond a smaller one of 4 cm at the left side. The main text would
Raymond be in the main column, and the left column would be used only
Raymond for section or subsections titles, tables titles, or figures
Raymond titles.

Raymond I tried with a reverse margin note but I lost the result if I
Raymond change the basic font of the document from time to helvetica
Raymond for instance.

Yes, using a margin note is the right thing to do in your case. I do
not understand the problem you had with that. Could you explain a bit
more?

JMarc




Re: Minitoc for Appendix

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 07:09:59PM +0100, Martin Adorni wrote:
 What I want to do:
 I would like to have table of contents (TOC) for the chapters and
 sections of the appendix. It should be at the beginning of the appendix.
 I've tried to manage it with the minitoc package but failed as I didn't
 find a suitable solution.
 
 Here's the problem:
 * The listing of chapters with minitoc can only be done if I define the
 appendix being a part and use \parttoc. The definition part* didn't work
 - empty minitoc.
 * That part definition results in an entry of the 'normal' TOC in a more
 emphasised way than a chapter what I don't like (The appendix is really
 not of major importance). Furthermore, the words 'Part I.' are written
 above 'Appendix' :-(

Instead of using \part{} at the beginning of the appendix,
use "\addtocounter{part}{1}"



Re: Problem with Texref

2001-02-22 Thread Jan Goebel

Hi,

i'm not sure, but when using vref in tex i somtimes get a similar
error. This is because the reference is around a page break and 
LaTeX can't decide which kind of reference it has to use.
Using normal ref and pageref solve this problem.

Maybe this is also with texref? I never used texref in LyX, sorry.

best regards

jan

On Wed, 21 Feb 2001, Thies Wels wrote:

 Thies Wels schrieb:
  
  Hi there!
  
  I have a small problem with lyx1.1.6fix. Sometimes (not always...) latex
  complains about problems with texref reference "...may a loop..." if I
  use the feature texref instead of reference. The strange thing is, that
  it hapens sometimes but not always! I couldnt figure out yet when or
  why this happens. I am always working on the same dokument with a lot
  pictures and tables in floats. Once simply renaming the mark solved the
  problem. Another time placing the figure-float somewhere else was the
  solution. But these ways do not work always. Latex recommends to change
  texref into a normal ref. That solves the problem but I dont have a
  texref anymore! I cant remember this problem in 1.1.5, but I had
  just a few pictures that time.
  Any ideas?
  
  Thies
 
 Hmm, seems that nobody has an idea. Am I the only person with this
 problem or is it just a stupid question...?
 
 Thies

-- 
+---
 Jan Goebel (mailto:[EMAIL PROTECTED])

 DIW Berlin 
 Longitudinal Data and Microanalysis
 Knigin-Luise-Str. 5
 D-14195 Berlin -- Germany --
 phone: 49 30 89789-377
+---



Re: Help on multi reference footnote

2001-02-22 Thread Dekel Tsur

On Thu, Feb 22, 2001 at 08:36:43AM +, Herbert Voss wrote:
  Is it possible to refrence an existing footnote instead of creating a
  new footnote?
 
  I tried labeling the foot note then cross-refrencing to it.  That
  actually worked except the cross-refrence was regular size text and not
  superscripted like a regular footnote.
 
 in latex preamble:
 \newcommand\sups[1]{\raisebox{1ex}{\footnotesize #1}}

This should be
\newcommand\sups[1]{\textsuperscript{\scriptsize #1}}

 in text in tex (red):
 \sups{insert the crossref with lyx}
  
 or alternative
 
 insert-special character-superscript (since lyx 1.1.6)

In previous versions, use c-m ^ 



Re: Minitoc for Appendix

2001-02-22 Thread Martin Adorni

Dekel Tsur wrote:
 
 On Wed, Feb 21, 2001 at 07:09:59PM +0100, Martin Adorni wrote:
  What I want to do:
  I would like to have table of contents (TOC) for the chapters and
  sections of the appendix. It should be at the beginning of the appendix.
  I've tried to manage it with the minitoc package but failed as I didn't
  find a suitable solution.
 
  Here's the problem:
  * The listing of chapters with minitoc can only be done if I define the
  appendix being a part and use \parttoc. The definition part* didn't work
  - empty minitoc.
  * That part definition results in an entry of the 'normal' TOC in a more
  emphasised way than a chapter what I don't like (The appendix is really
  not of major importance). Furthermore, the words 'Part I.' are written
  above 'Appendix' :-(
 
 Instead of using \part{} at the beginning of the appendix,
 use "\addtocounter{part}{1}"

Good idea. I've tried this but it doesn't work. I've received an empty
TOC. Don't know why. Another suggestion?

Martin



Re: xfig pictures rotate and have strange colour

2001-02-22 Thread Tuukka Toivonen

On Wed, 21 Feb 2001, Thies Wels wrote:

 Wait! Maybe you mean something different! You see different backgrounds
 in Lyx right? (I also have that) But this has no influence on the

Yes, exactly.

 output. What I mean is the background in the printout!
 
 Do you also know that kind of problem?

I have never had your problem, but I haven't imported any other pictures
in my Xfig files.




Re: Algorithm options

2001-02-22 Thread Dekel Tsur

On Thu, Feb 22, 2001 at 09:30:56AM +0100, Claus Hentschel wrote:
 But how can I change the *numbering scheme* of algorithm floats to insert
 the chapter's number? By default algotithms are just counted throuout the
 document. Every time I insert
 \usepackage{algorithm}[chapter]

I guess you meant \usepackage[chapter]{algorithm}

 in the preamble I got errors.

The problem is that lyx already loads the algorithm package without the
'chapter' option.
You have 2 options:

1. Put 'chapter' in the 'extra options' field in the document dialog.
The problem is that the chapter option may be passed to other packages,
giving you unwanted results. So it may be better to use the next option.

2. Enable AMS-math in the document dialog, and put 
'\numberwithin{algorithm}{chapter}' in the preamble.

 
 Another question is how to change the floating behaviour of that float type?
 By default (reading the sty file) that float type is set to respect options
 {htbp}{loa}. I want them to use {tbp} instead. (BTW: What does {loa} mean?
 The float documentation -- just a README -- doesn't say anything about!)

Put '\newfloat{algorithm}{tbp}{loa}' in the preamble.



Re: citation references

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 06:51:59PM +0100, Eric Seynaeve wrote:
 When I accidentally add some 'Text after' to my citation, I double-click on 
 the citation and delete this text (who wouldn't). But to my surprise, the 'OK' 
 and 'Apply' buttons remain disabled. It is only after moving a key to the 
 right-hand listbox and re-inserting it in the left-hand listbox it that these 
 buttons become enabled. Is this me or a bug?

This is a bug. It has been fixed in CVS.

 And to stay with the citation references, I have following suggestion. Make 
 it possible to tab into the lists and start typing the first few characters of 
 your citation to select it. With a large list of citations (as is my case), it is 
 painfull to have to scroll in the list the whole time. It would also be nice to 

This is a planned feature.

 be able to use, eg., ALT-arrow to control the actions of the buttons in the 
 middle (ALT-left arrow to move a citation key to the left-hand listbox and 
 ALT-right to bring it back to the right-hand listbox).

You can already use alt-left to add citation and alt-x to remove.



Re: A XML Layout

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 11:25:04PM +0100, ben wrote:
 Juan Pablo Diaz a ?crit :
 
  How can i make a layout to create XML DocBook Documents?
 
 Well, you don't need to do anything. At the moment direct XML output is
 not yet available (but it should be available in version 1.2.x) but you
 can export to SGML and change only the two first lines, and it should
 work. Personnaly what I change is:
 
 !doctype book public "-//OASIS//DTD DocBook V3.1//EN"
 
 to:
 
 ?xml version="1.0" encoding="iso-8859-1"?
 !DOCTYPE book SYSTEM "file:///(full path)/docbookx.dtd"
 
 I know, it is not automatic, but for me it works.

You can write a (trivial) script that does this conversion,
and with lyx 1.1.6 you can define a new format (e.g. xml-docbook) and use
the script as a docbook-xml-docbook converter.



Re: Lyx and color depth on SparcStation running Solaris

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 06:40:48PM -0500, Arcady Genkin wrote:
 The latest LyX, installed from sources on a Linux computer, works fine
 on the Linux machines.  When run remotely with X forwarding (via
 DISPLAY environment variable) from a SparcStation it works for ones
 with 8-bit display, but dies for the ones with 24-bit.
 
 The Xforms library is 0.89.
 
 Any suggestions?

Check if you have the correct version of XForms (i.e. compiled for glibc2.1).



Re: A XML Layout

2001-02-22 Thread Andre Poenitz

 You can write a (trivial) script that does this conversion,
 and with lyx 1.1.6 you can define a new format (e.g. xml-docbook) and use
 the script as a docbook-xml-docbook converter.

Maybe such a trivial thing could go in the LyX distribution as well...

Andre'

-- 
Andr Pnitz  [EMAIL PROTECTED]



Re: babel problem with lyx 1.1.6

2001-02-22 Thread Martin Gruner

 Can you send an example file ?

I did, please see my last posting.

Should I now send a bug report to lyx-developers, or can you help me with 
this issue?

Thank you,

Martin



Re: Problem with Texref

2001-02-22 Thread Thies Wels



Jan Goebel schrieb:
 
 Hi,
 
 i'm not sure, but when using vref in tex i somtimes get a similar
 error. This is because the reference is around a page break and
 LaTeX can't decide which kind of reference it has to use.
 Using normal ref and pageref solve this problem.
 
 Maybe this is also with texref? I never used texref in LyX, sorry.

Thanks Jan!
This could explain my problem! Due to the latex error output the lyx
funktion "texref" is "vref" in latex code! So I should finish the report
first and later watch out for page break problems!

Greetings 
Thies



Re: Help on multi reference footnote

2001-02-22 Thread Herbert Voss

Dekel Tsur wrote:
 
 On Thu, Feb 22, 2001 at 08:36:43AM +, Herbert Voss wrote:
   Is it possible to refrence an existing footnote instead of creating a
   new footnote?
  
   I tried labeling the foot note then cross-refrencing to it.  That
   actually worked except the cross-refrence was regular size text and not
   superscripted like a regular footnote.
 
  in latex preamble:
  \newcommand\sups[1]{\raisebox{1ex}{\footnotesize #1}}
 
 This should be
 \newcommand\sups[1]{\textsuperscript{\scriptsize #1}}

the original latex definition is

\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}
therefore
\newcommand\sups[1]{\hbox{\textsuperscript{\normalfont #1}}}

and you'll get exact the same.

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/





Re: Algorithm options

2001-02-22 Thread Herbert Voss

Claus Hentschel wrote:
 
 I am using the algorithm float in LyX together with the listing package.
 Most things work as I want them to use. So I am able to change the float's
 name as well as the name of the list of floats with these commands in the
 LyX preambel:
 \floatname{algorithm}{XYZ}
 \renewcommand{\listalgorithmname}{List of XYZs}
 
 But how can I change the *numbering scheme* of algorithm floats to insert
 the chapter's number? By default algotithms are just counted throuout the
 document. Every time I insert
 \usepackage{algorithm}[chapter]
 in the preamble I got errors.

in preamble:

\renewcommand{\thealgorithm}{\thechapter-\arabic{algorithm}}
\@addtoreset{algorithm}{chapter}

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



?multi-part doc update_dvi not always update?

2001-02-22 Thread Nien-Po Chen

Hi,

I'm using LyX 1.1.5 fix2.

I learn from the manual that I can do multi-part doc, and the trick to cross-
ref between different parts. They work.  However, one thing bothering me is 
that when I make some changes in one sub-doc, switch to master doc, and do
'update dvi', LyX does not do any thing, because it thinks there's no change.
If I intentionally add/delete a space to register a change in the master doc,
'update dvi' still does not do any thinkg, because LyX smartly thinks dvi is
intact.  The only work-around I can think of is to manually close/re-open 
master doc and do 'view dvi'.  This is combersome!  Any better idea?

Thanks. 
-- 
Chen, Nien-Po   [EMAIL PROTECTED]
http://www.physics.purdue.edu/~npchen/
Feb 22 2001
==



TOC in docbook

2001-02-22 Thread Darryl VanDorp

Does anyone know how to create a table of contents in docbook layout
using lyx?

Any help would be appreciated.

--Darryl




Re: DocBook - fixed

2001-02-22 Thread Darryl VanDorp

I've fixed the problem; i had to get the cvs of sgml-tools lite
from sgmltools.org. However, it still sticks the files
in a tmp directory that you have to dig out yourself
but at least it works.

--Darryl


Darryl VanDorp a crit :

  Hello,
 
  I have DocBook working with Lyx 1.1.6fix1 , however
  when i export to html it dies.
 
  I know this isn't a sgmltoolslite support forum but do any
  other lyx users have in sight into this problem?
 
  It works  when i export to pdf/ps/txt etc. just not html
 
  Any ideas?

Have you tried to do it by hand (sgmltools -b html yourdoc.sgml) to see
what happens?




Re: 2 columns document with columns of different width,

2001-02-22 Thread Raymond Ouellette

[fichier joint : testmarge.lyx 13020 octets]

I enclosed with this email a test lyx file with the reverse margin note.
It works with times fonts, but if I try to change the entire document to
helvetica fonts (Format--Document--Font properties) nothing happens.

I then select all the text and I do Format--Caracters--Font Family
changing it to SanSerif then I loose the reverse margin note that places
itself on the right side. Am I doing something wrong?

Raymond


#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage[bottom,flushmargin]{footmisc}
\usepackage {multicol,latexsym,pifont,amssymb}
\frenchspacing
\usepackage{pslatex}
\usepackage[ps2pdf,pdftitle={titre},pdfauthor={RO - mis en forme avec 
LyX},pdfpagemode=none,pdfview=FitH,urlcolor=blue,letterpaper,colorlinks=true]{hyperref}
\usepackage{dcolumn}
\newcolumntype{d}[1]{D{,}{,}{#1}}
\end_preamble
\language frenchb
\inputencoding latin1
\fontscheme helvet
\graphics default
\paperfontsize 10
\spacing single 
\papersize letterpaper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\paperorientation portrait
\leftmargin 61mm
\topmargin 20mm
\rightmargin 20mm
\bottommargin 20mm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Standard

Le 19 janvier 2001,  l'occasion d'un colloque organis  Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la rforme de l'Etat,
 se prononait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur  rapide essor  dans les administrations
 et encourageait leur dveloppement.
 Car, au-del de la gratuit, de l'ouverture et de la scurit, qu'il jugeait
 responsables de leurs premiers succs, Michel Sapin voyait dans le dveloppemen
t coopratif, mutuel et transparent de ces logiciels un modle pour mener
  bien la rforme de l'Etat.
\newline 

\layout Standard


\latex latex 

\backslash 
reversemarginpar
\begin_float margin 
\layout Standard
\align right \pextra_type 3 \pextra_width 41mm

\SpecialChar ~

\newline 
Ma note de marge qui sera, je l'espre, du ct gauche.
\end_float 
\layout Standard

Le 19 janvier 2001,  l'occasion d'un colloque organis  Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la rforme de l'Etat,
 se prononait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur  rapide essor  dans les administrations
 et encourageait leur dveloppement.
 Car, au-del de la gratuit, de l'ouverture et de la scurit, qu'il jugeait
 responsables de leurs premiers succs, Michel Sapin voyait dans le dveloppemen
t coopratif, mutuel et transparent de ces logiciels un modle pour mener
  bien la rforme de l'Etat.
\newline 

\layout Standard
\align right \pextra_type 2 \pextra_alignment 0 \pextra_width 41mm

Et puis maintenant le test de la mini-page
\newline 

\layout Standard

Le 19 janvier 2001,  l'occasion d'un colloque organis  Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la rforme de l'Etat,
 se prononait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur  rapide essor  dans les administrations
 et encourageait leur dveloppement.
 Car, au-del de la gratuit, de l'ouverture et de la scurit, qu'il jugeait
 responsables de leurs premiers succs, Michel Sapin voyait dans le dveloppemen
t coopratif, mutuel et transparent de ces logiciels un modle pour mener
  bien la rforme de l'Etat.
 Voici un 
\begin_inset Quotes fld
\end_inset 

test
\begin_inset Quotes frd
\end_inset 

 de guillemet.
\newline 

\latex latex 

\backslash 
reversemarginpar
\begin_float margin 
\layout Standard
\align right \pextra_type 3 \pextra_width 41mm

\SpecialChar ~

\newline 

\series bold 
Tableau 1
\layout Standard
\align right 
Le titre de mon tableau
\end_float 

\begin_inset  Tabular
lyxtabular version="2" rows="5" columns="7"
features rotate="false" islongtable="true" endhead="0" endfirsthead="0" endfoot="0" 
endlastfoot="0"
column alignment="right" valignment="top" leftline="false" rightline="false" width="" 
special=""
column alignment="right" valignment="top" leftline="false" rightline="false" width="" 
special="d{2}"
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="right" valignment="top" leftline="false" rightline="false" width="" 
special=""
row topline="true" bottomline="true" newpage="false"
cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="false" 

Multiple TOCs

2001-02-22 Thread Wolfram Pfeiffer

Hi,

I am using LyX 1.1.6fix1.

Currently I am writing a report for university and have a document
structure that basically looks like this:

Part 1
Part 2
- Part 2.1
- Part 2.2
- Part 2.3
Part 3

Now I need one main table of contents for the whole document
looking as follows:

MAIN-TOC:
Part 1 ... Page x
Part 2 ... Page y
Part 3 ... Page z

And Part 2 needs its own sub-toc looking as follows [0]:

SUB-TOC:
Part 2 ... Page a
- Part 2.1 ... Page b
- Part 2.2 ... Page c
- Part 2.3 ... Page d

I have checked the documentation, especially the chapters 
about TOCs, Indexes, Multipart Documents and Nested 
Environments, but none seemed to do the trick.

Could someone please send some cluons on how to create
multiple TOCs (that show different parts of a document
with different levels of detail) in my direction?

- Wolfram   


[0] IMNSHO creating this sub-toc is crap because the 
whole document is only about 20 pages. But my dear 
university insists on using this weird kind of 
document structure...

-- 
Sent through GMX FreeMail - http://www.gmx.net




Re: 2 columns document with columns of different width,

2001-02-22 Thread Herbert Voss

Raymond Ouellette wrote:

 I enclosed with this email a test lyx file with the reverse margin note.
 It works with times fonts, but if I try to change the entire document to
 helvetica fonts (Format--Document--Font properties) nothing happens.
 
 I then select all the text and I do Format--Caracters--Font Family
 changing it to SanSerif then I loose the reverse margin note that places
 itself on the right side. Am I doing something wrong?
 
   
 #LyX 1.1 created this file. For more info see http://www.lyx.org/
 \usepackage{pslatex}

with this command you choose the pslatex-fonts! This command is always
behind that one from LyX layout-document-font. lppk at the exported
tex-file:

\documentclass[10pt,frenchb]{article}
\usepackage{times}   



\usepackage{pslatex}
\usepackage[ps2pdf,pdftitle={titre},pdfauthor={RO - mis en forme avec
LyX},pdfpagemode=none,pdfvi
...

delete the \usepackage{pslatex} in your preamble and choose
fonts only from LyX-menu.

Herbert



-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Multiple TOCs

2001-02-22 Thread Herbert Voss

Wolfram Pfeiffer wrote:

 Currently I am writing a report for university and have a document
 structure that basically looks like this:

have a look at package minitoc

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: crash at every start

2001-02-22 Thread Alexandru Mustatea

On Wed, 14 Feb 2001, Tuukka Toivonen wrote:

 On Tue, 13 Feb 2001, Alexandru Mustatea wrote:

 Don't worry, it's ok... but where .ro is anyway?

.ro is Romania, in Central (Eastern?) Europe, south of Ukraine,
east of Hungary, north of Bulgaria and west of the Black Sea and
Moldavia. The capital is Bucharest.

  Every time I start lyx, it crashes after displaying the main
  window and just before displaying the graphical logo. I've tried both

Someone suggested that it might be a xforms problem, so I realized
that I forgot to mention that I use xforms-0.88-3 from the rpm at
sylvan.com.

These are the outputs of gdb. The rpms are taken from sylvan.com
and all the binaries are the default ones which come with RedHat 
6.2. Usually, I don't compile anything (just imagine, on my 5 years old
486!).

1.1.5fix1 (stripped) says:

Program received signal SIGSEGV, Segmentation fault.
0x8287dc4 in ?? ()

When backtraced, it says:

#0  0x8287dc4 in ?? ()
#1  0x402395ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80bfc4a in LyXGUI::init () at ../../gcc/cp/exception.cc:343
#4  0x80c26d2 in LyX::LyX () at ../../gcc/cp/exception.cc:343
#5  0x80ef3db in main () at ../../gcc/cp/exception.cc:343
#6  0x401249cb in __libc_start_main (main=0x80ef2e0 main, argc=1,
argv=0xbb54, init=0x804da10 _init, fini=0x81aed8c _fini,
rtld_fini=0x4000ae60 _dl_fini, stack_end=0xbb4c)
at ../sysdeps/generic/libc-start.c:92

1.1.6fix1 (stripped) says:

Program received signal SIGSEGV, Segmentation fault.
0x83042a4 in ?? ()

When backtraced, it says:

#0  0x83042a4 in ?? ()
#1  0x4024c5ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80bb3fa in fl_set_button ()
#4  0x80bd7ed in fl_set_button ()
#5  0x80e97d7 in fl_set_button ()
#6  0x401379cb in __libc_start_main (main=0x80e96f0 fl_set_button+629640,
argc=1, argv=0xbb54, init=0x804df38 _init, fini=0x821b84c _fini,
rtld_fini=0x4000ae60 _dl_fini, stack_end=0xbb4c)
at ../sysdeps/generic/libc-start.c:92


1.1.6fix1 (not stripped, lyxgdb) says:

Program received signal SIGSEGV, Segmentation fault.
0x839f664 in ?? ()

When backtraced, it says:

#0  0x839f664 in ?? ()
#1  0x4024c5ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80b5082 in LyXGUI::init (this=0x8385530) at lyx_gui.C:205
#4  0x80b792d in LyX::LyX (this=0xbac4, argc=0xbb10, argv=0xbb54)
at ../src/lyx_main.C:107
#5  0x80e7bdb in main (argc=1, argv=0xbb54) at ../src/main.C:40

Now, can anyone of you figure out what the problem is? I am not a
programmer, so I didn't know what else to ask gdb. If you need more
information, and if you would find the output of 0.12 useful, please mail
me. Thank you.

A. M.




Possible bug

2001-02-22 Thread robin

I was trying to revise the LyX guide I've been writing to explain how to
get non-ps images into a LyX document. I went through the normal Insert
- External Material - Rasterized image procedure. No problem - the ugly
grey box came up as expected. However, when I the clicked on the box and
clicked "View result", the program froze. I played around with this and
found it does not happen all the time.  Any ideas?

BTW, IMHO this feature, while impressive, needs to be made a little more
user-friendly.  I'm trying to push LyX in a work-environment where some
users only recently discovered the difference between the Delete and
Backspace keys, so "Rasterized" is really going to throw them!

Robin



URL's in Latex - HTML

2001-02-22 Thread Stephen Carville

I am creating some documentation using the Article layout that needs to be
exported in both HTML and PDF format.

A typical Makefile entry looks like:

solaris-security: solaris-security.lyx
lyx --export latex solaris-security.lyx
latex2html -split 4 -show_section_numbers solaris-security.tex
cd solaris-security;pdflatex ../solaris-security.tex 

This produces OK PDF but the embedded URL's in both the HTML and PDF
appear as:

  www.insecure.org http://www.insecure.org/

It doesn't matter whether I select 'HTML Type' or not. 

I tried switching to the LinuxDOC layout which fixed the URL problem in
the HTML but left the '#' in comment lines in sample scripts as

{[num  ]}



-- 
--Stephen Carville
http://www.heronforge.net/~stephen/gnupgkey.txt
==
Government is like burning witches:  After years of burning young women
failed to solve any of society's problems, the solution was to burn more
young women. 
==




2 columns document with columns of different width

2001-02-22 Thread Raymond Ouellette

I would like to know if it is possible to create a document wich has 2
columns of different width, for exemple a wide column at the right side
of the page, approx 13 cm wide, and a smaller one of 4 cm at the left
side. The main text would be in the main column, and the left column
would be used only for section or subsections titles, tables titles, or
figures titles.

I tried with a reverse margin note but I lost the result if I change the
basic font of the document from time to helvetica for instance.

I'm responsible for Education Bulletins where I work and I would like to
give a try to LyX for documents such as this one:
http://www.meq.gouv.qc.ca/STAT/Bulletin/bulletin_15.pdf (225 ko in
french) or
http://www.meq.gouv.qc.ca/STAT/Bulletin/bulletin_15an.pdf (177 ko
translated in english).

R. Ouellette


--

dit et transmis sous Linux!






Algorithm options

2001-02-22 Thread Claus Hentschel

I am using the algorithm float in LyX together with the listing package.
Most things work as I want them to use. So I am able to change the float's
name as well as the name of the list of floats with these commands in the
LyX preambel:
\floatname{algorithm}{XYZ}
\renewcommand{\listalgorithmname}{List of XYZs}

But how can I change the *numbering scheme* of algorithm floats to insert
the chapter's number? By default algotithms are just counted throuout the
document. Every time I insert
\usepackage{algorithm}[chapter]
in the preamble I got errors.

Another question is how to change the floating behaviour of that float type?
By default (reading the sty file) that float type is set to respect options
{htbp}{loa}. I want them to use {tbp} instead. (BTW: What does {loa} mean?
The float documentation -- just a README -- doesn't say anything about!)

Claus






Re: [Fwd: A XML Layout]

2001-02-22 Thread Jose Abilio Oliveira Matos

On Thu, Feb 22, 2001 at 12:34:00AM +0100, ben wrote:
 John O'Gorman a crit :
 
  Another reloated question.
  The old linuxdoc stylesheets produced very attractive docbook output.
 
  With the new SGMLdoc, how can we obtain similar presentation?

  The dsssl stylesheets allow a greater range of customization then the old
scheme with linuxdoc.

  IIRC, You should search in the sgmltools(-lite) documentation since they
have one type of transformation that is very similar to that of linuxdoc.

  John O'Gorman
 
 Actually I don't know. As far as I know, the output translation is
 completely different between the linuxdoc translation (using the sgml2xxx
 perl scripts) and the DocBook translation (using the jade/jadetex tools,
 called by sgmltools). But, maybe I'm wrong.

  I think John is only interested in the final output. There are many people
who really like the linuxdoc output look. :-) I am one of those. :-)

-- 
Jos



Re: Minitoc for Appendix

2001-02-22 Thread Martin Adorni

Herbert Voss wrote:
 
 Martin Adorni wrote:
 
  Here's the problem:
  * The listing of chapters with minitoc can only be done if I define the
  appendix being a part and use \parttoc. The definition part* didn't work
  - empty minitoc.
  * That part definition results in an entry of the 'normal' TOC in a more
  emphasised way than a chapter what I don't like (The appendix is really
  not of major importance). Furthermore, the words 'Part I.' are written
  above 'Appendix' :-(
 
  What can I do?
  Is there another way to have a minitoc with chapters listed?
  Or do I have to redefine the part environment to get rid of 'Part I.'
  and have a TOC entry like a chapter -- in this case what are the
  commands?
 
 try the following chaptoc.sty. i adopted it from a texbook,
 but can't remeber if it worked with appendix.
 put it in ~/.TeX and add in latex preamble \usepackage{chaptoc}
 
 Herbert

I've looked into the *.sty document. I know some LateX commands, but
that's too much. So, before using it I've some questions:

1) % erweitere Mini-TOC bei jeder \section
   \renewcommand{\sectionmark}[1]
   ...
   % Aus LaTeX.ltx mit nderungen fr Mini-TOC
   \renewcommand{\@makechapterhead}[1]
   ...
   % Sternform ohne TOC
   \renewcommand{\@makeschapterhead}[1]
   ...
   ?? As far as I know this would change the previous layout. Is it
necessary?

2) Final question -- sounds very silly -- how to work with it? The
following commands are new:
- \newcommand{\@mystarttoc}[1] ...
- \newcommand{\myaddtocont}[1] ...
Does \myaddtocont add a chapter to a new TOC which can be listed with
\mystarttoc?

Thanks for help.
Martin



Help on multi reference footnote

2001-02-22 Thread Flink Del Dinky

Is it possible to refrence an existing footnote instead of creating a 
new footnote?

I tried labeling the foot note then cross-refrencing to it.  That 
actually worked except the cross-refrence was regular size text and not 
superscripted like a regular footnote.

I've looked for a superscript menu option but couldn't find one.  I 
aknow in math mode you can get superscripting by pressing the '^' key. 
But you can't do cross-refrencing in math mode.

Any ideas?




Re: 2 columns document with columns of different width

2001-02-22 Thread Jean-Marc Lasgouttes

 "Raymond" == Raymond Ouellette [EMAIL PROTECTED] writes:

Raymond I would like to know if it is possible to create a document
Raymond wich has 2 columns of different width, for exemple a wide
Raymond column at the right side of the page, approx 13 cm wide, and
Raymond a smaller one of 4 cm at the left side. The main text would
Raymond be in the main column, and the left column would be used only
Raymond for section or subsections titles, tables titles, or figures
Raymond titles.

Raymond I tried with a reverse margin note but I lost the result if I
Raymond change the basic font of the document from time to helvetica
Raymond for instance.

Yes, using a margin note is the right thing to do in your case. I do
not understand the problem you had with that. Could you explain a bit
more?

JMarc




Re: Minitoc for Appendix

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 07:09:59PM +0100, Martin Adorni wrote:
 What I want to do:
 I would like to have table of contents (TOC) for the chapters and
 sections of the appendix. It should be at the beginning of the appendix.
 I've tried to manage it with the minitoc package but failed as I didn't
 find a suitable solution.
 
 Here's the problem:
 * The listing of chapters with minitoc can only be done if I define the
 appendix being a part and use \parttoc. The definition part* didn't work
 - empty minitoc.
 * That part definition results in an entry of the 'normal' TOC in a more
 emphasised way than a chapter what I don't like (The appendix is really
 not of major importance). Furthermore, the words 'Part I.' are written
 above 'Appendix' :-(

Instead of using \part{} at the beginning of the appendix,
use "\addtocounter{part}{1}"



Re: Problem with Texref

2001-02-22 Thread Jan Goebel

Hi,

i'm not sure, but when using vref in tex i somtimes get a similar
error. This is because the reference is around a page break and 
LaTeX can't decide which kind of reference it has to use.
Using normal ref and pageref solve this problem.

Maybe this is also with texref? I never used texref in LyX, sorry.

best regards

jan

On Wed, 21 Feb 2001, Thies Wels wrote:

 Thies Wels schrieb:
  
  Hi there!
  
  I have a small problem with lyx1.1.6fix. Sometimes (not always...) latex
  complains about problems with texref reference "...may a loop..." if I
  use the feature texref instead of reference. The strange thing is, that
  it hapens sometimes but not always! I couldnt figure out yet when or
  why this happens. I am always working on the same dokument with a lot
  pictures and tables in floats. Once simply renaming the mark solved the
  problem. Another time placing the figure-float somewhere else was the
  solution. But these ways do not work always. Latex recommends to change
  texref into a normal ref. That solves the problem but I dont have a
  texref anymore! I cant remember this problem in 1.1.5, but I had
  just a few pictures that time.
  Any ideas?
  
  Thies
 
 Hmm, seems that nobody has an idea. Am I the only person with this
 problem or is it just a stupid question...?
 
 Thies

-- 
+---
 Jan Goebel (mailto:[EMAIL PROTECTED])

 DIW Berlin 
 Longitudinal Data and Microanalysis
 Knigin-Luise-Str. 5
 D-14195 Berlin -- Germany --
 phone: 49 30 89789-377
+---



Re: Help on multi reference footnote

2001-02-22 Thread Dekel Tsur

On Thu, Feb 22, 2001 at 08:36:43AM +, Herbert Voss wrote:
  Is it possible to refrence an existing footnote instead of creating a
  new footnote?
 
  I tried labeling the foot note then cross-refrencing to it.  That
  actually worked except the cross-refrence was regular size text and not
  superscripted like a regular footnote.
 
 in latex preamble:
 \newcommand\sups[1]{\raisebox{1ex}{\footnotesize #1}}

This should be
\newcommand\sups[1]{\textsuperscript{\scriptsize #1}}

 in text in tex (red):
 \sups{insert the crossref with lyx}
  
 or alternative
 
 insert-special character-superscript (since lyx 1.1.6)

In previous versions, use c-m ^ 



Re: Minitoc for Appendix

2001-02-22 Thread Martin Adorni

Dekel Tsur wrote:
 
 On Wed, Feb 21, 2001 at 07:09:59PM +0100, Martin Adorni wrote:
  What I want to do:
  I would like to have table of contents (TOC) for the chapters and
  sections of the appendix. It should be at the beginning of the appendix.
  I've tried to manage it with the minitoc package but failed as I didn't
  find a suitable solution.
 
  Here's the problem:
  * The listing of chapters with minitoc can only be done if I define the
  appendix being a part and use \parttoc. The definition part* didn't work
  - empty minitoc.
  * That part definition results in an entry of the 'normal' TOC in a more
  emphasised way than a chapter what I don't like (The appendix is really
  not of major importance). Furthermore, the words 'Part I.' are written
  above 'Appendix' :-(
 
 Instead of using \part{} at the beginning of the appendix,
 use "\addtocounter{part}{1}"

Good idea. I've tried this but it doesn't work. I've received an empty
TOC. Don't know why. Another suggestion?

Martin



Re: xfig pictures rotate and have strange colour

2001-02-22 Thread Tuukka Toivonen

On Wed, 21 Feb 2001, Thies Wels wrote:

 Wait! Maybe you mean something different! You see different backgrounds
 in Lyx right? (I also have that) But this has no influence on the

Yes, exactly.

 output. What I mean is the background in the printout!
 
 Do you also know that kind of problem?

I have never had your problem, but I haven't imported any other pictures
in my Xfig files.




Re: Algorithm options

2001-02-22 Thread Dekel Tsur

On Thu, Feb 22, 2001 at 09:30:56AM +0100, Claus Hentschel wrote:
 But how can I change the *numbering scheme* of algorithm floats to insert
 the chapter's number? By default algotithms are just counted throuout the
 document. Every time I insert
 \usepackage{algorithm}[chapter]

I guess you meant \usepackage[chapter]{algorithm}

 in the preamble I got errors.

The problem is that lyx already loads the algorithm package without the
'chapter' option.
You have 2 options:

1. Put 'chapter' in the 'extra options' field in the document dialog.
The problem is that the chapter option may be passed to other packages,
giving you unwanted results. So it may be better to use the next option.

2. Enable AMS-math in the document dialog, and put 
'\numberwithin{algorithm}{chapter}' in the preamble.

 
 Another question is how to change the floating behaviour of that float type?
 By default (reading the sty file) that float type is set to respect options
 {htbp}{loa}. I want them to use {tbp} instead. (BTW: What does {loa} mean?
 The float documentation -- just a README -- doesn't say anything about!)

Put '\newfloat{algorithm}{tbp}{loa}' in the preamble.



Re: citation references

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 06:51:59PM +0100, Eric Seynaeve wrote:
 When I accidentally add some 'Text after' to my citation, I double-click on 
 the citation and delete this text (who wouldn't). But to my surprise, the 'OK' 
 and 'Apply' buttons remain disabled. It is only after moving a key to the 
 right-hand listbox and re-inserting it in the left-hand listbox it that these 
 buttons become enabled. Is this me or a bug?

This is a bug. It has been fixed in CVS.

 And to stay with the citation references, I have following suggestion. Make 
 it possible to tab into the lists and start typing the first few characters of 
 your citation to select it. With a large list of citations (as is my case), it is 
 painfull to have to scroll in the list the whole time. It would also be nice to 

This is a planned feature.

 be able to use, eg., ALT-arrow to control the actions of the buttons in the 
 middle (ALT-left arrow to move a citation key to the left-hand listbox and 
 ALT-right to bring it back to the right-hand listbox).

You can already use alt-left to add citation and alt-x to remove.



Re: A XML Layout

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 11:25:04PM +0100, ben wrote:
 Juan Pablo Diaz a ?crit :
 
  How can i make a layout to create XML DocBook Documents?
 
 Well, you don't need to do anything. At the moment direct XML output is
 not yet available (but it should be available in version 1.2.x) but you
 can export to SGML and change only the two first lines, and it should
 work. Personnaly what I change is:
 
 !doctype book public "-//OASIS//DTD DocBook V3.1//EN"
 
 to:
 
 ?xml version="1.0" encoding="iso-8859-1"?
 !DOCTYPE book SYSTEM "file:///(full path)/docbookx.dtd"
 
 I know, it is not automatic, but for me it works.

You can write a (trivial) script that does this conversion,
and with lyx 1.1.6 you can define a new format (e.g. xml-docbook) and use
the script as a docbook-xml-docbook converter.



Re: Lyx and color depth on SparcStation running Solaris

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 06:40:48PM -0500, Arcady Genkin wrote:
 The latest LyX, installed from sources on a Linux computer, works fine
 on the Linux machines.  When run remotely with X forwarding (via
 DISPLAY environment variable) from a SparcStation it works for ones
 with 8-bit display, but dies for the ones with 24-bit.
 
 The Xforms library is 0.89.
 
 Any suggestions?

Check if you have the correct version of XForms (i.e. compiled for glibc2.1).



Re: A XML Layout

2001-02-22 Thread Andre Poenitz

 You can write a (trivial) script that does this conversion,
 and with lyx 1.1.6 you can define a new format (e.g. xml-docbook) and use
 the script as a docbook-xml-docbook converter.

Maybe such a trivial thing could go in the LyX distribution as well...

Andre'

-- 
Andr Pnitz  [EMAIL PROTECTED]



Re: babel problem with lyx 1.1.6

2001-02-22 Thread Martin Gruner

 Can you send an example file ?

I did, please see my last posting.

Should I now send a bug report to lyx-developers, or can you help me with 
this issue?

Thank you,

Martin



Re: Problem with Texref

2001-02-22 Thread Thies Wels



Jan Goebel schrieb:
 
 Hi,
 
 i'm not sure, but when using vref in tex i somtimes get a similar
 error. This is because the reference is around a page break and
 LaTeX can't decide which kind of reference it has to use.
 Using normal ref and pageref solve this problem.
 
 Maybe this is also with texref? I never used texref in LyX, sorry.

Thanks Jan!
This could explain my problem! Due to the latex error output the lyx
funktion "texref" is "vref" in latex code! So I should finish the report
first and later watch out for page break problems!

Greetings 
Thies



Re: Help on multi reference footnote

2001-02-22 Thread Herbert Voss

Dekel Tsur wrote:
 
 On Thu, Feb 22, 2001 at 08:36:43AM +, Herbert Voss wrote:
   Is it possible to refrence an existing footnote instead of creating a
   new footnote?
  
   I tried labeling the foot note then cross-refrencing to it.  That
   actually worked except the cross-refrence was regular size text and not
   superscripted like a regular footnote.
 
  in latex preamble:
  \newcommand\sups[1]{\raisebox{1ex}{\footnotesize #1}}
 
 This should be
 \newcommand\sups[1]{\textsuperscript{\scriptsize #1}}

the original latex definition is

\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}
therefore
\newcommand\sups[1]{\hbox{\textsuperscript{\normalfont #1}}}

and you'll get exact the same.

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/





Re: Algorithm options

2001-02-22 Thread Herbert Voss

Claus Hentschel wrote:
 
 I am using the algorithm float in LyX together with the listing package.
 Most things work as I want them to use. So I am able to change the float's
 name as well as the name of the list of floats with these commands in the
 LyX preambel:
 \floatname{algorithm}{XYZ}
 \renewcommand{\listalgorithmname}{List of XYZs}
 
 But how can I change the *numbering scheme* of algorithm floats to insert
 the chapter's number? By default algotithms are just counted throuout the
 document. Every time I insert
 \usepackage{algorithm}[chapter]
 in the preamble I got errors.

in preamble:

\renewcommand{\thealgorithm}{\thechapter-\arabic{algorithm}}
\@addtoreset{algorithm}{chapter}

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



?multi-part doc update_dvi not always update?

2001-02-22 Thread Nien-Po Chen

Hi,

I'm using LyX 1.1.5 fix2.

I learn from the manual that I can do multi-part doc, and the trick to cross-
ref between different parts. They work.  However, one thing bothering me is 
that when I make some changes in one sub-doc, switch to master doc, and do
'update dvi', LyX does not do any thing, because it thinks there's no change.
If I intentionally add/delete a space to register a change in the master doc,
'update dvi' still does not do any thinkg, because LyX smartly thinks dvi is
intact.  The only work-around I can think of is to manually close/re-open 
master doc and do 'view dvi'.  This is combersome!  Any better idea?

Thanks. 
-- 
Chen, Nien-Po   [EMAIL PROTECTED]
http://www.physics.purdue.edu/~npchen/
Feb 22 2001
==



TOC in docbook

2001-02-22 Thread Darryl VanDorp

Does anyone know how to create a table of contents in docbook layout
using lyx?

Any help would be appreciated.

--Darryl




Re: DocBook - fixed

2001-02-22 Thread Darryl VanDorp

I've fixed the problem; i had to get the cvs of sgml-tools lite
from sgmltools.org. However, it still sticks the files
in a tmp directory that you have to dig out yourself
but at least it works.

--Darryl


Darryl VanDorp a crit :

  Hello,
 
  I have DocBook working with Lyx 1.1.6fix1 , however
  when i export to html it dies.
 
  I know this isn't a sgmltoolslite support forum but do any
  other lyx users have in sight into this problem?
 
  It works  when i export to pdf/ps/txt etc. just not html
 
  Any ideas?

Have you tried to do it by hand (sgmltools -b html yourdoc.sgml) to see
what happens?




Re: 2 columns document with columns of different width,

2001-02-22 Thread Raymond Ouellette

[fichier joint : testmarge.lyx 13020 octets]

I enclosed with this email a test lyx file with the reverse margin note.
It works with times fonts, but if I try to change the entire document to
helvetica fonts (Format--Document--Font properties) nothing happens.

I then select all the text and I do Format--Caracters--Font Family
changing it to SanSerif then I loose the reverse margin note that places
itself on the right side. Am I doing something wrong?

Raymond


#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage[bottom,flushmargin]{footmisc}
\usepackage {multicol,latexsym,pifont,amssymb}
\frenchspacing
\usepackage{pslatex}
\usepackage[ps2pdf,pdftitle={titre},pdfauthor={RO - mis en forme avec 
LyX},pdfpagemode=none,pdfview=FitH,urlcolor=blue,letterpaper,colorlinks=true]{hyperref}
\usepackage{dcolumn}
\newcolumntype{d}[1]{D{,}{,}{#1}}
\end_preamble
\language frenchb
\inputencoding latin1
\fontscheme helvet
\graphics default
\paperfontsize 10
\spacing single 
\papersize letterpaper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\paperorientation portrait
\leftmargin 61mm
\topmargin 20mm
\rightmargin 20mm
\bottommargin 20mm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Standard

Le 19 janvier 2001,  l'occasion d'un colloque organis  Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la rforme de l'Etat,
 se prononait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur  rapide essor  dans les administrations
 et encourageait leur dveloppement.
 Car, au-del de la gratuit, de l'ouverture et de la scurit, qu'il jugeait
 responsables de leurs premiers succs, Michel Sapin voyait dans le dveloppemen
t coopratif, mutuel et transparent de ces logiciels un modle pour mener
  bien la rforme de l'Etat.
\newline 

\layout Standard


\latex latex 

\backslash 
reversemarginpar
\begin_float margin 
\layout Standard
\align right \pextra_type 3 \pextra_width 41mm

\SpecialChar ~

\newline 
Ma note de marge qui sera, je l'espre, du ct gauche.
\end_float 
\layout Standard

Le 19 janvier 2001,  l'occasion d'un colloque organis  Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la rforme de l'Etat,
 se prononait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur  rapide essor  dans les administrations
 et encourageait leur dveloppement.
 Car, au-del de la gratuit, de l'ouverture et de la scurit, qu'il jugeait
 responsables de leurs premiers succs, Michel Sapin voyait dans le dveloppemen
t coopratif, mutuel et transparent de ces logiciels un modle pour mener
  bien la rforme de l'Etat.
\newline 

\layout Standard
\align right \pextra_type 2 \pextra_alignment 0 \pextra_width 41mm

Et puis maintenant le test de la mini-page
\newline 

\layout Standard

Le 19 janvier 2001,  l'occasion d'un colloque organis  Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la rforme de l'Etat,
 se prononait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur  rapide essor  dans les administrations
 et encourageait leur dveloppement.
 Car, au-del de la gratuit, de l'ouverture et de la scurit, qu'il jugeait
 responsables de leurs premiers succs, Michel Sapin voyait dans le dveloppemen
t coopratif, mutuel et transparent de ces logiciels un modle pour mener
  bien la rforme de l'Etat.
 Voici un 
\begin_inset Quotes fld
\end_inset 

test
\begin_inset Quotes frd
\end_inset 

 de guillemet.
\newline 

\latex latex 

\backslash 
reversemarginpar
\begin_float margin 
\layout Standard
\align right \pextra_type 3 \pextra_width 41mm

\SpecialChar ~

\newline 

\series bold 
Tableau 1
\layout Standard
\align right 
Le titre de mon tableau
\end_float 

\begin_inset  Tabular
lyxtabular version="2" rows="5" columns="7"
features rotate="false" islongtable="true" endhead="0" endfirsthead="0" endfoot="0" 
endlastfoot="0"
column alignment="right" valignment="top" leftline="false" rightline="false" width="" 
special=""
column alignment="right" valignment="top" leftline="false" rightline="false" width="" 
special="d{2}"
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="center" valignment="top" leftline="false" rightline="false" 
width="" special=""
column alignment="right" valignment="top" leftline="false" rightline="false" width="" 
special=""
row topline="true" bottomline="true" newpage="false"
cell multicolumn="0" alignment="center" valignment="top" topline="true" 
bottomline="false" leftline="true" rightline="false" 

Multiple TOCs

2001-02-22 Thread Wolfram Pfeiffer

Hi,

I am using LyX 1.1.6fix1.

Currently I am writing a report for university and have a document
structure that basically looks like this:

Part 1
Part 2
- Part 2.1
- Part 2.2
- Part 2.3
Part 3

Now I need one main table of contents for the whole document
looking as follows:

MAIN-TOC:
Part 1 ... Page x
Part 2 ... Page y
Part 3 ... Page z

And Part 2 needs its own sub-toc looking as follows [0]:

SUB-TOC:
Part 2 ... Page a
- Part 2.1 ... Page b
- Part 2.2 ... Page c
- Part 2.3 ... Page d

I have checked the documentation, especially the chapters 
about TOCs, Indexes, Multipart Documents and Nested 
Environments, but none seemed to do the trick.

Could someone please send some cluons on how to create
multiple TOCs (that show different parts of a document
with different levels of detail) in my direction?

- Wolfram   


[0] IMNSHO creating this sub-toc is crap because the 
whole document is only about 20 pages. But my dear 
university insists on using this weird kind of 
document structure...

-- 
Sent through GMX FreeMail - http://www.gmx.net




Re: 2 columns document with columns of different width,

2001-02-22 Thread Herbert Voss

Raymond Ouellette wrote:

 I enclosed with this email a test lyx file with the reverse margin note.
 It works with times fonts, but if I try to change the entire document to
 helvetica fonts (Format--Document--Font properties) nothing happens.
 
 I then select all the text and I do Format--Caracters--Font Family
 changing it to SanSerif then I loose the reverse margin note that places
 itself on the right side. Am I doing something wrong?
 
   
 #LyX 1.1 created this file. For more info see http://www.lyx.org/
 \usepackage{pslatex}

with this command you choose the pslatex-fonts! This command is always
behind that one from LyX layout-document-font. lppk at the exported
tex-file:

\documentclass[10pt,frenchb]{article}
\usepackage{times}   



\usepackage{pslatex}
\usepackage[ps2pdf,pdftitle={titre},pdfauthor={RO - mis en forme avec
LyX},pdfpagemode=none,pdfvi
...

delete the \usepackage{pslatex} in your preamble and choose
fonts only from LyX-menu.

Herbert



-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Multiple TOCs

2001-02-22 Thread Herbert Voss

Wolfram Pfeiffer wrote:

 Currently I am writing a report for university and have a document
 structure that basically looks like this:

have a look at package minitoc

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: crash at every start

2001-02-22 Thread Alexandru Mustatea

On Wed, 14 Feb 2001, Tuukka Toivonen wrote:

 On Tue, 13 Feb 2001, Alexandru Mustatea wrote:

 Don't worry, it's ok... but where .ro is anyway?

.ro is Romania, in Central (Eastern?) Europe, south of Ukraine,
east of Hungary, north of Bulgaria and west of the Black Sea and
Moldavia. The capital is Bucharest.

  Every time I start lyx, it crashes after displaying the main
  window and just before displaying the graphical logo. I've tried both

Someone suggested that it might be a xforms problem, so I realized
that I forgot to mention that I use xforms-0.88-3 from the rpm at
sylvan.com.

These are the outputs of gdb. The rpms are taken from sylvan.com
and all the binaries are the default ones which come with RedHat 
6.2. Usually, I don't compile anything (just imagine, on my 5 years old
486!).

1.1.5fix1 (stripped) says:

Program received signal SIGSEGV, Segmentation fault.
0x8287dc4 in ?? ()

When backtraced, it says:

#0  0x8287dc4 in ?? ()
#1  0x402395ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80bfc4a in LyXGUI::init () at ../../gcc/cp/exception.cc:343
#4  0x80c26d2 in LyX::LyX () at ../../gcc/cp/exception.cc:343
#5  0x80ef3db in main () at ../../gcc/cp/exception.cc:343
#6  0x401249cb in __libc_start_main (main=0x80ef2e0 main, argc=1,
argv=0xbb54, init=0x804da10 _init, fini=0x81aed8c _fini,
rtld_fini=0x4000ae60 _dl_fini, stack_end=0xbb4c)
at ../sysdeps/generic/libc-start.c:92

1.1.6fix1 (stripped) says:

Program received signal SIGSEGV, Segmentation fault.
0x83042a4 in ?? ()

When backtraced, it says:

#0  0x83042a4 in ?? ()
#1  0x4024c5ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80bb3fa in fl_set_button ()
#4  0x80bd7ed in fl_set_button ()
#5  0x80e97d7 in fl_set_button ()
#6  0x401379cb in __libc_start_main (main=0x80e96f0 fl_set_button+629640,
argc=1, argv=0xbb54, init=0x804df38 _init, fini=0x821b84c _fini,
rtld_fini=0x4000ae60 _dl_fini, stack_end=0xbb4c)
at ../sysdeps/generic/libc-start.c:92


1.1.6fix1 (not stripped, lyxgdb) says:

Program received signal SIGSEGV, Segmentation fault.
0x839f664 in ?? ()

When backtraced, it says:

#0  0x839f664 in ?? ()
#1  0x4024c5ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80b5082 in LyXGUI::init (this=0x8385530) at lyx_gui.C:205
#4  0x80b792d in LyX::LyX (this=0xbac4, argc=0xbb10, argv=0xbb54)
at ../src/lyx_main.C:107
#5  0x80e7bdb in main (argc=1, argv=0xbb54) at ../src/main.C:40

Now, can anyone of you figure out what the problem is? I am not a
programmer, so I didn't know what else to ask gdb. If you need more
information, and if you would find the output of 0.12 useful, please mail
me. Thank you.

A. M.




Possible bug

2001-02-22 Thread robin

I was trying to revise the LyX guide I've been writing to explain how to
get non-ps images into a LyX document. I went through the normal Insert
- External Material - Rasterized image procedure. No problem - the ugly
grey box came up as expected. However, when I the clicked on the box and
clicked "View result", the program froze. I played around with this and
found it does not happen all the time.  Any ideas?

BTW, IMHO this feature, while impressive, needs to be made a little more
user-friendly.  I'm trying to push LyX in a work-environment where some
users only recently discovered the difference between the Delete and
Backspace keys, so "Rasterized" is really going to throw them!

Robin



URL's in Latex - HTML

2001-02-22 Thread Stephen Carville

I am creating some documentation using the Article layout that needs to be
exported in both HTML and PDF format.

A typical Makefile entry looks like:

solaris-security: solaris-security.lyx
lyx --export latex solaris-security.lyx
latex2html -split 4 -show_section_numbers solaris-security.tex
cd solaris-security;pdflatex ../solaris-security.tex 

This produces OK PDF but the embedded URL's in both the HTML and PDF
appear as:

  www.insecure.org http://www.insecure.org/

It doesn't matter whether I select 'HTML Type' or not. 

I tried switching to the LinuxDOC layout which fixed the URL problem in
the HTML but left the '#' in comment lines in sample scripts as

{[num  ]}



-- 
--Stephen Carville
http://www.heronforge.net/~stephen/gnupgkey.txt
==
Government is like burning witches:  After years of burning young women
failed to solve any of society's problems, the solution was to burn more
young women. 
==




2 columns document with columns of different width

2001-02-22 Thread Raymond Ouellette

I would like to know if it is possible to create a document wich has 2
columns of different width, for exemple a wide column at the right side
of the page, approx 13 cm wide, and a smaller one of 4 cm at the left
side. The main text would be in the main column, and the left column
would be used only for section or subsections titles, tables titles, or
figures titles.

I tried with a reverse margin note but I lost the result if I change the
basic font of the document from time to helvetica for instance.

I'm responsible for Education Bulletins where I work and I would like to
give a try to LyX for documents such as this one:
http://www.meq.gouv.qc.ca/STAT/Bulletin/bulletin_15.pdf (225 ko in
french) or
http://www.meq.gouv.qc.ca/STAT/Bulletin/bulletin_15an.pdf (177 ko
translated in english).

R. Ouellette


--

Édité et transmis sous Linux!






Algorithm options

2001-02-22 Thread Claus Hentschel

I am using the algorithm float in LyX together with the listing package.
Most things work as I want them to use. So I am able to change the float's
name as well as the name of the list of floats with these commands in the
LyX preambel:
\floatname{algorithm}{XYZ}
\renewcommand{\listalgorithmname}{List of XYZs}

But how can I change the *numbering scheme* of algorithm floats to insert
the chapter's number? By default algotithms are just counted throuout the
document. Every time I insert
\usepackage{algorithm}[chapter]
in the preamble I got errors.

Another question is how to change the floating behaviour of that float type?
By default (reading the sty file) that float type is set to respect options
{htbp}{loa}. I want them to use {tbp} instead. (BTW: What does {loa} mean?
The float documentation -- just a README -- doesn't say anything about!)

Claus






Re: [Fwd: A XML Layout]

2001-02-22 Thread Jose Abilio Oliveira Matos

On Thu, Feb 22, 2001 at 12:34:00AM +0100, ben wrote:
> John O'Gorman a écrit :
> 
> > Another reloated question.
> > The old linuxdoc stylesheets produced very attractive docbook output.
> >
> > With the new SGMLdoc, how can we obtain similar presentation?

  The dsssl stylesheets allow a greater range of customization then the old
scheme with linuxdoc.

  IIRC, You should search in the sgmltools(-lite) documentation since they
have one type of transformation that is very similar to that of linuxdoc.

> > John O'Gorman
> 
> Actually I don't know. As far as I know, the output translation is
> completely different between the linuxdoc translation (using the sgml2xxx
> perl scripts) and the DocBook translation (using the jade/jadetex tools,
> called by sgmltools). But, maybe I'm wrong.

  I think John is only interested in the final output. There are many people
who really like the linuxdoc output look. :-) I am one of those. :-)

-- 
José



Re: Minitoc for Appendix

2001-02-22 Thread Martin Adorni

Herbert Voss wrote:
> 
> Martin Adorni wrote:
> >
> > Here's the problem:
> > * The listing of chapters with minitoc can only be done if I define the
> > appendix being a part and use \parttoc. The definition part* didn't work
> > -> empty minitoc.
> > * That part definition results in an entry of the 'normal' TOC in a more
> > emphasised way than a chapter what I don't like (The appendix is really
> > not of major importance). Furthermore, the words 'Part I.' are written
> > above 'Appendix' :-(
> >
> > What can I do?
> > Is there another way to have a minitoc with chapters listed?
> > Or do I have to redefine the part environment to get rid of 'Part I.'
> > and have a TOC entry like a chapter -- in this case what are the
> > commands?
> 
> try the following chaptoc.sty. i adopted it from a texbook,
> but can't remeber if it worked with appendix.
> put it in ~/.TeX and add in latex preamble \usepackage{chaptoc}
> 
> Herbert

I've looked into the *.sty document. I know some LateX commands, but
that's too much. So, before using it I've some questions:

1) % erweitere Mini-TOC bei jeder \section
   \renewcommand{\sectionmark}[1]
   ...
   % Aus LaTeX.ltx mit Änderungen für Mini-TOC
   \renewcommand{\@makechapterhead}[1]
   ...
   % Sternform ohne TOC
   \renewcommand{\@makeschapterhead}[1]
   ...
   ?? As far as I know this would change the previous layout. Is it
necessary?

2) Final question -- sounds very silly -- how to work with it? The
following commands are new:
- \newcommand{\@mystarttoc}[1] ...
- \newcommand{\myaddtocont}[1] ...
Does \myaddtocont add a chapter to a new TOC which can be listed with
\mystarttoc?

Thanks for help.
Martin



Help on multi reference footnote

2001-02-22 Thread Flink Del Dinky

Is it possible to refrence an existing footnote instead of creating a 
new footnote?

I tried labeling the foot note then cross-refrencing to it.  That 
actually worked except the cross-refrence was regular size text and not 
superscripted like a regular footnote.

I've looked for a superscript menu option but couldn't find one.  I 
aknow in math mode you can get superscripting by pressing the '^' key. 
But you can't do cross-refrencing in math mode.

Any ideas?




Re: 2 columns document with columns of different width

2001-02-22 Thread Jean-Marc Lasgouttes

> "Raymond" == Raymond Ouellette <[EMAIL PROTECTED]> writes:

Raymond> I would like to know if it is possible to create a document
Raymond> wich has 2 columns of different width, for exemple a wide
Raymond> column at the right side of the page, approx 13 cm wide, and
Raymond> a smaller one of 4 cm at the left side. The main text would
Raymond> be in the main column, and the left column would be used only
Raymond> for section or subsections titles, tables titles, or figures
Raymond> titles.

Raymond> I tried with a reverse margin note but I lost the result if I
Raymond> change the basic font of the document from time to helvetica
Raymond> for instance.

Yes, using a margin note is the right thing to do in your case. I do
not understand the problem you had with that. Could you explain a bit
more?

JMarc




Re: Minitoc for Appendix

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 07:09:59PM +0100, Martin Adorni wrote:
> What I want to do:
> I would like to have table of contents (TOC) for the chapters and
> sections of the appendix. It should be at the beginning of the appendix.
> I've tried to manage it with the minitoc package but failed as I didn't
> find a suitable solution.
> 
> Here's the problem:
> * The listing of chapters with minitoc can only be done if I define the
> appendix being a part and use \parttoc. The definition part* didn't work
> -> empty minitoc.
> * That part definition results in an entry of the 'normal' TOC in a more
> emphasised way than a chapter what I don't like (The appendix is really
> not of major importance). Furthermore, the words 'Part I.' are written
> above 'Appendix' :-(

Instead of using \part{} at the beginning of the appendix,
use "\addtocounter{part}{1}"



Re: Problem with "Texref"

2001-02-22 Thread Jan Goebel

Hi,

i'm not sure, but when using vref in tex i somtimes get a similar
error. This is because the reference is around a page break and 
LaTeX can't decide which kind of reference it has to use.
Using normal ref and pageref solve this problem.

Maybe this is also with texref? I never used texref in LyX, sorry.

best regards

jan

On Wed, 21 Feb 2001, Thies Wels wrote:

> Thies Wels schrieb:
> > 
> > Hi there!
> > 
> > I have a small problem with lyx1.1.6fix. Sometimes (not always...) latex
> > complains about problems with texref reference "...may a loop..." if I
> > use the feature texref instead of reference. The strange thing is, that
> > it hapens sometimes but not always! I couldn´t figure out yet when or
> > why this happens. I am always working on the same dokument with a lot
> > pictures and tables in floats. Once simply renaming the mark solved the
> > problem. Another time placing the figure-float somewhere else was the
> > solution. But these ways do not work always. Latex recommends to change
> > texref into a normal ref. That solves the problem but I don´t have a
> > texref anymore! I can´t remember this problem in 1.1.5, but I had
> > just a few pictures that time.
> > Any ideas?
> > 
> > Thies
> 
> Hmm, seems that nobody has an idea. Am I the only person with this
> problem or is it just a stupid question...?
> 
> Thies

-- 
+---
 Jan Goebel (mailto:[EMAIL PROTECTED])

 DIW Berlin 
 Longitudinal Data and Microanalysis
 Königin-Luise-Str. 5
 D-14195 Berlin -- Germany --
 phone: 49 30 89789-377
+---



Re: Help on multi reference footnote

2001-02-22 Thread Dekel Tsur

On Thu, Feb 22, 2001 at 08:36:43AM +, Herbert Voss wrote:
> > Is it possible to refrence an existing footnote instead of creating a
> > new footnote?
> >
> > I tried labeling the foot note then cross-refrencing to it.  That
> > actually worked except the cross-refrence was regular size text and not
> > superscripted like a regular footnote.
> 
> in latex preamble:
> \newcommand\sups[1]{\raisebox{1ex}{\footnotesize #1}}

This should be
\newcommand\sups[1]{\textsuperscript{\scriptsize #1}}

> in text in tex (red):
> \sups{}
>  
> or alternative
> 
> insert->special character->superscript (since lyx 1.1.6)

In previous versions, use c-m ^ 



Re: Minitoc for Appendix

2001-02-22 Thread Martin Adorni

Dekel Tsur wrote:
> 
> On Wed, Feb 21, 2001 at 07:09:59PM +0100, Martin Adorni wrote:
> > What I want to do:
> > I would like to have table of contents (TOC) for the chapters and
> > sections of the appendix. It should be at the beginning of the appendix.
> > I've tried to manage it with the minitoc package but failed as I didn't
> > find a suitable solution.
> >
> > Here's the problem:
> > * The listing of chapters with minitoc can only be done if I define the
> > appendix being a part and use \parttoc. The definition part* didn't work
> > -> empty minitoc.
> > * That part definition results in an entry of the 'normal' TOC in a more
> > emphasised way than a chapter what I don't like (The appendix is really
> > not of major importance). Furthermore, the words 'Part I.' are written
> > above 'Appendix' :-(
> 
> Instead of using \part{} at the beginning of the appendix,
> use "\addtocounter{part}{1}"

Good idea. I've tried this but it doesn't work. I've received an empty
TOC. Don't know why. Another suggestion?

Martin



Re: xfig pictures rotate and have strange colour

2001-02-22 Thread Tuukka Toivonen

On Wed, 21 Feb 2001, Thies Wels wrote:

> Wait! Maybe you mean something different! You see different backgrounds
> in Lyx right? (I also have that) But this has no influence on the

Yes, exactly.

> output. What I mean is the background in the printout!
> 
> Do you also know that kind of problem?

I have never had your problem, but I haven't imported any other pictures
in my Xfig files.




Re: Algorithm options

2001-02-22 Thread Dekel Tsur

On Thu, Feb 22, 2001 at 09:30:56AM +0100, Claus Hentschel wrote:
> But how can I change the *numbering scheme* of algorithm floats to insert
> the chapter's number? By default algotithms are just counted throuout the
> document. Every time I insert
> \usepackage{algorithm}[chapter]

I guess you meant \usepackage[chapter]{algorithm}

> in the preamble I got errors.

The problem is that lyx already loads the algorithm package without the
'chapter' option.
You have 2 options:

1. Put 'chapter' in the 'extra options' field in the document dialog.
The problem is that the chapter option may be passed to other packages,
giving you unwanted results. So it may be better to use the next option.

2. Enable AMS-math in the document dialog, and put 
'\numberwithin{algorithm}{chapter}' in the preamble.

> 
> Another question is how to change the floating behaviour of that float type?
> By default (reading the sty file) that float type is set to respect options
> {htbp}{loa}. I want them to use {tbp} instead. (BTW: What does {loa} mean?
> The float documentation -- just a README -- doesn't say anything about!)

Put '\newfloat{algorithm}{tbp}{loa}' in the preamble.



Re: citation references

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 06:51:59PM +0100, Eric Seynaeve wrote:
> When I accidentally add some 'Text after' to my citation, I double-click on 
> the citation and delete this text (who wouldn't). But to my surprise, the 'OK' 
> and 'Apply' buttons remain disabled. It is only after moving a key to the 
> right-hand listbox and re-inserting it in the left-hand listbox it that these 
> buttons become enabled. Is this me or a bug?

This is a bug. It has been fixed in CVS.

> And to stay with the citation references, I have following suggestion. Make 
> it possible to tab into the lists and start typing the first few characters of 
> your citation to select it. With a large list of citations (as is my case), it is 
> painfull to have to scroll in the list the whole time. It would also be nice to 

This is a planned feature.

> be able to use, eg., ALT-arrow to control the actions of the buttons in the 
> middle (ALT-left arrow to move a citation key to the left-hand listbox and 
> ALT-right to bring it back to the right-hand listbox).

You can already use alt-left to add citation and alt-x to remove.



Re: A XML Layout

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 11:25:04PM +0100, ben wrote:
> Juan Pablo Diaz a ?crit :
> 
> > How can i make a layout to create XML DocBook Documents?
> 
> Well, you don't need to do anything. At the moment direct XML output is
> not yet available (but it should be available in version 1.2.x) but you
> can export to SGML and change only the two first lines, and it should
> work. Personnaly what I change is:
> 
>  
> to:
> 
> 
>  
> I know, it is not automatic, but for me it works.

You can write a (trivial) script that does this conversion,
and with lyx 1.1.6 you can define a new format (e.g. xml-docbook) and use
the script as a docbook->xml-docbook converter.



Re: Lyx and color depth on SparcStation running Solaris

2001-02-22 Thread Dekel Tsur

On Wed, Feb 21, 2001 at 06:40:48PM -0500, Arcady Genkin wrote:
> The latest LyX, installed from sources on a Linux computer, works fine
> on the Linux machines.  When run remotely with X forwarding (via
> DISPLAY environment variable) from a SparcStation it works for ones
> with 8-bit display, but dies for the ones with 24-bit.
> 
> The Xforms library is 0.89.
> 
> Any suggestions?

Check if you have the correct version of XForms (i.e. compiled for glibc2.1).



Re: A XML Layout

2001-02-22 Thread Andre Poenitz

> You can write a (trivial) script that does this conversion,
> and with lyx 1.1.6 you can define a new format (e.g. xml-docbook) and use
> the script as a docbook->xml-docbook converter.

Maybe such a trivial thing could go in the LyX distribution as well...

Andre'

-- 
André Pönitz  [EMAIL PROTECTED]



Re: babel problem with lyx 1.1.6

2001-02-22 Thread Martin Gruner

> Can you send an example file ?

I did, please see my last posting.

Should I now send a bug report to lyx-developers, or can you help me with 
this issue?

Thank you,

Martin



Re: Problem with "Texref"

2001-02-22 Thread Thies Wels



Jan Goebel schrieb:
> 
> Hi,
> 
> i'm not sure, but when using vref in tex i somtimes get a similar
> error. This is because the reference is around a page break and
> LaTeX can't decide which kind of reference it has to use.
> Using normal ref and pageref solve this problem.
> 
> Maybe this is also with texref? I never used texref in LyX, sorry.

Thanks Jan!
This could explain my problem! Due to the latex error output the lyx
funktion "texref" is "vref" in latex code! So I should finish the report
first and later watch out for page break problems!

Greetings 
Thies



Re: Help on multi reference footnote

2001-02-22 Thread Herbert Voss

Dekel Tsur wrote:
> 
> On Thu, Feb 22, 2001 at 08:36:43AM +, Herbert Voss wrote:
> > > Is it possible to refrence an existing footnote instead of creating a
> > > new footnote?
> > >
> > > I tried labeling the foot note then cross-refrencing to it.  That
> > > actually worked except the cross-refrence was regular size text and not
> > > superscripted like a regular footnote.
> >
> > in latex preamble:
> > \newcommand\sups[1]{\raisebox{1ex}{\footnotesize #1}}
> 
> This should be
> \newcommand\sups[1]{\textsuperscript{\scriptsize #1}}

the original latex definition is

\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}
therefore
\newcommand\sups[1]{\hbox{\textsuperscript{\normalfont #1}}}

and you'll get exact the same.

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/





Re: Algorithm options

2001-02-22 Thread Herbert Voss

Claus Hentschel wrote:
> 
> I am using the algorithm float in LyX together with the listing package.
> Most things work as I want them to use. So I am able to change the float's
> name as well as the name of the list of floats with these commands in the
> LyX preambel:
> \floatname{algorithm}{XYZ}
> \renewcommand{\listalgorithmname}{List of XYZs}
> 
> But how can I change the *numbering scheme* of algorithm floats to insert
> the chapter's number? By default algotithms are just counted throuout the
> document. Every time I insert
> \usepackage{algorithm}[chapter]
> in the preamble I got errors.

in preamble:

\renewcommand{\thealgorithm}{\thechapter-\arabic{algorithm}}
\@addtoreset{algorithm}{chapter}

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



?multi-part doc update_dvi not always update?

2001-02-22 Thread Nien-Po Chen

Hi,

I'm using LyX 1.1.5 fix2.

I learn from the manual that I can do multi-part doc, and the trick to cross-
ref between different parts. They work.  However, one thing bothering me is 
that when I make some changes in one sub-doc, switch to master doc, and do
'update dvi', LyX does not do any thing, because it thinks there's no change.
If I intentionally add/delete a space to register a change in the master doc,
'update dvi' still does not do any thinkg, because LyX smartly thinks dvi is
intact.  The only work-around I can think of is to manually close/re-open 
master doc and do 'view dvi'.  This is combersome!  Any better idea?

Thanks. 
-- 
Chen, Nien-Po   [EMAIL PROTECTED]
http://www.physics.purdue.edu/~npchen/
Feb 22 2001
==



TOC in docbook

2001-02-22 Thread Darryl VanDorp

Does anyone know how to create a table of contents in docbook layout
using lyx?

Any help would be appreciated.

--Darryl




Re: DocBook - fixed

2001-02-22 Thread Darryl VanDorp

I've fixed the problem; i had to get the cvs of sgml-tools lite
from sgmltools.org. However, it still sticks the files
in a tmp directory that you have to dig out yourself
but at least it works.

--Darryl


>Darryl VanDorp a écrit :
>
> > Hello,
> >
> > I have DocBook working with Lyx 1.1.6fix1 , however
> > when i export to html it dies.
> >
> > I know this isn't a sgmltoolslite support forum but do any
> > other lyx users have in sight into this problem?
> >
> > It works  when i export to pdf/ps/txt etc. just not html
> >
> > Any ideas?
>
>Have you tried to do it by hand (sgmltools -b html yourdoc.sgml) to see
>what happens?




Re: 2 columns document with columns of different width,

2001-02-22 Thread Raymond Ouellette

[fichier joint : testmarge.lyx 13020 octets]

I enclosed with this email a test lyx file with the reverse margin note.
It works with times fonts, but if I try to change the entire document to
helvetica fonts (Format-->Document-->Font properties) nothing happens.

I then select all the text and I do Format-->Caracters-->Font Family
changing it to SanSerif then I loose the reverse margin note that places
itself on the right side. Am I doing something wrong?

Raymond


#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage[bottom,flushmargin]{footmisc}
\usepackage {multicol,latexsym,pifont,amssymb}
\frenchspacing
\usepackage{pslatex}
\usepackage[ps2pdf,pdftitle={titre},pdfauthor={RO - mis en forme avec 
LyX},pdfpagemode=none,pdfview=FitH,urlcolor=blue,letterpaper,colorlinks=true]{hyperref}
\usepackage{dcolumn}
\newcolumntype{d}[1]{D{,}{,}{#1}}
\end_preamble
\language frenchb
\inputencoding latin1
\fontscheme helvet
\graphics default
\paperfontsize 10
\spacing single 
\papersize letterpaper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\paperorientation portrait
\leftmargin 61mm
\topmargin 20mm
\rightmargin 20mm
\bottommargin 20mm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language french
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Standard

Le 19 janvier 2001, à l'occasion d'un colloque organisé à Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la réforme de l'Etat,
 se prononçait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur « rapide essor » dans les administrations
 et encourageait leur développement.
 Car, au-delà de la gratuité, de l'ouverture et de la sécurité, qu'il jugeait
 responsables de leurs premiers succès, Michel Sapin voyait dans le développemen
t coopératif, mutuel et transparent de ces logiciels un modèle pour mener
 à bien la réforme de l'Etat.
\newline 

\layout Standard


\latex latex 

\backslash 
reversemarginpar
\begin_float margin 
\layout Standard
\align right \pextra_type 3 \pextra_width 41mm

\SpecialChar ~

\newline 
Ma note de marge qui sera, je l'espère, du côté gauche.
\end_float 
\layout Standard

Le 19 janvier 2001, à l'occasion d'un colloque organisé à Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la réforme de l'Etat,
 se prononçait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur « rapide essor » dans les administrations
 et encourageait leur développement.
 Car, au-delà de la gratuité, de l'ouverture et de la sécurité, qu'il jugeait
 responsables de leurs premiers succès, Michel Sapin voyait dans le développemen
t coopératif, mutuel et transparent de ces logiciels un modèle pour mener
 à bien la réforme de l'Etat.
\newline 

\layout Standard
\align right \pextra_type 2 \pextra_alignment 0 \pextra_width 41mm

Et puis maintenant le test de la mini-page
\newline 

\layout Standard

Le 19 janvier 2001, à l'occasion d'un colloque organisé à Sophia-Antipolis,
 Michel Sapin, ministre de la fonction publique et de la réforme de l'Etat,
 se prononçait en faveur des logiciels libres.
 [Patrick Lindsay] Il soulignait leur « rapide essor » dans les administrations
 et encourageait leur développement.
 Car, au-delà de la gratuité, de l'ouverture et de la sécurité, qu'il jugeait
 responsables de leurs premiers succès, Michel Sapin voyait dans le développemen
t coopératif, mutuel et transparent de ces logiciels un modèle pour mener
 à bien la réforme de l'Etat.
 Voici un 
\begin_inset Quotes fld
\end_inset 

test
\begin_inset Quotes frd
\end_inset 

 de guillemet.
\newline 

\latex latex 

\backslash 
reversemarginpar
\begin_float margin 
\layout Standard
\align right \pextra_type 3 \pextra_width 41mm

\SpecialChar ~

\newline 

\series bold 
Tableau 1
\layout Standard
\align right 
Le titre de mon tableau
\end_float 

\begin_inset  Tabular











\begin_inset Text

\layout Standard

oui
\end_inset 


\begin_inset Text

\layout Standard

vert
\end_inset 


\begin_inset Text

\layout Standard

rose
\end_inset 


\begin_inset Text

\layout Standard

gris
\end_inset 


\begin_inset Text

\layout Standard

allô
\end_inset 


\begin_inset Text

\layout Standard

ax
\end_inset 


\begin_inset Text

\layout Standard

ay
\end_inset 




\begin_inset Text

\layout Standard

12
\end_inset 


\begin_inset Text

\layout Standard

45,4
\end_inset 


\begin_inset Text

\layout Standard

6
\end_inset 


\begin_inset Text

\layout Standard

5
\end_inset 


\begin_inset Text

\layout Standard

99
\end_inset 


\begin_inset Text

\layout Standard

23
\end_inset 


\begin_inset Text

\layout Standard

17
\end_inset 




\begin_inset Text

\layout Standard

1
\end_inset 


\begin_inset Text

\layout Standard

3,7
\end_inset 


\begin_inset Text

\layout Standard

12
\end_inset 


\begin_inset Text

\layout 

Multiple TOCs

2001-02-22 Thread Wolfram Pfeiffer

Hi,

I am using LyX 1.1.6fix1.

Currently I am writing a report for university and have a document
structure that basically looks like this:

Part 1
Part 2
- Part 2.1
- Part 2.2
- Part 2.3
Part 3

Now I need one main table of contents for the whole document
looking as follows:

MAIN-TOC:
Part 1 ... Page x
Part 2 ... Page y
Part 3 ... Page z

And Part 2 needs its own sub-toc looking as follows [0]:

SUB-TOC:
Part 2 ... Page a
- Part 2.1 ... Page b
- Part 2.2 ... Page c
- Part 2.3 ... Page d

I have checked the documentation, especially the chapters 
about TOCs, Indexes, Multipart Documents and Nested 
Environments, but none seemed to do the trick.

Could someone please send some cluons on how to create
multiple TOCs (that show different parts of a document
with different levels of detail) in my direction?

- Wolfram   


[0] IMNSHO creating this sub-toc is crap because the 
whole document is only about 20 pages. But my dear 
university insists on using this weird kind of 
document structure...

-- 
Sent through GMX FreeMail - http://www.gmx.net




Re: 2 columns document with columns of different width,

2001-02-22 Thread Herbert Voss

Raymond Ouellette wrote:

> I enclosed with this email a test lyx file with the reverse margin note.
> It works with times fonts, but if I try to change the entire document to
> helvetica fonts (Format-->Document-->Font properties) nothing happens.
> 
> I then select all the text and I do Format-->Caracters-->Font Family
> changing it to SanSerif then I loose the reverse margin note that places
> itself on the right side. Am I doing something wrong?
> 
>   
> #LyX 1.1 created this file. For more info see http://www.lyx.org/
> \usepackage{pslatex}

with this command you choose the pslatex-fonts! This command is always
behind that one from LyX layout->document->font. lppk at the exported
tex-file:

\documentclass[10pt,frenchb]{article}
\usepackage{times}   



\usepackage{pslatex}
\usepackage[ps2pdf,pdftitle={titre},pdfauthor={RO - mis en forme avec
LyX},pdfpagemode=none,pdfvi
...

delete the \usepackage{pslatex} in your preamble and choose
fonts only from LyX-menu.

Herbert



-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Multiple TOCs

2001-02-22 Thread Herbert Voss

Wolfram Pfeiffer wrote:

> Currently I am writing a report for university and have a document
> structure that basically looks like this:

have a look at package minitoc

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: crash at every start

2001-02-22 Thread Alexandru Mustatea

On Wed, 14 Feb 2001, Tuukka Toivonen wrote:

> On Tue, 13 Feb 2001, Alexandru Mustatea wrote:

> Don't worry, it's ok... but where .ro is anyway?

.ro is Romania, in Central (Eastern?) Europe, south of Ukraine,
east of Hungary, north of Bulgaria and west of the Black Sea and
Moldavia. The capital is Bucharest.

> > Every time I start lyx, it crashes after displaying the main
> > window and just before displaying the graphical logo. I've tried both

Someone suggested that it might be a xforms problem, so I realized
that I forgot to mention that I use xforms-0.88-3 from the rpm at
sylvan.com.

These are the outputs of gdb. The rpms are taken from sylvan.com
and all the binaries are the default ones which come with RedHat 
6.2. Usually, I don't compile anything (just imagine, on my 5 years old
486!).

1.1.5fix1 (stripped) says:

Program received signal SIGSEGV, Segmentation fault.
0x8287dc4 in ?? ()

When backtraced, it says:

#0  0x8287dc4 in ?? ()
#1  0x402395ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80bfc4a in LyXGUI::init () at ../../gcc/cp/exception.cc:343
#4  0x80c26d2 in LyX::LyX () at ../../gcc/cp/exception.cc:343
#5  0x80ef3db in main () at ../../gcc/cp/exception.cc:343
#6  0x401249cb in __libc_start_main (main=0x80ef2e0 , argc=1,
argv=0xbb54, init=0x804da10 <_init>, fini=0x81aed8c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbb4c)
at ../sysdeps/generic/libc-start.c:92

1.1.6fix1 (stripped) says:

Program received signal SIGSEGV, Segmentation fault.
0x83042a4 in ?? ()

When backtraced, it says:

#0  0x83042a4 in ?? ()
#1  0x4024c5ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80bb3fa in fl_set_button ()
#4  0x80bd7ed in fl_set_button ()
#5  0x80e97d7 in fl_set_button ()
#6  0x401379cb in __libc_start_main (main=0x80e96f0 ,
argc=1, argv=0xbb54, init=0x804df38 <_init>, fini=0x821b84c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbb4c)
at ../sysdeps/generic/libc-start.c:92


1.1.6fix1 (not stripped, lyxgdb) says:

Program received signal SIGSEGV, Segmentation fault.
0x839f664 in ?? ()

When backtraced, it says:

#0  0x839f664 in ?? ()
#1  0x4024c5ea in XFreeFont () from /usr/X11R6/lib/libX11.so.6
#2  0x40081d46 in fl_set_font_name () from /usr/X11R6/lib/libforms.so.0.88
#3  0x80b5082 in LyXGUI::init (this=0x8385530) at lyx_gui.C:205
#4  0x80b792d in LyX::LyX (this=0xbac4, argc=0xbb10, argv=0xbb54)
at ../src/lyx_main.C:107
#5  0x80e7bdb in main (argc=1, argv=0xbb54) at ../src/main.C:40

Now, can anyone of you figure out what the problem is? I am not a
programmer, so I didn't know what else to ask gdb. If you need more
information, and if you would find the output of 0.12 useful, please mail
me. Thank you.

A. M.




Possible bug

2001-02-22 Thread robin

I was trying to revise the LyX guide I've been writing to explain how to
get non-ps images into a LyX document. I went through the normal Insert
- External Material - Rasterized image procedure. No problem - the ugly
grey box came up as expected. However, when I the clicked on the box and
clicked "View result", the program froze. I played around with this and
found it does not happen all the time.  Any ideas?

BTW, IMHO this feature, while impressive, needs to be made a little more
user-friendly.  I'm trying to push LyX in a work-environment where some
users only recently discovered the difference between the Delete and
Backspace keys, so "Rasterized" is really going to throw them!

Robin



URL's in Latex -> HTML

2001-02-22 Thread Stephen Carville

I am creating some documentation using the Article layout that needs to be
exported in both HTML and PDF format.

A typical Makefile entry looks like:

solaris-security: solaris-security.lyx
lyx --export latex solaris-security.lyx
latex2html -split 4 -show_section_numbers solaris-security.tex
cd solaris-security;pdflatex ../solaris-security.tex 

This produces OK PDF but the embedded URL's in both the HTML and PDF
appear as:

  www.insecure.org http://www.insecure.org/

It doesn't matter whether I select 'HTML Type' or not. 

I tried switching to the LinuxDOC layout which fixed the URL problem in
the HTML but left the '#' in comment lines in sample scripts as

{[num  ]}



-- 
--Stephen Carville
http://www.heronforge.net/~stephen/gnupgkey.txt
==
Government is like burning witches:  After years of burning young women
failed to solve any of society's problems, the solution was to burn more
young women. 
==