Re: latin2 keyboard in LyX 1.1.6fix1

2001-05-11 Thread Matej Cepl

I am sorry, I forgot to send this to the list as well.

Matej

 Date: Fri, 11 May 2001 00:39:30 -0400
 From: Matej Cepl matej
 Subject: Re: latin2 keyboard in LyX 1.1.6fix1
 To: Roman Maurer [EMAIL PROTECTED]
 
 On Wed, May 09, 2001 at 08:31:36AM +0200, Roman Maurer wrote:
  Matej Cepl wrote:
   
   Then tell me, pray, how to get working Czech keyboard in LyX with well
   behaving X with localized keyboard? I have never managed to do that :-(
  
  Patch the file src/kbsequence.C for LyX 1.1.6fix1 with this patch and
  recompile it.  It should work from then on.
 
 Well, now I have spent two hours to create my debugging  version of lyx
 (non-stripped binary has 36M! -- boy, we have grown up :-), so that I
 could create you this beautiful backtrace of core dump. What do you
 think about that?
 
 Thanks for effort, anyway!
 
 Matej
 
 Starting program: /usr/src/redhat/BUILD/lyx-1.1.6fix1/src/./lyx 
 [New Thread 1024 (LWP 1064)]
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1024 (LWP 1064)]
 0x0 in ?? ()
 Current language:  auto; currently c
 (gdb) bt
 #0  0x0 in ?? ()
 #1  0x83679aa in __user_type_info::dyncast (this=0x84b7f0c, boff=0, 
 target=@0x84b7f0c, objptr=0xbfffe824, subtype=@0x84ad940, subptr=0xbfffe824)
 #2  0x8367347 in __dynamic_cast_2 (from=0x836d370 stringbuf type_info function,
 to=0x836d370 stringbuf type_info function, boff=0, address=0xbfffe824,
 sub=0x80520b4 streambuf type_info function, subptr=0xbfffe824)
 #3  0x8362260 in lyx::tempName (dir=@0xbfffea10, mask=@0xbfffea20)
 at /usr/include/g++-3/sstream:65
 #4  0x834fc91 in CreateTmpDir (tempdir=@0xbfffea10, mask=@0xbfffea20)
 at filetools.C:445
 #5  0x8350831 in CreateLyXTmpDir (deflt=@0x84b4e34)
 at /usr/include/g++-3/std/bastring.h:183
 #6  0x815607b in LyX::init (this=0xb7c0, argv=0xb884, gui=true)
 at /usr/include/g++-3/std/bastring.h:171
 #7  0x814e50c in LyX::LyX (this=0x0, argc=0xb820, argv=0xb884)
 at ../src/lyx_main.C:104
 #8  0x81b815c in main (argc=1, argv=0xb884) at ../src/main.C:40
 #9  0x40149a7c in __libc_start_main (main=0x81b7fd0 main, argc=1, 
 ubp_av=0xb884, init=0x80501fc _init, fini=0x83fb50c _fini, 
 rtld_fini=0x4000d684 _dl_fini, stack_end=0xb87c)
 at ../sysdeps/generic/libc-start.c:111
 (gdb) 



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Andi

 During writing my thesis I ran into this problem:
 I use chemical reactions and numerical equations in the text. The
 problem is, to number the different equations in a different way, like:
 
 1+1=2(2.1)
 1+2=3(2.2)
 
 but for chemical reaction something like
 
 C+O2-CO2(R. 2.1)
 
 The equations and reactions are written in math-mode and the automatic
 numbering was done
 by using M-m n.

1. Put the following line in the preamble

\newcounter{reaction}
\numberwithin{reaction}{chapter}
\newcommand{\reaction}{\addtocounter{reaction}{1}\tag{R. \thereaction}}

2. Select Use ams math in the document dialog (in extra tab in 1.1.6).

3. At each reaction, write \reaction at the end (inside the math inset).

Note that when you reference a reaction, you will get 'R. 2.1'.

I´m sorry, but I think I´m too dummy. I´m not able to insert a \reaction inside the 
math
inset. The \ doesn´t work.But writing reaction in Tex-red works fine. That´s 
exactly
what I needed.

Thanks a lot

Andi




[alexey@chaos.ssu.runnet.ru] Feedback from www.lyx.org

2001-05-11 Thread Jean-Marc Lasgouttes


Can a fellow russian lyx user help Alexei?

JMarc

--- Start of forwarded message ---
Date: Fri, 11 May 2001 12:06:21 +0200
Message-Id: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Feedback from www.lyx.org
FROM: [EMAIL PROTECTED]


Alexey Shabunin ([EMAIL PROTECTED]) entered the 
following feedback message on the LyX home page:


I have a problem: I need switching between two languages in keybourd (English and 
Russian). But when I use Xkb it is not switched (only though Xmodmap) 
Is it possible to use Xkb for switching keybourd maps at LyX? 
 

--- End of forwarded message ---



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Dekel Tsur

On Mon, Apr 23, 2001 at 11:47:58AM +0200, Andi wrote:
 3. At each reaction, write \reaction at the end (inside the math inset).
 
 Note that when you reference a reaction, you will get 'R. 2.1'.
 
 I´m sorry, but I think I´m too dummy. I´m not able to insert a \reaction inside the 
math
 inset. The \ doesn´t work.But writing reaction in Tex-red works fine. That´s 
exactly
 what I needed.

What I meant is that you type \reaction in the math inset. On screen you see 
only reaction (in red).



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Andreas Döring

Warning
Could not process message with given Content-Type: 
text/html; charset=cp1255




Re: math fonts in foiltex

2001-05-11 Thread Herbert Voss



Bruce Veidt wrote:

 I have been following Allan Rae's presentations based on foiltex
 (http://www.devel.lyx.org/~rae/) to make my own presentations.
 It is easy to do and the results are very nice.
 
 One little problem though.  The text font used is sans serif and
 the math font (both text and numbers) is roman.  It would be
 nice to have consistency throughout.  Is there a way to force
 latex to use sans serif for numbers in math?
 
 I have tried M-c-s in math-mode but this only works with 
 text, not numbers.
 
 I have resorted to ERT: e.g. $10^\mathsf{6}$.
 This gives pretty pdf but ugly lyx.

have a look at package hvmaths, available at ctan

Herbert

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




List of Algorithms - Caption Modification

2001-05-11 Thread Brett Jones

I have a style file for my univerity thesis format, which for the most part does
the job.

Only trouble is that if redefines the lists of figures and tables and doesn't
provide for lists of algorithms.  I would, of course, like the list of
algorithms to match the others, but I know almost nothing about latex.  I copied
all references to lists of tables and figures and changed them to refer to
algorithms, and it almost works.

The last problem is that the code that makes the lot and lof double spaced
doesn't seem to run on the algorithms.  I've included just this code.  Can
anyone tell me why it is not being run on the algorithm captions?

(I can also provide the whole style file if it would help.)

Thanks for any help,

Brett Jones


 applicable code --

% LIST OF FIGURES
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{LIST OF FIGURES\@mkboth
  {LIST OF FIGURES}{LIST OF FIGURES}}
 \singlespace
 \@starttoc{lof}\if@restonecol\twocolumn\fi
 \addtocontents{lof}{\noindent Figure \hfill Page}
 \addtocontents{lof}{\vskip 2ex}
 \doublespace
}

% indentation of figure caption in LOF
\def\l@figure{\@dottedtocline{0}{0em}{3em}}

% LIST OF TABLES
%
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{LIST OF TABLES\@mkboth
   {LIST OF TABLES}{LIST OF TABLES}}
 \singlespace
 \@starttoc{lot}\if@restonecol\twocolumn\fi
 \addtocontents{lot}{\noindent Table \hfill Page} %%
 \addtocontents{lot}{\vskip 2ex}
 \doublespace
}

% LIST OF ALGORITHMS
%
\def\listofalgorithms{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{LIST OF ALGORITHMS\@mkboth
   {LIST OF ALGORITHMS}{LIST OF ALGORITHMS}}
 \singlespace
 \@starttoc{loa}\if@restonecol\twocolumn\fi
 \addtocontents{loa}{\noindent Algorithm \hfill Page} %%
 \addtocontents{loa}{\vskip 2ex}
 \doublespace
}

% indentation of table caption in LOT
\let\l@table\l@figure
\let\l@algorithm\l@figure

\def\b{}  % a dummy definition used below

% Add an extra space between 2 captions in list of figures or tables.
% Also, place a period after the number.
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\hfill\csname
  the#1\endcsname.\hspace{1em}}{\ignorespaces #2}}
  \addtocontents{\csname ext@#1\endcsname}{\vskip 2ex}

  % enable list of tables/figures when the first table/figure is found
  \ifnum \csname c@#1\endcsname = 1
 \immediate\write\@auxout{\string\globaldefs1} % enable LOT/F in aux file
 \immediate\write\@auxout{\string\b\csname ext@#1\endcsname true}
 \immediate\write\@auxout{\string\globaldefs0}
  \fi
  \begingroup
  \@parboxrestore
  \normalsize
  \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
  \endgroup}




Re: latin2 keyboard in LyX 1.1.6fix1

2001-05-11 Thread Matej Cepl

On Fri, May 11, 2001 at 08:22:29AM +0200, Roman Maurer wrote:
 
 What does lyx -dbg key say?

Well, actually nothing -- it cores dump before, it manages to say 
anything. :-)

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10
Somerville, Ma 02143
(617) 623-1488




LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

Hello all!

I am a great admirer of LyX, as a writer and translator I just love working 
with it. And now I managed to install 1.1.6fix1 from source on my SuSE 7.1, 
Ilove it! But there's something weird here I think, the sub-menus Import / 
Export are empty, and the preview for ps / dvi are missing. Why id this?
 
Since I work on two different (Linux) computers in two different places, and 
I haven't been able to work with the same .lyx files between those without 
messing up the files, because the one in my home box is SuSE 7.1 with LyX 
1.1.5fix1, and at work it's Caldera eDesktop 2.4 with the incredibly ugly 
KLyX. Now I'm gonna give it a try to install 1.1.6fix1 on the eDesktop box 
too, even though I have bad experience trying to install non-Caldera packages 
in the Caldera dist.

Cheers,

ei


-- 
@~~~ EagleIce  [EMAIL PROTECTED]  Running SuSE Linux 7.1 ~~~@
@~ Webmaster http://erin.se ~~~ http://www.inspired-leadership.com ~@









Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread Matej Cepl

On Fri, May 11, 2001 at 05:49:47PM +0200, EagleIce wrote:
 Hello all!
 
 I am a great admirer of LyX, as a writer and translator I just love working 
 with it. And now I managed to install 1.1.6fix1 from source on my SuSE 7.1, 
 Ilove it! But there's something weird here I think, the sub-menus Import / 
 Export are empty, and the preview for ps / dvi are missing. Why id this?

Try Edit/Reconfigure and restart LyX. If it doesn't work, what do you 
have in Edit/Preferences for DVI and PS as viewers/converters?

Matej



Re: Numbering a figure as an equation

2001-05-11 Thread Dekel Tsur

On Wed, May 09, 2001 at 09:07:21PM +0200, Herbert Voss wrote:
 just before you insert the image, means between first \hfill
 and image in tex(red)
 
 \parbox{the width}{
 
 and just behind the image the closing parenthesis
 }
 
 for the width have a look at the boundig box values
 in your eps-file. maybe the fifth line in the file.
 choose the x-value and insert it as width, for example
 \parbox{300pt}{

Why not let latex compute the space ?
Here is an alternative way to do what you want:
1. Put the following in latex mode:
\begin{equation}\begin{array}{c}\mbox{

2. Insert figure (as inline) 

3. Put the following (in latex mode)
}\end{array}

4. Insert label

5. Put the following (in latex mode)
\end{equation}



Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

On Friday 11 May 2001 18:06, Matej Cepl wrote:
 Try Edit/Reconfigure and restart LyX. 
I've tried that several times, no difference.

 If it doesn't work, what do you
 have in Edit/Preferences for DVI and PS as viewers/converters?
Nothing at all!

One peculiar thing is that LyX starts incredibly much faster now than 
1.1.5fix1, is it supposed to be like that or could it be that there are 
several features missing?

Observe that the install went without any error message at all.

Thank's for your reply.
Cheers,
ei

-- 
@~~~ EagleIce  [EMAIL PROTECTED]  Running SuSE Linux 7.1 ~~~@
@~ Webmaster http://erin.se ~~~ http://www.inspired-leadership.com ~@









Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

On Friday 11 May 2001 18:06, Matej Cepl wrote:
 Try Edit/Reconfigure and restart LyX. 
Attached you shall find my conf files.

Matej


### This file is part of
### 
###  LyX, The Document Processor
###
###  Copyright 1995 Matthias Ettrich
###  Copyright 1995-2000 The LyX Team.
###
### 

# This file is written by LyX, if you want to make your own
# modifications you should do them from inside LyX and save


#
# MISC SECTION ##
#

# Set to false to inhibit the startup banner.
\show_banner false
#\kbmap_primary "/usr/share/lyx/kbd/czech-y.kmap"

#
# SCREEN  FONTS SECTION 
#

\screen_dpi 75
\cursor_follows_scrollbar true
\screen_font_roman "-*-utopia"
\screen_font_scalable false
\screen_font_encoding "iso8859-2"

#
# COLOR SECTION ###
#


#
# PRINTER SECTION ###
#

\print_spool_command "lpr"
\print_spool_printerprefix "-P"

#
# EXPORT SECTION 
#


#
# TEX SECTION ###
#


#
# FILE SECTION ##
#

\document_path "/home/matej/docs/"
\num_lastfiles 9

#
# ASCII EXPORT SECTION ##
#

\ascii_roff_command "groff -t -Tlatin2 $$FName"

#
# SPELLCHECKER SECTION ##
#

\spell_command "aspell"
\use_escape_chars true
\escape_chars ""
\use_personal_dictionary true
\personal_dictionary ".aspell.czech"
\use_input_encoding true

#
# LANGUAGE SUPPORT SECTION ##
#

\language_auto_begin false
\language_auto_end false

#
# 2nd MISC SUPPORT SECTION ##
#

\override_x_deadkeys false
\screen_font_encoding_menu "iso8859-2"

#
# FORMATS SECTION ##
#

\viewer "pdf" "gv"
\viewer "pdf2" "gv"
\viewer "ps" "gv"
\viewer "word" "wvHtml"

#
# CONVERTERS SECTION ##
#

\converter "ps" "pdf" "ps2pdf $$i $$o" ""
\converter "word" "html" "wvHthml $$i  $$o" ""


# This file has been automatically generated by LyX' lib/configure
# script. It contains default settings that have been determined by
# examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
# want to customize LyX, make a copy of the file LYXDIR/lyxrc as
# ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
# override the values given here.
\Format text  txt   ASCII   A
\Format textparagraph txt ASCII(paragraphs) 
\Format docbook  sgml   DocBook B
\Format dvi   dvi   DVI D
\Format eps   eps   EPS 
\Format fax   Fax 
\Format gif  gifGIF 
\Format html  html  HTMLH
\Format jpg  jpgJPEG
\Format latex tex   LaTeX   L
\Format linuxdoc sgml   LinuxDocx
\Format lyx  lyxLyX 
\Format literate nw NoWeb   N
\Format pdf   pdf   PDF P
\Format pdf2  pdf  PDF (pdflatex) F
\Format png   png   PNG 
\Format pspsPostscript  t
\Format program   Program 
\Format word  doc   WordW


\converter latex dvi latex $$i latex
\converter latex pdf2 pdflatex $$i latex
\converter latex html tth -t -e2 -L$$b  $$i  $$o originaldir,needaux
\converter literate latex none 
\converter dvi ps dvips -o $$o $$i 
\converter ps pdf ps2pdf $$i 
\converter ps fax none 
\converter linuxdoc lyx none 
\converter linuxdoc latex none 
\converter linuxdoc dvi none 
\converter linuxdoc html none 
\converter docbook dvi none 
\converter docbook html none 

\converter latex lyx reLyX -f $$i 
\converter literate lyx noweb2lyx $$i $$o 
\converter html latex none 
\converter word latex wvCleanLatex $$i $$o 

\converter gif eps convert $$i $$o 
\converter png eps convert $$i $$o 
\converter jpg eps convert $$i $$o 
\converter gif png convert $$i $$o 

\viewer dvi xdvi
\viewer html netscape
\viewer pdf acroread
\viewer ps gv -swap
\viewer eps gv

\ps_command gs
\ascii_roff_command groff -t -Tlatin1 $$FName
\chktex_command chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
\spell_command ispell
\print_spool_command lp
\print_spool_printerprefix -d 
\font_encoding T1



Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

Hello lyxers,
 I am trying to write a figure with some chemical 
substances, something like :
  _
/  \\
\\_/ 
and I was wondering if there is some (exotic) package
available for this kind of figures.If not, I'll have
to draw iy myself, but I was hoping somebody did that
already .
  Cristi

-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Herbert Voss



Mitrana Cristian wrote:

 Hello lyxers,
  I am trying to write a figure with some chemical 
 substances, something like :
   _
 /  \\
 \\_/ 
 and I was wondering if there is some (exotic) package
 available for this kind of figures.If not, I'll have
 to draw iy myself, but I was hoping somebody did that
 already .

look at
http://www.dante.de/CTAN/help/Catalogue/brief.html
there are many chemical packages

Herbert



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




font size

2001-05-11 Thread Frederic Leymarie

Hi


in the lyx doucment layout
under Font size I do not have smaller fonts the 10pts available
(for the article class).

But I need to use 9pts font size for a conference paper.

How can I make this font size available?
(via the document layout ?)

thanks
Frederic





Re: font size

2001-05-11 Thread Kayvan A. Sylvan

On Fri, May 11, 2001 at 02:59:16PM -0400, Frederic Leymarie wrote:
 Hi
 
 
 in the lyx doucment layout
 under Font size I do not have smaller fonts the 10pts available
 (for the article class).
 
 But I need to use 9pts font size for a conference paper.
 
 How can I make this font size available?
 (via the document layout ?)
 
 thanks
 Frederic
 

Install the tetex-extras RPM from ftp://ftp.sylvan.com/pub/tetex and
then reconfigure lyx. You should then have the extra layouts,
one of them being extarticle, which has the smaller font size.

This is based on Herbert Voss's web pages (http://perce.de/lyx/)

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
 On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
  Hello lyxers,
   I am trying to write a figure with some chemical 
  substances, something like :
_
  /  \\
  \\_/ 
  and I was wondering if there is some (exotic) package

 Not sure, but did you tried 
 $CTAN/macros/latex/contrib/supported/chemsym or try 
 www.ctan.org/help/Catalogue and there search for chemistry or 
 something appropriate.
 
 Matej
I looked over the chemsym package but all it does is 
nice typesetting of the chemical equations.
 Thanks anyway, to you and Mr. Herbert Voss 
  for the reply.

I'll just have to be less lazy and draw myself those
figures :).
   
  Cristi
  
-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Herbert Voss

Mitrana Cristian wrote:

 On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
 
 On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
 
 Hello lyxers,
  I am trying to write a figure with some chemical 
 substances, something like :
   _
 /  \\
 \\_/ 
 and I was wondering if there is some (exotic) package
 
 
 Not sure, but did you tried 
 $CTAN/macros/latex/contrib/supported/chemsym or try 
 www.ctan.org/help/Catalogue and there search for chemistry or 
 something appropriate.
 
 Matej
 
 I looked over the chemsym package but all it does is 
 nice typesetting of the chemical equations.
  Thanks anyway, to you and Mr. Herbert Voss 
   for the reply.

I have no idea about chemistry (since my schooldays ... ;-)
but the following picture take only two minutes. one of
them for installing chemtex.sty

the code was in tex(red)

\initial
\parbox{.3\textwidth}{\hetisix{Q}{Q}{Q}{Q}{Q}{Q}{O}{Q}{O}
\xi=-85 \fuseup{Q}{Q}{Q}{Q}{D}{Q}{D}{Q}{D}}


Herbert

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




Re: Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

On Thu, May 10, 2001 at 11:05:06PM +0300, Mitrana Cristian wrote:
 On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
I am trying to write a figure with some chemical 
   substances, something like :
 _
   /  \\
   \\_/ 
   and I was wondering if there is some (exotic) package
 
It's me again :), this time done some search in the CTAN
catalogue and found the xymtex package that does the
tricky figures and suites me right. So, if anybody 
need this in the future..

 thanks for the support and happy lyx-ing, 
 Cristi
-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Kenward Vaughan

On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
 Hello lyxers,
  I am trying to write a figure with some chemical 
 substances, something like :
   _
 /  \\
 \\_/ 
 and I was wondering if there is some (exotic) package
 available for this kind of figures.If not, I'll have
 to draw iy myself, but I was hoping somebody did that
 already .

Ochem works quite well.  It makes chemical structures which IMHO are
distinctly superior to regular drawing programs.  The syntax takes some
effort to learn, but I have also created some macros which simplify certain
types.  It has the drawback of not (yet) working with files which contain
other image type (eps, etc.).  

If your requirements are really simple then it should work well without a
lot of effort.  I would suggest this route if you are going to be doing this
a lot.

I have created a script for exporting Lyx files to PS under (1.1.16fix1),
both for viewing and printing.  If you wish I can send it to you.

There are also a number of drawing programs which can export to ps, which
you can place as an image.  Look on SAL for these.  While I may not prefer
their results over Ochem, most people aren't sticklers (sp?) like me about
the results.  :-) 

http://sal.kachinatech.com/Z/2/index.shtml
 
Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Two definitions after each other

2001-05-11 Thread Otto Tronarp

Hi,

how can I have two definitions after eachother in AMS-article. I wan't 
to have somthing like this:
Definition 1. My 1st definition
Definition 2. My 2nd definition

If i just press enter after my 1st definition I just continue to write 
in the 1st environment so I don't get Definition 2. If I change the 
environment depth I can get Definition 2. to appear but it produces the 
following LaTeX code:

\begin{defn}
My 1st definition
\begin{defn}
My 2nd definition
\end{defn}
\end{defn}

and what I wan't is

\begin{defn}
My 1st definition
\end{defn}
\begin{defn}
My 2nd definition
\end{defn}

How can I achieve that?

Otto





Re: math fonts in foiltex

2001-05-11 Thread Bruce Veidt

Herbert Voss wrote:
 
 Bruce Veidt wrote:
 
  I have been following Allan Rae's presentations based on foiltex
  (http://www.devel.lyx.org/~rae/) to make my own presentations.
  It is easy to do and the results are very nice.
 
  One little problem though.  The text font used is sans serif and
  the math font (both text and numbers) is roman.  It would be
  nice to have consistency throughout.  Is there a way to force
  latex to use sans serif for numbers in math?
 
  I have tried M-c-s in math-mode but this only works with
  text, not numbers.
 
  I have resorted to ERT: e.g. $10^\mathsf{6}$.
  This gives pretty pdf but ugly lyx.
 
 have a look at package hvmaths, available at ctan

I saw that too, but the free version has only bitmap fonts.

The installed fonts already have the sans-serif numeral 
characters, I just want to access them in a convenient
way from within a math environment.  I was hoping that 
someone would have a preamble script that would do this
so that ERT is not necessary.

So, here is a request to the developers: please modify the M-c s code
so that it will accept numerals in addition to alphabetic
characters.


Thanks,
-- 
Bruce Veidt 
National Research Council   [EMAIL PROTECTED]
Box 248 (250)493-2277
Penticton, BC  V2A 6K3  fax: 493-7767
Canada



Re: latin2 keyboard in LyX 1.1.6fix1

2001-05-11 Thread Matej Cepl

I am sorry, I forgot to send this to the list as well.

Matej

 Date: Fri, 11 May 2001 00:39:30 -0400
 From: Matej Cepl matej
 Subject: Re: latin2 keyboard in LyX 1.1.6fix1
 To: Roman Maurer [EMAIL PROTECTED]
 
 On Wed, May 09, 2001 at 08:31:36AM +0200, Roman Maurer wrote:
  Matej Cepl wrote:
   
   Then tell me, pray, how to get working Czech keyboard in LyX with well
   behaving X with localized keyboard? I have never managed to do that :-(
  
  Patch the file src/kbsequence.C for LyX 1.1.6fix1 with this patch and
  recompile it.  It should work from then on.
 
 Well, now I have spent two hours to create my debugging  version of lyx
 (non-stripped binary has 36M! -- boy, we have grown up :-), so that I
 could create you this beautiful backtrace of core dump. What do you
 think about that?
 
 Thanks for effort, anyway!
 
 Matej
 
 Starting program: /usr/src/redhat/BUILD/lyx-1.1.6fix1/src/./lyx 
 [New Thread 1024 (LWP 1064)]
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1024 (LWP 1064)]
 0x0 in ?? ()
 Current language:  auto; currently c
 (gdb) bt
 #0  0x0 in ?? ()
 #1  0x83679aa in __user_type_info::dyncast (this=0x84b7f0c, boff=0, 
 target=@0x84b7f0c, objptr=0xbfffe824, subtype=@0x84ad940, subptr=0xbfffe824)
 #2  0x8367347 in __dynamic_cast_2 (from=0x836d370 stringbuf type_info function,
 to=0x836d370 stringbuf type_info function, boff=0, address=0xbfffe824,
 sub=0x80520b4 streambuf type_info function, subptr=0xbfffe824)
 #3  0x8362260 in lyx::tempName (dir=@0xbfffea10, mask=@0xbfffea20)
 at /usr/include/g++-3/sstream:65
 #4  0x834fc91 in CreateTmpDir (tempdir=@0xbfffea10, mask=@0xbfffea20)
 at filetools.C:445
 #5  0x8350831 in CreateLyXTmpDir (deflt=@0x84b4e34)
 at /usr/include/g++-3/std/bastring.h:183
 #6  0x815607b in LyX::init (this=0xb7c0, argv=0xb884, gui=true)
 at /usr/include/g++-3/std/bastring.h:171
 #7  0x814e50c in LyX::LyX (this=0x0, argc=0xb820, argv=0xb884)
 at ../src/lyx_main.C:104
 #8  0x81b815c in main (argc=1, argv=0xb884) at ../src/main.C:40
 #9  0x40149a7c in __libc_start_main (main=0x81b7fd0 main, argc=1, 
 ubp_av=0xb884, init=0x80501fc _init, fini=0x83fb50c _fini, 
 rtld_fini=0x4000d684 _dl_fini, stack_end=0xb87c)
 at ../sysdeps/generic/libc-start.c:111
 (gdb) 



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Andi

 During writing my thesis I ran into this problem:
 I use chemical reactions and numerical equations in the text. The
 problem is, to number the different equations in a different way, like:
 
 1+1=2(2.1)
 1+2=3(2.2)
 
 but for chemical reaction something like
 
 C+O2-CO2(R. 2.1)
 
 The equations and reactions are written in math-mode and the automatic
 numbering was done
 by using M-m n.

1. Put the following line in the preamble

\newcounter{reaction}
\numberwithin{reaction}{chapter}
\newcommand{\reaction}{\addtocounter{reaction}{1}\tag{R. \thereaction}}

2. Select Use ams math in the document dialog (in extra tab in 1.1.6).

3. At each reaction, write \reaction at the end (inside the math inset).

Note that when you reference a reaction, you will get 'R. 2.1'.

I´m sorry, but I think I´m too dummy. I´m not able to insert a \reaction inside the 
math
inset. The \ doesn´t work.But writing reaction in Tex-red works fine. That´s 
exactly
what I needed.

Thanks a lot

Andi




[alexey@chaos.ssu.runnet.ru] Feedback from www.lyx.org

2001-05-11 Thread Jean-Marc Lasgouttes


Can a fellow russian lyx user help Alexei?

JMarc

--- Start of forwarded message ---
Date: Fri, 11 May 2001 12:06:21 +0200
Message-Id: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Feedback from www.lyx.org
FROM: [EMAIL PROTECTED]


Alexey Shabunin ([EMAIL PROTECTED]) entered the 
following feedback message on the LyX home page:


I have a problem: I need switching between two languages in keybourd (English and 
Russian). But when I use Xkb it is not switched (only though Xmodmap) 
Is it possible to use Xkb for switching keybourd maps at LyX? 
 

--- End of forwarded message ---



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Dekel Tsur

On Mon, Apr 23, 2001 at 11:47:58AM +0200, Andi wrote:
 3. At each reaction, write \reaction at the end (inside the math inset).
 
 Note that when you reference a reaction, you will get 'R. 2.1'.
 
 I´m sorry, but I think I´m too dummy. I´m not able to insert a \reaction inside the 
math
 inset. The \ doesn´t work.But writing reaction in Tex-red works fine. That´s 
exactly
 what I needed.

What I meant is that you type \reaction in the math inset. On screen you see 
only reaction (in red).



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Andreas Döring

Warning
Could not process message with given Content-Type: 
text/html; charset=cp1255




Re: math fonts in foiltex

2001-05-11 Thread Herbert Voss



Bruce Veidt wrote:

 I have been following Allan Rae's presentations based on foiltex
 (http://www.devel.lyx.org/~rae/) to make my own presentations.
 It is easy to do and the results are very nice.
 
 One little problem though.  The text font used is sans serif and
 the math font (both text and numbers) is roman.  It would be
 nice to have consistency throughout.  Is there a way to force
 latex to use sans serif for numbers in math?
 
 I have tried M-c-s in math-mode but this only works with 
 text, not numbers.
 
 I have resorted to ERT: e.g. $10^\mathsf{6}$.
 This gives pretty pdf but ugly lyx.

have a look at package hvmaths, available at ctan

Herbert

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




List of Algorithms - Caption Modification

2001-05-11 Thread Brett Jones

I have a style file for my univerity thesis format, which for the most part does
the job.

Only trouble is that if redefines the lists of figures and tables and doesn't
provide for lists of algorithms.  I would, of course, like the list of
algorithms to match the others, but I know almost nothing about latex.  I copied
all references to lists of tables and figures and changed them to refer to
algorithms, and it almost works.

The last problem is that the code that makes the lot and lof double spaced
doesn't seem to run on the algorithms.  I've included just this code.  Can
anyone tell me why it is not being run on the algorithm captions?

(I can also provide the whole style file if it would help.)

Thanks for any help,

Brett Jones


 applicable code --

% LIST OF FIGURES
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{LIST OF FIGURES\@mkboth
  {LIST OF FIGURES}{LIST OF FIGURES}}
 \singlespace
 \@starttoc{lof}\if@restonecol\twocolumn\fi
 \addtocontents{lof}{\noindent Figure \hfill Page}
 \addtocontents{lof}{\vskip 2ex}
 \doublespace
}

% indentation of figure caption in LOF
\def\l@figure{\@dottedtocline{0}{0em}{3em}}

% LIST OF TABLES
%
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{LIST OF TABLES\@mkboth
   {LIST OF TABLES}{LIST OF TABLES}}
 \singlespace
 \@starttoc{lot}\if@restonecol\twocolumn\fi
 \addtocontents{lot}{\noindent Table \hfill Page} %%
 \addtocontents{lot}{\vskip 2ex}
 \doublespace
}

% LIST OF ALGORITHMS
%
\def\listofalgorithms{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{LIST OF ALGORITHMS\@mkboth
   {LIST OF ALGORITHMS}{LIST OF ALGORITHMS}}
 \singlespace
 \@starttoc{loa}\if@restonecol\twocolumn\fi
 \addtocontents{loa}{\noindent Algorithm \hfill Page} %%
 \addtocontents{loa}{\vskip 2ex}
 \doublespace
}

% indentation of table caption in LOT
\let\l@table\l@figure
\let\l@algorithm\l@figure

\def\b{}  % a dummy definition used below

% Add an extra space between 2 captions in list of figures or tables.
% Also, place a period after the number.
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\hfill\csname
  the#1\endcsname.\hspace{1em}}{\ignorespaces #2}}
  \addtocontents{\csname ext@#1\endcsname}{\vskip 2ex}

  % enable list of tables/figures when the first table/figure is found
  \ifnum \csname c@#1\endcsname = 1
 \immediate\write\@auxout{\string\globaldefs1} % enable LOT/F in aux file
 \immediate\write\@auxout{\string\b\csname ext@#1\endcsname true}
 \immediate\write\@auxout{\string\globaldefs0}
  \fi
  \begingroup
  \@parboxrestore
  \normalsize
  \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
  \endgroup}




Re: latin2 keyboard in LyX 1.1.6fix1

2001-05-11 Thread Matej Cepl

On Fri, May 11, 2001 at 08:22:29AM +0200, Roman Maurer wrote:
 
 What does lyx -dbg key say?

Well, actually nothing -- it cores dump before, it manages to say 
anything. :-)

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10
Somerville, Ma 02143
(617) 623-1488




LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

Hello all!

I am a great admirer of LyX, as a writer and translator I just love working 
with it. And now I managed to install 1.1.6fix1 from source on my SuSE 7.1, 
Ilove it! But there's something weird here I think, the sub-menus Import / 
Export are empty, and the preview for ps / dvi are missing. Why id this?
 
Since I work on two different (Linux) computers in two different places, and 
I haven't been able to work with the same .lyx files between those without 
messing up the files, because the one in my home box is SuSE 7.1 with LyX 
1.1.5fix1, and at work it's Caldera eDesktop 2.4 with the incredibly ugly 
KLyX. Now I'm gonna give it a try to install 1.1.6fix1 on the eDesktop box 
too, even though I have bad experience trying to install non-Caldera packages 
in the Caldera dist.

Cheers,

ei


-- 
@~~~ EagleIce  [EMAIL PROTECTED]  Running SuSE Linux 7.1 ~~~@
@~ Webmaster http://erin.se ~~~ http://www.inspired-leadership.com ~@









Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread Matej Cepl

On Fri, May 11, 2001 at 05:49:47PM +0200, EagleIce wrote:
 Hello all!
 
 I am a great admirer of LyX, as a writer and translator I just love working 
 with it. And now I managed to install 1.1.6fix1 from source on my SuSE 7.1, 
 Ilove it! But there's something weird here I think, the sub-menus Import / 
 Export are empty, and the preview for ps / dvi are missing. Why id this?

Try Edit/Reconfigure and restart LyX. If it doesn't work, what do you 
have in Edit/Preferences for DVI and PS as viewers/converters?

Matej



Re: Numbering a figure as an equation

2001-05-11 Thread Dekel Tsur

On Wed, May 09, 2001 at 09:07:21PM +0200, Herbert Voss wrote:
 just before you insert the image, means between first \hfill
 and image in tex(red)
 
 \parbox{the width}{
 
 and just behind the image the closing parenthesis
 }
 
 for the width have a look at the boundig box values
 in your eps-file. maybe the fifth line in the file.
 choose the x-value and insert it as width, for example
 \parbox{300pt}{

Why not let latex compute the space ?
Here is an alternative way to do what you want:
1. Put the following in latex mode:
\begin{equation}\begin{array}{c}\mbox{

2. Insert figure (as inline) 

3. Put the following (in latex mode)
}\end{array}

4. Insert label

5. Put the following (in latex mode)
\end{equation}



Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

On Friday 11 May 2001 18:06, Matej Cepl wrote:
 Try Edit/Reconfigure and restart LyX. 
I've tried that several times, no difference.

 If it doesn't work, what do you
 have in Edit/Preferences for DVI and PS as viewers/converters?
Nothing at all!

One peculiar thing is that LyX starts incredibly much faster now than 
1.1.5fix1, is it supposed to be like that or could it be that there are 
several features missing?

Observe that the install went without any error message at all.

Thank's for your reply.
Cheers,
ei

-- 
@~~~ EagleIce  [EMAIL PROTECTED]  Running SuSE Linux 7.1 ~~~@
@~ Webmaster http://erin.se ~~~ http://www.inspired-leadership.com ~@









Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

On Friday 11 May 2001 18:06, Matej Cepl wrote:
 Try Edit/Reconfigure and restart LyX. 
Attached you shall find my conf files.

Matej


### This file is part of
### 
###  LyX, The Document Processor
###
###  Copyright 1995 Matthias Ettrich
###  Copyright 1995-2000 The LyX Team.
###
### 

# This file is written by LyX, if you want to make your own
# modifications you should do them from inside LyX and save


#
# MISC SECTION ##
#

# Set to false to inhibit the startup banner.
\show_banner false
#\kbmap_primary "/usr/share/lyx/kbd/czech-y.kmap"

#
# SCREEN  FONTS SECTION 
#

\screen_dpi 75
\cursor_follows_scrollbar true
\screen_font_roman "-*-utopia"
\screen_font_scalable false
\screen_font_encoding "iso8859-2"

#
# COLOR SECTION ###
#


#
# PRINTER SECTION ###
#

\print_spool_command "lpr"
\print_spool_printerprefix "-P"

#
# EXPORT SECTION 
#


#
# TEX SECTION ###
#


#
# FILE SECTION ##
#

\document_path "/home/matej/docs/"
\num_lastfiles 9

#
# ASCII EXPORT SECTION ##
#

\ascii_roff_command "groff -t -Tlatin2 $$FName"

#
# SPELLCHECKER SECTION ##
#

\spell_command "aspell"
\use_escape_chars true
\escape_chars ""
\use_personal_dictionary true
\personal_dictionary ".aspell.czech"
\use_input_encoding true

#
# LANGUAGE SUPPORT SECTION ##
#

\language_auto_begin false
\language_auto_end false

#
# 2nd MISC SUPPORT SECTION ##
#

\override_x_deadkeys false
\screen_font_encoding_menu "iso8859-2"

#
# FORMATS SECTION ##
#

\viewer "pdf" "gv"
\viewer "pdf2" "gv"
\viewer "ps" "gv"
\viewer "word" "wvHtml"

#
# CONVERTERS SECTION ##
#

\converter "ps" "pdf" "ps2pdf $$i $$o" ""
\converter "word" "html" "wvHthml $$i  $$o" ""


# This file has been automatically generated by LyX' lib/configure
# script. It contains default settings that have been determined by
# examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
# want to customize LyX, make a copy of the file LYXDIR/lyxrc as
# ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
# override the values given here.
\Format text  txt   ASCII   A
\Format textparagraph txt ASCII(paragraphs) 
\Format docbook  sgml   DocBook B
\Format dvi   dvi   DVI D
\Format eps   eps   EPS 
\Format fax   Fax 
\Format gif  gifGIF 
\Format html  html  HTMLH
\Format jpg  jpgJPEG
\Format latex tex   LaTeX   L
\Format linuxdoc sgml   LinuxDocx
\Format lyx  lyxLyX 
\Format literate nw NoWeb   N
\Format pdf   pdf   PDF P
\Format pdf2  pdf  PDF (pdflatex) F
\Format png   png   PNG 
\Format pspsPostscript  t
\Format program   Program 
\Format word  doc   WordW


\converter latex dvi latex $$i latex
\converter latex pdf2 pdflatex $$i latex
\converter latex html tth -t -e2 -L$$b  $$i  $$o originaldir,needaux
\converter literate latex none 
\converter dvi ps dvips -o $$o $$i 
\converter ps pdf ps2pdf $$i 
\converter ps fax none 
\converter linuxdoc lyx none 
\converter linuxdoc latex none 
\converter linuxdoc dvi none 
\converter linuxdoc html none 
\converter docbook dvi none 
\converter docbook html none 

\converter latex lyx reLyX -f $$i 
\converter literate lyx noweb2lyx $$i $$o 
\converter html latex none 
\converter word latex wvCleanLatex $$i $$o 

\converter gif eps convert $$i $$o 
\converter png eps convert $$i $$o 
\converter jpg eps convert $$i $$o 
\converter gif png convert $$i $$o 

\viewer dvi xdvi
\viewer html netscape
\viewer pdf acroread
\viewer ps gv -swap
\viewer eps gv

\ps_command gs
\ascii_roff_command groff -t -Tlatin1 $$FName
\chktex_command chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
\spell_command ispell
\print_spool_command lp
\print_spool_printerprefix -d 
\font_encoding T1



Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

Hello lyxers,
 I am trying to write a figure with some chemical 
substances, something like :
  _
/  \\
\\_/ 
and I was wondering if there is some (exotic) package
available for this kind of figures.If not, I'll have
to draw iy myself, but I was hoping somebody did that
already .
  Cristi

-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Herbert Voss



Mitrana Cristian wrote:

 Hello lyxers,
  I am trying to write a figure with some chemical 
 substances, something like :
   _
 /  \\
 \\_/ 
 and I was wondering if there is some (exotic) package
 available for this kind of figures.If not, I'll have
 to draw iy myself, but I was hoping somebody did that
 already .

look at
http://www.dante.de/CTAN/help/Catalogue/brief.html
there are many chemical packages

Herbert



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




font size

2001-05-11 Thread Frederic Leymarie

Hi


in the lyx doucment layout
under Font size I do not have smaller fonts the 10pts available
(for the article class).

But I need to use 9pts font size for a conference paper.

How can I make this font size available?
(via the document layout ?)

thanks
Frederic





Re: font size

2001-05-11 Thread Kayvan A. Sylvan

On Fri, May 11, 2001 at 02:59:16PM -0400, Frederic Leymarie wrote:
 Hi
 
 
 in the lyx doucment layout
 under Font size I do not have smaller fonts the 10pts available
 (for the article class).
 
 But I need to use 9pts font size for a conference paper.
 
 How can I make this font size available?
 (via the document layout ?)
 
 thanks
 Frederic
 

Install the tetex-extras RPM from ftp://ftp.sylvan.com/pub/tetex and
then reconfigure lyx. You should then have the extra layouts,
one of them being extarticle, which has the smaller font size.

This is based on Herbert Voss's web pages (http://perce.de/lyx/)

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
 On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
  Hello lyxers,
   I am trying to write a figure with some chemical 
  substances, something like :
_
  /  \\
  \\_/ 
  and I was wondering if there is some (exotic) package

 Not sure, but did you tried 
 $CTAN/macros/latex/contrib/supported/chemsym or try 
 www.ctan.org/help/Catalogue and there search for chemistry or 
 something appropriate.
 
 Matej
I looked over the chemsym package but all it does is 
nice typesetting of the chemical equations.
 Thanks anyway, to you and Mr. Herbert Voss 
  for the reply.

I'll just have to be less lazy and draw myself those
figures :).
   
  Cristi
  
-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Herbert Voss

Mitrana Cristian wrote:

 On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
 
 On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
 
 Hello lyxers,
  I am trying to write a figure with some chemical 
 substances, something like :
   _
 /  \\
 \\_/ 
 and I was wondering if there is some (exotic) package
 
 
 Not sure, but did you tried 
 $CTAN/macros/latex/contrib/supported/chemsym or try 
 www.ctan.org/help/Catalogue and there search for chemistry or 
 something appropriate.
 
 Matej
 
 I looked over the chemsym package but all it does is 
 nice typesetting of the chemical equations.
  Thanks anyway, to you and Mr. Herbert Voss 
   for the reply.

I have no idea about chemistry (since my schooldays ... ;-)
but the following picture take only two minutes. one of
them for installing chemtex.sty

the code was in tex(red)

\initial
\parbox{.3\textwidth}{\hetisix{Q}{Q}{Q}{Q}{Q}{Q}{O}{Q}{O}
\xi=-85 \fuseup{Q}{Q}{Q}{Q}{D}{Q}{D}{Q}{D}}


Herbert

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




Re: Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

On Thu, May 10, 2001 at 11:05:06PM +0300, Mitrana Cristian wrote:
 On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
I am trying to write a figure with some chemical 
   substances, something like :
 _
   /  \\
   \\_/ 
   and I was wondering if there is some (exotic) package
 
It's me again :), this time done some search in the CTAN
catalogue and found the xymtex package that does the
tricky figures and suites me right. So, if anybody 
need this in the future..

 thanks for the support and happy lyx-ing, 
 Cristi
-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Kenward Vaughan

On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
 Hello lyxers,
  I am trying to write a figure with some chemical 
 substances, something like :
   _
 /  \\
 \\_/ 
 and I was wondering if there is some (exotic) package
 available for this kind of figures.If not, I'll have
 to draw iy myself, but I was hoping somebody did that
 already .

Ochem works quite well.  It makes chemical structures which IMHO are
distinctly superior to regular drawing programs.  The syntax takes some
effort to learn, but I have also created some macros which simplify certain
types.  It has the drawback of not (yet) working with files which contain
other image type (eps, etc.).  

If your requirements are really simple then it should work well without a
lot of effort.  I would suggest this route if you are going to be doing this
a lot.

I have created a script for exporting Lyx files to PS under (1.1.16fix1),
both for viewing and printing.  If you wish I can send it to you.

There are also a number of drawing programs which can export to ps, which
you can place as an image.  Look on SAL for these.  While I may not prefer
their results over Ochem, most people aren't sticklers (sp?) like me about
the results.  :-) 

http://sal.kachinatech.com/Z/2/index.shtml
 
Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Two definitions after each other

2001-05-11 Thread Otto Tronarp

Hi,

how can I have two definitions after eachother in AMS-article. I wan't 
to have somthing like this:
Definition 1. My 1st definition
Definition 2. My 2nd definition

If i just press enter after my 1st definition I just continue to write 
in the 1st environment so I don't get Definition 2. If I change the 
environment depth I can get Definition 2. to appear but it produces the 
following LaTeX code:

\begin{defn}
My 1st definition
\begin{defn}
My 2nd definition
\end{defn}
\end{defn}

and what I wan't is

\begin{defn}
My 1st definition
\end{defn}
\begin{defn}
My 2nd definition
\end{defn}

How can I achieve that?

Otto





Re: math fonts in foiltex

2001-05-11 Thread Bruce Veidt

Herbert Voss wrote:
 
 Bruce Veidt wrote:
 
  I have been following Allan Rae's presentations based on foiltex
  (http://www.devel.lyx.org/~rae/) to make my own presentations.
  It is easy to do and the results are very nice.
 
  One little problem though.  The text font used is sans serif and
  the math font (both text and numbers) is roman.  It would be
  nice to have consistency throughout.  Is there a way to force
  latex to use sans serif for numbers in math?
 
  I have tried M-c-s in math-mode but this only works with
  text, not numbers.
 
  I have resorted to ERT: e.g. $10^\mathsf{6}$.
  This gives pretty pdf but ugly lyx.
 
 have a look at package hvmaths, available at ctan

I saw that too, but the free version has only bitmap fonts.

The installed fonts already have the sans-serif numeral 
characters, I just want to access them in a convenient
way from within a math environment.  I was hoping that 
someone would have a preamble script that would do this
so that ERT is not necessary.

So, here is a request to the developers: please modify the M-c s code
so that it will accept numerals in addition to alphabetic
characters.


Thanks,
-- 
Bruce Veidt 
National Research Council   [EMAIL PROTECTED]
Box 248 (250)493-2277
Penticton, BC  V2A 6K3  fax: 493-7767
Canada



Re: latin2 keyboard in LyX 1.1.6fix1

2001-05-11 Thread Matej Cepl

I am sorry, I forgot to send this to the list as well.

Matej

> Date: Fri, 11 May 2001 00:39:30 -0400
> From: Matej Cepl 
> Subject: Re: latin2 keyboard in LyX 1.1.6fix1
> To: Roman Maurer <[EMAIL PROTECTED]>
> 
> On Wed, May 09, 2001 at 08:31:36AM +0200, Roman Maurer wrote:
> > Matej Cepl wrote:
> > > 
> > > Then tell me, pray, how to get working Czech keyboard in LyX with well
> > > behaving X with localized keyboard? I have never managed to do that :-(
> > 
> > Patch the file src/kbsequence.C for LyX 1.1.6fix1 with this patch and
> > recompile it.  It should work from then on.
> 
> Well, now I have spent two hours to create my debugging  version of lyx
> (non-stripped binary has 36M! -- boy, we have grown up :-), so that I
> could create you this beautiful backtrace of core dump. What do you
> think about that?
> 
> Thanks for effort, anyway!
> 
> Matej
> 
> Starting program: /usr/src/redhat/BUILD/lyx-1.1.6fix1/src/./lyx 
> [New Thread 1024 (LWP 1064)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 1064)]
> 0x0 in ?? ()
> Current language:  auto; currently c
> (gdb) bt
> #0  0x0 in ?? ()
> #1  0x83679aa in __user_type_info::dyncast (this=0x84b7f0c, boff=0, 
> target=@0x84b7f0c, objptr=0xbfffe824, subtype=@0x84ad940, subptr=0xbfffe824)
> #2  0x8367347 in __dynamic_cast_2 (from=0x836d370 ,
> to=0x836d370 , boff=0, address=0xbfffe824,
> sub=0x80520b4 , subptr=0xbfffe824)
> #3  0x8362260 in lyx::tempName (dir=@0xbfffea10, mask=@0xbfffea20)
> at /usr/include/g++-3/sstream:65
> #4  0x834fc91 in CreateTmpDir (tempdir=@0xbfffea10, mask=@0xbfffea20)
> at filetools.C:445
> #5  0x8350831 in CreateLyXTmpDir (deflt=@0x84b4e34)
> at /usr/include/g++-3/std/bastring.h:183
> #6  0x815607b in LyX::init (this=0xb7c0, argv=0xb884, gui=true)
> at /usr/include/g++-3/std/bastring.h:171
> #7  0x814e50c in LyX::LyX (this=0x0, argc=0xb820, argv=0xb884)
> at ../src/lyx_main.C:104
> #8  0x81b815c in main (argc=1, argv=0xb884) at ../src/main.C:40
> #9  0x40149a7c in __libc_start_main (main=0x81b7fd0 , argc=1, 
> ubp_av=0xb884, init=0x80501fc <_init>, fini=0x83fb50c <_fini>, 
> rtld_fini=0x4000d684 <_dl_fini>, stack_end=0xb87c)
> at ../sysdeps/generic/libc-start.c:111
> (gdb) 



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Andi

>> During writing my thesis I ran into this problem:
>> I use chemical reactions and numerical equations in the text. The
>> problem is, to number the different equations in a different way, like:
>>> 
>> 1+1=2(2.1)
>> 1+2=3(2.2)
>> 
>> but for chemical reaction something like
>> 
>> C+O2->CO2(R. 2.1)
>> 
>> The equations and reactions are written in math-mode and the automatic
>> numbering was done
>> by using M-m n.

>1. Put the following line in the preamble

>\newcounter{reaction}
>\numberwithin{reaction}{chapter}
>\newcommand{\reaction}{\addtocounter{reaction}{1}\tag{R. \thereaction}}

>2. Select "Use ams math" in the document dialog (in "extra" tab in 1.1.6).

>3. At each reaction, write \reaction at the end (inside the math inset).

>Note that when you reference a reaction, you will get 'R. 2.1'.

I´m sorry, but I think I´m too dummy. I´m not able to insert a \reaction inside the 
math
inset. The "\" doesn´t work.But writing "reaction" in Tex-red works fine. That´s 
exactly
what I needed.

Thanks a lot

Andi




[alexey@chaos.ssu.runnet.ru] Feedback from www.lyx.org

2001-05-11 Thread Jean-Marc Lasgouttes


Can a fellow russian lyx user help Alexei?

JMarc

--- Start of forwarded message ---
Date: Fri, 11 May 2001 12:06:21 +0200
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Feedback from www.lyx.org
FROM: [EMAIL PROTECTED]


Alexey Shabunin ([EMAIL PROTECTED]) entered the 
following feedback message on the LyX home page:


I have a problem: I need switching between two languages in keybourd (English and 
Russian). But when I use Xkb it is not switched (only though Xmodmap) 
Is it possible to use Xkb for switching keybourd maps at LyX? 
 

--- End of forwarded message ---



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Dekel Tsur

On Mon, Apr 23, 2001 at 11:47:58AM +0200, Andi wrote:
> >3. At each reaction, write \reaction at the end (inside the math inset).
> 
> >Note that when you reference a reaction, you will get 'R. 2.1'.
> 
> I´m sorry, but I think I´m too dummy. I´m not able to insert a \reaction inside the 
>math
> inset. The "\" doesn´t work.But writing "reaction" in Tex-red works fine. That´s 
>exactly
> what I needed.

What I meant is that you type \reaction in the math inset. On screen you see 
only reaction (in red).



Re: Different numbering for chemical reaction and numerical equation

2001-05-11 Thread Andreas Döring

Warning
Could not process message with given Content-Type: 
text/html; charset=cp1255




Re: math fonts in foiltex

2001-05-11 Thread Herbert Voss



Bruce Veidt wrote:

> I have been following Allan Rae's presentations based on foiltex
> (http://www.devel.lyx.org/~rae/) to make my own presentations.
> It is easy to do and the results are very nice.
> 
> One little problem though.  The text font used is sans serif and
> the math font (both text and numbers) is roman.  It would be
> nice to have consistency throughout.  Is there a way to force
> latex to use sans serif for numbers in math?
> 
> I have tried M-c-s in math-mode but this only works with 
> text, not numbers.
> 
> I have resorted to ERT: e.g. $10^\mathsf{6}$.
> This gives pretty pdf but ugly lyx.

have a look at package hvmaths, available at ctan

Herbert

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




List of Algorithms - Caption Modification

2001-05-11 Thread Brett Jones

I have a style file for my univerity thesis format, which for the most part does
the job.

Only trouble is that if redefines the lists of figures and tables and doesn't
provide for lists of algorithms.  I would, of course, like the list of
algorithms to match the others, but I know almost nothing about latex.  I copied
all references to lists of tables and figures and changed them to refer to
algorithms, and it almost works.

The last problem is that the code that makes the lot and lof double spaced
doesn't seem to run on the algorithms.  I've included just this code.  Can
anyone tell me why it is not being run on the algorithm captions?

(I can also provide the whole style file if it would help.)

Thanks for any help,

Brett Jones


 applicable code --

% LIST OF FIGURES
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{LIST OF FIGURES\@mkboth
  {LIST OF FIGURES}{LIST OF FIGURES}}
 \singlespace
 \@starttoc{lof}\if@restonecol\twocolumn\fi
 \addtocontents{lof}{\noindent Figure \hfill Page}
 \addtocontents{lof}{\vskip 2ex}
 \doublespace
}

% indentation of figure caption in LOF
\def\l@figure{\@dottedtocline{0}{0em}{3em}}

% LIST OF TABLES
%
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{LIST OF TABLES\@mkboth
   {LIST OF TABLES}{LIST OF TABLES}}
 \singlespace
 \@starttoc{lot}\if@restonecol\twocolumn\fi
 \addtocontents{lot}{\noindent Table \hfill Page} %%
 \addtocontents{lot}{\vskip 2ex}
 \doublespace
}

% LIST OF ALGORITHMS
%
\def\listofalgorithms{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\chapter*{LIST OF ALGORITHMS\@mkboth
   {LIST OF ALGORITHMS}{LIST OF ALGORITHMS}}
 \singlespace
 \@starttoc{loa}\if@restonecol\twocolumn\fi
 \addtocontents{loa}{\noindent Algorithm \hfill Page} %%
 \addtocontents{loa}{\vskip 2ex}
 \doublespace
}

% indentation of table caption in LOT
\let\l@table\l@figure
\let\l@algorithm\l@figure

\def\b{}  % a dummy definition used below

% Add an extra space between 2 captions in list of figures or tables.
% Also, place a period after the number.
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\hfill\csname
  the#1\endcsname.\hspace{1em}}{\ignorespaces #2}}
  \addtocontents{\csname ext@#1\endcsname}{\vskip 2ex}

  % enable list of tables/figures when the first table/figure is found
  \ifnum \csname c@#1\endcsname = 1
 \immediate\write\@auxout{\string\globaldefs1} % enable LOT/F in aux file
 \immediate\write\@auxout{\string\b\csname ext@#1\endcsname true}
 \immediate\write\@auxout{\string\globaldefs0}
  \fi
  \begingroup
  \@parboxrestore
  \normalsize
  \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
  \endgroup}




Re: latin2 keyboard in LyX 1.1.6fix1

2001-05-11 Thread Matej Cepl

On Fri, May 11, 2001 at 08:22:29AM +0200, Roman Maurer wrote:
> 
> What does "lyx -dbg key" say?

Well, actually nothing -- it cores dump before, it manages to say 
anything. :-)

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10
Somerville, Ma 02143
(617) 623-1488




LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

Hello all!

I am a great admirer of LyX, as a writer and translator I just love working 
with it. And now I managed to install 1.1.6fix1 from source on my SuSE 7.1, 
Ilove it! But there's something weird here I think, the sub-menus Import / 
Export are empty, and the preview for ps / dvi are missing. Why id this?
 
Since I work on two different (Linux) computers in two different places, and 
I haven't been able to work with the same .lyx files between those without 
messing up the files, because the one in my home box is SuSE 7.1 with LyX 
1.1.5fix1, and at work it's Caldera eDesktop 2.4 with the incredibly ugly 
KLyX. Now I'm gonna give it a try to install 1.1.6fix1 on the eDesktop box 
too, even though I have bad experience trying to install non-Caldera packages 
in the Caldera dist.

Cheers,

ei


-- 
@~~~ EagleIce  [EMAIL PROTECTED]  Running SuSE Linux 7.1 ~~~@
@~ Webmaster  ~~~  ~@









Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread Matej Cepl

On Fri, May 11, 2001 at 05:49:47PM +0200, EagleIce wrote:
> Hello all!
> 
> I am a great admirer of LyX, as a writer and translator I just love working 
> with it. And now I managed to install 1.1.6fix1 from source on my SuSE 7.1, 
> Ilove it! But there's something weird here I think, the sub-menus Import / 
> Export are empty, and the preview for ps / dvi are missing. Why id this?

Try Edit/Reconfigure and restart LyX. If it doesn't work, what do you 
have in Edit/Preferences for DVI and PS as viewers/converters?

Matej



Re: Numbering a figure as an equation

2001-05-11 Thread Dekel Tsur

On Wed, May 09, 2001 at 09:07:21PM +0200, Herbert Voss wrote:
> just before you insert the image, means between first \hfill
> and image in tex(red)
> 
> \parbox{the width}{
> 
> and just behind the image the closing parenthesis
> }
> 
> for "the width" have a look at the boundig box values
> in your eps-file. maybe the fifth line in the file.
> choose the x-value and insert it as width, for example
> \parbox{300pt}{

Why not let latex compute the space ?
Here is an alternative way to do what you want:
1. Put the following in latex mode:
\begin{equation}\begin{array}{c}\mbox{

2. Insert figure (as inline) 

3. Put the following (in latex mode)
}\end{array}

4. Insert label

5. Put the following (in latex mode)
\end{equation}



Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

On Friday 11 May 2001 18:06, Matej Cepl wrote:
> Try Edit/Reconfigure and restart LyX. 
I've tried that several times, no difference.

> If it doesn't work, what do you
> have in Edit/Preferences for DVI and PS as viewers/converters?
Nothing at all!

One peculiar thing is that LyX starts incredibly much faster now than 
1.1.5fix1, is it supposed to be like that or could it be that there are 
several features missing?

Observe that the install went without any error message at all.

Thank's for your reply.
Cheers,
ei

-- 
@~~~ EagleIce  [EMAIL PROTECTED]  Running SuSE Linux 7.1 ~~~@
@~ Webmaster  ~~~  ~@









Re: LyX-SuSE 7.1-COL 2.4

2001-05-11 Thread EagleIce

On Friday 11 May 2001 18:06, Matej Cepl wrote:
> Try Edit/Reconfigure and restart LyX. 
Attached you shall find my conf files.

Matej


### This file is part of
### 
###  LyX, The Document Processor
###
###  Copyright 1995 Matthias Ettrich
###  Copyright 1995-2000 The LyX Team.
###
### 

# This file is written by LyX, if you want to make your own
# modifications you should do them from inside LyX and save


#
# MISC SECTION ##
#

# Set to false to inhibit the startup banner.
\show_banner false
#\kbmap_primary "/usr/share/lyx/kbd/czech-y.kmap"

#
# SCREEN & FONTS SECTION 
#

\screen_dpi 75
\cursor_follows_scrollbar true
\screen_font_roman "-*-utopia"
\screen_font_scalable false
\screen_font_encoding "iso8859-2"

#
# COLOR SECTION ###
#


#
# PRINTER SECTION ###
#

\print_spool_command "lpr"
\print_spool_printerprefix "-P"

#
# EXPORT SECTION 
#


#
# TEX SECTION ###
#


#
# FILE SECTION ##
#

\document_path "/home/matej/docs/"
\num_lastfiles 9

#
# ASCII EXPORT SECTION ##
#

\ascii_roff_command "groff -t -Tlatin2 $$FName"

#
# SPELLCHECKER SECTION ##
#

\spell_command "aspell"
\use_escape_chars true
\escape_chars "áÁäÄéÉëËíÍóÓôÔöÖšŠúÚüÜýÝ"
\use_personal_dictionary true
\personal_dictionary ".aspell.czech"
\use_input_encoding true

#
# LANGUAGE SUPPORT SECTION ##
#

\language_auto_begin false
\language_auto_end false

#
# 2nd MISC SUPPORT SECTION ##
#

\override_x_deadkeys false
\screen_font_encoding_menu "iso8859-2"

#
# FORMATS SECTION ##
#

\viewer "pdf" "gv"
\viewer "pdf2" "gv"
\viewer "ps" "gv"
\viewer "word" "wvHtml"

#
# CONVERTERS SECTION ##
#

\converter "ps" "pdf" "ps2pdf $$i $$o" ""
\converter "word" "html" "wvHthml $$i > $$o" ""


# This file has been automatically generated by LyX' lib/configure
# script. It contains default settings that have been determined by
# examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
# want to customize LyX, make a copy of the file LYXDIR/lyxrc as
# ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
# override the values given here.
\Format text  txt   ASCII   A
\Format textparagraph txt ASCII(paragraphs) ""
\Format docbook  sgml   DocBook B
\Format dvi   dvi   DVI D
\Format eps   eps   EPS ""
\Format fax   ""Fax ""
\Format gif  gifGIF ""
\Format html  html  HTMLH
\Format jpg  jpgJPEG""
\Format latex tex   LaTeX   L
\Format linuxdoc sgml   LinuxDocx
\Format lyx  lyxLyX ""
\Format literate nw NoWeb   N
\Format pdf   pdf   PDF P
\Format pdf2  pdf  "PDF (pdflatex)" F
\Format png   png   PNG ""
\Format pspsPostscript  t
\Format program  "" Program ""
\Format word  doc   WordW


\converter latex dvi "latex $$i" "latex"
\converter latex pdf2 "pdflatex $$i" "latex"
\converter latex html "tth -t -e2 -L$$b < $$i > $$o" "originaldir,needaux"
\converter literate latex "none" ""
\converter dvi ps "dvips -o $$o $$i" ""
\converter ps pdf "ps2pdf $$i" ""
\converter ps fax "none" ""
\converter linuxdoc lyx "none" ""
\converter linuxdoc latex "none" ""
\converter linuxdoc dvi "none" ""
\converter linuxdoc html "none" ""
\converter docbook dvi "none" ""
\converter docbook html "none" ""

\converter latex lyx "reLyX -f $$i" ""
\converter literate lyx "noweb2lyx $$i $$o" ""
\converter html latex "none" ""
\converter word latex "wvCleanLatex $$i $$o" ""

\converter gif eps "convert $$i $$o" ""
\converter png eps "convert $$i $$o" ""
\converter jpg eps "convert $$i $$o" ""
\converter gif png "convert $$i $$o" ""

\viewer dvi "xdvi"
\viewer html "netscape"
\viewer pdf "acroread"
\viewer ps "gv -swap"
\viewer eps "gv"

\ps_command "gs"
\ascii_roff_command "groff -t -Tlatin1 $$FName"
\chktex_command "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"
\spell_command "ispell"
\print_spool_command "lp"
\print_spool_printerprefix "-d "
\font_encoding "T1"



Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

Hello lyxers,
 I am trying to write a figure with some chemical 
substances, something like :
  _
/  \\
\\_/ 
and I was wondering if there is some (exotic) package
available for this kind of figures.If not, I'll have
to draw iy myself, but I was hoping somebody did that
already .
  Cristi

-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Herbert Voss



Mitrana Cristian wrote:

> Hello lyxers,
>  I am trying to write a figure with some chemical 
> substances, something like :
>   _
> /  \\
> \\_/ 
> and I was wondering if there is some (exotic) package
> available for this kind of figures.If not, I'll have
> to draw iy myself, but I was hoping somebody did that
> already .

look at
http://www.dante.de/CTAN/help/Catalogue/brief.html
there are many chemical packages

Herbert



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




font size

2001-05-11 Thread Frederic Leymarie

Hi


in the lyx doucment layout
under Font size I do not have smaller fonts the 10pts available
(for the "article" class).

But I need to use 9pts font size for a conference paper.

How can I make this font size available?
(via the document layout ?)

thanks
Frederic





Re: font size

2001-05-11 Thread Kayvan A. Sylvan

On Fri, May 11, 2001 at 02:59:16PM -0400, Frederic Leymarie wrote:
> Hi
> 
> 
> in the lyx doucment layout
> under Font size I do not have smaller fonts the 10pts available
> (for the "article" class).
> 
> But I need to use 9pts font size for a conference paper.
> 
> How can I make this font size available?
> (via the document layout ?)
> 
> thanks
> Frederic
> 

Install the tetex-extras RPM from ftp://ftp.sylvan.com/pub/tetex and
then reconfigure lyx. You should then have the extra layouts,
one of them being extarticle, which has the smaller font size.

This is based on Herbert Voss's web pages (http://perce.de/lyx/)

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
> On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
> > Hello lyxers,
> >  I am trying to write a figure with some chemical 
> > substances, something like :
> >   _
> > /  \\
> > \\_/ 
> > and I was wondering if there is some (exotic) package

> Not sure, but did you tried 
> $CTAN/macros/latex/contrib/supported/chemsym or try 
> www.ctan.org/help/Catalogue and there search for "chemistry" or 
> something appropriate.
> 
> Matej
I looked over the chemsym package but all it does is 
nice typesetting of the chemical equations.
 Thanks anyway, to you and Mr. Herbert Voss 
  for the reply.

I'll just have to be less lazy and draw myself those
figures :).
   
  Cristi
  
-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Herbert Voss

Mitrana Cristian wrote:

> On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
> 
>> On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
>> 
>>> Hello lyxers,
>>>  I am trying to write a figure with some chemical 
>>> substances, something like :
>>>   _
>>> /  \\
>>> \\_/ 
>>> and I was wondering if there is some (exotic) package
>> 
> 
>> Not sure, but did you tried 
>> $CTAN/macros/latex/contrib/supported/chemsym or try 
>> www.ctan.org/help/Catalogue and there search for "chemistry" or 
>> something appropriate.
>> 
>> Matej
> 
> I looked over the chemsym package but all it does is 
> nice typesetting of the chemical equations.
>  Thanks anyway, to you and Mr. Herbert Voss 
>   for the reply.

I have no idea about chemistry (since my schooldays ... ;-)
but the following picture take only two minutes. one of
them for installing chemtex.sty

the code was in tex(red)

\initial
\parbox{.3\textwidth}{\hetisix{Q}{Q}{Q}{Q}{Q}{Q}{O}{Q}{O}
\xi=-85 \fuseup{Q}{Q}{Q}{Q}{D}{Q}{D}{Q}{D}}


Herbert

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




Re: Chemical substance in LaTeX

2001-05-11 Thread Mitrana Cristian

On Thu, May 10, 2001 at 11:05:06PM +0300, Mitrana Cristian wrote:
> On Fri, May 11, 2001 at 01:58:26PM -0400, Matej Cepl wrote:
> > >  I am trying to write a figure with some chemical 
> > > substances, something like :
> > >   _
> > > /  \\
> > > \\_/ 
> > > and I was wondering if there is some (exotic) package
> 
It's me again :), this time done some search in the CTAN
catalogue and found the xymtex package that does the
tricky figures and suites me right. So, if anybody 
need this in the future..

 thanks for the support and happy lyx-ing, 
 Cristi
-- 



Re: Chemical substance in LaTeX

2001-05-11 Thread Kenward Vaughan

On Thu, May 10, 2001 at 08:37:33PM +0300, Mitrana Cristian wrote:
> Hello lyxers,
>  I am trying to write a figure with some chemical 
> substances, something like :
>   _
> /  \\
> \\_/ 
> and I was wondering if there is some (exotic) package
> available for this kind of figures.If not, I'll have
> to draw iy myself, but I was hoping somebody did that
> already .

Ochem works quite well.  It makes chemical structures which IMHO are
distinctly superior to regular drawing programs.  The syntax takes some
effort to learn, but I have also created some macros which simplify certain
types.  It has the drawback of not (yet) working with files which contain
other image type (eps, etc.).  

If your requirements are really simple then it should work well without a
lot of effort.  I would suggest this route if you are going to be doing this
a lot.

I have created a script for exporting Lyx files to PS under (1.1.16fix1),
both for viewing and printing.  If you wish I can send it to you.

There are also a number of drawing programs which can export to ps, which
you can place as an image.  Look on SAL for these.  While I may not prefer
their results over Ochem, most people aren't sticklers (sp?) like me about
the results.  :-) 

http://sal.kachinatech.com/Z/2/index.shtml
 
Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books. Albert Einstein



Two definitions after each other

2001-05-11 Thread Otto Tronarp

Hi,

how can I have two definitions after eachother in AMS-article. I wan't 
to have somthing like this:
Definition 1. My 1st definition
Definition 2. My 2nd definition

If i just press enter after my 1st definition I just continue to write 
in the 1st environment so I don't get Definition 2. If I change the 
environment depth I can get Definition 2. to appear but it produces the 
following LaTeX code:

\begin{defn}
My 1st definition
\begin{defn}
My 2nd definition
\end{defn}
\end{defn}

and what I wan't is

\begin{defn}
My 1st definition
\end{defn}
\begin{defn}
My 2nd definition
\end{defn}

How can I achieve that?

Otto





Re: math fonts in foiltex

2001-05-11 Thread Bruce Veidt

Herbert Voss wrote:
> 
> Bruce Veidt wrote:
> 
> > I have been following Allan Rae's presentations based on foiltex
> > (http://www.devel.lyx.org/~rae/) to make my own presentations.
> > It is easy to do and the results are very nice.
> >
> > One little problem though.  The text font used is sans serif and
> > the math font (both text and numbers) is roman.  It would be
> > nice to have consistency throughout.  Is there a way to force
> > latex to use sans serif for numbers in math?
> >
> > I have tried M-c-s in math-mode but this only works with
> > text, not numbers.
> >
> > I have resorted to ERT: e.g. $10^\mathsf{6}$.
> > This gives pretty pdf but ugly lyx.
> 
> have a look at package hvmaths, available at ctan

I saw that too, but the free version has only bitmap fonts.

The installed fonts already have the sans-serif numeral 
characters, I just want to access them in a convenient
way from within a math environment.  I was hoping that 
someone would have a preamble script that would do this
so that ERT is not necessary.

So, here is a request to the developers: please modify the M-c s code
so that it will accept numerals in addition to alphabetic
characters.


Thanks,
-- 
Bruce Veidt 
National Research Council   [EMAIL PROTECTED]
Box 248 (250)493-2277
Penticton, BC  V2A 6K3  fax: 493-7767
Canada