Re: X-server for windows

2000-09-17 Thread Shawn Koons

 Hello,

Opps,  I misread the site, it says that x-win32 can be used in 2hr
incraments. I suppose I will just have to shut it down and then start it
back up. If I'm wrong, let me know.

I realize it is bad form to answer my own post, but I didn't want you to
think I couldn't read :-)

Shawn

> I would like to know what is the best x-server I can use. One of the
> sites recomends Starnet's X-Win 32, but says it can only be used for 2
> hours. I usually am sitting in front of lyx for much longer than that.




X-server for windows

2000-09-17 Thread Shawn Koons

Okay, I was hoping it wouldn't come to this, but I have had to put my
Linux box in moth balls and have reverted to using windows 98.
(shudder)  I can make do without a lot of the conveniences found on
Linux, but Lyx is definately not one of them.

I would like to know what is the best x-server I can use. One of the
sites recomends Starnet's X-Win 32, but says it can only be used for 2
hours. I usually am sitting in front of lyx for much longer than that.

Any suggestions.

Shawn




algorithm proposal

2000-09-17 Thread ben

Here is a proposal for a layout allowing to create algorithms more
friendly through lyx. Your comments and feelings on it are welcome. As I
really don't know latex, don't hesitate to make remarks and evolutions.

As attached file are:
1) article-algo.layout: the layout to install
2) algo.lyx: an example lyx file using the layout, and explaining how to
use it. Thus, before reading it, install the article-algo.layout and
reconfigure lyx.

BG.



#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{Article (algo)}
# Report textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by serveral developers.

# Input general definitions
Input stdclass.inc

# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3


# Change a bit Part and Part*
Style Part
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

Style Part*
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

# New style to write some algorithms
Style Algorithm
#  Margin   First_Dynamic
  LatexType Item_Environment
  LatexName algor
  NextNoIndent  1
  LeftMarginMM
  LabelSep  xxx
  ItemSep   0
  TopSep0.5
  BottomSep 0.5
  ParSep0
  Align Block
  AlignPossible Block, Left
  LabelType Manual
  LabelString   MM
  FreeSpacing   0

  # standard font definition
  Font
Family  Typewriter
  EndFont

  # label font definition
  LabelFont
Series  Bold
  EndFont

  Preamble
  %% Needed packages
  \usepackage{algorithm}
  \usepackage{algorithmic}

  %% Default screen keywords definition
  \newcommand{\keyif}{if}
  \newcommand{\keyelseif}{elseif}
  \newcommand{\keyelse}{else}
  \newcommand{\keyendif}{endif}
  \newcommand{\keyfor}{for}
  \newcommand{\keywhile}{while}
  \newcommand{\keyrepeat}{repeat}
  \newcommand{\keyuntil}{until}
  \newcommand{\keyendfor}{endfor}
  \newcommand{\keyendwhile}{endwhile}

  %% Two arguments needed
  %%
  \def\mytalg[#1](#2){%
   \let\item=\stditem
   \ifthenelse{\equal{#1}{\keyif}}{\IF{#2}}{%
   \ifthenelse{\equal{#1}{\keyelseif}}{\ELSIF{#2}}{%
   \ifthenelse{\equal{#1}{\keyfor}}{\FOR{#2}}{%
   \ifthenelse{\equal{#1}{\keywhile}}{\WHILE{#2}}{%
   \ifthenelse{\equal{#1}{\keyuntil}}{\UNTIL{#2}}{%
   \STATE #1(#2)}
   \let\item=\myalg
  }

  %% Only one real argument used
  %%
  \def\myoalg[#1]#2{%
   \let\item=\stditem
   \ifthenelse{\equal{#1}{\keyelse}}{\ELSE}{%
   \ifthenelse{\equal{#1}{\keyendif}}{\ENDIF}{%
   \ifthenelse{\equal{#1}{\keyendfor}}{\ENDFOR}{%
   \ifthenelse{\equal{#1}{\keyendwhile}}{\ENDWHILE}{%
   \ifthenelse{\equal{#1}{\keyrepeat}}{\REPEAT}{%
   \STATE }
   \let\item=\myalg
  }

  %% Main command
  %%
  \def\myalg[#1]{%
   \@ifnextchar({\mytalg[#1]}{%
   \@ifnextchar~{\myoalg[#1]}{\myoalg[#1]{ }}}
  }

  \newenvironment{algor}
  {
   \@ifundefined{stditem}{%
\begin{algorithmic}
\let\stditem=\item
\let\item=\myalg
\newcounter{algcount}
\setcounter{algcount}{1}
   }{%
\addtocounter{algcount}\@ne
   }
  }{
   \addtocounter{algcount}\m@ne
   \ifnum \value{algcount}=0
   \let\item=\stditem
   \end{algorithmic}
   \fi
  }

  EndPreamble

End



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

\layout Title

Proposal for a LyX Algorithm Style
\layout Date

17 september 2000
\layout Standard


\begin_inset LatexCommand \tableofcontents{}

\end_inset 


\layout Section

Introduction
\layout Standard

This file is an example file using a customised layout that allows to write
 algorithms without using any LaTeX command in a lyx document.
 The layout is built in order to fulfill the WYSIWYM principles.
\layout Section

Document class
\layout Standard

When 
\family typewriter 
article-algo.layout
\family default 
 is installed (in the 
\family typewriter 
~/.lyx/layout
\family default 
 directory), and lyx is reconfigured, the 
\family typewriter 
Article
\protected_separator 
(algo)
\family default 
 class should be available.
 This is the current class of this docume

Re: Couple of complaints

2000-09-17 Thread Matej Cepl

> On Thu, Sep 14, 2000 at 07:45:01PM +0200, Matej Cepl wrote:
> 
> You can import Linuxdoc files directly from LyX (using the sgml2lyx
> command).

Unfortunately my sgml2lyx doesn't work with footnotes. And I am 
lawyer, so that a footnote is probably most used thing in my 
documents :-) See mentioned archive on http://www.volny.cz/

> > 2) Well, the only part of LyX which I really do not like is its 
> > international keyboard support (for example the issue of inserting
> > non-alphanumeric characters, like \{} -- necessary when using ERT; 
> 
> I can't understand what is the problem here. Please explain more
> verbosely.

Try to switch your keyboard to the Czech layout, for example, and 
write \ . So easy! In place of the top-right key on my keyboard we 
have the deadkey and instead of characters {} we have /( .

> > Pause doesn't work for me as a switcher and I really hate "intuitive"
> > combination of M-k,x for US keyboard and M-x,1 for Czech keyboard :-).
> 
> I'm not sure what you meant here, but you can define your own bindings for
> changing between keymaps.

I tried using Pause as a switcher and it doesn't switch anything. 
Probably, there is something screwed up with my keyboard. But it is 
fairly standard Windows95 PC keyboard (Chicony KB-2961, 101keys, 
small Backspace and tall Enter). When looking through xkeycaps, 
then Pause is where it should be (actually, Pause works as a 
switcher in GNOME).

> Why using an external keymap program is better ?

Because it works. And because no-one should reinvent the wheel, 
and yet more it is stupid, when the new wheel is worse than the old 
one.


Have a nice day

Matej



Re: Using a new class

2000-09-17 Thread Matej Cepl

On 16 Sep 00, at 17:04, Herbert Voss wrote:

> Frederic Leymarie wrote:

> > I have tried input this file from my preamble in LyX but that does not
> > do the trick.
> > 
> > What do I need to do to make this class features available in my LyX
> > (article) document? e.g., the command \institute is defined in there.

Am I stupid or what? When installed llncs package, so that it is 
found by kpsewhich (texhash makes the trick), and then run 
Options/Configure, I have special type of document 
article(springler), and that's it. Having LyX 1.1.5patch1

Or I am not with you?

Matej



Re: *.lyx ---> *.pdf ??

2000-09-17 Thread Dekel Tsur

On Fri, Sep 15, 2000 at 09:20:22AM +0200, Jean-Pierre.Chretien wrote:
> Up to my experience, it's OK unless you used bodsymbol
> (there is a warning message :
> 
> LaTeX Warning: there is no bold Symbol font on input line 48.
> 
> and it fails).
> 
> Perhaps this doesn't happen in LyX, this was with a LaTeX file where
> \newcommand{\delbol}{\mbox{\boldmath $\delta$}}
> allowed to have bold greek symbols, \mathbf fails with usual fonts.

It is perhaps cleaner to use the \boldsymbol{} command (from AMS math)
for bold symbols.
When using pslatex, the \boldsymbol{} (or \boldmath) doesn't work as
the Postscript fonts do not have a bold symbol font. You should use instead
the \pmb{} (poor man's bold) command (from AMS math).
You can also redefine the \boldsymbol command by putting
 \renewcommand{\boldsymbol}[1]{\pmb{#1}} in the preamble.

> But I checked that \mathbf works fine with greek symbol when
> pslatex is called, so should pslatex should be recommended to provide
> bold math symbols ?

\mathbf only works with latin letters, and not with greek.



Re: *.lyx ---> *.pdf ??

2000-09-17 Thread Dekel Tsur

On Thu, Sep 14, 2000 at 07:45:01PM +0200, Matej Cepl wrote:
> I do not know anything about math-fonts, but using 
> \usepackage{pslatex} (available via Layout/Document/Font) makes 
> things working for me very well (no Type3 fonts).

It is also possible to use the default (Computer Modern) fonts.
See http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06029.html

> On 13 Sep 00, at 10:15, Tuukka Toivonen wrote:
> 
> > On Tue, 12 Sep 2000, John Culleton wrote:
> > 
> > > You can convert ps documents to pdf using ps2pdf. I find this the surest
> > 
> > Yes, but the fonts (at least for math) will be bitmapped, which means that
> > they look ugly with acroread and don't work at all with xpdf. It will be
> > fine with gv, though.
> > 
> > It is probably better to use pdftex/pdflatex, which works fine as long as

You can also have outline fonts when using ps2pdf.
The problem is that either you are using an old Ghostscript (version < 6.0),
or that your dvips isn't set to use outline fonts.
See the link above for more information.



Re: Couple of complaints

2000-09-17 Thread Dekel Tsur

On Thu, Sep 14, 2000 at 07:45:01PM +0200, Matej Cepl wrote:

> 1) There is something screwed up with LinuxDoc support (I know, 
> 
> Original text is HTML, which I have transformed by hand into 
> linuxdoc-SGML (checked via sgmlcheck -- sgml-tools-1.0.9-2 w/ 
> Czech support) and then imported via sgml2latex and reLyX into 
> LyX. Everything seems to be OK, the format of document is fairly 
> simple anyway.

You can import Linuxdoc files directly from LyX (using the sgml2lyx command).

> 2) Well, the only part of LyX which I really do not like is its 
> international keyboard support (for example the issue of inserting 
> non-alphanumeric characters, like \{} -- necessary when using ERT; 

I can't understand what is the problem here. Please explain more verbosely.

> Pause doesn't work for me as a switcher and I really hate "intuitive" 
> combination of M-k,x for US keyboard and M-x,1 for Czech keyboard 
> :-).

I'm not sure what you meant here, but you can define your own bindings for
changing between keymaps.

> I understand, that LyX has been initiated in the time when there was 
> not support for international keyboards at all, so LyX has been built 
> to work even on "empty railway-station" as my brother characterize 
> programs working without any support from operating environment. 
> But (thanks God) such awfull times are gone and bot GNOME as well 
> as KDE (which counts for 90% of all LyX's users, IMHO) have 
> excellent international keyboard support and you could rely on it. Or 
> at least (if the number of plain X-Window users is bigger) you could 
> at least make use of LyX's own support optional, couldn't you?

Why using an external keymap program is better ?



Re: Preprocessing .tex file

2000-09-17 Thread Dekel Tsur

On Mon, Sep 11, 2000 at 12:26:09AM +0200, Matej Cepl wrote:
> 
> I am a Czech. And we have a problem in the Czech typography -- 
> one letter prepositions. According to the Czech typographical rules, 
> one-letter preposition cannot be the last word on a line. Therefore, 
> some Czechs prepared program vlnka (see 
> http://math.feld.cvut.cz/olsak/Welcome.html for further reference), 
> which replaces space after one-letter preposition by tilde (~). How 
> to include such preprocessor to work in the LyX-driven process of 
> {dvi,ps}-generation?

Create a script called (for example) mylatex
-
#!/usr/bin/tcsh

set f = $1:r
vlnka < $f.tex >! $f_tmp.tex
latex $f_tmp
cat $f_tmp.log >! $f.log
cat $f_tmp.aux >! $f.aux
cat $f_tmp.dvi >! $f.dvi
-
and add the following line to ~/.lyx/lyxrc 
\latex_command mylatex