csv2lyx (was Re: sorting tables?)

2001-05-25 Thread A.Gulino

Joao B. Oliveira wrote:
 Antonio wrote:
Joao B. Oliveira wrote:
 See? Does not look that bad, but an even better solution would be
 *other* feature: import .cvs files directly as tables. 
I have a little perlscript that produce a floattable (or a simple table) in
lyx-format from a tab-separated-value file. (or comma separteded or !
separated, how you like) (for 4fix1 and 6fix1)
 I really think that such a script for converting tables would be really
 useful! Why don't you publish it on our list? It is always a nice tool
 to have (and if we don't have it, it is nice to know where to find it!)

Hi folks,
I send you my very little perlscript. If you think it is long, its not true.
there are a only 30 codelines, the rest is documentation.

Documentation? 
Yes. pod (perl|poor|pretty old documentation).
on Linux do this: name@host ~/ pod2html csv2lyx  csv2lyx.html

how use it? look the documentation! 
ok, ok. a little help (from the documentation :-)
Sorry for my english (if you want I can translate it to italian, german or
french)

ciao, antonio
(my home e-mail: mailto:[EMAIL PROTECTED])

csv2lyx  - converter from csv-file to a LyX table 
===
HOW USE IT (under Linux):
=
 antonio@bidone:~ cat mycsvfile | csv2lyx  mytmptable.lyx

Then in LyX: Insert-LyXfile mytmptable.lyx

If you don't want a float table, then can you delete the default-title, the word
Senseless will are delete.

If you want a float table, then mark the title _and_ the table and then insert a
floattable

 Insert-LyX File mytmptable.lyx
 [mark the title and the table]
 Insert-Float-Float table

the word Senseless will change to Table

Options
===

 --separator=what you want (default: \t for a tab-sep-value file)
 --title=A pretty title for a pretty table (default:Title of the LyX table)

==
==

#! /usr/bin/perl
# csv2lyx
# Copyright (C) 2001 Antonio Gulino
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.

=pod
=head1 NAME

csv2lyx - converter from csv-file to a LyX table

Converts a Comma Separated Value file to a float table in LyX format.
Good for LyX version 1.1.4fix1 and other.

=head1 HOW USE IT

under Linux:

 antonio@bidone:~ cat mycsvfile | csv2lyx  mytmptable.lyx

Then in LyX: Insert-LyXfile mytmptable.lyx

If you don't want a float table, then can you delete the default-title, the word 
Senseless
will are delete.

If you want a float table, then mark the title and the table and then insert a 
floattable

 Insert-LyX File mytmptable.lyx
 [mark the title and the table]
 Insert-Float-Float table

=head2 Options

 --separator=what you want (default: \t for a tab-sep-value file)
 --title=A pretty title for a pretty table (default:Title of the LyX table)


=head1 AUTHOR and COPYLEFT

Copyright (C) 2001, Antonio Gulino [EMAIL PROTECTED]

This program is free software; you can redistribute it and/or modify it under
the term of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or any later version.

=cut

# l'input non e' il nome di un file, ma il file stesso
# l'output avviene sullo schermo
# dunque l'utilizzo e' cosi:
# antonio@bidone  cat filecsv.csv | csv2lyx | filedioutput

# di default il separatore e' un tabulatore

use Getopt::Long;
$OPT_separator = \t;
$OPT_title = 'Title of the LyX table';
GetOptions( separator=s = \$OPT_separator,
 title=s = \$OPT_title,);

@csv = ;
chomp(@csv);
# vediamo quante righe ci sono
# how many row (=righe) are there?
$righe = $#csv + 1;

# adesso leggo l'intero array e creo una matrice: @matrix
# contemporaneamente calcolo il numero massimo di campi, per sapere quante colonne mi 
servono
# now i read the whole array and put it into a matrix : @matrix
# at the same time i look how many column (=colonne) have the biggest row
$col = 0;
foreach my $r (@csv) {
my @r = split $OPT_separator, $r;
$colonne = $#r + 1 if $colonne = $#r;
push @matrix, [@r];
}

# adesso stampo il codice lyx. l'allineamento avviene a destra (immagino che di solito 
siano cifre)
# produco automaticamente una float table,
# versione funzionante per la 1.1.4fix1
# now I print the LyX format. Align=right (I think this is a matrix of numbers)
# dafault: a float table

print LYX;
\\begin_float tab
\\layout Caption

$OPT_title
\\layout Standard
\\align center \\LyXTable
multicol5
$righe $colonne 0 0 -1 -1 -1 -1
LYX
;

# qui viene deciso se ci sono righe in alto o in basso di ciascuna riga
# se la prima cifra e' 1 allora c'e una linea in alto
# se la seconda cifra e' 1 allora c'e una linea in basso
# here I say if there are a border
# if the first number is 1, then a border on the top of the 

I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread xdeblas


If I want to be more fluent in Lyx, what can I do? Should I buy the Latex Companion? 
Is there any other book better?.

What I read in Latex Companion is valid for Lyx or is very different?



Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Sasa Janiska

On Today, +0200, [EMAIL PROTECTED] wrote:


 If I want to be more fluent in Lyx, what can I do? Should I buy the Latex Companion? 
Is there any other book better?.

 What I read in Latex Companion is valid for Lyx or is very different?

Besides LaTeX Companion, I have Kopka  Daly's A Guide to LaTeX, which
is IMHO very god LaTeX material.

Sincerely,
Sasa





figure numbering

2001-05-25 Thread Jonathan Ware

Hello,

Is it possible to label figures in lyx so that (for example) those under
a paragraph heading are numbered paragraph number-figure number
(e.g. 2.3.4.1-1), those under a subsection heading are numbered
subsection number-figure number (e.g. 2.3-2) and so on?

Thanks in advance for any help.

Jonathan



Re: screen problems

2001-05-25 Thread Thomas Schönhoff

Hello,

thanks to all who responded to my screen problems everything is now fine! The
difficulty was that Xconfigurator (RH7.0 tool for adjustement of system
parameters) configured my XWindow not properly., after reconfiguring it
yesterday everything was fine again.

Thomas

Stephen Carville wrote:

 On Mon, 21 May 2001, Thomas Schönhoff wrote:

 - Hello,


 Sound like you have 8 Bits per Pixel.  run 'xdpyinfo' and look for a
 line that says depth of root window:  This will tell you if you have
 8, 16, 24, 0r 32 bits per pixel.

 If this is the problem there is not much you can do about it without
 increasing the bits per pixel which probably means upgrading your
 video card but it might help to:

 1. Shut down Netscape.  It try to grab a lot of the color slots.
 2. Go to Edit-Preferences-Look and Feel-Misc and turn off Show
Banner.

 --
 --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.
 ==




Re: csv2lyx (was Re: sorting tables?)

2001-05-25 Thread Robin Turner

Just tried running it, but perl -d came out with unrecognized character \xA0 
at line 60 (which seems to be in the middle of a comment, so shouldn't 
apply, unless perl only numbers lines with instructions - it's been so long I 
can't remember).

Looks pretty nifty if I can make it work though, thanks!

Robin





Re: LyX on lightweight OS (EPOC)

2001-05-25 Thread Tuukka Toivonen

On Thu, 24 May 2001, Baruch Even wrote:

 This is currently impossible, to use LyX you need an X-Server which is a
 pretty large beast usually and I doubt it was ported to a palm computer.

I guess everybody has read about this already from slashdot.org, but here
it goes: what about Agenda's VR3? It's a palm computer with Linux and
X-server. http://www.agendacomputing.com/products/system.html#spec

some technical specs: 8MB RAM + 16MB Flash Memory, 160x240 resolution.

Now i see 3 problems using LyX here:

Hard disk. Nobody has mentioned it, so am I correct that the 16
meg flash is used instead of hard disk? In that case it seems
impossible that they have put both X-server and Linux on it.
Can anyone comment that?
Definitely there isn't space for LyX, right?
Resolution. LyX window size can be quite nicely resized and the fonts
zoomed. However, that resolution is so low that it's probably
impossible to use LyX menus.
Keyboard: no keyboard. Unless the handwriting recognizion is pretty good,
the lack of keyboard is pretty bad. Maybe an external one can be
connected (such as happy hacking)?

Running LyX in another computer over network (using X protocol) should
solve first problem, though. Needs net connection.

8 MB should be adequate, I have previously run LyX with 8 meg memory too
(but it would require swap!)




Lyx can generate XML?

2001-05-25 Thread Adolfo Pachón

Hy!!

I'd like to know if its possible with Lyx generate XML code, with any class
format



 
 ---
 S A M T E K,  S C A
 C o n s u l  t o r e s  I n f o r m á  t i c a
 y  T e l e c o m u n i c a c i o n e s


 Adolfo M. Pachón Rodríguez
  (Director Desarrollos)


 Tlf..: 95 428 6045
 Fax: 95 427 8500
 ---




Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread Adolfo Pachón

hi all

I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
and i won't prescind it to write documents.

I've seen utilities like latex2html, l2x, l4th, but I'm very confused.

Can anyone help me? 

thanks...

Adolfo M. Pachón Rodríguez




Re: figure numbering

2001-05-25 Thread stephan . schlierf


Hello,

did you ever try a figure float  (Insert - Floats - figures; I`m not
quite sure how the menu items are labelled in english because I use the
german localization) ?
These floats are numbered.

HTH

Stephan

--
Stephan E. Schlierf M.A.
- chief concept  design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de


   
 
Jonathan Ware  
 
jjhw100@yorkTo: [EMAIL PROTECTED]   
 
.ac.uk  cc:   
 
 Subject: figure numbering 
 
05/25/01   
 
11:59 AM   
 
   
 
   
 




Hello,

Is it possible to label figures in lyx so that (for example) those under
a paragraph heading are numbered paragraph number-figure number
(e.g. 2.3.4.1-1), those under a subsection heading are numbered
subsection number-figure number (e.g. 2.3-2) and so on?

Thanks in advance for any help.

Jonathan








Re: Bug in xfig and pstex?

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 12:29:41PM +0100, Jos? Luis G?mez Dans wrote:
 Hi!
   I have been trying to put some pstex_t diagarams into lyx
 yesterday (brand new 1.1.6fix2). They don't work, and rummaging through
 the list (and using previous documents I have), I have used other pstex
 files that do work. These figures where created with xfig and exported
 using the same procedure as the new ones, so that seems to indicate a
 problem in the files, rather than in lyx. I am using the xfig found in
 debian unstable (Xfig 3.2 patchlevel 3c (Protocol 3.2)), and there seems
 to be a bug opened against this in the debian transfig package. A
 description of it is found in http://bugs.debian.org/77516
 
   Can anyone suggest any work arounds until this gets fixed?

Can you send a *short* example ?



Re: Defining section name for TOC

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 09:23:33PM +, Tarmo J?rvi wrote:
 Hello,
 
 First, I guess this is more LaTeX related, but please help me if you know something 
about this.. Ok, I have a long section name which gets
 hyphenated, like this:
 
 A Very Long Section Na-
 me
 
 And that's ugly. If I simply add a line break in the middle, everything's ok. Except 
in the TOC, where the section name also has line break although it isn't necessary 
(and it drops last TOC entry to the next page). So, my question is: how I can define  
different names for a section to TOC and to the actual text.

You can use \section[short name]{long name} in latex mode.
However, a better solution is to globally disable hyphenation inside section
commands by putting the following lines in the preamble:
 \let\oldsection=\section
 \renewcommand{\section}[1]{{\raggedright\hyphenpenalty=1 \oldsection{#1}}}

You then won't need to put line breaks in your sections!



Re: lyx 1.1.6fix2 and pdflatex

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 10:55:03PM +0200, Roberto Marabini wrote:
   I just installed lyx 1.1.6fix2 in my linux machine (redhat 7.0) using
 the rpm binaries. I use pdflatex and acrobat reader to visualize the
 documents ( view-pdflatex), this used to work without problems in lyx
 1.1.6fix1 but not any longer. The first time pdflatex is used it does
 produce the right results but the second time it does not update the
 file, instead, the old pdf file is used. The other options, dvi, pdf,
 postscript work properly. Does anybody knows what either I or lyx are
 doing wrong?

Run 'lyx -e pdf2 -dbg depend your-file.lyx' and send the stderr output you get.



Re: jpg/png images

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 06:23:54PM +0200, Herbert Voss wrote:
 Giorgio Corani wrote:
  hi, as far as I know, the only supported format for images is eps.
  What to do in order to put an other type of image, for example jpg?
  I tried to save it as .eps within GIMP but (maybe it's a problem of my
  installation) no such filter
  was found.
 
 use convert my.gif my.eps
 it's part of the imagemagic package.

For jpeg images, it is better to use jpeg2ps
(http://www.pdflib.com/jpeg2ps/index.html) as it doesn't uncompress the image.
There is similar tiff2ps on CTAN.

  Does the new release maybe support such images?
 
 yes.

In 1.1.6 you have the external inset, but it just converts the image file to
eps using 'convert'. It is better do to the conversion manually.

Also, if you use pdflatex instead of latex, you can include png/jpeg images.
(you can also include png/jpeg if you use latex+dvipdfm).



Cannot Link lyx-1.1.6fix2 under Solaris

2001-05-25 Thread Duncan Webb

I cannot link either 1.1.6fix1 and 1.1.6fix2 under Solaris. 

Thanks in advance,
Duncan

Solaris version: 
SunOS wsf21 5.6 Generic_105181-25 sun4m sparc SUNW,SPARCstation-20

gcc version:
Reading specs from /home/dwebb/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/specs
gcc version 2.95.3 20010315 (release)

ld version:
GNU ld version 2.10 (with BFD 2.10)

build messages:
make[3]: Entering directory `/home/dwebb/build/lyx-1.1.6fix2/src'
/bin/sh ../libtool --mode=link g++  -g -O2 -fno-exceptions -L/opt2/solaris-sparc/lib 
-L/opt2/lib -o lyx  BufferView.o BufferView2.o BufferView_pimpl.o Bullet.o Chktex.o 
ColorHandler.o CutAndPaste.o DepTable.o FloatList.o Floating.o FontInfo.o FontLoader.o 
LColor.o LaTeX.o LaTeXFeatures.o LaTeXLog.o LyXAction.o LyXSendto.o LyXView.o 
MenuBackend.o Painter.o PainterBase.o Sectioning.o Spacing.o TextCache.o Timeout.o 
ToolbarDefaults.o UpdateInset.o Variables.o WorkArea.o bmtable.o buffer.o bufferlist.o 
bufferparams.o bufferview_funcs.o chset.o combox.o converter.o counters.o credits.o 
credits_form.o debug.o encoding.o exporter.o filedlg.o font.o form1.o gettext.o 
importer.o intl.o kbmap.o kbsequence.o language.o lastfiles.o layout.o layout_forms.o 
log_form.o lyx.o lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sty.o lyxcursor.o 
lyxfont.o lyxfr0.o lyxfr1.o lyxfunc.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o 
lyxrow.o lyxserver.o lyxvc.o main.o minibuffer.o paragraph.o print_form.o screen.o 
sp_form.o spellchecker.o tabular.o tabular-old.o tex-accent.o tex-strings.o texrow.o 
text.o text2.o tracer.o trans.o trans_mgr.o undo.o vc-backend.o vspace.o 
mathed/libmathed.la insets/libinsets.lagraphics/libgraphics.la 
frontends/libfrontends.la ../src/frontends/xforms/libxforms.la  
frontends/libfrontends.la   frontends/support/libfrontendsupport.la 
support/libsupport.la   ../sigc++/libsigc.la  -lforms -lXpm  `../sigc++/sigc-config 
--libs-names | sed -e 's/-lsigc//'`-lSM -lICE -liberty -lc -lm   
-L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lsocket  -lnsl
g++ -g -O2 -fno-exceptions -L/opt2/solaris-sparc/lib -L/opt2/lib -o lyx BufferView.o 
BufferView2.o BufferView_pimpl.o Bullet.o Chktex.o ColorHandler.o CutAndPaste.o 
DepTable.o FloatList.o Floating.o FontInfo.o FontLoader.o LColor.o LaTeX.o 
LaTeXFeatures.o LaTeXLog.o LyXAction.o LyXSendto.o LyXView.o MenuBackend.o Painter.o 
PainterBase.o Sectioning.o Spacing.o TextCache.o Timeout.o ToolbarDefaults.o 
UpdateInset.o Variables.o WorkArea.o bmtable.o buffer.o bufferlist.o bufferparams.o 
bufferview_funcs.o chset.o combox.o converter.o counters.o credits.o credits_form.o 
debug.o encoding.o exporter.o filedlg.o font.o form1.o gettext.o importer.o intl.o 
kbmap.o kbsequence.o language.o lastfiles.o layout.o layout_forms.o log_form.o lyx.o 
lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfr0.o 
lyxfr1.o lyxfunc.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o lyxrow.o lyxserver.o 
lyxvc.o main.o minibuffer.o paragraph.o print_form.o screen.o sp_form.o spellchecker.o 
tabular.o tabular-old.o tex-accent.o tex-strings.o texrow.o text.o text2.o tracer.o 
trans.o trans_mgr.o undo.o vc-backend.o vspace.o mathed/.libs/libmathed.a 
insets/.libs/libinsets.a graphics/.libs/libgraphics.a frontends/.libs/libfrontends.a 
../src/frontends/xforms/.libs/libxforms.a frontends/.libs/libfrontends.a 
frontends/support/.libs/libfrontendsupport.a support/.libs/libsupport.a 
../sigc++/.libs/libsigc.a -lforms -lXpm -lSM -lICE -liberty -lc -lm -L/usr/openwin/lib 
-lX11 -lsocket -lnsl -Wl,--rpath -Wl,/usr/openwin/lib -Wl,--rpath -Wl,/usr/openwin/lib
insets/.libs/libinsets.a(insetinclude.o): In function `InsetInclude::getKeys(void) 
const':
/home/dwebb/build/lyx-1.1.6fix2/src/insets/insetinclude.C:570: undefined reference to 
`insert_unique__t8_Rb_tree5Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt10_Select1st1Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt4less1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt9allocator1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Gt17_Rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Z'
collect2: ld returned 1 exit status
make[3]: *** [lyx] Error 1
make[3]: Leaving directory `/home/dwebb/build/lyx-1.1.6fix2/src'

-- 

___
Get your free email from http://mymail.iname.com




Re: Lyx can generate XML?

2001-05-25 Thread ben

Adolfo Pachón a écrit :

 Hy!!

 I'd like to know if its possible with Lyx generate XML code, with any class
 format

No, it is possible only with the DocBook document class. Note however that the
DocBook export format is SGML, but there is very few things to have XML from
it. It was said that a SGML/XML script should be provided in the distribution,
but I don't know if it is the case. If not, and if you are interested in I can
send you mine.

BG




Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread ben

Adolfo Pachón a écrit :

 hi all

 I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
 and i won't prescind it to write documents.

 I've seen utilities like latex2html, l2x, l4th, but I'm very confused.

 Can anyone help me?

 thanks...

 Adolfo M. Pachón Rodríguez

AFAIK you won't be able to produce XML from latex source, but you can write
SGML/XML documents with LyX with the Linuxdoc and DocBook document class.
For the docbook support, you can have a look at
http://perso.libertysurf.fr/bgu/index.html#db4lyx

BG




Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Rem

Hire Herbert ;)
- Original Message -
From: [EMAIL PROTECTED]
To: List Lyx users [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 3:52 AM
Subject: I want to learn more Lyx/Latex - BOOKS



 If I want to be more fluent in Lyx, what can I do? Should I buy the Latex
Companion? Is there any other book better?.

 What I read in Latex Companion is valid for Lyx or is very different?




sub

2001-05-25 Thread Alen Peacock

sub

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



esub2acm.cls

2001-05-25 Thread joe joe

  I'm trying to use Lyx to create a document class for submission to an ACM 
journal.  LaTex2e files can be found at 
http://www.acm.org/pubs/submitting_accepted_articles/au_dl.htm#latex_unix 
(esub2acm.cls, as well as esub2acm.bst and a few example tex files).

  I've tried following the directions in Chapter 6 of the Customization 
guide, but have not been able to get this document class to show up in the 
Lyx Document Class dialog.

  The class installs and works fine with regular 'latex'.

  Anyone have any ideas for getting this to work?

  Thanks in advance,
Al
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Herbert Voss

Rem wrote:
 
 Hire Herbert ;)
 - Original Message -
 From: [EMAIL PROTECTED]
 To: List Lyx users [EMAIL PROTECTED]
 Sent: Friday, May 25, 2001 3:52 AM
 Subject: I want to learn more Lyx/Latex - BOOKS
 
 
  If I want to be more fluent in Lyx, what can I do? Should I buy the Latex
 Companion? Is there any other book better?.

it's a good book.

and have a look at:

http://www.educat.hu-berlin.de/~voss/lyx/LatexDocs.html

 
  What I read in Latex Companion is valid for Lyx or is very different?

lyx is latex is tex ...

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: LyX on lightweight OS (EPOC)

2001-05-25 Thread Baruch Even

* Tuukka Toivonen [EMAIL PROTECTED] [010525 18:05]:
 On Thu, 24 May 2001, Baruch Even wrote:
 
  This is currently impossible, to use LyX you need an X-Server which is a
  pretty large beast usually and I doubt it was ported to a palm computer.
 
 I guess everybody has read about this already from slashdot.org, but here
 it goes: what about Agenda's VR3? It's a palm computer with Linux and
 X-server. http://www.agendacomputing.com/products/system.html#spec
 
 some technical specs: 8MB RAM + 16MB Flash Memory, 160x240 resolution.

So, when are you buying the developers one of these to port LyX to it.

 Now i see 3 problems using LyX here:
 
 Hard disk. Nobody has mentioned it, so am I correct that the 16
   meg flash is used instead of hard disk? In that case it seems
   impossible that they have put both X-server and Linux on it.
   Can anyone comment that?
   Definitely there isn't space for LyX, right?

X can be a small thing, and LyX itself (as a stripped binary) can
probably be fitted to, though it might require trimming it a bit, but
since you don't really need to produce the files on it, you should be
fine with just the editor.

 Resolution. LyX window size can be quite nicely resized and the fonts
   zoomed. However, that resolution is so low that it's probably
   impossible to use LyX menus.

You'll have a lot less words on a line, but hey, if it makes you able to
write that document wherever you need, it might be worth your trouble.

 Keyboard: no keyboard. Unless the handwriting recognizion is pretty good,
   the lack of keyboard is pretty bad. Maybe an external one can be
   connected (such as happy hacking)?

There are external keyboards for palm computers, and I am told that
peoples get used to the strange hand writing needed to write on these
things.

 8 MB should be adequate, I have previously run LyX with 8 meg memory too
 (but it would require swap!)

It could be possible.

So, when do I get this nifty gadget? ;-)

-- 
Baruch Even
http://baruch.ev-en.org/



Re: esub2acm.cls

2001-05-25 Thread Herbert Voss

joe joe wrote:
 
   I'm trying to use Lyx to create a document class for submission to an ACM
 journal.  LaTex2e files can be found at
 http://www.acm.org/pubs/submitting_accepted_articles/au_dl.htm#latex_unix
 (esub2acm.cls, as well as esub2acm.bst and a few example tex files).
 
   I've tried following the directions in Chapter 6 of the Customization
 guide, but have not been able to get this document class to show up in the
 Lyx Document Class dialog.
 
   The class installs and works fine with regular 'latex'.
 
   Anyone have any ideas for getting this to work?

1. copy ~/.lyx/layouts/article.layout to esub2acm.layout
2. edit the second line in esub2acm.layout to
   #  \DeclareLaTeXClass{esub2acm}
3. save esub2acm.cls and all other files from the site
 in /usr/local/share/texmf/tex/latex/esub2acm/
4. run texhash
5. run ~/.lyx/configure and look for a line like
   +checking for document class esub2acm [esub2acm]... yes

start lyx and the class should be in 
layout-document-class as esub2acm

now you have to look if standard article class are
more or less similiar to the esub2acm class.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread Baruch Even

* Adolfo Pachón [EMAIL PROTECTED] [010525 18:05]:
 hi all
 
 I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
 and i won't prescind it to write documents.

LyX cannot export to XML right now, it probably is possible to add such
support but none is currently being worked on.

A feature that will be worked on after 1.2.0 is to simplify the creation
of export formats, together with the scripting language it could be
possible to create export formats without changing LyX itself. But this
is future talk, right now there is no XML export.

-- 
Baruch Even
http://baruch.ev-en.org/



unsubscribe aingram@galstar.com

2001-05-25 Thread arthur ingram




Re: How can I change the title of the TOC

2001-05-25 Thread Dekel Tsur

On Fri, May 25, 2001 at 10:49:21AM +0200, [EMAIL PROTECTED] wrote:
 
 In spanish in the article class, the title is Indice General (General
Index) what about if I want nother like Indice (Index) for example.

Put the following line in the preamble:
\AtBeginDocument{\def\contentsname{Indice}}



Re: figure numbering

2001-05-25 Thread Dekel Tsur

On Fri, May 25, 2001 at 10:59:18AM +0100, Jonathan Ware wrote:
 Hello,
 
 Is it possible to label figures in lyx so that (for example) those under
 a paragraph heading are numbered paragraph number-figure number
 (e.g. 2.3.4.1-1), those under a subsection heading are numbered
 subsection number-figure number (e.g. 2.3-2) and so on?

Yes. Use the \numberwithin command from amsmath.
You need to select the Use amsmath button in the document menu.
Then write (in the preamble or in the body)
\numberwithin{figure}{subsection}

You can use the command several times in the text to change the numbering
style.



Character wildness, help!

2001-05-25 Thread Zailong Bian

Hi.

I am using komascript report class to write a thesis.  I have all the
chapters included in a master documents.  I setup all the packages, page
margins, and all other pains...But I got a weird problem:

All the character combination fi becomes the english curency pound sign.
All the two characters fl becomes a circle over a cross when I view PS!
What's happening!!??  Is that an Easter Egg thing that one of the
programmer actually put in lyx? :-)  While if I copy and paste that
paragraph into a new lyx document, all becomes normal!

Anyone has a clue on how to fix this?

Thanks a lot!!

Zailong



index

2001-05-25 Thread Romuald POTEAU

Dear Lyx users,

I am desperately trying to compile an index, but I am failing since I have 
installed RedHat7.1, and the 1.1.6fix2 patch. The amazing point is that I 
have checked on another computer that there is no problem under RedHat6.2 
with 1.1.6fix1 version of Lyx.  Lyx 1.1.6fix2 does not 
provide error messages.  I have tried to export in latex format, and I get 
the following messages :
Writing index file test.idx
No file test.ind. 
Did anybody encountered the same problem ?
Thanks for your help
Romuald Poteau.



Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread ben


Baruch Even a crit :
* Adolfo Pachn [EMAIL PROTECTED]> [010525
18:05]:
> hi all
>
> I'm looking for the manner of generate XML output from Lyx/Latex.
I love Lyx,
> and i won't prescind it to write documents.
LyX cannot export to XML right now, it probably is possible to add such
support but none is currently being worked on.

Yes, there is no direct XML output available, but it is really easy to
have XML from DocBook SGML.
With the attached file, you can have direct XML export format from lyx
by adding the following in the preference file:
\format "xml" "xml" "XML" ""
...
\converter "docbook" "xml" "/(full path)/sgml2xml.pl $$i" ""
To use it, you must change the $system path to your XML DocBook DTD.
BG


#!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if $running_under_some_shell;

use File::Basename;

# To fix: how to retrieve this information?
$system = ' SYSTEM "file:///home/ben/share/archives/docbook/docbkx412/docbookx.dtd"';


sub parse_sgml
{
  local($sgmlfile) = $_[0];
  local($xmlfile) = $_[1];
  local($noheader) = $_[2];
  my $line = "";
  my $file = "";
  my $SGML = "f$sgmlfile";
  my $XML = "f$xmlfile";

  print "$sgmlfile -> $xmlfile\n";

  if (-f $xmlfile) {
print "***Warning: $xmlfile already exists\n";
system("mv $xmlfile $xmlfile~");
  }

  open($SGML, "<$sgmlfile") || die "Cannot open $sgmlfile\n";
  open($XML, ">$xmlfile") || die "Cannot open $xmlfile\n";

  while (<$SGML>) {
$line = $_;
if ((/doctype/ || /DOCTYPE/) && $noheader == 0) {
  # Change the file header
  $line =~ s/doctype ([a-z]*) .*\"/DOCTYPE $1 $system/;
  $line =~ s/DOCTYPE ([a-z]*) .*\"/DOCTYPE $1 $system/;
 
  # Print first the XML head
  print $XML '';
  print $XML "\n$line";
 
  $noheader++;
}
else {
  $line =~ s/à/\/g;
  $line =~ s/é/\/g;
  $line =~ s/ê/\/g;
  $line =~ s/è/\/g;
  $line =~ s/î/\/g;
  $line =~ s/ô/\/g;
  $line =~ s/ù/\/g;
  $line =~ s/û/\/g;
  $line =~ s/ü/\/g;
  $line =~ s/ç/\/g;
 
  # Case of included files
  if (/ENTITY.*\.sgml/) {
# Get the included file name
($file = $line) =~ s/.*\"(.*)\.sgml\".*\n/$1/;
 
# Output follow the main output path
$outfile = dirname($xmlfile) . "/$file";
 
# Now the included file is the XML one
$line =~ s/(.*)\"(.*)\.sgml\"/$1\"$outfile.xml\"/;
 
# Relative or absolute path?
if (not($file =~ /^\//)) {
  $file = dirname($sgmlfile) . "/$file";
}
 
# The included files need not header
parse_sgml("$file.sgml", "$outfile.xml", 1);
  }
  print $XML $line;
}
  }

  close($SGML);
  close($XML);
}

#
# Script start
#

if (not(@ARGV)) {
  print "$0 input.sgml [output.xml]\n";
  exit 1;
}

$sgmlfile = $ARGV[0];
$xmlfile = basename($sgmlfile, '.sgml');
$xmlfile = dirname($sgmlfile). "/$xmlfile.xml";

shift;
if (@ARGV) {
  $xmlfile = $ARGV[0];
}

parse_sgml($sgmlfile, $xmlfile, 0);



CJK-LyX-1.1.6fix2, Again!

2001-05-25 Thread cghan


   Hello,

 Couple of days ago, I sent to this mailing list an email announcement of
availability of CJK-LyX-1.1.6fix2, which has never been appeared on the
mail-archive. I know that the mail went through seccessfully, for several
subscribers to this mailing list have told me they've got the message
through this mailing list. Can anyone tell me how this happens?

 Anyhow I would like to tell, again, the lyx-users that CJK-LyX-1.1.6fix2,
a multibyte-patched version of newly announced lyx-1.1.6fix2, is available
at ftp://stone.phys.pusan.ac.kr/pub/CJK-LyX, and that a small update of
CJK-LyX home page have been made,
http://cellular.phys.pusan.ac.kr/cjk.html.

If possible, I also would like to see this annoucement on the lyx home
page. Mr. Jean-Marc Lasgouttes, can you help me?

Regards,


   cghan




Re: Character wildness, help!

2001-05-25 Thread Herbert Voss

Zailong Bian wrote:
 
 Hi.
 
 I am using komascript report class to write a thesis.  I have all the
 chapters included in a master documents.  I setup all the packages, page
 margins, and all other pains...But I got a weird problem:
 
 All the character combination fi becomes the english curency pound sign.
 All the two characters fl becomes a circle over a cross when I view PS!
 What's happening!!??  Is that an Easter Egg thing that one of the
 programmer actually put in lyx? :-)  While if I copy and paste that
 paragraph into a new lyx document, all becomes normal!

what do you have in 
layout-document-language-encoding ?

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




csv2lyx (was Re: sorting tables?)

2001-05-25 Thread A.Gulino

Joao B. Oliveira wrote:
 Antonio wrote:
Joao B. Oliveira wrote:
 See? Does not look that bad, but an even better solution would be
 *other* feature: import .cvs files directly as tables. 
I have a little perlscript that produce a floattable (or a simple table) in
lyx-format from a tab-separated-value file. (or comma separteded or !
separated, how you like) (for 4fix1 and 6fix1)
 I really think that such a script for converting tables would be really
 useful! Why don't you publish it on our list? It is always a nice tool
 to have (and if we don't have it, it is nice to know where to find it!)

Hi folks,
I send you my very little perlscript. If you think it is long, its not true.
there are a only 30 codelines, the rest is documentation.

Documentation? 
Yes. pod (perl|poor|pretty old documentation).
on Linux do this: name@host ~/ pod2html csv2lyx  csv2lyx.html

how use it? look the documentation! 
ok, ok. a little help (from the documentation :-)
Sorry for my english (if you want I can translate it to italian, german or
french)

ciao, antonio
(my home e-mail: mailto:[EMAIL PROTECTED])

csv2lyx  - converter from csv-file to a LyX table 
===
HOW USE IT (under Linux):
=
 antonio@bidone:~ cat mycsvfile | csv2lyx  mytmptable.lyx

Then in LyX: Insert-LyXfile mytmptable.lyx

If you don't want a float table, then can you delete the default-title, the word
Senseless will are delete.

If you want a float table, then mark the title _and_ the table and then insert a
floattable

 Insert-LyX File mytmptable.lyx
 [mark the title and the table]
 Insert-Float-Float table

the word Senseless will change to Table

Options
===

 --separator=what you want (default: \t for a tab-sep-value file)
 --title=A pretty title for a pretty table (default:Title of the LyX table)

==
==

#! /usr/bin/perl
# csv2lyx
# Copyright (C) 2001 Antonio Gulino
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.

=pod
=head1 NAME

csv2lyx - converter from csv-file to a LyX table

Converts a Comma Separated Value file to a float table in LyX format.
Good for LyX version 1.1.4fix1 and other.

=head1 HOW USE IT

under Linux:

 antonio@bidone:~ cat mycsvfile | csv2lyx  mytmptable.lyx

Then in LyX: Insert-LyXfile mytmptable.lyx

If you don't want a float table, then can you delete the default-title, the word 
Senseless
will are delete.

If you want a float table, then mark the title and the table and then insert a 
floattable

 Insert-LyX File mytmptable.lyx
 [mark the title and the table]
 Insert-Float-Float table

=head2 Options

 --separator=what you want (default: \t for a tab-sep-value file)
 --title=A pretty title for a pretty table (default:Title of the LyX table)


=head1 AUTHOR and COPYLEFT

Copyright (C) 2001, Antonio Gulino [EMAIL PROTECTED]

This program is free software; you can redistribute it and/or modify it under
the term of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or any later version.

=cut

# l'input non e' il nome di un file, ma il file stesso
# l'output avviene sullo schermo
# dunque l'utilizzo e' cosi:
# antonio@bidone  cat filecsv.csv | csv2lyx | filedioutput

# di default il separatore e' un tabulatore

use Getopt::Long;
$OPT_separator = \t;
$OPT_title = 'Title of the LyX table';
GetOptions( separator=s = \$OPT_separator,
 title=s = \$OPT_title,);

@csv = ;
chomp(@csv);
# vediamo quante righe ci sono
# how many row (=righe) are there?
$righe = $#csv + 1;

# adesso leggo l'intero array e creo una matrice: @matrix
# contemporaneamente calcolo il numero massimo di campi, per sapere quante colonne mi 
servono
# now i read the whole array and put it into a matrix : @matrix
# at the same time i look how many column (=colonne) have the biggest row
$col = 0;
foreach my $r (@csv) {
my @r = split $OPT_separator, $r;
$colonne = $#r + 1 if $colonne = $#r;
push @matrix, [@r];
}

# adesso stampo il codice lyx. l'allineamento avviene a destra (immagino che di solito 
siano cifre)
# produco automaticamente una float table,
# versione funzionante per la 1.1.4fix1
# now I print the LyX format. Align=right (I think this is a matrix of numbers)
# dafault: a float table

print LYX;
\\begin_float tab
\\layout Caption

$OPT_title
\\layout Standard
\\align center \\LyXTable
multicol5
$righe $colonne 0 0 -1 -1 -1 -1
LYX
;

# qui viene deciso se ci sono righe in alto o in basso di ciascuna riga
# se la prima cifra e' 1 allora c'e una linea in alto
# se la seconda cifra e' 1 allora c'e una linea in basso
# here I say if there are a border
# if the first number is 1, then a border on the top of the 

I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread xdeblas


If I want to be more fluent in Lyx, what can I do? Should I buy the Latex Companion? 
Is there any other book better?.

What I read in Latex Companion is valid for Lyx or is very different?



Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Sasa Janiska

On Today, +0200, [EMAIL PROTECTED] wrote:


 If I want to be more fluent in Lyx, what can I do? Should I buy the Latex Companion? 
Is there any other book better?.

 What I read in Latex Companion is valid for Lyx or is very different?

Besides LaTeX Companion, I have Kopka  Daly's A Guide to LaTeX, which
is IMHO very god LaTeX material.

Sincerely,
Sasa





figure numbering

2001-05-25 Thread Jonathan Ware

Hello,

Is it possible to label figures in lyx so that (for example) those under
a paragraph heading are numbered paragraph number-figure number
(e.g. 2.3.4.1-1), those under a subsection heading are numbered
subsection number-figure number (e.g. 2.3-2) and so on?

Thanks in advance for any help.

Jonathan



Re: screen problems

2001-05-25 Thread Thomas Schönhoff

Hello,

thanks to all who responded to my screen problems everything is now fine! The
difficulty was that Xconfigurator (RH7.0 tool for adjustement of system
parameters) configured my XWindow not properly., after reconfiguring it
yesterday everything was fine again.

Thomas

Stephen Carville wrote:

 On Mon, 21 May 2001, Thomas Schönhoff wrote:

 - Hello,


 Sound like you have 8 Bits per Pixel.  run 'xdpyinfo' and look for a
 line that says depth of root window:  This will tell you if you have
 8, 16, 24, 0r 32 bits per pixel.

 If this is the problem there is not much you can do about it without
 increasing the bits per pixel which probably means upgrading your
 video card but it might help to:

 1. Shut down Netscape.  It try to grab a lot of the color slots.
 2. Go to Edit-Preferences-Look and Feel-Misc and turn off Show
Banner.

 --
 --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.
 ==




Re: csv2lyx (was Re: sorting tables?)

2001-05-25 Thread Robin Turner

Just tried running it, but perl -d came out with unrecognized character \xA0 
at line 60 (which seems to be in the middle of a comment, so shouldn't 
apply, unless perl only numbers lines with instructions - it's been so long I 
can't remember).

Looks pretty nifty if I can make it work though, thanks!

Robin





Re: LyX on lightweight OS (EPOC)

2001-05-25 Thread Tuukka Toivonen

On Thu, 24 May 2001, Baruch Even wrote:

 This is currently impossible, to use LyX you need an X-Server which is a
 pretty large beast usually and I doubt it was ported to a palm computer.

I guess everybody has read about this already from slashdot.org, but here
it goes: what about Agenda's VR3? It's a palm computer with Linux and
X-server. http://www.agendacomputing.com/products/system.html#spec

some technical specs: 8MB RAM + 16MB Flash Memory, 160x240 resolution.

Now i see 3 problems using LyX here:

Hard disk. Nobody has mentioned it, so am I correct that the 16
meg flash is used instead of hard disk? In that case it seems
impossible that they have put both X-server and Linux on it.
Can anyone comment that?
Definitely there isn't space for LyX, right?
Resolution. LyX window size can be quite nicely resized and the fonts
zoomed. However, that resolution is so low that it's probably
impossible to use LyX menus.
Keyboard: no keyboard. Unless the handwriting recognizion is pretty good,
the lack of keyboard is pretty bad. Maybe an external one can be
connected (such as happy hacking)?

Running LyX in another computer over network (using X protocol) should
solve first problem, though. Needs net connection.

8 MB should be adequate, I have previously run LyX with 8 meg memory too
(but it would require swap!)




Lyx can generate XML?

2001-05-25 Thread Adolfo Pachón

Hy!!

I'd like to know if its possible with Lyx generate XML code, with any class
format



 
 ---
 S A M T E K,  S C A
 C o n s u l  t o r e s  I n f o r m á  t i c a
 y  T e l e c o m u n i c a c i o n e s


 Adolfo M. Pachón Rodríguez
  (Director Desarrollos)


 Tlf..: 95 428 6045
 Fax: 95 427 8500
 ---




Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread Adolfo Pachón

hi all

I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
and i won't prescind it to write documents.

I've seen utilities like latex2html, l2x, l4th, but I'm very confused.

Can anyone help me? 

thanks...

Adolfo M. Pachón Rodríguez




Re: figure numbering

2001-05-25 Thread stephan . schlierf


Hello,

did you ever try a figure float  (Insert - Floats - figures; I`m not
quite sure how the menu items are labelled in english because I use the
german localization) ?
These floats are numbered.

HTH

Stephan

--
Stephan E. Schlierf M.A.
- chief concept  design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de


   
 
Jonathan Ware  
 
jjhw100@yorkTo: [EMAIL PROTECTED]   
 
.ac.uk  cc:   
 
 Subject: figure numbering 
 
05/25/01   
 
11:59 AM   
 
   
 
   
 




Hello,

Is it possible to label figures in lyx so that (for example) those under
a paragraph heading are numbered paragraph number-figure number
(e.g. 2.3.4.1-1), those under a subsection heading are numbered
subsection number-figure number (e.g. 2.3-2) and so on?

Thanks in advance for any help.

Jonathan








Re: Bug in xfig and pstex?

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 12:29:41PM +0100, Jos? Luis G?mez Dans wrote:
 Hi!
   I have been trying to put some pstex_t diagarams into lyx
 yesterday (brand new 1.1.6fix2). They don't work, and rummaging through
 the list (and using previous documents I have), I have used other pstex
 files that do work. These figures where created with xfig and exported
 using the same procedure as the new ones, so that seems to indicate a
 problem in the files, rather than in lyx. I am using the xfig found in
 debian unstable (Xfig 3.2 patchlevel 3c (Protocol 3.2)), and there seems
 to be a bug opened against this in the debian transfig package. A
 description of it is found in http://bugs.debian.org/77516
 
   Can anyone suggest any work arounds until this gets fixed?

Can you send a *short* example ?



Re: Defining section name for TOC

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 09:23:33PM +, Tarmo J?rvi wrote:
 Hello,
 
 First, I guess this is more LaTeX related, but please help me if you know something 
about this.. Ok, I have a long section name which gets
 hyphenated, like this:
 
 A Very Long Section Na-
 me
 
 And that's ugly. If I simply add a line break in the middle, everything's ok. Except 
in the TOC, where the section name also has line break although it isn't necessary 
(and it drops last TOC entry to the next page). So, my question is: how I can define  
different names for a section to TOC and to the actual text.

You can use \section[short name]{long name} in latex mode.
However, a better solution is to globally disable hyphenation inside section
commands by putting the following lines in the preamble:
 \let\oldsection=\section
 \renewcommand{\section}[1]{{\raggedright\hyphenpenalty=1 \oldsection{#1}}}

You then won't need to put line breaks in your sections!



Re: lyx 1.1.6fix2 and pdflatex

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 10:55:03PM +0200, Roberto Marabini wrote:
   I just installed lyx 1.1.6fix2 in my linux machine (redhat 7.0) using
 the rpm binaries. I use pdflatex and acrobat reader to visualize the
 documents ( view-pdflatex), this used to work without problems in lyx
 1.1.6fix1 but not any longer. The first time pdflatex is used it does
 produce the right results but the second time it does not update the
 file, instead, the old pdf file is used. The other options, dvi, pdf,
 postscript work properly. Does anybody knows what either I or lyx are
 doing wrong?

Run 'lyx -e pdf2 -dbg depend your-file.lyx' and send the stderr output you get.



Re: jpg/png images

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 06:23:54PM +0200, Herbert Voss wrote:
 Giorgio Corani wrote:
  hi, as far as I know, the only supported format for images is eps.
  What to do in order to put an other type of image, for example jpg?
  I tried to save it as .eps within GIMP but (maybe it's a problem of my
  installation) no such filter
  was found.
 
 use convert my.gif my.eps
 it's part of the imagemagic package.

For jpeg images, it is better to use jpeg2ps
(http://www.pdflib.com/jpeg2ps/index.html) as it doesn't uncompress the image.
There is similar tiff2ps on CTAN.

  Does the new release maybe support such images?
 
 yes.

In 1.1.6 you have the external inset, but it just converts the image file to
eps using 'convert'. It is better do to the conversion manually.

Also, if you use pdflatex instead of latex, you can include png/jpeg images.
(you can also include png/jpeg if you use latex+dvipdfm).



Cannot Link lyx-1.1.6fix2 under Solaris

2001-05-25 Thread Duncan Webb

I cannot link either 1.1.6fix1 and 1.1.6fix2 under Solaris. 

Thanks in advance,
Duncan

Solaris version: 
SunOS wsf21 5.6 Generic_105181-25 sun4m sparc SUNW,SPARCstation-20

gcc version:
Reading specs from /home/dwebb/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/specs
gcc version 2.95.3 20010315 (release)

ld version:
GNU ld version 2.10 (with BFD 2.10)

build messages:
make[3]: Entering directory `/home/dwebb/build/lyx-1.1.6fix2/src'
/bin/sh ../libtool --mode=link g++  -g -O2 -fno-exceptions -L/opt2/solaris-sparc/lib 
-L/opt2/lib -o lyx  BufferView.o BufferView2.o BufferView_pimpl.o Bullet.o Chktex.o 
ColorHandler.o CutAndPaste.o DepTable.o FloatList.o Floating.o FontInfo.o FontLoader.o 
LColor.o LaTeX.o LaTeXFeatures.o LaTeXLog.o LyXAction.o LyXSendto.o LyXView.o 
MenuBackend.o Painter.o PainterBase.o Sectioning.o Spacing.o TextCache.o Timeout.o 
ToolbarDefaults.o UpdateInset.o Variables.o WorkArea.o bmtable.o buffer.o bufferlist.o 
bufferparams.o bufferview_funcs.o chset.o combox.o converter.o counters.o credits.o 
credits_form.o debug.o encoding.o exporter.o filedlg.o font.o form1.o gettext.o 
importer.o intl.o kbmap.o kbsequence.o language.o lastfiles.o layout.o layout_forms.o 
log_form.o lyx.o lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sty.o lyxcursor.o 
lyxfont.o lyxfr0.o lyxfr1.o lyxfunc.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o 
lyxrow.o lyxserver.o lyxvc.o main.o minibuffer.o paragraph.o print_form.o screen.o 
sp_form.o spellchecker.o tabular.o tabular-old.o tex-accent.o tex-strings.o texrow.o 
text.o text2.o tracer.o trans.o trans_mgr.o undo.o vc-backend.o vspace.o 
mathed/libmathed.la insets/libinsets.lagraphics/libgraphics.la 
frontends/libfrontends.la ../src/frontends/xforms/libxforms.la  
frontends/libfrontends.la   frontends/support/libfrontendsupport.la 
support/libsupport.la   ../sigc++/libsigc.la  -lforms -lXpm  `../sigc++/sigc-config 
--libs-names | sed -e 's/-lsigc//'`-lSM -lICE -liberty -lc -lm   
-L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lsocket  -lnsl
g++ -g -O2 -fno-exceptions -L/opt2/solaris-sparc/lib -L/opt2/lib -o lyx BufferView.o 
BufferView2.o BufferView_pimpl.o Bullet.o Chktex.o ColorHandler.o CutAndPaste.o 
DepTable.o FloatList.o Floating.o FontInfo.o FontLoader.o LColor.o LaTeX.o 
LaTeXFeatures.o LaTeXLog.o LyXAction.o LyXSendto.o LyXView.o MenuBackend.o Painter.o 
PainterBase.o Sectioning.o Spacing.o TextCache.o Timeout.o ToolbarDefaults.o 
UpdateInset.o Variables.o WorkArea.o bmtable.o buffer.o bufferlist.o bufferparams.o 
bufferview_funcs.o chset.o combox.o converter.o counters.o credits.o credits_form.o 
debug.o encoding.o exporter.o filedlg.o font.o form1.o gettext.o importer.o intl.o 
kbmap.o kbsequence.o language.o lastfiles.o layout.o layout_forms.o log_form.o lyx.o 
lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfr0.o 
lyxfr1.o lyxfunc.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o lyxrow.o lyxserver.o 
lyxvc.o main.o minibuffer.o paragraph.o print_form.o screen.o sp_form.o spellchecker.o 
tabular.o tabular-old.o tex-accent.o tex-strings.o texrow.o text.o text2.o tracer.o 
trans.o trans_mgr.o undo.o vc-backend.o vspace.o mathed/.libs/libmathed.a 
insets/.libs/libinsets.a graphics/.libs/libgraphics.a frontends/.libs/libfrontends.a 
../src/frontends/xforms/.libs/libxforms.a frontends/.libs/libfrontends.a 
frontends/support/.libs/libfrontendsupport.a support/.libs/libsupport.a 
../sigc++/.libs/libsigc.a -lforms -lXpm -lSM -lICE -liberty -lc -lm -L/usr/openwin/lib 
-lX11 -lsocket -lnsl -Wl,--rpath -Wl,/usr/openwin/lib -Wl,--rpath -Wl,/usr/openwin/lib
insets/.libs/libinsets.a(insetinclude.o): In function `InsetInclude::getKeys(void) 
const':
/home/dwebb/build/lyx-1.1.6fix2/src/insets/insetinclude.C:570: undefined reference to 
`insert_unique__t8_Rb_tree5Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt10_Select1st1Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt4less1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt9allocator1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Gt17_Rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Z'
collect2: ld returned 1 exit status
make[3]: *** [lyx] Error 1
make[3]: Leaving directory `/home/dwebb/build/lyx-1.1.6fix2/src'

-- 

___
Get your free email from http://mymail.iname.com




Re: Lyx can generate XML?

2001-05-25 Thread ben

Adolfo Pachón a écrit :

 Hy!!

 I'd like to know if its possible with Lyx generate XML code, with any class
 format

No, it is possible only with the DocBook document class. Note however that the
DocBook export format is SGML, but there is very few things to have XML from
it. It was said that a SGML/XML script should be provided in the distribution,
but I don't know if it is the case. If not, and if you are interested in I can
send you mine.

BG




Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread ben

Adolfo Pachón a écrit :

 hi all

 I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
 and i won't prescind it to write documents.

 I've seen utilities like latex2html, l2x, l4th, but I'm very confused.

 Can anyone help me?

 thanks...

 Adolfo M. Pachón Rodríguez

AFAIK you won't be able to produce XML from latex source, but you can write
SGML/XML documents with LyX with the Linuxdoc and DocBook document class.
For the docbook support, you can have a look at
http://perso.libertysurf.fr/bgu/index.html#db4lyx

BG




Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Rem

Hire Herbert ;)
- Original Message -
From: [EMAIL PROTECTED]
To: List Lyx users [EMAIL PROTECTED]
Sent: Friday, May 25, 2001 3:52 AM
Subject: I want to learn more Lyx/Latex - BOOKS



 If I want to be more fluent in Lyx, what can I do? Should I buy the Latex
Companion? Is there any other book better?.

 What I read in Latex Companion is valid for Lyx or is very different?




sub

2001-05-25 Thread Alen Peacock

sub

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



esub2acm.cls

2001-05-25 Thread joe joe

  I'm trying to use Lyx to create a document class for submission to an ACM 
journal.  LaTex2e files can be found at 
http://www.acm.org/pubs/submitting_accepted_articles/au_dl.htm#latex_unix 
(esub2acm.cls, as well as esub2acm.bst and a few example tex files).

  I've tried following the directions in Chapter 6 of the Customization 
guide, but have not been able to get this document class to show up in the 
Lyx Document Class dialog.

  The class installs and works fine with regular 'latex'.

  Anyone have any ideas for getting this to work?

  Thanks in advance,
Al
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Herbert Voss

Rem wrote:
 
 Hire Herbert ;)
 - Original Message -
 From: [EMAIL PROTECTED]
 To: List Lyx users [EMAIL PROTECTED]
 Sent: Friday, May 25, 2001 3:52 AM
 Subject: I want to learn more Lyx/Latex - BOOKS
 
 
  If I want to be more fluent in Lyx, what can I do? Should I buy the Latex
 Companion? Is there any other book better?.

it's a good book.

and have a look at:

http://www.educat.hu-berlin.de/~voss/lyx/LatexDocs.html

 
  What I read in Latex Companion is valid for Lyx or is very different?

lyx is latex is tex ...

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: LyX on lightweight OS (EPOC)

2001-05-25 Thread Baruch Even

* Tuukka Toivonen [EMAIL PROTECTED] [010525 18:05]:
 On Thu, 24 May 2001, Baruch Even wrote:
 
  This is currently impossible, to use LyX you need an X-Server which is a
  pretty large beast usually and I doubt it was ported to a palm computer.
 
 I guess everybody has read about this already from slashdot.org, but here
 it goes: what about Agenda's VR3? It's a palm computer with Linux and
 X-server. http://www.agendacomputing.com/products/system.html#spec
 
 some technical specs: 8MB RAM + 16MB Flash Memory, 160x240 resolution.

So, when are you buying the developers one of these to port LyX to it.

 Now i see 3 problems using LyX here:
 
 Hard disk. Nobody has mentioned it, so am I correct that the 16
   meg flash is used instead of hard disk? In that case it seems
   impossible that they have put both X-server and Linux on it.
   Can anyone comment that?
   Definitely there isn't space for LyX, right?

X can be a small thing, and LyX itself (as a stripped binary) can
probably be fitted to, though it might require trimming it a bit, but
since you don't really need to produce the files on it, you should be
fine with just the editor.

 Resolution. LyX window size can be quite nicely resized and the fonts
   zoomed. However, that resolution is so low that it's probably
   impossible to use LyX menus.

You'll have a lot less words on a line, but hey, if it makes you able to
write that document wherever you need, it might be worth your trouble.

 Keyboard: no keyboard. Unless the handwriting recognizion is pretty good,
   the lack of keyboard is pretty bad. Maybe an external one can be
   connected (such as happy hacking)?

There are external keyboards for palm computers, and I am told that
peoples get used to the strange hand writing needed to write on these
things.

 8 MB should be adequate, I have previously run LyX with 8 meg memory too
 (but it would require swap!)

It could be possible.

So, when do I get this nifty gadget? ;-)

-- 
Baruch Even
http://baruch.ev-en.org/



Re: esub2acm.cls

2001-05-25 Thread Herbert Voss

joe joe wrote:
 
   I'm trying to use Lyx to create a document class for submission to an ACM
 journal.  LaTex2e files can be found at
 http://www.acm.org/pubs/submitting_accepted_articles/au_dl.htm#latex_unix
 (esub2acm.cls, as well as esub2acm.bst and a few example tex files).
 
   I've tried following the directions in Chapter 6 of the Customization
 guide, but have not been able to get this document class to show up in the
 Lyx Document Class dialog.
 
   The class installs and works fine with regular 'latex'.
 
   Anyone have any ideas for getting this to work?

1. copy ~/.lyx/layouts/article.layout to esub2acm.layout
2. edit the second line in esub2acm.layout to
   #  \DeclareLaTeXClass{esub2acm}
3. save esub2acm.cls and all other files from the site
 in /usr/local/share/texmf/tex/latex/esub2acm/
4. run texhash
5. run ~/.lyx/configure and look for a line like
   +checking for document class esub2acm [esub2acm]... yes

start lyx and the class should be in 
layout-document-class as esub2acm

now you have to look if standard article class are
more or less similiar to the esub2acm class.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread Baruch Even

* Adolfo Pachón [EMAIL PROTECTED] [010525 18:05]:
 hi all
 
 I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
 and i won't prescind it to write documents.

LyX cannot export to XML right now, it probably is possible to add such
support but none is currently being worked on.

A feature that will be worked on after 1.2.0 is to simplify the creation
of export formats, together with the scripting language it could be
possible to create export formats without changing LyX itself. But this
is future talk, right now there is no XML export.

-- 
Baruch Even
http://baruch.ev-en.org/



unsubscribe aingram@galstar.com

2001-05-25 Thread arthur ingram




Re: How can I change the title of the TOC

2001-05-25 Thread Dekel Tsur

On Fri, May 25, 2001 at 10:49:21AM +0200, [EMAIL PROTECTED] wrote:
 
 In spanish in the article class, the title is Indice General (General
Index) what about if I want nother like Indice (Index) for example.

Put the following line in the preamble:
\AtBeginDocument{\def\contentsname{Indice}}



Re: figure numbering

2001-05-25 Thread Dekel Tsur

On Fri, May 25, 2001 at 10:59:18AM +0100, Jonathan Ware wrote:
 Hello,
 
 Is it possible to label figures in lyx so that (for example) those under
 a paragraph heading are numbered paragraph number-figure number
 (e.g. 2.3.4.1-1), those under a subsection heading are numbered
 subsection number-figure number (e.g. 2.3-2) and so on?

Yes. Use the \numberwithin command from amsmath.
You need to select the Use amsmath button in the document menu.
Then write (in the preamble or in the body)
\numberwithin{figure}{subsection}

You can use the command several times in the text to change the numbering
style.



Character wildness, help!

2001-05-25 Thread Zailong Bian

Hi.

I am using komascript report class to write a thesis.  I have all the
chapters included in a master documents.  I setup all the packages, page
margins, and all other pains...But I got a weird problem:

All the character combination fi becomes the english curency pound sign.
All the two characters fl becomes a circle over a cross when I view PS!
What's happening!!??  Is that an Easter Egg thing that one of the
programmer actually put in lyx? :-)  While if I copy and paste that
paragraph into a new lyx document, all becomes normal!

Anyone has a clue on how to fix this?

Thanks a lot!!

Zailong



index

2001-05-25 Thread Romuald POTEAU

Dear Lyx users,

I am desperately trying to compile an index, but I am failing since I have 
installed RedHat7.1, and the 1.1.6fix2 patch. The amazing point is that I 
have checked on another computer that there is no problem under RedHat6.2 
with 1.1.6fix1 version of Lyx.  Lyx 1.1.6fix2 does not 
provide error messages.  I have tried to export in latex format, and I get 
the following messages :
Writing index file test.idx
No file test.ind. 
Did anybody encountered the same problem ?
Thanks for your help
Romuald Poteau.



Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread ben


Baruch Even a crit :
* Adolfo Pachn [EMAIL PROTECTED]> [010525
18:05]:
> hi all
>
> I'm looking for the manner of generate XML output from Lyx/Latex.
I love Lyx,
> and i won't prescind it to write documents.
LyX cannot export to XML right now, it probably is possible to add such
support but none is currently being worked on.

Yes, there is no direct XML output available, but it is really easy to
have XML from DocBook SGML.
With the attached file, you can have direct XML export format from lyx
by adding the following in the preference file:
\format "xml" "xml" "XML" ""
...
\converter "docbook" "xml" "/(full path)/sgml2xml.pl $$i" ""
To use it, you must change the $system path to your XML DocBook DTD.
BG


#!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if $running_under_some_shell;

use File::Basename;

# To fix: how to retrieve this information?
$system = ' SYSTEM "file:///home/ben/share/archives/docbook/docbkx412/docbookx.dtd"';


sub parse_sgml
{
  local($sgmlfile) = $_[0];
  local($xmlfile) = $_[1];
  local($noheader) = $_[2];
  my $line = "";
  my $file = "";
  my $SGML = "f$sgmlfile";
  my $XML = "f$xmlfile";

  print "$sgmlfile -> $xmlfile\n";

  if (-f $xmlfile) {
print "***Warning: $xmlfile already exists\n";
system("mv $xmlfile $xmlfile~");
  }

  open($SGML, "<$sgmlfile") || die "Cannot open $sgmlfile\n";
  open($XML, ">$xmlfile") || die "Cannot open $xmlfile\n";

  while (<$SGML>) {
$line = $_;
if ((/doctype/ || /DOCTYPE/) && $noheader == 0) {
  # Change the file header
  $line =~ s/doctype ([a-z]*) .*\"/DOCTYPE $1 $system/;
  $line =~ s/DOCTYPE ([a-z]*) .*\"/DOCTYPE $1 $system/;
 
  # Print first the XML head
  print $XML '';
  print $XML "\n$line";
 
  $noheader++;
}
else {
  $line =~ s/à/\/g;
  $line =~ s/é/\/g;
  $line =~ s/ê/\/g;
  $line =~ s/è/\/g;
  $line =~ s/î/\/g;
  $line =~ s/ô/\/g;
  $line =~ s/ù/\/g;
  $line =~ s/û/\/g;
  $line =~ s/ü/\/g;
  $line =~ s/ç/\/g;
 
  # Case of included files
  if (/ENTITY.*\.sgml/) {
# Get the included file name
($file = $line) =~ s/.*\"(.*)\.sgml\".*\n/$1/;
 
# Output follow the main output path
$outfile = dirname($xmlfile) . "/$file";
 
# Now the included file is the XML one
$line =~ s/(.*)\"(.*)\.sgml\"/$1\"$outfile.xml\"/;
 
# Relative or absolute path?
if (not($file =~ /^\//)) {
  $file = dirname($sgmlfile) . "/$file";
}
 
# The included files need not header
parse_sgml("$file.sgml", "$outfile.xml", 1);
  }
  print $XML $line;
}
  }

  close($SGML);
  close($XML);
}

#
# Script start
#

if (not(@ARGV)) {
  print "$0 input.sgml [output.xml]\n";
  exit 1;
}

$sgmlfile = $ARGV[0];
$xmlfile = basename($sgmlfile, '.sgml');
$xmlfile = dirname($sgmlfile). "/$xmlfile.xml";

shift;
if (@ARGV) {
  $xmlfile = $ARGV[0];
}

parse_sgml($sgmlfile, $xmlfile, 0);



CJK-LyX-1.1.6fix2, Again!

2001-05-25 Thread cghan


   Hello,

 Couple of days ago, I sent to this mailing list an email announcement of
availability of CJK-LyX-1.1.6fix2, which has never been appeared on the
mail-archive. I know that the mail went through seccessfully, for several
subscribers to this mailing list have told me they've got the message
through this mailing list. Can anyone tell me how this happens?

 Anyhow I would like to tell, again, the lyx-users that CJK-LyX-1.1.6fix2,
a multibyte-patched version of newly announced lyx-1.1.6fix2, is available
at ftp://stone.phys.pusan.ac.kr/pub/CJK-LyX, and that a small update of
CJK-LyX home page have been made,
http://cellular.phys.pusan.ac.kr/cjk.html.

If possible, I also would like to see this annoucement on the lyx home
page. Mr. Jean-Marc Lasgouttes, can you help me?

Regards,


   cghan




Re: Character wildness, help!

2001-05-25 Thread Herbert Voss

Zailong Bian wrote:
 
 Hi.
 
 I am using komascript report class to write a thesis.  I have all the
 chapters included in a master documents.  I setup all the packages, page
 margins, and all other pains...But I got a weird problem:
 
 All the character combination fi becomes the english curency pound sign.
 All the two characters fl becomes a circle over a cross when I view PS!
 What's happening!!??  Is that an Easter Egg thing that one of the
 programmer actually put in lyx? :-)  While if I copy and paste that
 paragraph into a new lyx document, all becomes normal!

what do you have in 
layout-document-language-encoding ?

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




csv2lyx (was Re: sorting tables?)

2001-05-25 Thread A.Gulino

"Joao B. Oliveira" wrote:
> Antonio wrote:
>>"Joao B. Oliveira" wrote:
>>> See? Does not look that bad, but an even better solution would be
>>> *other* feature: import .cvs files directly as tables. 
>>I have a little perlscript that produce a floattable (or a simple table) in
>>lyx-format from a tab-separated-value file. (or comma separteded or "!"
>>separated, how you like) (for 4fix1 and 6fix1)
> I really think that such a script for converting tables would be really
> useful! Why don't you publish it on our list? It is always a nice tool
> to have (and if we don't have it, it is nice to know where to find it!)

Hi folks,
I send you my very little perlscript. If you think it is long, its not true.
there are a only 30 codelines, the rest is documentation.

Documentation? 
Yes. pod (perl|poor|pretty old documentation).
on Linux do this: name@host ~/> pod2html csv2lyx > csv2lyx.html

how use it? look the documentation! 
ok, ok. a little help (from the documentation :-)
Sorry for my english (if you want I can translate it to italian, german or
french)

ciao, antonio
(my home e-mail: mailto:[EMAIL PROTECTED])

csv2lyx  - converter from csv-file to a LyX table 
===
HOW USE IT (under Linux):
=
 antonio@bidone:~ >cat mycsvfile | csv2lyx > mytmptable.lyx

Then in LyX: Insert->LyXfile mytmptable.lyx

If you don't want a float table, then can you delete the default-title, the word
"Senseless" will are delete.

If you want a float table, then mark the title _and_ the table and then insert a
floattable

 Insert->LyX File mytmptable.lyx
 [mark the title and the table]
 Insert->Float->Float table

the word "Senseless" will change to "Table"

Options
===

 --separator="what you want" (default: "\t" for a tab-sep-value file)
 --title="A pretty title for a pretty table" (default:"Title of the LyX table")

==
==

#! /usr/bin/perl
# csv2lyx
# Copyright (C) 2001 Antonio Gulino
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.

=pod
=head1 NAME

csv2lyx - converter from csv-file to a LyX table

Converts a Comma Separated Value file to a float table in LyX format.
Good for LyX version 1.1.4fix1 and other.

=head1 HOW USE IT

under Linux:

 antonio@bidone:~ >cat mycsvfile | csv2lyx > mytmptable.lyx

Then in LyX: Insert->LyXfile mytmptable.lyx

If you don't want a float table, then can you delete the default-title, the word 
"Senseless"
will are delete.

If you want a float table, then mark the title and the table and then insert a 
floattable

 Insert->LyX File mytmptable.lyx
 [mark the title and the table]
 Insert->Float->Float table

=head2 Options

 --separator="what you want" (default: "\t" for a tab-sep-value file)
 --title="A pretty title for a pretty table" (default:"Title of the LyX table")


=head1 AUTHOR and COPYLEFT

Copyright (C) 2001, Antonio Gulino <[EMAIL PROTECTED]>

This program is free software; you can redistribute it and/or modify it under
the term of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or any later version.

=cut

# l'input non e' il nome di un file, ma il file stesso
# l'output avviene sullo schermo
# dunque l'utilizzo e' cosi:
# antonio@bidone > cat filecsv.csv | csv2lyx | filedioutput

# di default il separatore e' un tabulatore

use Getopt::Long;
$OPT_separator = "\t";
$OPT_title = 'Title of the LyX table';
( "separator=s" => \$OPT_separator,
 "title=s" => \$OPT_title,);

@csv = <>;
chomp(@csv);
# vediamo quante righe ci sono
# how many row (=righe) are there?
$righe = $#csv + 1;

# adesso leggo l'intero array e creo una matrice: @matrix
# contemporaneamente calcolo il numero massimo di campi, per sapere quante colonne mi 
servono
# now i read the whole array and put it into a matrix : @matrix
# at the same time i look how many column (=colonne) have the biggest row
$col = 0;
foreach my $r (@csv) {
my @r = split $OPT_separator, $r;
$colonne = $#r + 1 if $colonne <= $#r;
push @matrix, [@r];
}

# adesso stampo il codice lyx. l'allineamento avviene a destra (immagino che di solito 
siano cifre)
# produco automaticamente una float table,
# versione funzionante per la 1.1.4fix1
# now I print the LyX format. Align=right (I think this is a matrix of numbers)
# dafault: a float table

print <

I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread xdeblas


If I want to be more fluent in Lyx, what can I do? Should I buy the Latex Companion? 
Is there any other book better?.

What I read in Latex Companion is valid for Lyx or is very different?



Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Sasa Janiska

On Today, +0200, [EMAIL PROTECTED] wrote:

>
> If I want to be more fluent in Lyx, what can I do? Should I buy the Latex Companion? 
>Is there any other book better?.
>
> What I read in Latex Companion is valid for Lyx or is very different?
>
Besides LaTeX Companion, I have Kopka & Daly's A Guide to LaTeX, which
is IMHO very god LaTeX material.

Sincerely,
Sasa





figure numbering

2001-05-25 Thread Jonathan Ware

Hello,

Is it possible to label figures in lyx so that (for example) those under
a paragraph heading are numbered <>-<>
(e.g. 2.3.4.1-1), those under a subsection heading are numbered
<>-<> (e.g. 2.3-2) and so on?

Thanks in advance for any help.

Jonathan



Re: screen problems

2001-05-25 Thread Thomas Schönhoff

Hello,

thanks to all who responded to my screen problems everything is now fine! The
difficulty was that Xconfigurator (RH7.0 tool for adjustement of system
parameters) configured my XWindow not properly., after reconfiguring it
yesterday everything was fine again.

Thomas

Stephen Carville wrote:

> On Mon, 21 May 2001, Thomas Schönhoff wrote:
>
> - Hello,
>
>
> Sound like you have 8 Bits per Pixel.  run 'xdpyinfo' and look for a
> line that says "depth of root window:"  This will tell you if you have
> 8, 16, 24, 0r 32 bits per pixel.
>
> If this is the problem there is not much you can do about it without
> increasing the bits per pixel which probably means upgrading your
> video card but it might help to:
>
> 1. Shut down Netscape.  It try to grab a lot of the color slots.
> 2. Go to Edit->Preferences->Look and Feel->Misc and turn off Show
>Banner.
>
> --
> --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.
> ==




Re: csv2lyx (was Re: sorting tables?)

2001-05-25 Thread Robin Turner

Just tried running it, but perl -d came out with "unrecognized character \xA0 
at line 60" (which seems to be in the middle of a comment, so shouldn't 
apply, unless perl only numbers lines with instructions - it's been so long I 
can't remember).

Looks pretty nifty if I can make it work though, thanks!

Robin





Re: LyX on lightweight OS (EPOC)

2001-05-25 Thread Tuukka Toivonen

On Thu, 24 May 2001, Baruch Even wrote:

> This is currently impossible, to use LyX you need an X-Server which is a
> pretty large beast usually and I doubt it was ported to a palm computer.

I guess everybody has read about this already from slashdot.org, but here
it goes: what about Agenda's VR3? It's a palm computer with Linux and
X-server. http://www.agendacomputing.com/products/system.html#spec

some technical specs: 8MB RAM + 16MB Flash Memory, 160x240 resolution.

Now i see 3 problems using LyX here:

Hard disk. Nobody has mentioned it, so am I correct that the 16
meg flash is used instead of hard disk? In that case it seems
impossible that they have put both X-server and Linux on it.
Can anyone comment that?
Definitely there isn't space for LyX, right?
Resolution. LyX window size can be quite nicely resized and the fonts
zoomed. However, that resolution is so low that it's probably
impossible to use LyX menus.
Keyboard: no keyboard. Unless the handwriting recognizion is pretty good,
the lack of keyboard is pretty bad. Maybe an external one can be
connected (such as happy hacking)?

Running LyX in another computer over network (using X protocol) should
solve first problem, though. Needs net connection.

8 MB should be adequate, I have previously run LyX with 8 meg memory too
(but it would require swap!)




Lyx can generate XML?

2001-05-25 Thread Adolfo Pachón

Hy!!

I'd like to know if its possible with Lyx generate XML code, with any class
format



 
 ---
 S A M T E K,  S C A
 C o n s u l  t o r e s  I n f o r m á  t i c a
 y  T e l e c o m u n i c a c i o n e s


 Adolfo M. Pachón Rodríguez
  (Director Desarrollos)


 Tlf..: 95 428 6045
 Fax: 95 427 8500
 ---




Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread Adolfo Pachón

hi all

I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
and i won't prescind it to write documents.

I've seen utilities like latex2html, l2x, l4th, but I'm very confused.

Can anyone help me? 

thanks...

Adolfo M. Pachón Rodríguez




Re: figure numbering

2001-05-25 Thread stephan . schlierf


Hello,

did you ever try a figure float  (Insert -> Floats -> figures; I`m not
quite sure how the menu items are labelled in english because I use the
german localization) ?
These floats are numbered.

HTH

Stephan

--
Stephan E. Schlierf M.A.
- chief concept & design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de


   
 
Jonathan Ware  
 
  cc:   
 
 Subject: figure numbering 
 
05/25/01   
 
11:59 AM   
 
   
 
   
 




Hello,

Is it possible to label figures in lyx so that (for example) those under
a paragraph heading are numbered <>-<>
(e.g. 2.3.4.1-1), those under a subsection heading are numbered
<>-<> (e.g. 2.3-2) and so on?

Thanks in advance for any help.

Jonathan








Re: Bug in xfig and pstex?

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 12:29:41PM +0100, Jos? Luis G?mez Dans wrote:
> Hi!
>   I have been trying to put some pstex_t diagarams into lyx
> yesterday (brand new 1.1.6fix2). They don't work, and rummaging through
> the list (and using previous documents I have), I have used other pstex
> files that do work. These figures where created with xfig and exported
> using the same procedure as the new ones, so that seems to indicate a
> problem in the files, rather than in lyx. I am using the xfig found in
> debian unstable (Xfig 3.2 patchlevel 3c (Protocol 3.2)), and there seems
> to be a bug opened against this in the debian transfig package. A
> description of it is found in 
> 
>   Can anyone suggest any work arounds until this gets fixed?

Can you send a *short* example ?



Re: Defining section name for TOC

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 09:23:33PM +, Tarmo J?rvi wrote:
> Hello,
> 
> First, I guess this is more LaTeX related, but please help me if you know something 
>about this.. Ok, I have a long section name which gets
> hyphenated, like this:
> 
> A Very Long Section Na-
> me
> 
> And that's ugly. If I simply add a line break in the middle, everything's ok. Except 
>in the TOC, where the section name also has line break although it isn't necessary 
>(and it drops last TOC entry to the next page). So, my question is: how I can define  
>different names for a section to TOC and to the actual text.

You can use \section[short name]{long name} in latex mode.
However, a better solution is to globally disable hyphenation inside section
commands by putting the following lines in the preamble:
 \let\oldsection=\section
 \renewcommand{\section}[1]{{\raggedright\hyphenpenalty=1 \oldsection{#1}}}

You then won't need to put line breaks in your sections!



Re: lyx 1.1.6fix2 and pdflatex

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 10:55:03PM +0200, Roberto Marabini wrote:
>   I just installed lyx 1.1.6fix2 in my linux machine (redhat 7.0) using
> the rpm binaries. I use pdflatex and acrobat reader to visualize the
> documents ( view->pdflatex), this used to work without problems in lyx
> 1.1.6fix1 but not any longer. The first time pdflatex is used it does
> produce the right results but the second time it does not update the
> file, instead, the old pdf file is used. The other options, dvi, pdf,
> postscript work properly. Does anybody knows what either I or lyx are
> doing wrong?

Run 'lyx -e pdf2 -dbg depend your-file.lyx' and send the stderr output you get.



Re: jpg/png images

2001-05-25 Thread Dekel Tsur

On Thu, May 24, 2001 at 06:23:54PM +0200, Herbert Voss wrote:
> Giorgio Corani wrote:
> > hi, as far as I know, the only supported format for images is eps.
> > What to do in order to put an other type of image, for example jpg?
> > I tried to save it as .eps within GIMP but (maybe it's a problem of my
> > installation) no such filter
> > was found.
> 
> use convert my.gif my.eps
> it's part of the imagemagic package.

For jpeg images, it is better to use jpeg2ps
(http://www.pdflib.com/jpeg2ps/index.html) as it doesn't uncompress the image.
There is similar tiff2ps on CTAN.

> > Does the new release maybe support such images?
> 
> yes.

In 1.1.6 you have the external inset, but it just converts the image file to
eps using 'convert'. It is better do to the conversion manually.

Also, if you use pdflatex instead of latex, you can include png/jpeg images.
(you can also include png/jpeg if you use latex+dvipdfm).



Cannot Link lyx-1.1.6fix2 under Solaris

2001-05-25 Thread Duncan Webb

I cannot link either 1.1.6fix1 and 1.1.6fix2 under Solaris. 

Thanks in advance,
Duncan

Solaris version: 
SunOS wsf21 5.6 Generic_105181-25 sun4m sparc SUNW,SPARCstation-20

gcc version:
Reading specs from /home/dwebb/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/specs
gcc version 2.95.3 20010315 (release)

ld version:
GNU ld version 2.10 (with BFD 2.10)

build messages:
make[3]: Entering directory `/home/dwebb/build/lyx-1.1.6fix2/src'
/bin/sh ../libtool --mode=link g++  -g -O2 -fno-exceptions -L/opt2/solaris-sparc/lib 
-L/opt2/lib -o lyx  BufferView.o BufferView2.o BufferView_pimpl.o Bullet.o Chktex.o 
ColorHandler.o CutAndPaste.o DepTable.o FloatList.o Floating.o FontInfo.o FontLoader.o 
LColor.o LaTeX.o LaTeXFeatures.o LaTeXLog.o LyXAction.o LyXSendto.o LyXView.o 
MenuBackend.o Painter.o PainterBase.o Sectioning.o Spacing.o TextCache.o Timeout.o 
ToolbarDefaults.o UpdateInset.o Variables.o WorkArea.o bmtable.o buffer.o bufferlist.o 
bufferparams.o bufferview_funcs.o chset.o combox.o converter.o counters.o credits.o 
credits_form.o debug.o encoding.o exporter.o filedlg.o font.o form1.o gettext.o 
importer.o intl.o kbmap.o kbsequence.o language.o lastfiles.o layout.o layout_forms.o 
log_form.o lyx.o lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sty.o lyxcursor.o 
lyxfont.o lyxfr0.o lyxfr1.o lyxfunc.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o 
lyxrow.o lyxserver.o lyxvc.o main.o minibuffer.o paragraph.o print_form.o screen.o 
sp_form.o spellchecker.o tabular.o tabular-old.o tex-accent.o tex-strings.o texrow.o 
text.o text2.o tracer.o trans.o trans_mgr.o undo.o vc-backend.o vspace.o 
mathed/libmathed.la insets/libinsets.lagraphics/libgraphics.la 
frontends/libfrontends.la ../src/frontends/xforms/libxforms.la  
frontends/libfrontends.la   frontends/support/libfrontendsupport.la 
support/libsupport.la   ../sigc++/libsigc.la  -lforms -lXpm  `../sigc++/sigc-config 
--libs-names | sed -e 's/-lsigc//'`-lSM -lICE -liberty -lc -lm   
-L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lsocket  -lnsl
g++ -g -O2 -fno-exceptions -L/opt2/solaris-sparc/lib -L/opt2/lib -o lyx BufferView.o 
BufferView2.o BufferView_pimpl.o Bullet.o Chktex.o ColorHandler.o CutAndPaste.o 
DepTable.o FloatList.o Floating.o FontInfo.o FontLoader.o LColor.o LaTeX.o 
LaTeXFeatures.o LaTeXLog.o LyXAction.o LyXSendto.o LyXView.o MenuBackend.o Painter.o 
PainterBase.o Sectioning.o Spacing.o TextCache.o Timeout.o ToolbarDefaults.o 
UpdateInset.o Variables.o WorkArea.o bmtable.o buffer.o bufferlist.o bufferparams.o 
bufferview_funcs.o chset.o combox.o converter.o counters.o credits.o credits_form.o 
debug.o encoding.o exporter.o filedlg.o font.o form1.o gettext.o importer.o intl.o 
kbmap.o kbsequence.o language.o lastfiles.o layout.o layout_forms.o log_form.o lyx.o 
lyx_cb.o lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfr0.o 
lyxfr1.o lyxfunc.o lyxlex.o lyxlex_pimpl.o lyxlookup.o lyxrc.o lyxrow.o lyxserver.o 
lyxvc.o main.o minibuffer.o paragraph.o print_form.o screen.o sp_form.o spellchecker.o 
tabular.o tabular-old.o tex-accent.o tex-strings.o texrow.o text.o text2.o tracer.o 
trans.o trans_mgr.o undo.o vc-backend.o vspace.o mathed/.libs/libmathed.a 
insets/.libs/libinsets.a graphics/.libs/libgraphics.a frontends/.libs/libfrontends.a 
../src/frontends/xforms/.libs/libxforms.a frontends/.libs/libfrontends.a 
frontends/support/.libs/libfrontendsupport.a support/.libs/libsupport.a 
../sigc++/.libs/libsigc.a -lforms -lXpm -lSM -lICE -liberty -lc -lm -L/usr/openwin/lib 
-lX11 -lsocket -lnsl -Wl,--rpath -Wl,/usr/openwin/lib -Wl,--rpath -Wl,/usr/openwin/lib
insets/.libs/libinsets.a(insetinclude.o): In function `InsetInclude::getKeys(void) 
const':
/home/dwebb/build/lyx-1.1.6fix2/src/insets/insetinclude.C:570: undefined reference to 
`insert_unique__t8_Rb_tree5Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt10_Select1st1Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt4less1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt9allocator1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Gt17_Rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Z'
collect2: ld returned 1 exit status
make[3]: *** [lyx] Error 1
make[3]: Leaving directory `/home/dwebb/build/lyx-1.1.6fix2/src'

-- 

___
Get your free email from http://mymail.iname.com




Re: Lyx can generate XML?

2001-05-25 Thread ben

"Adolfo Pachón" a écrit :

> Hy!!
>
> I'd like to know if its possible with Lyx generate XML code, with any class
> format

No, it is possible only with the DocBook document class. Note however that the
DocBook export format is SGML, but there is very few things to have XML from
it. It was said that a SGML/XML script should be provided in the distribution,
but I don't know if it is the case. If not, and if you are interested in I can
send you mine.

BG




Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread ben

"Adolfo Pachón" a écrit :

> hi all
>
> I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
> and i won't prescind it to write documents.
>
> I've seen utilities like latex2html, l2x, l4th, but I'm very confused.
>
> Can anyone help me?
>
> thanks...
>
> Adolfo M. Pachón Rodríguez

AFAIK you won't be able to produce XML from latex source, but you can write
SGML/XML documents with LyX with the Linuxdoc and DocBook document class.
For the docbook support, you can have a look at
http://perso.libertysurf.fr/bgu/index.html#db4lyx

BG




Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Rem

Hire Herbert ;)
- Original Message -
From: <[EMAIL PROTECTED]>
To: "List Lyx users" <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 3:52 AM
Subject: I want to learn more Lyx/Latex - BOOKS


>
> If I want to be more fluent in Lyx, what can I do? Should I buy the Latex
Companion? Is there any other book better?.
>
> What I read in Latex Companion is valid for Lyx or is very different?




sub

2001-05-25 Thread Alen Peacock

sub

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



esub2acm.cls

2001-05-25 Thread joe joe

  I'm trying to use Lyx to create a document class for submission to an ACM 
journal.  LaTex2e files can be found at 
http://www.acm.org/pubs/submitting_accepted_articles/au_dl.htm#latex_unix 
(esub2acm.cls, as well as esub2acm.bst and a few example tex files).

  I've tried following the directions in Chapter 6 of the Customization 
guide, but have not been able to get this document class to show up in the 
Lyx Document Class dialog.

  The class installs and works fine with regular 'latex'.

  Anyone have any ideas for getting this to work?

  Thanks in advance,
Al
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: I want to learn more Lyx/Latex - BOOKS

2001-05-25 Thread Herbert Voss

Rem wrote:
> 
> Hire Herbert ;)
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "List Lyx users" <[EMAIL PROTECTED]>
> Sent: Friday, May 25, 2001 3:52 AM
> Subject: I want to learn more Lyx/Latex - BOOKS
> 
> >
> > If I want to be more fluent in Lyx, what can I do? Should I buy the Latex
> Companion? Is there any other book better?.

it's a good book.

and have a look at:

http://www.educat.hu-berlin.de/~voss/lyx/LatexDocs.html

> >
> > What I read in Latex Companion is valid for Lyx or is very different?

lyx is latex is tex ...

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: LyX on lightweight OS (EPOC)

2001-05-25 Thread Baruch Even

* Tuukka Toivonen <[EMAIL PROTECTED]> [010525 18:05]:
> On Thu, 24 May 2001, Baruch Even wrote:
> 
> > This is currently impossible, to use LyX you need an X-Server which is a
> > pretty large beast usually and I doubt it was ported to a palm computer.
> 
> I guess everybody has read about this already from slashdot.org, but here
> it goes: what about Agenda's VR3? It's a palm computer with Linux and
> X-server. http://www.agendacomputing.com/products/system.html#spec
> 
> some technical specs: 8MB RAM + 16MB Flash Memory, 160x240 resolution.

So, when are you buying the developers one of these to port LyX to it.

> Now i see 3 problems using LyX here:
> 
> Hard disk. Nobody has mentioned it, so am I correct that the 16
>   meg flash is used instead of hard disk? In that case it seems
>   impossible that they have put both X-server and Linux on it.
>   Can anyone comment that?
>   Definitely there isn't space for LyX, right?

X can be a small thing, and LyX itself (as a stripped binary) can
probably be fitted to, though it might require trimming it a bit, but
since you don't really need to produce the files on it, you should be
fine with just the editor.

> Resolution. LyX window size can be quite nicely resized and the fonts
>   zoomed. However, that resolution is so low that it's probably
>   impossible to use LyX menus.

You'll have a lot less words on a line, but hey, if it makes you able to
write that document wherever you need, it might be worth your trouble.

> Keyboard: no keyboard. Unless the handwriting recognizion is pretty good,
>   the lack of keyboard is pretty bad. Maybe an external one can be
>   connected (such as happy hacking)?

There are external keyboards for palm computers, and I am told that
peoples get used to the strange hand writing needed to write on these
things.

> 8 MB should be adequate, I have previously run LyX with 8 meg memory too
> (but it would require swap!)

It could be possible.

So, when do I get this nifty gadget? ;-)

-- 
Baruch Even
http://baruch.ev-en.org/



Re: esub2acm.cls

2001-05-25 Thread Herbert Voss

joe joe wrote:
> 
>   I'm trying to use Lyx to create a document class for submission to an ACM
> journal.  LaTex2e files can be found at
> http://www.acm.org/pubs/submitting_accepted_articles/au_dl.htm#latex_unix
> (esub2acm.cls, as well as esub2acm.bst and a few example tex files).
> 
>   I've tried following the directions in Chapter 6 of the Customization
> guide, but have not been able to get this document class to show up in the
> Lyx Document Class dialog.
> 
>   The class installs and works fine with regular 'latex'.
> 
>   Anyone have any ideas for getting this to work?

1. copy ~/.lyx/layouts/article.layout to esub2acm.layout
2. edit the second line in esub2acm.layout to
   #  \DeclareLaTeXClass{esub2acm}
3. save esub2acm.cls and all other files from the site
 in /usr/local/share/texmf/tex/latex/esub2acm/
4. run texhash
5. run ~/.lyx/configure and look for a line like
   +checking for document class esub2acm [esub2acm]... yes

start lyx and the class should be in 
layout->document->class as esub2acm

now you have to look if standard article class are
more or less similiar to the esub2acm class.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread Baruch Even

* Adolfo Pachón <[EMAIL PROTECTED]> [010525 18:05]:
> hi all
> 
> I'm looking for the manner of generate XML output from Lyx/Latex. I love Lyx,
> and i won't prescind it to write documents.

LyX cannot export to XML right now, it probably is possible to add such
support but none is currently being worked on.

A feature that will be worked on after 1.2.0 is to simplify the creation
of export formats, together with the scripting language it could be
possible to create export formats without changing LyX itself. But this
is future talk, right now there is no XML export.

-- 
Baruch Even
http://baruch.ev-en.org/



unsubscribe aingram@galstar.com

2001-05-25 Thread arthur ingram




Re: How can I change the title of the TOC

2001-05-25 Thread Dekel Tsur

On Fri, May 25, 2001 at 10:49:21AM +0200, [EMAIL PROTECTED] wrote:
> 
> In spanish in the article class, the title is "Indice General" (General
Index) what about if I want nother like "Indice" (Index) for example.

Put the following line in the preamble:
\AtBeginDocument{\def\contentsname{Indice}}



Re: figure numbering

2001-05-25 Thread Dekel Tsur

On Fri, May 25, 2001 at 10:59:18AM +0100, Jonathan Ware wrote:
> Hello,
> 
> Is it possible to label figures in lyx so that (for example) those under
> a paragraph heading are numbered <>-<>
> (e.g. 2.3.4.1-1), those under a subsection heading are numbered
> <>-<> (e.g. 2.3-2) and so on?

Yes. Use the \numberwithin command from amsmath.
You need to select the "Use amsmath" button in the document menu.
Then write (in the preamble or in the body)
\numberwithin{figure}{subsection}

You can use the command several times in the text to change the numbering
style.



Character wildness, help!

2001-05-25 Thread Zailong Bian

Hi.

I am using komascript report class to write a thesis.  I have all the
chapters included in a master documents.  I setup all the packages, page
margins, and all other pains...But I got a weird problem:

All the character combination "fi" becomes the english curency pound sign.
All the two characters "fl" becomes a circle over a cross when I view PS!
What's happening!!??  Is that an "Easter Egg" thing that one of the
programmer actually put in lyx? :-)  While if I copy and paste that
paragraph into a new lyx document, all becomes normal!

Anyone has a clue on how to fix this?

Thanks a lot!!

Zailong



index

2001-05-25 Thread Romuald POTEAU

Dear Lyx users,

I am desperately trying to compile an index, but I am failing since I have 
installed RedHat7.1, and the 1.1.6fix2 patch. The amazing point is that I 
have checked on another computer that there is no problem under RedHat6.2 
with 1.1.6fix1 version of Lyx.  Lyx 1.1.6fix2 does not 
provide error messages.  I have tried to export in latex format, and I get 
the following messages :
"Writing index file test.idx"
"No file test.ind". 
Did anybody encountered the same problem ?
Thanks for your help
Romuald Poteau.



Re: Looking for an XML ouput from Lyx/Latex

2001-05-25 Thread ben


Baruch Even a écrit :
* Adolfo Pachón <[EMAIL PROTECTED]> [010525
18:05]:
> hi all
>
> I'm looking for the manner of generate XML output from Lyx/Latex.
I love Lyx,
> and i won't prescind it to write documents.
LyX cannot export to XML right now, it probably is possible to add such
support but none is currently being worked on.
 
Yes, there is no direct XML output available, but it is really easy to
have XML from DocBook SGML.
With the attached file, you can have direct XML export format from lyx
by adding the following in the preference file:
\format "xml" "xml" "XML" ""
...
\converter "docbook" "xml" "/(full path)/sgml2xml.pl $$i" ""
To use it, you must change the $system path to your XML DocBook DTD.
BG
 
 
#!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if $running_under_some_shell;

use File::Basename;

# To fix: how to retrieve this information?
$system = ' SYSTEM "file:///home/ben/share/archives/docbook/docbkx412/docbookx.dtd"';


sub parse_sgml
{
  local($sgmlfile) = $_[0];
  local($xmlfile) = $_[1];
  local($noheader) = $_[2];
  my $line = "";
  my $file = "";
  my $SGML = "f$sgmlfile";
  my $XML = "f$xmlfile";

  print "$sgmlfile -> $xmlfile\n";

  if (-f $xmlfile) {
print "***Warning: $xmlfile already exists\n";
system("mv $xmlfile $xmlfile~");
  }

  open($SGML, "<$sgmlfile") || die "Cannot open $sgmlfile\n";
  open($XML, ">$xmlfile") || die "Cannot open $xmlfile\n";

  while (<$SGML>) {
$line = $_;
if ((/doctype/ || /DOCTYPE/) && $noheader == 0) {
  # Change the file header
  $line =~ s/doctype ([a-z]*) .*\"/DOCTYPE $1 $system/;
  $line =~ s/DOCTYPE ([a-z]*) .*\"/DOCTYPE $1 $system/;
 
  # Print first the XML head
  print $XML '';
  print $XML "\n$line";
 
  $noheader++;
}
else {
  $line =~ s/à/\à/g;
  $line =~ s/é/\é/g;
  $line =~ s/ê/\ê/g;
  $line =~ s/è/\è/g;
  $line =~ s/î/\î/g;
  $line =~ s/ô/\ô/g;
  $line =~ s/ù/\ù/g;
  $line =~ s/û/\û/g;
  $line =~ s/ü/\ü/g;
  $line =~ s/ç/\ç/g;
 
  # Case of included files
  if (/ENTITY.*\.sgml/) {
# Get the included file name
($file = $line) =~ s/.*\"(.*)\.sgml\".*\n/$1/;
 
# Output follow the main output path
$outfile = dirname($xmlfile) . "/$file";
 
# Now the included file is the XML one
$line =~ s/(.*)\"(.*)\.sgml\"/$1\"$outfile.xml\"/;
 
# Relative or absolute path?
if (not($file =~ /^\//)) {
  $file = dirname($sgmlfile) . "/$file";
}
 
# The included files need not header
parse_sgml("$file.sgml", "$outfile.xml", 1);
  }
  print $XML $line;
}
  }

  close($SGML);
  close($XML);
}

#
# Script start
#

if (not(@ARGV)) {
  print "$0 input.sgml [output.xml]\n";
  exit 1;
}

$sgmlfile = $ARGV[0];
$xmlfile = basename($sgmlfile, '.sgml');
$xmlfile = dirname($sgmlfile). "/$xmlfile.xml";

shift;
if (@ARGV) {
  $xmlfile = $ARGV[0];
}

parse_sgml($sgmlfile, $xmlfile, 0);



CJK-LyX-1.1.6fix2, Again!

2001-05-25 Thread cghan


   Hello,

 Couple of days ago, I sent to this mailing list an email announcement of
availability of CJK-LyX-1.1.6fix2, which has never been appeared on the
mail-archive. I know that the mail went through seccessfully, for several
subscribers to this mailing list have told me they've got the message
through this mailing list. Can anyone tell me how this happens?

 Anyhow I would like to tell, again, the lyx-users that CJK-LyX-1.1.6fix2,
a multibyte-patched version of newly announced lyx-1.1.6fix2, is available
at ftp://stone.phys.pusan.ac.kr/pub/CJK-LyX, and that a small update of
CJK-LyX home page have been made,
http://cellular.phys.pusan.ac.kr/cjk.html.

If possible, I also would like to see this annoucement on the lyx home
page. Mr. Jean-Marc Lasgouttes, can you help me?

Regards,


   cghan




Re: Character wildness, help!

2001-05-25 Thread Herbert Voss

Zailong Bian wrote:
> 
> Hi.
> 
> I am using komascript report class to write a thesis.  I have all the
> chapters included in a master documents.  I setup all the packages, page
> margins, and all other pains...But I got a weird problem:
> 
> All the character combination "fi" becomes the english curency pound sign.
> All the two characters "fl" becomes a circle over a cross when I view PS!
> What's happening!!??  Is that an "Easter Egg" thing that one of the
> programmer actually put in lyx? :-)  While if I copy and paste that
> paragraph into a new lyx document, all becomes normal!

what do you have in 
layout->document->language->encoding ?

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/