Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Jürgen Spitzmüller

Hello Herbert,

Thank you very much for your instructions to modify the miniscript:
 
 /usr/bin/bibtex $1"1.aux"
 /usr/bin/bibtex $1"2.aux"
 /usr/bin/bibtex $1"3.aux"
 /usr/bin/bibtex $1"4.aux"
 ... usw

Now the script works excellent and everything is fine -- bibtopic works
with LyX !!!

I modified the script by myself a little bit:

1.) I added a bibtex run without the bibtopic extensions (on file.aux without
the numerical extensions), so that the script can handle other files with
"normal" bibliographies (without the use of bibtopic). I tested the script with
non-bibtopic files and there were no problems. Bibtopic by itself suppresses
the standard bibliography environment (it doesn't use file.aux)

2.) I left the ".aux" extensions, because you don't need them.

So the miniscript to use bibtopic with LyX (saved as "bibtex" in ~/bin) looks
like this (for four bibliography topics):

#!/bin/bash
/usr/bin/bibtex $1%% -- starts bibtex file
/usr/bin/bibtex $1"1"%% -- starts bibtex file1
/usr/bin/bibtex $1"2"%% -- starts bibtex file2
/usr/bin/bibtex $1"3"%% -- ...
/usr/bin/bibtex $1"4"

Well. I'm very grateful to your help - Thanks again!
Now I don't have to miss LyX --- by far the best document processing tool I ever
used --- for my work :-)

Best wishes,

Juergen.

P.S.: I changed to English again and added some explains about our discussion,
because I sent a copy to the LyX mailing list --- maybe there will be other
users who want to use the excellent bibtopic package for their bibliography. 



ASCII export loses variables...

2000-10-16 Thread Adrian Ball


Dear all,

I have set up a template document for report writing in which I define
some variables in the Latex preamble eg:-

\newcommand{\us}{Barron McCann Ltd }
\newcommand{\reportdate}{12th October 2000 }
\newcommand{\testdate}{9th - 11th October 2000 }

etc (there are several more)...

This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
the ASCII export option, the variables used in the text disappear.  Is
this a bug, or am I missing something?

Thanks,
Adrian.

-- 
   Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
 Major Data Services Ltd   || Business Recovery Services
  Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
 mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311



Re: ASCII export loses variables...

2000-10-16 Thread Baruch Even

It is the way LyX works.

LyX doesn't parse the latex preamable it passes it as it is when using
latex output. When doing ascii output all latex code is ignored since LyX
doesn't parse it and doesn't know what can be used in an ascii output and
what cant.

This is something not so trivial, so I don't believe it will appear
anytime soon in a LyX version close to you. Though you might want to try
to code it up yourself :-)

Baruch

On Mon, 16 Oct 2000, Adrian Ball wrote:

 
 Dear all,
 
 I have set up a template document for report writing in which I define
 some variables in the Latex preamble eg:-
 
 \newcommand{\us}{Barron McCann Ltd }
 \newcommand{\reportdate}{12th October 2000 }
 \newcommand{\testdate}{9th - 11th October 2000 }
 
 etc (there are several more)...
 
 This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
 the ASCII export option, the variables used in the text disappear.  Is
 this a bug, or am I missing something?
 
 Thanks,
 Adrian.
 
 -- 
Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
  Major Data Services Ltd   || Business Recovery Services
   Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
  mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311
 




Re: ASCII export loses variables...

2000-10-16 Thread Jan Goebel

So maybe you can use

LyX: export to dvi and then
dvi2tty to get an ascii output.

Hope it helps.

jan


 It is the way LyX works.
 
 LyX doesn't parse the latex preamable it passes it as it is when using
 latex output. When doing ascii output all latex code is ignored since LyX
 doesn't parse it and doesn't know what can be used in an ascii output and
 what cant.
 
 This is something not so trivial, so I don't believe it will appear
 anytime soon in a LyX version close to you. Though you might want to try
 to code it up yourself :-)
 
 Baruch
 
 On Mon, 16 Oct 2000, Adrian Ball wrote:
 
  
  Dear all,
  
  I have set up a template document for report writing in which I define
  some variables in the Latex preamble eg:-
  
  \newcommand{\us}{Barron McCann Ltd }
  \newcommand{\reportdate}{12th October 2000 }
  \newcommand{\testdate}{9th - 11th October 2000 }
  
  etc (there are several more)...
  
  This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
  the ASCII export option, the variables used in the text disappear.  Is
  this a bug, or am I missing something?
  
  Thanks,
  Adrian.
  
  -- 
 Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
   Major Data Services Ltd   || Business Recovery Services
Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
   mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311
  

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

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: class docbook W32

2000-10-16 Thread Idar Tollefsen

  The initial search to detect docbook is for sgmltools or db2html scripts,
I am really aware that you can use it without those wrappers. They call the
tools you have.

  This could be changed, there are several possible ways to do it.
  I would like to hear suggestion. How about to search for (open)jade?

In order to convert the document, yes, do search for openjade as well.
But for anyone to write this type of document, simply make sure that the
right layout files are in place and whatever other LyX specific files are
needed. It's the users problem if he/she wants to write a DocBook
document without the extra tools to actually do anything sensible with them.


 I have a Windows NT envrioment set up with OpenJade, JadeTex,
 DocBook, stylesheets and whatever else is in here.
 so I can performe the desired conversion as long as LyX exports a
 sgml file for me.

  Yes.

He, he... This was actually a statement of facts, not a question.

  For 1.1.6 there is also docbook-book. It needs some work but the basis are
 there.

Great! I'll whatch out for the Win32 port of it and get it right away for
my Linux box.

If I try to start a new document from that docbook.layout file and go "view
dvi" it gives me a LaTeX error even before I've changed or set anything.
That's why I think that the docbook.layout file is just "for instance" and
isn't capable of compiling anything.  In any case, in my installation, with
the "docbook" template file, I can not import or export anything more
relevant than ASCII, so surely the engine room is empty no?

  What version do you have (lyx)?
  It is possible to configure the way docbook is converted to any of those
 formats.

I think this might be a problem with MiKTeX. There are versions of JadeTeX
out there made for MiKTeX 1.2?, and when installed it wrecks havoc with
some of the setup.

I installed this version if JadeTeX and started experiencing problems with
the dvi files. I then reinstalled then latest beta of MiKTeX. Both have 
worked just fine after that, and I once again have correct dvi files.

  The support is not complete, is work in progress. We are missing mainly
the inline elements, that will be supported as soon as the Logical
Characther Styles are implemented.

I'm only too happy to hear that there is some sort of progress on the matter.



- IT





Re: ASCII export loses variables...

2000-10-16 Thread Adrian Ball


Thanks for both the explanation, and the solution.

Downloaded dvi2tty and exported that way - the output isn't quite as
nice as the Lyx ASCII export, but it will manage for the time being.

Thanks again,
Adrian.

-- 
   Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
 Major Data Services Ltd   || Business Recovery Services
  Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
 mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311



displaystyle for frac

2000-10-16 Thread Alberto Meroni

I have the following behavior which is not normal according to me
with lyx version 15fix1 but also 12 (the machine is a Linux debian potato).
I have a matrix in math displaystyle and one of the cell is a frac
which I would like to have in displaystyle. If I export the file in TeX
and add a {\displaystyle } everything is ok but if I select the
frac or put the cursor before the frac and do a math-size displaystyle
in the minibuffer I have no effect (in the ps view of course).
What I have misunderstood ?
Thank you very much
Alberto Meroni
[EMAIL PROTECTED]



A draft mode to forget figures

2000-10-16 Thread Laurent DUVAL

I am trying to produce a huge doc without figures.
The basic command with latex is
\usepackage[draft]{graphics}.

In that case, i only get a box with the name of the file.

When i try to use it in the latex preambule form LyX, i get an error like
"option package clash"?

Attempts to use \usepackage[,draft]{graphics} instead, as suggested,
just results in the same error (example included).

It seems the clash is related to the following \usepackage instruction
but I don't understand why.

What is going on which I don't understand and what should I do?

Thanks

lyx1.0.4, SUNOS 5.6 (I know I should upgrade)



#This file was created by duvall Mon Oct 16 15:56:06 2000
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass article
\begin_preamble
\usepackage[T1]{fontenc}
\usepackage[draft]{graphics}
\usepackage{babel}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\usepackage{setspace}
\onehalfspacing

\makeatletter

\makeatother
\end_preamble
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4wide
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_float fig 
\layout Standard
\align center 

\begin_inset Figure size 297 186
file blank.eps
width 3 50
flags 9

\end_inset 


\layout Caption

\end_float 
\the_end

 blank.eps


Re: A draft mode to forget figures

2000-10-16 Thread Jean-Marc Lasgouttes

 "Laurent" == Laurent DUVAL [EMAIL PROTECTED] writes:

Laurent I am trying to produce a huge doc without figures. The basic
Laurent command with latex is \usepackage[draft]{graphics}.

Laurent In that case, i only get a box with the name of the file.

Laurent When i try to use it in the latex preambule form LyX, i get
Laurent an error like "option package clash"?

In Layout-Document, try to add "draft" to the 'extra options' text
field.

Hope this helps.

JMarc



Re: displaystyle for frac

2000-10-16 Thread Herbert Voss

Alberto Meroni wrote:
 
 I have the following behavior which is not normal according to me
 with lyx version 15fix1 but also 12 (the machine is a Linux debian potato).
 I have a matrix in math displaystyle and one of the cell is a frac
 which I would like to have in displaystyle. If I export the file in TeX
 and add a {\displaystyle } everything is ok but if I select the
 frac or put the cursor before the frac and do a math-size displaystyle
 in the minibuffer I have no effect (in the ps view of course).
 What I have misunderstood ?

do a 

\newcommand\myDStyle[1]{\displaystyle{#1}}

in latex preamble and than in your formular \myDStyle{

lyx puts the closing paranthesis my itself. now you can insert your 
fraction and it never gets lost.

Herbert


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



Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Herbert Voss

"Jürgen Spitzmüller" wrote:

 So the miniscript to use bibtopic with LyX (saved as "bibtex" in ~/bin) looks
 like this (for four bibliography topics):
 
 #!/bin/bash
 /usr/bin/bibtex $1%% -- starts bibtex file
 /usr/bin/bibtex $1"1"%% -- starts bibtex file1
 /usr/bin/bibtex $1"2"%% -- starts bibtex file2
 /usr/bin/bibtex $1"3"%% -- ...
 /usr/bin/bibtex $1"4"

try the following script. it looks for all files with fileNR.aux
and starts bibtex, so you don't have to know how many bib-files
you have.


#!/bin/bash
/usr/bin/bibtex $1   # -- starts bibtex file.aux
NEXT=1
FILE=$1$NEXT
while [ -a $FILE.aux ]; do
  /usr/bin/bibtex $FILE  # -- starts bibtex fileNR.aux
  NEXT=$(($NEXT+1))
  FILE=$1$NEXT;
done




Herbert

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



spellchecker

2000-10-16 Thread Matìj Cepl

-BEGIN PGP SIGNED MESSAGE-

Hi,

let put here couple of notes (and wishes) for LyX's spellchecker.

First issue is the issue of compounded words. Czech language is
famous for its incredible ability to create compound words by
using literarily hundreds of affixes, suffixes and terminations
(affix is not the same as preposition, which is a separate word
itself). For example the word "nespravedlnost" (see attached
screenshot) is rather simple -- it would be translated
as "unjustice". Affix "ne-" means negation. Simple, similar to
English.

OK, let's take more complicated example. Phrase "b\'yt
na pov\'a\v{z}enou" would be translated as "be a matter
of (great) moment | consequence" (according to dictionary). The
root of the word is "v\'a\v{z}it si" (to hold in (high | low)
regard), which is modified by an affix "po-" which has meaning of
something merely possible not actual and by a termination
"-enou" which is the termination of particular phrase
(accusativ).

Let me remark (for friends of German language), that the Czech
system is this accent _much_ more complicated than German
compound words, which are usually compounded as-is (if I
remember it correctly -- I do not speak German).

Fortunately ispell is able and willing to work correctly with
all this mess (which is really great, taking into account that
it is really better than many commercial wordprocessors).
However, sometime it asks for confirmation, whether it created
composition correctly (see the second attached screenshot of
Emacs working on ispell-buffer). Unfortunately, LyX is not able
to catch this, so that it offers only the non-sensical proposals
(see again first screenshot -- neither of them make any
sense in Czech).

Another, much less important, issue is the impossibility to skip
all-capital words and a possibility to include word in a
personal dictionary lower-case. Both would be nice to have.

What about my comments (I know, it is probably not on short
list)?

Have a nice day

Matej

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
MessageID: hJfobhPfJZXsw2KYTbUFk4A15xssM4NS

iQEVAwUBOetHxe1neEitXwCrAQHz1Af/ay8ZFFh/+rDFgKql/rDCY53UIwebXs7S
VO5m6urkxSFQUI6WcRQNBY67BE3kLcjo6LSAWMws3OR9v3c/2U9wFZl9BXG66wpX
8kDOfKR7WOVregbxASI6pz3D10N5rGdxfFkGWxlMHkqNQEEsPwNM02RjUggqWzBj
B46mSkQF6C364rTxFgaoixoHpdogk2Q+e08kJ5uOlX3fe2EtbafEPntNN9zm5wOo
blINTahzoJA0OeMVdocQMMAG6bi++v190FmYdzqLo557qOI9jkVWBoOoynnG1lfU
sFc/G7o7cGoLJRWoH9A0QP3/WFlg3/pDU59aTnD5zOaZTLHE0RMGNw==
=xc5h
-END PGP SIGNATURE-

 LyX and unjustice
 Emacs and unjustice


Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Jürgen Spitzmüller

Herbert Voss wrote:

 try the following script. it looks for all files with fileNR.aux
 and starts bibtex, so you don't have to know how many bib-files
 you have.
 
 
 #!/bin/bash
 /usr/bin/bibtex $1   # -- starts bibtex file.aux
 NEXT=1
 FILE=$1$NEXT
 while [ -a $FILE.aux ]; do
   /usr/bin/bibtex $FILE  # -- starts bibtex fileNR.aux
   NEXT=$(($NEXT+1))
   FILE=$1$NEXT;
 done

Hello Herbert,

Your new script is, of course, much more effective than the previous one.
I tested it with both bibtopic and non bibtopic using LyX-files. It works with
no problems. Now it is usable for anyone who wants to produce a splitted
bibliography with LyX and the bibtopic-package, which is really very powerful
(it is fully compatible with natbib and one more feature is the possibility to
produce different bibliographies for chapters (like chapterbib) or seperate
topics for not-cited literature).

My experiences (in the arts, the human sciences) are, that splitting
bibliographies is a thing which can't be missed in a lot of 
sciences (e.g. in historiography, you have to split your bibliography into
at least two topics: sources and literature; the same in literary studies:
primary and secondary literature).
So I think, it is really a pitty, that LyX doesn't support this possibility by
itself (apart from this, it is by far the best document processing tool, as I
wrote before - I don't want to miss it).
Your script shows, that it is very easy to make LyX compatible with bibtopic,
which solves the problem.
I think, it would be a good idea to implement your script (or something like
this) to coming LyX versions - to make LyX even more powerful!

What do you think about it?

Greetings and thanks,

Juergen.



Footnote doesn't end in the same page.

2000-10-16 Thread Zailong Bian

Hi, 

I noticed that some footnotes will continue in other pages in footnote area.
If there is no footnote in next page, then the footnote will continue from
the next page that has footnote.  This is not a good thing...

Anyone knows how to fix it?  I mean force footnote finish in one page no
matter how long it is?

Thanks.



exam.layout

2000-10-16 Thread Jonathan Pennington

I'm trying to use examdesign package's exam.cls to build an
exam.layout. The problem is that I keep getting an error about no line
here to end: \end{document}. I saw in the archives that someone was
trying to use this class, but did not find a final result. Has anyone
had any success with this?

Attached are my .lyx file that's failing and the exam.layout that I'm
working on. (There was a lot of cutting and pasting, so all of the
styles currently look the same, that'll be changed.)

-J
-- 
Jonathan Pennington | http://coastalgeology.org
Site Manager| Protection and stewardship
CoastalGeology.Org (CGO)| through public education.
[EMAIL PROTECTED] | Join CGO, make a difference.

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

SPARK Questionaire
\layout Enumerate

On the scale below, rate how much you like science.
\begin_deeper 
\layout Standard


\begin_inset Formula \[
\textrm{Hate Science }1\rightarrow 2\rightarrow 3\rightarrow 4\rightarrow 5\rightarrow 
6\rightarrow 7\rightarrow 8\rightarrow 9\rightarrow 10\textrm{ Love Science}\]

\end_inset 


\end_deeper 
\layout Standard

\the_end


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{article (exam)}

# General textclass parameters
Columns 1
Sides   1
PageStyle   Headers
MaxCounter  Counter_Section

# Default textclass options. The user may need to modify this.
#ClassOptions
#  Other"aps,manuscript"
#End

# Standard style definition
Style Standard
  MarginStatic
  LatexType Paragraph
  LatexName dummy
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

### Sections.
Input stdsections.inc


Style Question
  MarginStatic
  LatexType Environment
  LatexName question
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

Style Answer
  MarginStatic
  LatexType Environment
  LatexName answer
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

Style Choice
  MarginStatic
  LatexType Command
  LatexName choice
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End


Style ShortAnswer
  MarginStatic
  LatexType Environment
  LatexName shortanswer
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style FillIn
  MarginStatic
  LatexType Environment
  LatexName fillin
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style TrueFalse
  MarginStatic
  LatexType Environment
  LatexName truefalse
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style MultipleChoice
  MarginStatic
  LatexType Environment
  LatexName multiplechoice
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style Fixed
  MarginStatic
  LatexType Environment
  LatexName fixed
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style Block
  MarginStatic
  LatexType Environment
  LatexName block
  ParIndent MM
  ParSkip   1
  KeepEmpty

Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Jürgen Spitzmüller

Hello Herbert,

Thank you very much for your instructions to modify the miniscript:
 
 /usr/bin/bibtex $1"1.aux"
 /usr/bin/bibtex $1"2.aux"
 /usr/bin/bibtex $1"3.aux"
 /usr/bin/bibtex $1"4.aux"
 ... usw

Now the script works excellent and everything is fine -- bibtopic works
with LyX !!!

I modified the script by myself a little bit:

1.) I added a bibtex run without the bibtopic extensions (on file.aux without
the numerical extensions), so that the script can handle other files with
"normal" bibliographies (without the use of bibtopic). I tested the script with
non-bibtopic files and there were no problems. Bibtopic by itself suppresses
the standard bibliography environment (it doesn't use file.aux)

2.) I left the ".aux" extensions, because you don't need them.

So the miniscript to use bibtopic with LyX (saved as "bibtex" in ~/bin) looks
like this (for four bibliography topics):

#!/bin/bash
/usr/bin/bibtex $1%% -- starts bibtex file
/usr/bin/bibtex $1"1"%% -- starts bibtex file1
/usr/bin/bibtex $1"2"%% -- starts bibtex file2
/usr/bin/bibtex $1"3"%% -- ...
/usr/bin/bibtex $1"4"

Well. I'm very grateful to your help - Thanks again!
Now I don't have to miss LyX --- by far the best document processing tool I ever
used --- for my work :-)

Best wishes,

Juergen.

P.S.: I changed to English again and added some explains about our discussion,
because I sent a copy to the LyX mailing list --- maybe there will be other
users who want to use the excellent bibtopic package for their bibliography. 



ASCII export loses variables...

2000-10-16 Thread Adrian Ball


Dear all,

I have set up a template document for report writing in which I define
some variables in the Latex preamble eg:-

\newcommand{\us}{Barron McCann Ltd }
\newcommand{\reportdate}{12th October 2000 }
\newcommand{\testdate}{9th - 11th October 2000 }

etc (there are several more)...

This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
the ASCII export option, the variables used in the text disappear.  Is
this a bug, or am I missing something?

Thanks,
Adrian.

-- 
   Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
 Major Data Services Ltd   || Business Recovery Services
  Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
 mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311



Re: ASCII export loses variables...

2000-10-16 Thread Baruch Even

It is the way LyX works.

LyX doesn't parse the latex preamable it passes it as it is when using
latex output. When doing ascii output all latex code is ignored since LyX
doesn't parse it and doesn't know what can be used in an ascii output and
what cant.

This is something not so trivial, so I don't believe it will appear
anytime soon in a LyX version close to you. Though you might want to try
to code it up yourself :-)

Baruch

On Mon, 16 Oct 2000, Adrian Ball wrote:

 
 Dear all,
 
 I have set up a template document for report writing in which I define
 some variables in the Latex preamble eg:-
 
 \newcommand{\us}{Barron McCann Ltd }
 \newcommand{\reportdate}{12th October 2000 }
 \newcommand{\testdate}{9th - 11th October 2000 }
 
 etc (there are several more)...
 
 This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
 the ASCII export option, the variables used in the text disappear.  Is
 this a bug, or am I missing something?
 
 Thanks,
 Adrian.
 
 -- 
Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
  Major Data Services Ltd   || Business Recovery Services
   Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
  mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311
 




Re: ASCII export loses variables...

2000-10-16 Thread Jan Goebel

So maybe you can use

LyX: export to dvi and then
dvi2tty to get an ascii output.

Hope it helps.

jan


 It is the way LyX works.
 
 LyX doesn't parse the latex preamable it passes it as it is when using
 latex output. When doing ascii output all latex code is ignored since LyX
 doesn't parse it and doesn't know what can be used in an ascii output and
 what cant.
 
 This is something not so trivial, so I don't believe it will appear
 anytime soon in a LyX version close to you. Though you might want to try
 to code it up yourself :-)
 
 Baruch
 
 On Mon, 16 Oct 2000, Adrian Ball wrote:
 
  
  Dear all,
  
  I have set up a template document for report writing in which I define
  some variables in the Latex preamble eg:-
  
  \newcommand{\us}{Barron McCann Ltd }
  \newcommand{\reportdate}{12th October 2000 }
  \newcommand{\testdate}{9th - 11th October 2000 }
  
  etc (there are several more)...
  
  This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
  the ASCII export option, the variables used in the text disappear.  Is
  this a bug, or am I missing something?
  
  Thanks,
  Adrian.
  
  -- 
 Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
   Major Data Services Ltd   || Business Recovery Services
Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
   mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311
  

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

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: class docbook W32

2000-10-16 Thread Idar Tollefsen

  The initial search to detect docbook is for sgmltools or db2html scripts,
I am really aware that you can use it without those wrappers. They call the
tools you have.

  This could be changed, there are several possible ways to do it.
  I would like to hear suggestion. How about to search for (open)jade?

In order to convert the document, yes, do search for openjade as well.
But for anyone to write this type of document, simply make sure that the
right layout files are in place and whatever other LyX specific files are
needed. It's the users problem if he/she wants to write a DocBook
document without the extra tools to actually do anything sensible with them.


 I have a Windows NT envrioment set up with OpenJade, JadeTex,
 DocBook, stylesheets and whatever else is in here.
 so I can performe the desired conversion as long as LyX exports a
 sgml file for me.

  Yes.

He, he... This was actually a statement of facts, not a question.

  For 1.1.6 there is also docbook-book. It needs some work but the basis are
 there.

Great! I'll whatch out for the Win32 port of it and get it right away for
my Linux box.

If I try to start a new document from that docbook.layout file and go "view
dvi" it gives me a LaTeX error even before I've changed or set anything.
That's why I think that the docbook.layout file is just "for instance" and
isn't capable of compiling anything.  In any case, in my installation, with
the "docbook" template file, I can not import or export anything more
relevant than ASCII, so surely the engine room is empty no?

  What version do you have (lyx)?
  It is possible to configure the way docbook is converted to any of those
 formats.

I think this might be a problem with MiKTeX. There are versions of JadeTeX
out there made for MiKTeX 1.2?, and when installed it wrecks havoc with
some of the setup.

I installed this version if JadeTeX and started experiencing problems with
the dvi files. I then reinstalled then latest beta of MiKTeX. Both have 
worked just fine after that, and I once again have correct dvi files.

  The support is not complete, is work in progress. We are missing mainly
the inline elements, that will be supported as soon as the Logical
Characther Styles are implemented.

I'm only too happy to hear that there is some sort of progress on the matter.



- IT





Re: ASCII export loses variables...

2000-10-16 Thread Adrian Ball


Thanks for both the explanation, and the solution.

Downloaded dvi2tty and exported that way - the output isn't quite as
nice as the Lyx ASCII export, but it will manage for the time being.

Thanks again,
Adrian.

-- 
   Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
 Major Data Services Ltd   || Business Recovery Services
  Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
 mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311



displaystyle for frac

2000-10-16 Thread Alberto Meroni

I have the following behavior which is not normal according to me
with lyx version 15fix1 but also 12 (the machine is a Linux debian potato).
I have a matrix in math displaystyle and one of the cell is a frac
which I would like to have in displaystyle. If I export the file in TeX
and add a {\displaystyle } everything is ok but if I select the
frac or put the cursor before the frac and do a math-size displaystyle
in the minibuffer I have no effect (in the ps view of course).
What I have misunderstood ?
Thank you very much
Alberto Meroni
[EMAIL PROTECTED]



A draft mode to forget figures

2000-10-16 Thread Laurent DUVAL

I am trying to produce a huge doc without figures.
The basic command with latex is
\usepackage[draft]{graphics}.

In that case, i only get a box with the name of the file.

When i try to use it in the latex preambule form LyX, i get an error like
"option package clash"?

Attempts to use \usepackage[,draft]{graphics} instead, as suggested,
just results in the same error (example included).

It seems the clash is related to the following \usepackage instruction
but I don't understand why.

What is going on which I don't understand and what should I do?

Thanks

lyx1.0.4, SUNOS 5.6 (I know I should upgrade)



#This file was created by duvall Mon Oct 16 15:56:06 2000
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass article
\begin_preamble
\usepackage[T1]{fontenc}
\usepackage[draft]{graphics}
\usepackage{babel}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\usepackage{setspace}
\onehalfspacing

\makeatletter

\makeatother
\end_preamble
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4wide
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_float fig 
\layout Standard
\align center 

\begin_inset Figure size 297 186
file blank.eps
width 3 50
flags 9

\end_inset 


\layout Caption

\end_float 
\the_end

 blank.eps


Re: A draft mode to forget figures

2000-10-16 Thread Jean-Marc Lasgouttes

 "Laurent" == Laurent DUVAL [EMAIL PROTECTED] writes:

Laurent I am trying to produce a huge doc without figures. The basic
Laurent command with latex is \usepackage[draft]{graphics}.

Laurent In that case, i only get a box with the name of the file.

Laurent When i try to use it in the latex preambule form LyX, i get
Laurent an error like "option package clash"?

In Layout-Document, try to add "draft" to the 'extra options' text
field.

Hope this helps.

JMarc



Re: displaystyle for frac

2000-10-16 Thread Herbert Voss

Alberto Meroni wrote:
 
 I have the following behavior which is not normal according to me
 with lyx version 15fix1 but also 12 (the machine is a Linux debian potato).
 I have a matrix in math displaystyle and one of the cell is a frac
 which I would like to have in displaystyle. If I export the file in TeX
 and add a {\displaystyle } everything is ok but if I select the
 frac or put the cursor before the frac and do a math-size displaystyle
 in the minibuffer I have no effect (in the ps view of course).
 What I have misunderstood ?

do a 

\newcommand\myDStyle[1]{\displaystyle{#1}}

in latex preamble and than in your formular \myDStyle{

lyx puts the closing paranthesis my itself. now you can insert your 
fraction and it never gets lost.

Herbert


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



Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Herbert Voss

"Jürgen Spitzmüller" wrote:

 So the miniscript to use bibtopic with LyX (saved as "bibtex" in ~/bin) looks
 like this (for four bibliography topics):
 
 #!/bin/bash
 /usr/bin/bibtex $1%% -- starts bibtex file
 /usr/bin/bibtex $1"1"%% -- starts bibtex file1
 /usr/bin/bibtex $1"2"%% -- starts bibtex file2
 /usr/bin/bibtex $1"3"%% -- ...
 /usr/bin/bibtex $1"4"

try the following script. it looks for all files with fileNR.aux
and starts bibtex, so you don't have to know how many bib-files
you have.


#!/bin/bash
/usr/bin/bibtex $1   # -- starts bibtex file.aux
NEXT=1
FILE=$1$NEXT
while [ -a $FILE.aux ]; do
  /usr/bin/bibtex $FILE  # -- starts bibtex fileNR.aux
  NEXT=$(($NEXT+1))
  FILE=$1$NEXT;
done




Herbert

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



spellchecker

2000-10-16 Thread Matìj Cepl

-BEGIN PGP SIGNED MESSAGE-

Hi,

let put here couple of notes (and wishes) for LyX's spellchecker.

First issue is the issue of compounded words. Czech language is
famous for its incredible ability to create compound words by
using literarily hundreds of affixes, suffixes and terminations
(affix is not the same as preposition, which is a separate word
itself). For example the word "nespravedlnost" (see attached
screenshot) is rather simple -- it would be translated
as "unjustice". Affix "ne-" means negation. Simple, similar to
English.

OK, let's take more complicated example. Phrase "b\'yt
na pov\'a\v{z}enou" would be translated as "be a matter
of (great) moment | consequence" (according to dictionary). The
root of the word is "v\'a\v{z}it si" (to hold in (high | low)
regard), which is modified by an affix "po-" which has meaning of
something merely possible not actual and by a termination
"-enou" which is the termination of particular phrase
(accusativ).

Let me remark (for friends of German language), that the Czech
system is this accent _much_ more complicated than German
compound words, which are usually compounded as-is (if I
remember it correctly -- I do not speak German).

Fortunately ispell is able and willing to work correctly with
all this mess (which is really great, taking into account that
it is really better than many commercial wordprocessors).
However, sometime it asks for confirmation, whether it created
composition correctly (see the second attached screenshot of
Emacs working on ispell-buffer). Unfortunately, LyX is not able
to catch this, so that it offers only the non-sensical proposals
(see again first screenshot -- neither of them make any
sense in Czech).

Another, much less important, issue is the impossibility to skip
all-capital words and a possibility to include word in a
personal dictionary lower-case. Both would be nice to have.

What about my comments (I know, it is probably not on short
list)?

Have a nice day

Matej

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
MessageID: hJfobhPfJZXsw2KYTbUFk4A15xssM4NS

iQEVAwUBOetHxe1neEitXwCrAQHz1Af/ay8ZFFh/+rDFgKql/rDCY53UIwebXs7S
VO5m6urkxSFQUI6WcRQNBY67BE3kLcjo6LSAWMws3OR9v3c/2U9wFZl9BXG66wpX
8kDOfKR7WOVregbxASI6pz3D10N5rGdxfFkGWxlMHkqNQEEsPwNM02RjUggqWzBj
B46mSkQF6C364rTxFgaoixoHpdogk2Q+e08kJ5uOlX3fe2EtbafEPntNN9zm5wOo
blINTahzoJA0OeMVdocQMMAG6bi++v190FmYdzqLo557qOI9jkVWBoOoynnG1lfU
sFc/G7o7cGoLJRWoH9A0QP3/WFlg3/pDU59aTnD5zOaZTLHE0RMGNw==
=xc5h
-END PGP SIGNATURE-

 LyX and unjustice
 Emacs and unjustice


Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Jürgen Spitzmüller

Herbert Voss wrote:

 try the following script. it looks for all files with fileNR.aux
 and starts bibtex, so you don't have to know how many bib-files
 you have.
 
 
 #!/bin/bash
 /usr/bin/bibtex $1   # -- starts bibtex file.aux
 NEXT=1
 FILE=$1$NEXT
 while [ -a $FILE.aux ]; do
   /usr/bin/bibtex $FILE  # -- starts bibtex fileNR.aux
   NEXT=$(($NEXT+1))
   FILE=$1$NEXT;
 done

Hello Herbert,

Your new script is, of course, much more effective than the previous one.
I tested it with both bibtopic and non bibtopic using LyX-files. It works with
no problems. Now it is usable for anyone who wants to produce a splitted
bibliography with LyX and the bibtopic-package, which is really very powerful
(it is fully compatible with natbib and one more feature is the possibility to
produce different bibliographies for chapters (like chapterbib) or seperate
topics for not-cited literature).

My experiences (in the arts, the human sciences) are, that splitting
bibliographies is a thing which can't be missed in a lot of 
sciences (e.g. in historiography, you have to split your bibliography into
at least two topics: sources and literature; the same in literary studies:
primary and secondary literature).
So I think, it is really a pitty, that LyX doesn't support this possibility by
itself (apart from this, it is by far the best document processing tool, as I
wrote before - I don't want to miss it).
Your script shows, that it is very easy to make LyX compatible with bibtopic,
which solves the problem.
I think, it would be a good idea to implement your script (or something like
this) to coming LyX versions - to make LyX even more powerful!

What do you think about it?

Greetings and thanks,

Juergen.



Footnote doesn't end in the same page.

2000-10-16 Thread Zailong Bian

Hi, 

I noticed that some footnotes will continue in other pages in footnote area.
If there is no footnote in next page, then the footnote will continue from
the next page that has footnote.  This is not a good thing...

Anyone knows how to fix it?  I mean force footnote finish in one page no
matter how long it is?

Thanks.



exam.layout

2000-10-16 Thread Jonathan Pennington

I'm trying to use examdesign package's exam.cls to build an
exam.layout. The problem is that I keep getting an error about no line
here to end: \end{document}. I saw in the archives that someone was
trying to use this class, but did not find a final result. Has anyone
had any success with this?

Attached are my .lyx file that's failing and the exam.layout that I'm
working on. (There was a lot of cutting and pasting, so all of the
styles currently look the same, that'll be changed.)

-J
-- 
Jonathan Pennington | http://coastalgeology.org
Site Manager| Protection and stewardship
CoastalGeology.Org (CGO)| through public education.
[EMAIL PROTECTED] | Join CGO, make a difference.

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

SPARK Questionaire
\layout Enumerate

On the scale below, rate how much you like science.
\begin_deeper 
\layout Standard


\begin_inset Formula \[
\textrm{Hate Science }1\rightarrow 2\rightarrow 3\rightarrow 4\rightarrow 5\rightarrow 
6\rightarrow 7\rightarrow 8\rightarrow 9\rightarrow 10\textrm{ Love Science}\]

\end_inset 


\end_deeper 
\layout Standard

\the_end


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{article (exam)}

# General textclass parameters
Columns 1
Sides   1
PageStyle   Headers
MaxCounter  Counter_Section

# Default textclass options. The user may need to modify this.
#ClassOptions
#  Other"aps,manuscript"
#End

# Standard style definition
Style Standard
  MarginStatic
  LatexType Paragraph
  LatexName dummy
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

### Sections.
Input stdsections.inc


Style Question
  MarginStatic
  LatexType Environment
  LatexName question
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

Style Answer
  MarginStatic
  LatexType Environment
  LatexName answer
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

Style Choice
  MarginStatic
  LatexType Command
  LatexName choice
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End


Style ShortAnswer
  MarginStatic
  LatexType Environment
  LatexName shortanswer
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style FillIn
  MarginStatic
  LatexType Environment
  LatexName fillin
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style TrueFalse
  MarginStatic
  LatexType Environment
  LatexName truefalse
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style MultipleChoice
  MarginStatic
  LatexType Environment
  LatexName multiplechoice
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style Fixed
  MarginStatic
  LatexType Environment
  LatexName fixed
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style Block
  MarginStatic
  LatexType Environment
  LatexName block
  ParIndent MM
  ParSkip   1
  KeepEmpty

Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Jürgen Spitzmüller

Hello Herbert,

Thank you very much for your instructions to modify the miniscript:
 
> /usr/bin/bibtex $1"1.aux"
> /usr/bin/bibtex $1"2.aux"
> /usr/bin/bibtex $1"3.aux"
> /usr/bin/bibtex $1"4.aux"
> ... usw

Now the script works excellent and everything is fine -- bibtopic works
with LyX !!!

I modified the script by myself a little bit:

1.) I added a bibtex run without the bibtopic extensions (on file.aux without
the numerical extensions), so that the script can handle other files with
"normal" bibliographies (without the use of bibtopic). I tested the script with
non-bibtopic files and there were no problems. Bibtopic by itself suppresses
the standard bibliography environment (it doesn't use file.aux)

2.) I left the ".aux" extensions, because you don't need them.

So the miniscript to use bibtopic with LyX (saved as "bibtex" in ~/bin) looks
like this (for four bibliography topics):

#!/bin/bash
/usr/bin/bibtex $1%% -- starts bibtex 
/usr/bin/bibtex $1"1"%% -- starts bibtex 
/usr/bin/bibtex $1"2"%% -- starts bibtex 
/usr/bin/bibtex $1"3"%% -- ...
/usr/bin/bibtex $1"4"

Well. I'm very grateful to your help - Thanks again!
Now I don't have to miss LyX --- by far the best document processing tool I ever
used --- for my work :-)

Best wishes,

Juergen.

P.S.: I changed to English again and added some explains about our discussion,
because I sent a copy to the LyX mailing list --- maybe there will be other
users who want to use the excellent bibtopic package for their bibliography. 



ASCII export loses variables...

2000-10-16 Thread Adrian Ball


Dear all,

I have set up a template document for report writing in which I define
some variables in the Latex preamble eg:-

\newcommand{\us}{Barron McCann Ltd }
\newcommand{\reportdate}{12th October 2000 }
\newcommand{\testdate}{9th - 11th October 2000 }

etc (there are several more)...

This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
the ASCII export option, the variables used in the text disappear.  Is
this a bug, or am I missing something?

Thanks,
Adrian.

-- 
   Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
 Major Data Services Ltd   || Business Recovery Services
  Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
 mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311



Re: ASCII export loses variables...

2000-10-16 Thread Baruch Even

It is the way LyX works.

LyX doesn't parse the latex preamable it passes it as it is when using
latex output. When doing ascii output all latex code is ignored since LyX
doesn't parse it and doesn't know what can be used in an ascii output and
what cant.

This is something not so trivial, so I don't believe it will appear
anytime soon in a LyX version close to you. Though you might want to try
to code it up yourself :-)

Baruch

On Mon, 16 Oct 2000, Adrian Ball wrote:

> 
> Dear all,
> 
> I have set up a template document for report writing in which I define
> some variables in the Latex preamble eg:-
> 
> \newcommand{\us}{Barron McCann Ltd }
> \newcommand{\reportdate}{12th October 2000 }
> \newcommand{\testdate}{9th - 11th October 2000 }
> 
> etc (there are several more)...
> 
> This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
> the ASCII export option, the variables used in the text disappear.  Is
> this a bug, or am I missing something?
> 
> Thanks,
> Adrian.
> 
> -- 
>Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
>  Major Data Services Ltd   || Business Recovery Services
>   Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
>  mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311
> 




Re: ASCII export loses variables...

2000-10-16 Thread Jan Goebel

So maybe you can use

LyX: export to dvi and then
dvi2tty to get an ascii output.

Hope it helps.

jan


> It is the way LyX works.
> 
> LyX doesn't parse the latex preamable it passes it as it is when using
> latex output. When doing ascii output all latex code is ignored since LyX
> doesn't parse it and doesn't know what can be used in an ascii output and
> what cant.
> 
> This is something not so trivial, so I don't believe it will appear
> anytime soon in a LyX version close to you. Though you might want to try
> to code it up yourself :-)
> 
> Baruch
> 
> On Mon, 16 Oct 2000, Adrian Ball wrote:
> 
> > 
> > Dear all,
> > 
> > I have set up a template document for report writing in which I define
> > some variables in the Latex preamble eg:-
> > 
> > \newcommand{\us}{Barron McCann Ltd }
> > \newcommand{\reportdate}{12th October 2000 }
> > \newcommand{\testdate}{9th - 11th October 2000 }
> > 
> > etc (there are several more)...
> > 
> > This works perfectly for DVI/PS/Latex(hence PDF) output, but when I use
> > the ASCII export option, the variables used in the text disappear.  Is
> > this a bug, or am I missing something?
> > 
> > Thanks,
> > Adrian.
> > 
> > -- 
> >Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
> >  Major Data Services Ltd   || Business Recovery Services
> >   Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
> >  mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311
> > 

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

DIW German Institute for Economic Research
SOEP
Königin-Luise-Str. 5
D-14195 Berlin
Germany

phone: 49 30 89789-377
---



Re: class docbook W32

2000-10-16 Thread Idar Tollefsen

>  The initial search to detect docbook is for sgmltools or db2html scripts,
>I am really aware that you can use it without those wrappers. They call the
>tools you have.

>  This could be changed, there are several possible ways to do it.
>  I would like to hear suggestion. How about to search for (open)jade?

In order to convert the document, yes, do search for openjade as well.
But for anyone to write this type of document, simply make sure that the
right layout files are in place and whatever other LyX specific files are
needed. It's the users problem if he/she wants to write a DocBook
document without the extra tools to actually do anything sensible with them.


>> I have a Windows NT envrioment set up with OpenJade, JadeTex,
>> DocBook, stylesheets and whatever else is in here.
>> so I can performe the desired conversion as long as LyX exports a
>> sgml file for me.

>  Yes.

He, he... This was actually a statement of facts, not a question.

>  For 1.1.6 there is also docbook-book. It needs some work but the basis are
> there.

Great! I'll whatch out for the Win32 port of it and get it right away for
my Linux box.

>>If I try to start a new document from that docbook.layout file and go "view
>>dvi" it gives me a LaTeX error even before I've changed or set anything.
>>That's why I think that the docbook.layout file is just "for instance" and
>>isn't capable of compiling anything.  In any case, in my installation, with
>>the "docbook" template file, I can not import or export anything more
>>relevant than ASCII, so surely the engine room is empty no?

>  What version do you have (lyx)?
>  It is possible to configure the way docbook is converted to any of those
> formats.

I think this might be a problem with MiKTeX. There are versions of JadeTeX
out there made for MiKTeX 1.2?, and when installed it wrecks havoc with
some of the setup.

I installed this version if JadeTeX and started experiencing problems with
the dvi files. I then reinstalled then latest beta of MiKTeX. Both have 
worked just fine after that, and I once again have correct dvi files.

>  The support is not complete, is work in progress. We are missing mainly
>the inline elements, that will be supported as soon as the Logical
>Characther Styles are implemented.

I'm only too happy to hear that there is some sort of progress on the matter.



- IT





Re: ASCII export loses variables...

2000-10-16 Thread Adrian Ball


Thanks for both the explanation, and the solution.

Downloaded dvi2tty and exported that way - the output isn't quite as
nice as the Lyx ASCII export, but it will manage for the time being.

Thanks again,
Adrian.

-- 
   Adrian Ball - Technical Consultant  ||  Barron McCann Ltd
 Major Data Services Ltd   || Business Recovery Services
  Tel: 07050 688565 - Fax: 07020 965488||  http://www.bemac.com/
 mailto:[EMAIL PROTECTED]  ||  Tel: 01283 535311



displaystyle for frac

2000-10-16 Thread Alberto Meroni

I have the following behavior which is not normal according to me
with lyx version 15fix1 but also 12 (the machine is a Linux debian potato).
I have a matrix in math displaystyle and one of the cell is a frac
which I would like to have in displaystyle. If I export the file in TeX
and add a {\displaystyle } everything is ok but if I select the
frac or put the cursor before the frac and do a math-size displaystyle
in the minibuffer I have no effect (in the ps view of course).
What I have misunderstood ?
Thank you very much
Alberto Meroni
[EMAIL PROTECTED]



A draft mode to forget figures

2000-10-16 Thread Laurent DUVAL

I am trying to produce a huge doc without figures.
The basic command with latex is
\usepackage[draft]{graphics}.

In that case, i only get a box with the name of the file.

When i try to use it in the latex preambule form LyX, i get an error like
"option package clash"?

Attempts to use \usepackage[,draft]{graphics} instead, as suggested,
just results in the same error (example included).

It seems the clash is related to the following \usepackage instruction
but I don't understand why.

What is going on which I don't understand and what should I do?

Thanks

lyx1.0.4, SUNOS 5.6 (I know I should upgrade)



#This file was created by  Mon Oct 16 15:56:06 2000
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass article
\begin_preamble
\usepackage[T1]{fontenc}
\usepackage[draft]{graphics}
\usepackage{babel}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\usepackage{setspace}
\onehalfspacing

\makeatletter

\makeatother
\end_preamble
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4wide
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_float fig 
\layout Standard
\align center 

\begin_inset Figure size 297 186
file blank.eps
width 3 50
flags 9

\end_inset 


\layout Caption

\end_float 
\the_end

 blank.eps


Re: A draft mode to forget figures

2000-10-16 Thread Jean-Marc Lasgouttes

> "Laurent" == Laurent DUVAL <[EMAIL PROTECTED]> writes:

Laurent> I am trying to produce a huge doc without figures. The basic
Laurent> command with latex is \usepackage[draft]{graphics}.

Laurent> In that case, i only get a box with the name of the file.

Laurent> When i try to use it in the latex preambule form LyX, i get
Laurent> an error like "option package clash"?

In Layout->Document, try to add "draft" to the 'extra options' text
field.

Hope this helps.

JMarc



Re: displaystyle for frac

2000-10-16 Thread Herbert Voss

Alberto Meroni wrote:
> 
> I have the following behavior which is not normal according to me
> with lyx version 15fix1 but also 12 (the machine is a Linux debian potato).
> I have a matrix in math displaystyle and one of the cell is a frac
> which I would like to have in displaystyle. If I export the file in TeX
> and add a {\displaystyle } everything is ok but if I select the
> frac or put the cursor before the frac and do a math-size displaystyle
> in the minibuffer I have no effect (in the ps view of course).
> What I have misunderstood ?

do a 

\newcommand\myDStyle[1]{\displaystyle{#1}}

in latex preamble and than in your formular \myDStyle{

lyx puts the closing paranthesis my itself. now you can insert your 
fraction and it never gets lost.

Herbert


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



Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Herbert Voss

"Jürgen Spitzmüller" wrote:

> So the miniscript to use bibtopic with LyX (saved as "bibtex" in ~/bin) looks
> like this (for four bibliography topics):
> 
> #!/bin/bash
> /usr/bin/bibtex $1%% -- starts bibtex 
> /usr/bin/bibtex $1"1"%% -- starts bibtex 
> /usr/bin/bibtex $1"2"%% -- starts bibtex 
> /usr/bin/bibtex $1"3"%% -- ...
> /usr/bin/bibtex $1"4"

try the following script. it looks for all files with fileNR.aux
and starts bibtex, so you don't have to know how many bib-files
you have.


#!/bin/bash
/usr/bin/bibtex $1   # -- starts bibtex 
NEXT=1
FILE=$1$NEXT
while [ -a $FILE.aux ]; do
  /usr/bin/bibtex $FILE  # -- starts bibtex 
  NEXT=$(($NEXT+1))
  FILE=$1$NEXT;
done




Herbert

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



spellchecker

2000-10-16 Thread Matìj Cepl

-BEGIN PGP SIGNED MESSAGE-

Hi,

let put here couple of notes (and wishes) for LyX's spellchecker.

First issue is the issue of compounded words. Czech language is
famous for its incredible ability to create compound words by
using literarily hundreds of affixes, suffixes and terminations
(affix is not the same as preposition, which is a separate word
itself). For example the word "nespravedlnost" (see attached
screenshot) is rather simple -- it would be translated
as "unjustice". Affix "ne-" means negation. Simple, similar to
English.

OK, let's take more complicated example. Phrase "b\'yt
na pov\'a\v{z}enou" would be translated as "be a matter
of (great) moment | consequence" (according to dictionary). The
root of the word is "v\'a\v{z}it si" (to hold in (high | low)
regard), which is modified by an affix "po-" which has meaning of
something merely possible not actual and by a termination
"-enou" which is the termination of particular phrase
(accusativ).

Let me remark (for friends of German language), that the Czech
system is this accent _much_ more complicated than German
compound words, which are usually compounded as-is (if I
remember it correctly -- I do not speak German).

Fortunately ispell is able and willing to work correctly with
all this mess (which is really great, taking into account that
it is really better than many commercial wordprocessors).
However, sometime it asks for confirmation, whether it created
composition correctly (see the second attached screenshot of
Emacs working on ispell-buffer). Unfortunately, LyX is not able
to catch this, so that it offers only the non-sensical proposals
(see again first screenshot -- neither of them make any
sense in Czech).

Another, much less important, issue is the impossibility to skip
all-capital words and a possibility to include word in a
personal dictionary lower-case. Both would be nice to have.

What about my comments (I know, it is probably not on short
list)?

Have a nice day

Matej

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
MessageID: hJfobhPfJZXsw2KYTbUFk4A15xssM4NS

iQEVAwUBOetHxe1neEitXwCrAQHz1Af/ay8ZFFh/+rDFgKql/rDCY53UIwebXs7S
VO5m6urkxSFQUI6WcRQNBY67BE3kLcjo6LSAWMws3OR9v3c/2U9wFZl9BXG66wpX
8kDOfKR7WOVregbxASI6pz3D10N5rGdxfFkGWxlMHkqNQEEsPwNM02RjUggqWzBj
B46mSkQF6C364rTxFgaoixoHpdogk2Q+e08kJ5uOlX3fe2EtbafEPntNN9zm5wOo
blINTahzoJA0OeMVdocQMMAG6bi++v190FmYdzqLo557qOI9jkVWBoOoynnG1lfU
sFc/G7o7cGoLJRWoH9A0QP3/WFlg3/pDU59aTnD5zOaZTLHE0RMGNw==
=xc5h
-END PGP SIGNATURE-

 LyX and unjustice
 Emacs and unjustice


Re: Using bibtopic.sty with LyX?

2000-10-16 Thread Jürgen Spitzmüller

Herbert Voss wrote:

> try the following script. it looks for all files with fileNR.aux
> and starts bibtex, so you don't have to know how many bib-files
> you have.
> 
> 
> #!/bin/bash
> /usr/bin/bibtex $1   # -- starts bibtex 
> NEXT=1
> FILE=$1$NEXT
> while [ -a $FILE.aux ]; do
>   /usr/bin/bibtex $FILE  # -- starts bibtex 
>   NEXT=$(($NEXT+1))
>   FILE=$1$NEXT;
> done

Hello Herbert,

Your new script is, of course, much more effective than the previous one.
I tested it with both bibtopic and non bibtopic using LyX-files. It works with
no problems. Now it is usable for anyone who wants to produce a splitted
bibliography with LyX and the bibtopic-package, which is really very powerful
(it is fully compatible with natbib and one more feature is the possibility to
produce different bibliographies for chapters (like chapterbib) or seperate
topics for not-cited literature).

My experiences (in the arts, the human sciences) are, that splitting
bibliographies is a thing which can't be missed in a lot of 
sciences (e.g. in historiography, you have to split your bibliography into
at least two topics: sources and literature; the same in literary studies:
primary and secondary literature).
So I think, it is really a pitty, that LyX doesn't support this possibility by
itself (apart from this, it is by far the best document processing tool, as I
wrote before - I don't want to miss it).
Your script shows, that it is very easy to make LyX compatible with bibtopic,
which solves the problem.
I think, it would be a good idea to implement your script (or something like
this) to coming LyX versions - to make LyX even more powerful!

What do you think about it?

Greetings and thanks,

Juergen.



Footnote doesn't end in the same page.

2000-10-16 Thread Zailong Bian

Hi, 

I noticed that some footnotes will continue in other pages in footnote area.
If there is no footnote in next page, then the footnote will continue from
the next page that has footnote.  This is not a good thing...

Anyone knows how to fix it?  I mean force footnote finish in one page no
matter how long it is?

Thanks.



exam.layout

2000-10-16 Thread Jonathan Pennington

I'm trying to use examdesign package's exam.cls to build an
exam.layout. The problem is that I keep getting an error about no line
here to end: \end{document}. I saw in the archives that someone was
trying to use this class, but did not find a final result. Has anyone
had any success with this?

Attached are my .lyx file that's failing and the exam.layout that I'm
working on. (There was a lot of cutting and pasting, so all of the
styles currently look the same, that'll be changed.)

-J
-- 
Jonathan Pennington | http://coastalgeology.org
Site Manager| Protection and stewardship
CoastalGeology.Org (CGO)| through public education.
[EMAIL PROTECTED] | Join CGO, make a difference.

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 2.16
\textclass article
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

SPARK Questionaire
\layout Enumerate

On the scale below, rate how much you like science.
\begin_deeper 
\layout Standard


\begin_inset Formula \[
\textrm{Hate Science }1\rightarrow 2\rightarrow 3\rightarrow 4\rightarrow 5\rightarrow 
6\rightarrow 7\rightarrow 8\rightarrow 9\rightarrow 10\textrm{ Love Science}\]

\end_inset 


\end_deeper 
\layout Standard

\the_end


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{article (exam)}

# General textclass parameters
Columns 1
Sides   1
PageStyle   Headers
MaxCounter  Counter_Section

# Default textclass options. The user may need to modify this.
#ClassOptions
#  Other"aps,manuscript"
#End

# Standard style definition
Style Standard
  MarginStatic
  LatexType Paragraph
  LatexName dummy
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

### Sections.
Input stdsections.inc


Style Question
  MarginStatic
  LatexType Environment
  LatexName question
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

Style Answer
  MarginStatic
  LatexType Environment
  LatexName answer
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End

Style Choice
  MarginStatic
  LatexType Command
  LatexName choice
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
End


Style ShortAnswer
  MarginStatic
  LatexType Environment
  LatexName shortanswer
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style FillIn
  MarginStatic
  LatexType Environment
  LatexName fillin
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style TrueFalse
  MarginStatic
  LatexType Environment
  LatexName truefalse
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style MultipleChoice
  MarginStatic
  LatexType Environment
  LatexName multiplechoice
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style Fixed
  MarginStatic
  LatexType Environment
  LatexName fixed
  ParIndent MM
  ParSkip   1
  KeepEmpty 1
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType Counter_Section
End

Style Block
  MarginStatic
  LatexType Environment
  LatexName block
  ParIndent MM
  ParSkip   1
  KeepEmpty