Re: Installing Problems

2000-12-01 Thread Stefano Ghirlanda

[EMAIL PROTECTED] (Jürgen Spitzmüller) writes:

> Hello out there!
> 
> I have installed lyx 1.1.5fix2 on my desktop an it works perfectly.
> Now I wanted to install it on my laptop. But I can't get it work. When I try 
> to start lyx in the XTerm, I get the following message:
> 
> "lyx: SIGSEGV signal caught
> Sorry, you have found a bug in LyX. If possible, please read 'known bugs' 
> under the Help menu and then send us a full bug report, Thanks!"

Check that you have the same version on xforms on both machines.
Some versions of LyX, correct if I'm wrong, did this when they failed
to allocate colours... which can be a problem on laptops.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: how to get date out of title?

2000-12-14 Thread Stefano Ghirlanda

Ronny Haryanto <[EMAIL PROTECTED]> writes:

> On 14-Dec-2000, Anna H.Pryor wrote: > I don't want to have the date
> automatically appear with the title.  Is there an > easy way to fix
> that?
> 
> You could put a forced blank in the date environment, Ctrl-Space by
> default.

If you put \vspace{-1cm} (marked as TeX) instead of the blank you also
regain the space that the blank line wastes.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



bug with space in dir name

2000-12-16 Thread Stefano Ghirlanda

Hi,
I do not know wheter this is a bug in LyX or LaTeX/TeX, but is seems
that documents whose full path contains spaces cannot be typeset.
For instance I see this in the temporary file in the /tmp/lyx_blabla
directory: 

\def\input@path{{/home/ethology/common/Projects/Learning v Genetic//}}

Which produces a "missing \begin{docment} error". If I take away
spaces from the dir name, the error disappears.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: bug with space in dir name

2000-12-16 Thread Stefano Ghirlanda

Herbert Voss <[EMAIL PROTECTED]> writes:

> Stefano Ghirlanda wrote:
> >  Hi, I do not know wheter this is a bug in LyX or LaTeX/TeX, but
> > is seems that documents whose full path contains spaces cannot be
> > typeset.  For instance I see this in the temporary file in the
> > /tmp/lyx_blabla directory:
> >
> >  \def\input@path{{/home/ethology/common/Projects/Learning v
> > Genetic//}}
> 
> try
> 
> \def\input@path{/home/ethology/common/Projects/Learning\ v\
> Genetic/}

Yes, I guess it would work. The problem is that the input@path is not
something I put in the document, but it's generated by LyX. That's why
I said it's a bug in Lyx.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: bug with space in dir name

2000-12-19 Thread Stefano Ghirlanda

"Jean-Pierre.Chretien" <[EMAIL PROTECTED]> writes:

> Seems that the code creating the file path should protect spaces,
> even if is not advisable to use such spaces in file names on an OS
> where the space is a separator.

The only character which is not allowed in UNIX filenames is /, the
space is a separator for the shell (by default) and for everything
else that wants it to be a separator, but is perfectly allowed in
filenames.

Moreover, we have directories exported to Windows clients and it's
difficult to perusade everyone not to have spaces in file names.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



lyx-1.1.6 compile errors

2001-03-04 Thread Stefano Ghirlanda

Hi, I am getting the following errors, I presume because my c++
libraries are too old (Slackware 7.0):

g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../
-I../.. -I../.. -I../../boost -g -O2 -fno-rtti -fno-exceptions -c
formula.C -o formula.o 
In file included from formula.C:18:
../../src/Lsstream.h:16: sstream: No such file or directory
In file included from ../../src/support/DebugStream.h:19,
 from ../../src/debug.h:108,
 from math_defs.h:30,
 from math_iter.h:27,
 from math_cursor.h:26,
 from formula.C:26:
../../src/support/LOstream.h:17: ostream: No such file or directory

Here is my g++ version:

# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

Should I installa a more recent one?
Thanks,

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: lyx-1.1.6 compile errors

2001-03-05 Thread Stefano Ghirlanda

Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

> Stefano> # g++ -v Reading specs from
> Stefano> /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs gcc
> Stefano> version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> 
> This version should work OK, and configure should have detected that
> ostream ans sstream were not available... How did you run configure?
> What does config.log say?

It says that sstream is found... but:

# find /usr/include/ /usr/local/include -name '*sstream*'

nothing is found. As a confirmation:

# cat>try.C< #include 
> EOF
# g++ try.C 
try.C:1: stream: No such file or directory

Any easy way to fix this?
Thanks a lot
-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Empty spacing

2001-03-05 Thread Stefano Ghirlanda

EagleIce <[EMAIL PROTECTED]> writes:

> Hello all!
> 
> In a book I'm writing I would like to remove the chapter and sections but 
> still keep the spaces they make, is this possible to do?

Try to use a Chapter* environment with a Ctrl-Space character in it. 

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Empty spacing

2001-03-05 Thread Stefano Ghirlanda

EagleIce <[EMAIL PROTECTED]> writes:

> OK, thank's.
> Should that work with Section* too?

Yest, it should.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Author and date customization

2001-03-06 Thread Stefano Ghirlanda

Alexandre Gonçalves Jacarandá <[EMAIL PROTECTED]> writes:

> Hi evereybody, I need to put \author at \cheader and \date at \cfoot.
> How can I make this?

In the preamble:

\usepackage{fancyhdr}
\pagestyle{fancy}
\cfoot{\today}
\chead{Author Name}

Note that you cannot use \author (or actually \@author) in \chead,
because it is defined only within the title page... If you need to do
this in a general way, for intance as a style file that many can use,
you can try a hack like this:

\let\oldauthor\author
\renewcommand{\author}[1]{\newcommand{\myauthor}{#1}\oldauthor{#1}} 
\chead{\myauthor}

But I have not checked this.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



SOLVED problems 1.1.6fix1 on slackware 7.1

2001-03-06 Thread Stefano Ghirlanda

Hi,
thanks everyone for your suggestions!
By manually #undefining HAVE_SSTREAM, HAVE_OSTREAM and HAVE_LOCALE in
src/config.h I could compile and install happily.

If #undefining HAVE_LOCALE does not impair locale awareness, I could
make a lyx.tgz slackware package and upload it to
www.linuxmafia.org. I wait input from you all.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: changes standard wording?

2001-03-10 Thread Stefano Ghirlanda

Mitrana Cristian <[EMAIL PROTECTED]> writes:

> > Hi Folks!
> > Sorry for asking simple questions!
> > I'm writing an artical using (i) class: article (AMS), (ii) Language:
> > bahasa. I change these under Document Layout. The problem are when I
> > select Abstract, I get RINGKASAN. What I really what is ABSTRAK.
> > Second, when I select Biblography, I get PUSTAKA, but what I really
> > whan is RUJUKAN. Can someone please show me how to redefine these.
> >
> The problem is not from lyx, check you malayasian.sty and malayasian.ldf
> from your latex distribution,mines are in 
> /usr/share/texfm/tex/generic/babel ( on linux ). You may have to 
> modify the malayasian.sty file to correct those errors.

You can probably achieve the same without modifying these files by:

\renewcommand{\abstractname}{abstrak}
\renewcommand{\referencename}{rujukan}

In the preamble. It might be \bibliographyname or some other variation
instead of \referencename, I don't remember right now...

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Problems

2001-03-12 Thread Stefano Ghirlanda

Guilherme Klitzke Giesbrecht <[EMAIL PROTECTED]> writes:

> I have the following problem.
> I want to wirte a kind of report, but with section numbering, but I
> don't want a Chapter label above my chapters, The problem is that the
> book style is perfect for what I need,  and all I don't want is the
> Chapter label. If I don't use Chapters, the sections are then numbered
> 0.x, and I don't want that.
> Anyone knows how do I do that?

Put:

\renewcommand{\chaptername}{}

in the LaTeX premable of your LyX document.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: bad characters in labels?

2001-03-13 Thread Stefano Ghirlanda

Tuukka Toivonen <[EMAIL PROTECTED]> writes:

> I used a label "t=bda" in an equation, but it produced (??) instead
> of the equation number in the output. I guess Latex doesn't accept
> the "=" character in labels.

Yes... if you use _ I think you also get an error...

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



changing bibtex command

2001-03-14 Thread Stefano Ghirlanda

Hi,
I am experimenting on a wrapper script around bibtex. I remember there
is a way to change the name of the bibtex executable in ~/.lyx/lyxrc
but I can't remember how... I have tried the following without
success:

\bibtex_command mybibtex
\bibtex mybibtex
\Command bibtex mybibtex
\command bibtex mybibtex

without success... Any help appreciated,
Thanks

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: changing bibtex command

2001-03-15 Thread Stefano Ghirlanda

Stefano Ghirlanda <[EMAIL PROTECTED]> writes:

> Hi,
> I am experimenting on a wrapper script around bibtex. I remember there
> is a way to change the name of the bibtex executable in ~/.lyx/lyxrc
> but I can't remember how... 

I think I was wrong, in LaTeX.C "bibtex" seems to be hard-coded.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: changing bibtex command

2001-03-15 Thread Stefano Ghirlanda

Herbert Voss <[EMAIL PROTECTED]> writes:

> Stefano Ghirlanda wrote:
> > 
> > Stefano Ghirlanda <[EMAIL PROTECTED]> writes:
> > 
> > > Hi,
> > > I am experimenting on a wrapper script around bibtex. I remember there
> > > is a way to change the name of the bibtex executable in ~/.lyx/lyxrc
> > > but I can't remember how...
> > 
> > I think I was wrong, in LaTeX.C "bibtex" seems to be hard-coded.
> 
> that's right, but lyx searchs first in your home-dir/bin, when your
> path is set well (otherwise you produce an endless loop). 
> Therefore you can define your own ~/bin/bibtex which itself
> starts /usr/bin/bibtex, the one from tex!

Yes, but I do not consider this to be an ideal setup. For instance,
the program would need to be installed in (or linked to from) each
user's ~/bin directory. Having ~/bin before the system diretctories is
also not recommended from a securiy point of view.

Thanks for the tip anyway,
Stefano

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: changing bibtex command

2001-03-16 Thread Stefano Ghirlanda

"Jean-Pierre.Chretien" <[EMAIL PROTECTED]> writes:

> What about an alias instead of a link ?

I like this better, thanks.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: changing bibtex command

2001-03-16 Thread Stefano Ghirlanda

Stefano Ghirlanda <[EMAIL PROTECTED]> writes:

> "Jean-Pierre.Chretien" <[EMAIL PROTECTED]> writes:
> 
> > What about an alias instead of a link ?
> 
> I like this better, thanks.

But it does not seem to work, probably because LyX does not use the
shell to launch bibtex.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Newbie: false numbering of bibtex citations

2001-03-16 Thread Stefano Ghirlanda

db <[EMAIL PROTECTED]> writes:

> I'm trying to use lyx 1.1.6fix1/pybliographer 1.0.8 on Mandrake7.2 and
> I have the following problem with the numbering of the citations which
> is not crescent within the text. Here is an example:

> 1  J.P. Deng and B. Randby,,,
> 2  J.P. Deng, W.T. Yang and B. Randby,,,
> 3  A. Levy and I. Agrenat,,,

The order is alphabetical. Use the 'unsrt' bibtex style (in the
'BibTeX Generated References' box) to list references in order of
citation.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience






Re: Copyright symbol?

2001-03-19 Thread Stefano Ghirlanda

EagleIce <[EMAIL PROTECTED]> writes:

> I can't find out how I can put in a Copyright symbol in my documents, can 
> someone give me a hint?

I think it's \copyright, marked as TeX. Use Ctrl-Space if you need a
following space.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: citation of proceedings

2001-03-20 Thread Stefano Ghirlanda

Michael Zapf <[EMAIL PROTECTED]> writes:

> I suppose you use BibTeX citations. An article form a conference book has
> 
> an entry like
> 
> @InProceedings{Author:Year:Key,  (this is a suggestion)
>author = { ... },
>...
>publisher = yourPublisher, (e.g. "Springer-Verlag")
>address = publishingAddress,  (e.g. "Berlin")
>...
> }
> 
> Note that the address is the publisher's address, not the location of the
> 
> conference. I suggest to put the conference location in the title.

If you need some further strange details, the "note" field is also
handy.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: changing Bibliography to References

2001-03-20 Thread Stefano Ghirlanda

Remzi Seker <[EMAIL PROTECTED]> writes:

> Hi,
> 
> I am writing my thesis in report class (lyx-1.1.6fix1). I am using
> BiBTeX for my references but I need to change the word
> 'Bibliograpgy' to 'References'.  Any idea how I can do that?

\renewcommand{\bibname}{References}

marked as TeX

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: page numbering

2001-03-21 Thread Stefano Ghirlanda

Remzi Seker <[EMAIL PROTECTED]> writes:

> Hi, I need to have my document numbered in the following way: table
> of contents part (right after the title page) should be as: I, II,
> III, IV, etc and right at chapter one i need the page numbers start
> and go as 1, 2, ...

I gatheer this is a book document. Then you need a \frontmatter switch
to Roman, \mainmatter to switch to Arabic. \frontmatter also switches
off chapter numbering.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: grammar

2001-03-22 Thread Stefano Ghirlanda

Robin Turner <[EMAIL PROTECTED]> writes:

> Unless NLP has made some pretty massive advances recently, I think
> grammar checkers will continue to be more of an irritation than a
> help.

Well, we shouldn't generalise that much, I think. I have a friend who
is slighly dyslexic, and moreover English is not his mother
tongue. Even checking that third-persons of verbs and plurals end in s
is a great help to him.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Request: quotation marks

2001-03-23 Thread Stefano Ghirlanda

[EMAIL PROTECTED] (Jürgen Spitzmüller) writes:

> Dekel Tsur wrote:
> > You can use the ' and ` keys for inserting single quotes. 
> 
> You mean accent acute (or comma for German style) and accent grave? 
> Does not work (the accents) on my system because I have enabled dead 
> keys (to get french accents).

It usually works to press the dead key and then the space bar to get
the charachter on the dead key alone.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: page wrapping problem

2001-03-28 Thread Stefano Ghirlanda

Andreas Piontek <[EMAIL PROTECTED]> writes:

> Hello,
> 
> I use Lyx to write a document (more or less 40 pages).
> 
> I included a lot of figures and tables and now I have the
> problem that on two pages LyX/Latex doesn't make a correct page wrap.
> That means the text continues until the end of the (physical) page and
> some lines are even missing before it is continued on the next page
> normally. 
> On both pages are one figure and one table.
> 
> I`ve no ideas what the problem may be and also not what I can do to
> prevent this.
> The problem exists in DVI/PS/PDF output, so I think the problem must be
> with Lyx or Latex.
> 
>  Where can I look for the problem?

Read the LaTeX log file, and post it if you don't understand.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Two latex questions

2001-04-12 Thread Stefano Ghirlanda

Brett Jones <[EMAIL PROTECTED]> writes:

> First, I cite a reference in a figure caption, but don't like that
> it shows up in the TOF.  Is there a way to show the reference in the
> figure caption, but not in the TOF?

In LaTeX you can provide an optional argument to caption, that is used
in the tof. In LyX you could try to put [your tof text] as the first
thing in the caption.

> Second, I have a couple LARGE figures that just about fill the page.
> Trouble is, that they cover the page numbers in the std report
> format.  Actually, it's OK when that happens, but sometimes they
> don't cover the page number, and the caption ends up beneath it.  Is
> there a way to either turn off or reposition the page number, just
> for the page that a float ends up on?

You can do that by putting \thispagestyle{empty} just before the
figure (or perhaps even better inside the caption?).

But you should be sure that figures fit properly! Use height=100% in
the figure box to do this.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: [OT] TeXmacs?

2001-04-24 Thread Stefano Ghirlanda

Niklas Werner <[EMAIL PROTECTED]> writes:

> Has anybody ever tried TeXmacs? (www.texmacs.org)

I have tried an earlier version. The display looks good, but I found
some major problems (for me, they are intentional features). TeXmacs
is *not* a frontend to TeX/LaTeX, it *never* runs these. You cannot
use LaTeX packages. Export to and import from LaTeX are only partially
supported, and will never be fully implemented. More info from the
TeXmacs FAQ:


Question 5. What are the differences between TeXmacs and LyX? 

   Answer. TeXmacs is a more ambitious project. Some of its major
   advantages are the following:  

  1.TeXmacs is fully WYSIWYG. 
  2.TeXmacs has a professional typesetting quality and nicer fonts. 
  3.TeXmacs comes with the Guile/Scheme extension language. 
  4.You can use TeXmacs as an interface to computer algebra systems. 


I don't really care much about 1. I don't really understand 2... I
doubt that TeXmacs is as good as TeX/LaTeX at typesetting
"professionally". I am sure the LyX developers will comment on point
3. I was thinking about developing 4 for some time but a number of
circumstances have halted the project. Please mail me if you have some
valuable insight into a nice way of doing it.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: [OT] TeXmacs?

2001-04-24 Thread Stefano Ghirlanda

Matej Cepl <[EMAIL PROTECTED]> writes:

> Wereb't there some attempts to rewrite NeXT environment for X as 
> a free soft (GNUStep)? As I remember, they tried to create some 
> kind of Display PostScript based on the Ghostscript (there are 
> some remaints in the ghostscript distribution until now -- look 
> through your $GS_LIB). Does anybody have any idea, whether it is 
> alive or definitively dead?

It's alive on www.gnustep.org

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: clearpage without empty page

2001-04-25 Thread Stefano Ghirlanda

Wolfgang Engelmann <[EMAIL PROTECTED]> writes:

> I am getting too many unprocessed floats in a book
> A clearpage cures it and its ok after a chapter. 
> However, if I insert it after a section an empty page is
> inserted after the figure floates have been placed, which
> is undesired. How can I prevent this?

I don't know, but maybe specifying tp in the float placement option in
Layout>Document helps.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Generating tables from tab delimited data

2001-04-30 Thread Stefano Ghirlanda

Ragnar Beer <[EMAIL PROTECTED]> writes:

> Howdy again!
> 

> I need to create a 20x20 correlation table. Last time I did this
> with cuts and pastes. (That was a smaller table in case you question
> my IQ ;) I wonder if there is an easier way to get the table if I've
> got a file with the coefficients in a tab delimited form anyway.

This shoud convert you file in a latex tabular environment:

#!/usr/bin/perl
# mkltxtab: converts an IFS-delimited file into a LaTeX tabular
# usage: IFS='\s+' mkltxtab mytable.dat > mytable.tex
$max = 0;
while(<>) {
chomp;
@row = split /$ENV{IFS}/;
push @data, [ @row ];
$max = @row if @row > $max;
}
print STDERR "Read ".(scalar @data)." rows with at most $max elements\n";
print "\\begin{tabular}{" . ("c"x$max) . "}\n";
for (@data) {
print join " & ", @{$_};
print "&"x($max-@{$_});
print "\n";
}
print "\\end{tabular}\n";

Save it into a file and make that executable, then run the program as
in the `usage` line above. The IFS bit tells the program what to use
to separate fields (rows are assumed to be separated by newline).
It is a Perl regex. For instance:
  IFS=' ' a space
  IFS=',\s*' comma followed by 0 or more spaces
  IFS='\t' a tab
and so on...

Then you need to make the file available from within LyX. The easiest
way is to use the include feature (Insert > Include File).

I only have tested the program on a simple file but it appears to
work. You can also have different numbers of entries on each line.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: A suggestion or a wish?

2001-05-01 Thread Stefano Ghirlanda

EagleIce <[EMAIL PROTECTED]> writes:

> Hi!
> 
> Open your documents in a text editor and you see *all* of the codes!

But you will *not* see LaTeX since .lyx files are not written in
LaTeX (apart the math and what you explicitely inserted as TeX).

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: pybliographic

2001-05-03 Thread Stefano Ghirlanda

Peter Suetterlin <[EMAIL PROTECTED]> writes:

> > Have a look at Nelson Beebe's suite of scripts to control
> > a set of bib files, I found it quite useful.
> 
> Probably the way to go.

If that does not satisfy you and you are willing to installa a couple
of Perl modules, I have some sort of hack that more or less does the
job... 

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: LyX on lightweight OS (EPOC)

2001-05-24 Thread Stefano Ghirlanda

Dave <[EMAIL PROTECTED]> writes:

> I really like LyX, and I use it for all of my writing.  I was considering
> buying a Psion Series 5mx, or a series 7 if I could afford it.  I was
> wondering if there was a way to port LyX into a lightweight operating
> system like EPOC, or Windows CE.  I understand that LaTeX is a large
> package...  I was wondering if anybody has though of this, or if there are
> some alternatives that are similar (WYSIWYM kind of things.)  Thanks for
> your time.

Maybe you would only need the WYSIWYM part of LyX on the Psion, LaTeX is
only needed for formatting and printing. 

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: lyx & xfig

2001-05-30 Thread Stefano Ghirlanda

Matias Freytes <[EMAIL PROTECTED]> writes:

>   I´ve used xfig for a while. A few days ago I installed a
> newer version and I couldnt export eps files any longer. 

What version? I don't think there has been ever any idea of taking eps
export out of xfig.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: lyx & xfig

2001-05-30 Thread Stefano Ghirlanda

Matias Freytes <[EMAIL PROTECTED]> writes:

> Hello,
> 
> > >   I´ve used xfig for a while. A few days ago I installed a
> > > newer version and I couldnt export eps files any longer. 
> > 
> > What version? I don't think there has been ever any idea of taking eps
> > export out of xfig.
> 
> I have Xfig 3.2.3 patchlevel beta-1 (Protocol 3.2) and when I try
> to export eps I get the following error message:
>Unknown graphics language eps
>Known languages are: acad box epic eepic eepicemu gif ibmgl
>   jpeg latex pcx pic pitex

It seems that you are missing support for PostScript in fig2dev. What
is your version of fig2dev? What happens if you try to run it from the
command line (e.g. fig2dev -L eps myfile.fig > myfile.eps)?
Is postscript generally working on your system? (e.g., can you see the
postscript preview in LyX?)

Look at www.lyx.org for new versions.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: lyx-server examples

2001-05-31 Thread Stefano Ghirlanda

Guenter Milde <[EMAIL PROTECTED]> writes:

> Does anybody know, where I can find this file

It's in the LyX source distribution.

> and whether there are examplefiles also for other scripting
> languages (perl, slang, python)?

I have written a Perl class some time ago for this. Here is an example
of the usage:

use LyX::Client; 
$lyx->new("clientname"); 
$lyx->command("self-insert", "this should appear in LyX"); 

It can be downloaded from: 

http://ethology.zool.su.se/~stefano/software/#client

NOTE that I have currently no time to maintain it. It has worked for
me on a number of occasions but there is no guarantee that it will
work for you. I know for sure that it does not work on Solaris due to
file locking issues. 

Also, I wrote LyX::Client as part of a much bigger project (still in
the design stage unfortunately). For this reason it tries to be as
robust as possible (e.g. error detection, supports multiple clients
reading and writing to the lyxpipes), which also mean that it might be
overkill for some purposes. For very simple operation something like

 echo $COMMAND > ~/.lyxpipe.in

(or its equivalnet in your favourite language) might be enough.

This said, you are welcome to download LyX::Client and tell me if it
works for you. It's GPL, so you can modify it at your own will. There
is also a fairly complete manual page.

Now that I think of it, I know the lyxrc file format has changed since
when I wrote the client. This may or may not cause trouble, I haven't
tried. It should not be difficult to modify the lyxrc function in
LyX::Client to reflect these changes.

-- 
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
  email: you know it already, tel: +46-8-164055, fax:+46-8-167715
 the free science campaign: http://ethology.zool.su.se/freescience



Re: Electric/Electronic template

1999-03-20 Thread Stefano Ghirlanda

> I want to write electric/electronic documents, with circuits (BJT, 
> MOSFET, etc.) but I have no idea how to do that. I want to write the 
> text and then include the circuits. Any idea? How to draw circuits under 
> Unix? And how to draw boxes Visio-like?

Ciao Paolo,
the drawing program xfig comes, in latest versions (>=3.2), with libraries
that contain pre-drawn objects, and one of these is for electrical
circuits. If you are using Linux, chances are that you already have
xfig, try "man xfig". Otherwise, you can check the contrib directory of
your distribution. As a last resource:

ftp://ftp.x.org/contrib/applications/drawing_tools/xfig

The xfig figures can then be exported as ps or eps files for inclusion in
Lyx/latex documents.

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



mailing list question

1999-03-22 Thread Stefano Ghirlanda

Hi,
I used to sort mails from this list according to the X-Loop field in the
mail header... this seems not to be set by the new list server.
Should I rely on the Cc field, or does anyone have a better suggestion?

thanks, Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



Re: mailing list question

1999-03-22 Thread Stefano Ghirlanda


> What criteria do you want to use for sorting?  What info was in the X-Loop
> field?  

the X-Loop was:

X-Loop: [EMAIL PROTECTED]

that unambiguously identified mails from the list.
Now I see that this information is most frequently in the Cc or To fields,
depending whether people post or reply to posts, but I'm not sure these
are the only possibilities.

Thanks for your help,
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se
 



Re: Caption font size

1999-03-23 Thread Stefano Ghirlanda

Hi James,

> I have a problem with the rather long captions that accompany my figure
> and table floats.  On some pages it is difficult to distinguish where the
> caption ends and the body text begins. Does anyone know how I can change
> the appearance of the caption text in the float (globally) so that it is
> different to the main body text.
> 
> I am open to suggestions of how to achieve the distinction but it must be
> done globally as I have hundreds of pages and figures (scarily big thesis
> document).

You can use the caption2 letex package. For example, to achieve smaller
text in captions, put this in the latex preamble of your Lyx documents:

\usepackage[small]{caption2}

Of course, you must have the package... in this case you also have the
documentation, which will explain you other caption manipulations
possible.

Hope it helps,
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



ttf fonts

1999-04-21 Thread Stefano Ghirlanda

Hi,
I am having some trouble with ttf fonts in lyx 1.0.0 (let me know if
these problems are fixed in later versions). xfstt works, I think: I
can use fonts in Netscape and they show up in xfontsel.
One problem is that the font I would like to use is called times new
roman, and lyx doesn't seem to like spaces in the font names (set in
my lyxrc):

stefano: stefano> lyx
LyX: Unknown tag `new' [around line 190 of file ~/.lyx/lyxrc]
LyX: Unknown tag `roman' [around line 191 of file ~/.lyx/lyxrc]

If I quote the name, "-ttf-times new roman", I get: 

No font matches request. Using 'fixed'.
Start LyX as 'lyx -dbg 515' to get more information.

Using -dbg 515 doesn't prove illuminating in this case, I just get:

Font 'Roman, Medium, Upright, Normal' matched by
fixed

I am using linux (redhat 5.2). Thanks a lot for your time,
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



Re: ttf fonts

1999-04-21 Thread Stefano Ghirlanda

> and what does
>   xlsfonts -fn '-ttf-times new roman-*'
> say?

it indeed says "unmatched", but why do I see the font in xfontsel?
And it works in netscape...
Hmmm...

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se





Re: ttf fonts

1999-04-22 Thread Stefano Ghirlanda

Tony,

> do you have \screen_font_scalable false in your lyxrc? If so, try
> removing it. This is what caused problems with my config, and caused lyx
> to dfault to fixed.

Yes! Yes! That was it. Thanks a lot.
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



text in math in FoilTeX

1999-04-22 Thread Stefano Ghirlanda

Hi,
I'm using the FoilTex class and I need to put some text in math
environments. I noticed two things when using ctrl-m (\textrm in latex) to
do this:

1) the text in the lyx window is not at the same font and size as text in
standard environment.

2) this persists in the ps document. The size is correct here but the font
looks as computer modern.

I guess that the second point is due to FoilTeX forgetting to redefine
\textrm or something similar. I am also not sure if this should be done,
in fact, since typing in latex one can ask for \textsf instead of \textrm.
Anyway, one can solve the problem in the ps output by using
\renewcommand{\textrm}{\textsf} in the preamble. I do not know how to
adjust the screen font, though.

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se




Re: Word counting options

1999-04-22 Thread Stefano Ghirlanda

Hi all,
the simplest way I found to word-count documents is to export to ascii (to
get read of latex non-words) and using then wc (standard unix utility).
This is fairly quick, but I welcome better suggestion (although I think
the minimal effort is one command within lyx + one outside lyx).
Stefano



RE: sub and superscripts

1999-05-06 Thread Stefano Ghirlanda

Hi,

> > Could you tell me how can I put subscripts and superscripts?
> > I need to put that not in equations, but yes in units like
> > square meters, etc.
> 
> The quickest way I've found to do this is to use "Math Mode."  When you
> need to type "square meters," for instance, you can do this:

(explanation deleted)

A slighlty faster way than what has been explained is to enter the
sub/superscript *only* in math mode. Like that you don't have to switch
back into text mode inside the math mode. For example, to type square
meters:

m Ctrl-m ^2 space space 

("space space" is only to exit from math mode quickly)

Hope it helps,
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



lyxexport: exporting files from LyX

1999-07-23 Thread Stefano Ghirlanda


lyxexport is a program that contacts a running LyX, or starts one, to
export files in various formats:

> lyxexport --ps myfile.lyx

Currently supported formats are: ps, dvi, latex, ascii, pdf.
An option to count words is also present:

> lyxexport --count myfile.lyx
myfile: 2500 words on 500 lines

lyxexport comes with detailed documentation, see the README file in the
distribution. The manpage is also online at the site below.

*IMPORTANT NOTE*:
lyxexport cannot be used with LyX 1.0.4 without applying a patch AND
installing the LyX::Client perl module (see below for both).
To use with other 1.0.x versions of LyX, another patch must be applied.
This means that it is some work to install lyxexport. Since such a feature
has been requested many times, however, I make the software available now.
This situation is not likely to improve before the next stable LyX series
of realeses (1.2.x or whatever).

*THIS IS BETA SOFTWARE*:
lyxexport should not delete your files since it always works on copies of
them, but I guarantee nothing.

I welcome suggestions for improvement and bug reports.
You can find lyxexport and the other needed software at:

http://rerumnatura.zool.su.se/stefano/software

Thanks,
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



Re: Default Background Color

1999-08-19 Thread Stefano Ghirlanda

Hi,

> One used to be able to select the default background color with teh
> commandline option of -BackgroundColor --- what happened to this option
> in version 1.0*? 
> 
> If I am willing to recompile lyx, what changes should I make to get this
> option working again? 

I don't know about command lines options, but \background_colour yourcolor
in the lyxrc file does the job.

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



Re: [Q]PS/Latex figures, natbib (bibtex)

1999-08-25 Thread Stefano Ghirlanda

Hi Jose,

>   I'm having some trouble with lyx. Lately, I have written a document
> with some figures done in xfig. In order to typeset some greek letters, 
> I used the export as PS+latex option. This works fine, but the preview of
> the document shows the latex typset writing appearing all over the shop. I
> have not printed this file, so I don't know whether this will be a problem
> when printed or not (xfig tends to show wrong figures on the screen, you try
> to sort it out for 3 weeks, only to find out that the initial version prints
> out fine :-/). Or is there any trick to place figure annotations (can you
> associate an annotation with an object, say a line?)?.

You can try the psfrag package, it should come with your latex
distribution. With it you can put normal text in the figs and then define
arbitrary latex constructs to replace it, e.g. "fx" -> $f(x)$ or "intfx"
-> $\int f(x)\,dx$ or whatever.

>   Then there's the bibliography. Using natbib abbrvbib.bst (not too
> sure about the spelling), I want to have references of the likes of [S.
> Bloke(1999)]. I get something similar, but with all the authors after the
> date. as in [S. Bloke(1999)S. Bloke, F. Sinatra, B. Yeltsin]. I was trying
> to read through natbib's documentation, but it transpires that  you choose
> the effect you want every time cite something, by using a variety of \cite{}
> constructs. Is there any way around this from lyx?

You have to explicitely insert \citet{} or \citep{} commands marked as red
text, the LyX builtin cite cooresponds only to plain \cite{}.

Cheers,
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se



script-sized math text?

1999-09-09 Thread Stefano Ghirlanda

Hi,
I'm trying to have a small piece of text an an exponent, but math-text
mode seems insensitive to the "context" where it is invoked so that it
always shows up in the same size... is this a known problem, latex
limitation or can I achieve somehow small text in exponents?
Thanks a lot,
Stefano

 Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
   Support Free Science, look at: http://rerumnatura.zool.su.se