Re: Looking for a way of circumventing a bug

2005-02-15 Thread Paul Smith
On Mon, 14 Feb 2005 21:55:48 +, Paul Smith <[EMAIL PROTECTED]> wrote:
> > no, look for extarticle.layout as an example
> 
> I can copy the original file stdlayouts.inc and add your definition of
> the proof environment and rename it. Then, how can we make the new and
> renamed stdlayouts.inc file specific to the extarticle class?
> Difficult?

Not difficult, really. I have just managed to do that.

Paul


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-15 Thread Ekkehart Schlicht
It suffices to place a file lyx2lyx.cmd 
containing

@ \python \share\lyx\lyx2lyx\lyx2lyx %*

into the /lyx/share/lyx/lyx2lyx

You can use Ruurd Reitsma's python - no "proper" python needed for this.

I have put this on the WiKi.

Ekkehart





Re: Attempt to use lyxpreview

2005-02-15 Thread Colin J. Williams
Thanks to Angus and Paul, the preview is now functional for me.  It's a 
complex error prone process,  I hope that it will all be built into the 
next release.

Colin W.
Paul A. Rubin wrote:
Colin J. Williams wrote:
 > Thanks for the pointer to preview.sty.  I have obtained the
preview-latex.tar file but am not clear as to where it should be 
installed.

You indicated elsewhere you're using MiKTeX on Win XP, correct?  In 
that case, send the tar file to the bit recycler, then use MiKTeX's 
package manager to install the preview package.

Also, did you get rid of the python executable that came with LyX and 
install the full-blown version?

There are notes for coaxing preview to work on the Wiki:
http://wiki.lyx.org/LyX/InstantPreview
and
http://wiki.lyx.org/LyX/WindowsSetup (look for Instant Preview about 
60% of the way down the page)

-- Paul




Re: Attempt to use lyxpreview

2005-02-15 Thread Angus Leeming
Colin J. Williams wrote:

> Thanks to Angus and Paul, the preview is now functional for me.  It's a
> complex error prone process,  I hope that it will all be built into the
> next release.

What is missing from http://wiki.lyx.org/LyX/InstantPreview other than an
up-to-date version of the script itself? (Even this is not an issue if
you're using LyX 1.3.5)

-- 
Angus



Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-15 Thread Colin J. Williams
Ekkehart Schlicht wrote:
It suffices to place a file lyx2lyx.cmd 
containing

@ \python \share\lyx\lyx2lyx\lyx2lyx %*
into the /lyx/share/lyx/lyx2lyx
You can use Ruurd Reitsma's python - no "proper" python needed for this.
I have put this on the WiKi.
Ekkehart
 

I've followed the guidance above.  The .tex file is converted to .lyx OK 
but the resulting file is not loaded to LyX and I get a message "Can't 
find error conversion script".

The converter for Latex => Lyx is reLyX -f $$i
I am using Windows XP with LyX 1.3.5.
Any suggestions?
Colin W.

 




Re: Attempt to use lyxpreview

2005-02-15 Thread Rob S

What is missing from http://wiki.lyx.org/LyX/InstantPreview other than an
up-to-date version of the script itself? (Even this is not an issue if
you're using LyX 1.3.5)
I think it's pretty much all there now Angus - that is apart from the 
fact we're having to change the LyX preview â PPM converter to

python /lyxpreview2ppm.py
which I believe was on your earlier advice. The windows wiki page does 
however cover this step.

Rob S
--
R D Saunders
Hydraulic Research Group
Department of Civil and Environmental Engineering
University of Southampton
UK


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Paul Johnson
This thread is making me feel too stupid.  I don't really care how pdf 
output gets created, I'm happy to use any of the methods you recommend. 
 In fact, sometimes I can't make it work in lyx but the script 
"tex2pdf" does what I need. But I now notice it calls pdflatex, and so 
the pstricks do not display.

I have Paul's example of a pstrick in lyx. If I want to process that 
through pdflatex, you say I need ps4pdf.  But I can't understand how it 
is supposed to work.  I downloaded ps4pdf.sty and the script ps4pdf, put 
the former in my latex distro (ran texhash) and put the script in the 
path (after making it executable).

Now, what magical incantation is needed to take the lyx doc with the 
pstricks in it into pdflatex?

Paul Smith wrote:
On Mon, 14 Feb 2005 15:13:51 -0800 (PST), Rich Shepard
<[EMAIL PROTECTED]> wrote:
  Would I open a figure float, center the paragraph, then open the ERT box
to write the pstricks code?

Yes, Rich. An example is below.
Regards, Paul
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass report
\begin_preamble
\usepackage{pst-plot}
\end_preamble
\language american
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard
\begin_inset Float figure
wide false
collapsed false
\layout Standard
\align center 

\begin_inset ERT
status Collapsed
\layout Standard
{
\layout Standard
\backslash 
psset{unit=1.5}
\layout Standard

\backslash 
pspicture(-1.1,-0.5)(5.2,2.5)
\layout Standard

\backslash 
psplot{0}{4.95}{x sqrt}
\layout Standard

\backslash 
pscustom{
\layout Standard
   
\backslash 
psplot{1}{4}{x sqrt}
\layout Standard
   
\backslash 
gsave
\layout Standard
  
\backslash 
psline(4,2)(4,0)
\layout Standard
  
\backslash 
psline(1,0)(4,0)
\layout Standard
  
\backslash 
psline(1,0)(1,1)
\layout Standard
  
\backslash 
fill[fillstyle=solid]
\layout Standard
   
\backslash 
grestore
\layout Standard
}
\layout Standard

\backslash 
psaxes[labels=all,ticks=all]{->}(0,0)(-0.1,-0.1)(5,2.3)
\layout Standard

\backslash 
rput(1.1,1.8){$f
\backslash 
left( x 
\backslash 
right) =
\backslash 
sqrt x$}
\layout Standard

\backslash 
uput[0](0,2.3){$y$}
\layout Standard

\backslash 
uput[-90](5,0){$x$}   
\layout Standard
%
\backslash 
uput[-90](1.08,0){$1$}   
\layout Standard

\backslash 
endpspicture
\layout Standard
}
\layout Standard

\end_inset 

\layout Caption
This is a PSTricks figure.
\end_inset 

\the_end

--
Paul E. Johnson   email: [EMAIL PROTECTED]
Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas  Office: (785) 864-9086
Lawrence, Kansas 66044-3177   FAX: (785) 864-5700


Re: Attempt to use lyxpreview

2005-02-15 Thread Colin J. Williams
Rob S wrote:

What is missing from http://wiki.lyx.org/LyX/InstantPreview other 
than an
up-to-date version of the script itself? (Even this is not an issue if
you're using LyX 1.3.5)

I think it's pretty much all there now Angus - that is apart from the 
fact we're having to change the LyX preview â PPM converter to

python /lyxpreview2ppm.py
which I believe was on your earlier advice. The windows wiki page does 
however cover this step.

Rob S
Angus,
I wasn't pointing to any weakness in the Wiki page but trying to suggest 
that, on the next release, the changes mentioned above be incorporated 
into the release.

Colin W.


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Jean-Pierre Chretien

>>Date: Tue, 15 Feb 2005 11:20:15 -0600
>>From: Paul Johnson <[EMAIL PROTECTED]>
>>CC: lyx-users@lists.lyx.org
>>Subject: Re: Incorporating PSTricks Figures in a Document
>>
>>This thread is making me feel too stupid.  I don't really care how pdf 
>>output gets created, I'm happy to use any of the methods you recommend. 
>>  In fact, sometimes I can't make it work in lyx but the script 
>>"tex2pdf" does what I need. But I now notice it calls pdflatex, and so 
>>the pstricks do not display.

ps4pdf does a similar job as tex2pdf to provide an eps file compiled with the 
pstricks
instructions, then a pdf image prone to pdflatex compilation.
So after a ps4pdf run, it should be possible to run tex2pdf,
unless tex2pdf kills the PSforPDF contents.

-- 
Jean-Pierre







Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Paul Smith
On Tue, 15 Feb 2005 11:20:15 -0600, Paul Johnson <[EMAIL PROTECTED]> wrote:
> This thread is making me feel too stupid.  I don't really care how pdf
> output gets created, I'm happy to use any of the methods you recommend.
>   In fact, sometimes I can't make it work in lyx but the script
> "tex2pdf" does what I need. But I now notice it calls pdflatex, and so
> the pstricks do not display.
> 
> I have Paul's example of a pstrick in lyx. If I want to process that
> through pdflatex, you say I need ps4pdf.  But I can't understand how it
> is supposed to work.  I downloaded ps4pdf.sty and the script ps4pdf, put
> the former in my latex distro (ran texhash) and put the script in the
> path (after making it executable).
> 
> Now, what magical incantation is needed to take the lyx doc with the
> pstricks in it into pdflatex?

Do not desperate, Paul! :-)

My example works as it is, as long as you choose PostScript output
(View --> Postscript). To get as an output a pdf file, you need to do
some minor modifications, similarly to the following examples:

http://www.perce.de/LaTeX/ps4pdf/Examples/

(This address was mentioned before.)

Soon, I will send you my example modified in order to be used with
ps4pdf and some guidance how to customise LyX so that it can deal
automatically with ps4pdf.

Regards,

Paul


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Herbert Voss
Jean-Pierre Chretien wrote:
ps4pdf does a similar job as tex2pdf to provide an eps file compiled with the 
pstricks
instructions, then a pdf image prone to pdflatex compilation.
So after a ps4pdf run, it should be possible to run tex2pdf,
unless tex2pdf kills the PSforPDF contents.
no, ps4pdf has _nothing_ to do with ps2pdf. It makes absolutely
no sense to run tex2pdf _after_ a ps4pdf run. The _script_
ps4pdf does four things:
- running latex to mark every PostScript related material
  in the dvi output
- running dvips, to create the image container, which holds
  all ps4pdf-enviromnets of the dociment
- running ps2pdf, to convert the image container to pdf
- running pdflatex, which now takes all images out of the
  container.
this is far different from tex2pdf
Herbert

--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Herbert Voss
Paul Johnson wrote:
This thread is making me feel too stupid.  I don't really care how pdf 
output gets created, I'm happy to use any of the methods you recommend. 
 In fact, sometimes I can't make it work in lyx but the script "tex2pdf" 
does what I need. But I now notice it calls pdflatex, and so the 
pstricks do not display.

I have Paul's example of a pstrick in lyx. If I want to process that 
through pdflatex, you say I need ps4pdf.  But I can't understand how it 
is supposed to work.  I downloaded ps4pdf.sty and the script ps4pdf, put 
the former in my latex distro (ran texhash) and put the script in the 
path (after making it executable).

Now, what magical incantation is needed to take the lyx doc with the 
pstricks in it into pdflatex?
- using View->PDF, which should run latex->dvips->ps2pdf
  this is the easiest way to get everything as pdf. Not
  possible is microtyping and breakable links. If you need
  this, then the other ways maybe interesting to you. If
  not, then always use this way.
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Paul Smith
On Tue, 15 Feb 2005 19:12:13 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote:
> - using View->PDF, which should run latex->dvips->ps2pdf
>this is the easiest way to get everything as pdf. Not
>possible is microtyping and breakable links. If you need
>this, then the other ways maybe interesting to you. If
>not, then always use this way.

Yes, it works; I have just tested it with my example.

Paul


Re: Attempt to use lyxpreview

2005-02-15 Thread Angus Leeming
Colin J. Williams wrote:
What is missing from http://wiki.lyx.org/LyX/InstantPreview other 
than an up-to-date version of the script itself? (Even this is not
an issue if you're using LyX 1.3.5)

I think it's pretty much all there now Angus - that is apart from the 
fact we're having to change the LyX preview â PPM converter to

python /lyxpreview2ppm.py
which I believe was on your earlier advice. The windows wiki page does 
however cover this step.

Rob S
Angus,
I wasn't pointing to any weakness in the Wiki page but trying to suggest 
that, on the next release, the changes mentioned above be incorporated 
into the release.
Sorry if I sounded agressive; I didn't mean to. I'm open to all suggestions.
However, I'm still unsure about what changes do you think I should 
consider. If you mean, package preview.sty and python with LyX, then I'm 
against it. Maybe someone can write a clever installer that will suggest 
things that the user should consider having and go grab 'em, but really 
I think that a README should be enough.

Angus (coming from the unix world...)



Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Jean-Pierre Chretien

>>To: lyx-users@lists.lyx.org
>>From: Herbert Voss <[EMAIL PROTECTED]>
>>Subject: Re: Incorporating PSTricks Figures in a Document
>>Date: Tue, 15 Feb 2005 19:07:59 +0100
>>
>>Jean-Pierre Chretien wrote:
>>
>>> ps4pdf does a similar job as tex2pdf to provide an eps file compiled with 
>>> the pstricks
>>> instructions, then a pdf image prone to pdflatex compilation.
>>> So after a ps4pdf run, it should be possible to run tex2pdf,
>>> unless tex2pdf kills the PSforPDF contents.
>>
>>no, ps4pdf has _nothing_ to do with ps2pdf. It makes absolutely
>>no sense to run tex2pdf _after_ a ps4pdf run. The _script_
>>ps4pdf does four things:
>>- running latex to mark every PostScript related material
>>   in the dvi output
>>- running dvips, to create the image container, which holds
>>   all ps4pdf-enviromnets of the dociment
>>- running ps2pdf, to convert the image container to pdf
>>- running pdflatex, which now takes all images out of the
>>   container.

Sure, it compiles pdf images with pstricks instructions.

>>
>>
>>this is far different from tex2pdf

As far as pstricks figures are concerned, you are right, but what about a
document with a majority of non-pstricks figures ?
I guess some users would like to take advantage of tex2pdf AND ps4pdf ?
Does this make sense ?

-- 
Jean-Pierre



Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Herbert Voss
Paul Smith wrote:
On Tue, 15 Feb 2005 19:12:13 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote:
- using View->PDF, which should run latex->dvips->ps2pdf
  this is the easiest way to get everything as pdf. Not
  possible is microtyping and breakable links. If you need
  this, then the other ways maybe interesting to you. If
  not, then always use this way.

Yes, it works; I have just tested it with my example.
to get proper fonts one should write into the preamble
\usepackage{lmodern}
or, if not installed
\usepackage{mathptmx}% instead of package times
\usepackage[scaled=0.9]{helvet} % or [scaled=0.92], if you like
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Attempt to use lyxpreview

2005-02-15 Thread Herbert Voss
Angus Leeming wrote:
Angus (coming from the unix world...)
huh, is there any other world? :-)
Herbert

--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Paul Smith
On Tue, 15 Feb 2005 18:05:54 +, Paul Smith <[EMAIL PROTECTED]> wrote:
> Soon, I will send you my example modified in order to be used with
> ps4pdf and some guidance how to customise LyX so that it can deal
> automatically with ps4pdf.

The promised modified example is below. To run ps4pdf within LyX, go
to your preferences file ($HOME/.lyx/preferences) and add (in the
indicated sections) the lines below:

# FORMATS SECTION ##
#

\format "pdf4" "pdf" "PDF4" "gv"


# CONVERTERS SECTION ##
#

\converter "latex" "pdf4" "ps4pdf $$i" ""

Reconfigure LyX and restart it. Then, the entry PDF4 should show up in
th menu View.

Regards,

Paul


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Paul Smith
On Tue, 15 Feb 2005 18:44:36 +, Paul Smith <[EMAIL PROTECTED]> wrote:
> The promised modified example is below. To run ps4pdf within LyX, go
> to your preferences file ($HOME/.lyx/preferences) and add (in the
> indicated sections) the lines below:

Sorry, I forgot the file in my previous post.

Paul


modifiedexample.lyx
Description: Binary data


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Herbert Voss
Jean-Pierre Chretien wrote:
As far as pstricks figures are concerned, you are right, but what about a
document with a majority of non-pstricks figures ?
I guess some users would like to take advantage of tex2pdf AND ps4pdf ?
Does this make sense ?
you can start ps4pdf instead of running pdflatex in the the
subroutine sub generate_pdf_doc {
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Looking for a way of circumventing a bug

2005-02-15 Thread Paul Smith
On Mon, 14 Feb 2005 21:33:35 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote:
> > (1) can we have a tag for the above, so that we can see within LyX
> > that it is a proof?
> 
> yes, with this definition -> see png
> 
> # Proof style definition
> Style Proof
>MarginStatic
>LatexType Environment
>LatexName proof
>NextNoIndent  1
>LeftMarginMMM
>RightMargin   MMM
>TopSep0.5
>ParSep0.5
>BottomSep 0.5
>Align Block
>AlignPossible Block, Left, Right, Center
>LabelType Static
>LabelString   "Proof: "
>EndLabelType  Filled_Box
>Font
>  Shape   Up
>  SizeNormal
>EndFont
>LabelFont
>  Series  Bold
>EndFont
>Preamble
> \usepackage[thmmarks]{ntheorem}
> \theoremheaderfont{\itshape\bfseries}
> \theorembodyfont{\normalfont}
> \theoremstyle{nonumberplain}
> \theoremsymbol{\rule{1ex}{1ex}}
> \newtheorem{proof}{Proof}
>Endpreamble
> End

Herbert,

After each proof, the first paragraph is not indented as it should.
Any idea to get back the indentation by default?

Regards,

Paul


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-15 Thread Ekkehart Schlicht

Colin J. Williams wrote:
Ekkehart Schlicht wrote:
It suffices to place a file lyx2lyx.cmd containing
@ \python \share\lyx\lyx2lyx\lyx2lyx %*
into the /lyx/share/lyx/lyx2lyx
You can use Ruurd Reitsma's python - no "proper" python needed for this.
I have put this on the WiKi.
Ekkehart
I've followed the guidance above.  The .tex file is converted to .lyx 
OK but the resulting file is not loaded to LyX and I get a message 
"Can't find error conversion script".

The converter for Latex => Lyx is reLyX -f $$i
I am using Windows XP with LyX 1.3.5.
Any suggestions?
Colin W.
Sorry. It worked well for me. I have just converted an entire book from
rtf to tex (via rtf2latex2e.exe) and imported it successfully into Lyx - 
with some
minor drawbacks regarding graphics. I have the same converter
instruction and the same OS and LyX version that you have noted.
To identify the problem, so that the WiKi entry can be corrected:
Could you just create a lyx file with some text in it ("Hallo World")
and export it to LaTeX and then import it to LyX? Could you just tell me
whether this works?

I have a "full" python on my computer and simply tried (by renaming) to
hide it and use Ruurd's python. This worked for me. Maybe we need the
"full" python and delete the python.exe in Ruurd's distribution. This would
be the next step to try.
I think that LaTeX export and import are /absolutely /essential.
Thanks
Ekkehart


Re: [Fwd: Re: Exports]

2005-02-15 Thread Paul A. Rubin
Colin J. Williams wrote:
Paul,
It turns out that the problem is not simply between clicking and opening.
The recent files list, which appears when one clicks on _F_ile, has some 
entries in the Unix style (C:/LyX/etc) and some in the Windows style 
(C:\LyX\etc).  If I use the former then I can export, the Windows style 
fails.

Colin W.
 Original Message 
Subject: Re: Exports
Date: Mon, 14 Feb 2005 17:22:46 -0500
From: Colin J. Williams <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: lyx-users@lists.lyx.org
References: 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>


Paul A. Rubin wrote:
Colin J. Williams wrote:
Are there known problems with Export?  I find that I cannot export to 
ascii or latex.

Colin W.
What platform?  There's a bit of an adventure with exporting on 
Windows, depending on how you opened the file (file menu v. 
double-clicking the file icon).

-- Paul 

Paul,
Thanks, you have put your finger on the problem.  If I open a file I can 
export.  With clicking in the Windows Explorer I cannot.

The workaround appears to be "NEVER enter LyX by clicking".  I've 
removed the file association

I am using Windows XP with Lyx 1.3.5.
Thanks,
Colin W.
Colin W.

When you open a file from the file icon, the entry in the file history 
menu has the wrong type of separators.  If you follow the workaround, 
eventually those entries will disappear from the history menu.  History 
entries from files opened from the file menu have the correct separators.

-- Paul


Re: Attempt to use lyxpreview

2005-02-15 Thread Paul A. Rubin
Herbert Voss wrote:
Angus Leeming wrote:
Angus (coming from the unix world...)

huh, is there any other world? :-)
Herbert

There's the "damn, it crashed again!" world that Mr. Gates et al. 
created.  :-)

-- Paul


Re: Looking for a way of circumventing a bug

2005-02-15 Thread Paul Smith
On Tue, 15 Feb 2005 19:39:59 +, Paul Smith <[EMAIL PROTECTED]> wrote:
> After each proof, the first paragraph is not indented as it should.
> Any idea to get back the indentation by default?

Oh, forget my question: I have just tried with article AMS and it does
not do any indentation. So, this should be the expected behaviour.

Paul


Re: Looking for a way of circumventing a bug

2005-02-15 Thread Herbert Voss
Paul Smith wrote:
On Mon, 14 Feb 2005 21:55:48 +, Paul Smith <[EMAIL PROTECTED]> wrote:
no, look for extarticle.layout as an example
I can copy the original file stdlayouts.inc and add your definition of
the proof environment and rename it. Then, how can we make the new and
renamed stdlayouts.inc file specific to the extarticle class?
Difficult?

Not difficult, really. I have just managed to do that.
I suppose, thet there is no other way here than
insert ERT \hspace*{\parindent} befor the first line
after a proof.
A problem of LyX, doesn't insert an empty line, which maybe
possible by the layout, but I forgot about it. ->docs
Otherwise there maybe an option in ntheorem
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Looking for a way of circumventing a bug

2005-02-15 Thread Herbert Voss
Paul Smith wrote:
On Tue, 15 Feb 2005 19:39:59 +, Paul Smith <[EMAIL PROTECTED]> wrote:
After each proof, the first paragraph is not indented as it should.
Any idea to get back the indentation by default?

Oh, forget my question: I have just tried with article AMS and it does
not do any indentation. So, this should be the expected behaviour.
that is true anyway. Same for itemize, description, ..
HErbert

--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Dead keys problem, v. 1.3.5 Spanish accents

2005-02-15 Thread indy
Hi,
I'm using Lyx under Fedora Core 3. I have a problem with dead keys. I
need write accents but this is not posible with my version. Example: á
 see like 'a in Lyx.
I'm reading there is a problem with qt, but I no found any solution. 
How can I solve it?

thanks!


Re: Looking for a way of circumventing a bug

2005-02-15 Thread Paul Smith
On Tue, 15 Feb 2005 21:22:38 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote:
> I suppose, thet there is no other way here than
> insert ERT \hspace*{\parindent} befor the first line
> after a proof.

An empty ERT + pressing the return key works as well.

Paul


Re: Incorporating PSTricks Figures in a Document

2005-02-15 Thread Paul Smith
On Tue, 15 Feb 2005 18:44:36 +, Paul Smith <[EMAIL PROTECTED]> wrote:
> Reconfigure LyX and restart it. Then, the entry PDF4 should show up in
> th menu View.

I forgot to say that ps4pdf produces, if PSTricks figures are present,
much smaller pdf files than ps2pdf, which is important when our
document has many PSTricks figures.

Paul


Re: failed import of latex doc (relyx produces something that causes lyx2lyx to hang)

2005-02-15 Thread Michael Wojcik
Ekkehart Schlicht wrote:
Michael Wojcik wrote:
You could try the following:
1. Rename lyx2lyx to lyx2lyx.py.
2. Make sure .py files have the correct association. You can create
a simple "test.py" containing just "print 'Hello'" and run that
from the command line to check.
3. Create a command file named lyx2lyx.cmd to run lyx2lyx.py:
@ /path/to/lyx2lyx.py %*
.
4. Now, you should be able to run lyx2lyx; that will actually run 
lyx2lyx.cmd, which will run lyx2lyx.py.

I haven't actually tried this with lyx2lyx, but it works for a
simple test Python script, so it might fix the lyx2lxy issue on
Windows.

Just to confirm: This works just fine with lyx2lyx and LyX/Win32 qt 
1.3.5. (and lyx2lyx.cmd in the lyx\share\lyx\lyx2lyx directory.)
Maybe this would be good post in  Wiki.
Thanks, Ekkehart, for confirming this.  I'll write a Wiki tip.  (I have 
another one pending that I haven't added to the actual Wiki yet, so I'll 
get both of them up there as soon as I have a free moment.)

--
Michael Wojcik


Re: Exports

2005-02-15 Thread Michael Wojcik
Colin J. Williams wrote:
Paul A. Rubin wrote:
Colin J. Williams wrote:
Are there known problems with Export?  I find that I cannot export to 
ascii or latex.

What platform?  There's a bit of an adventure with exporting on 
Windows, depending on how you opened the file (file menu v. 
double-clicking the file icon).
Thanks, you have put your finger on the problem.  If I open a file I can 
export.  With clicking in the Windows Explorer I cannot.

The workaround appears to be "NEVER enter LyX by clicking".  I've 
removed the file association

I am using Windows XP with Lyx 1.3.5.
This workaround works for me.  It requires features that AFAIK were only 
added to cmd.exe in XP, so it probably won't work with older versions of 
Windows.

Create a file named "loadlyx.cmd" in the lyx/bin directory or somewhere 
else appropriate (eg in a "tools" directory on your path), containing:

   @path c:\programs\lyx\bin;%path%
   for /f "usebackq" %%a in (`echo %1 ^| tr \\ /`) do lyx %%a
Substitute your LyX installation directory for "c:\programs\lyx".  (If 
the LyX bin directory is already in your path, you can skip the path 
command, but if you have other tr implementations in your path before 
the LyX one, you may have to fiddle with the backquoted command string, 
as some of them handle backslash escapes differently.)

Then associate your LyX file extension (.lyx or whatever) with loadlyx.cmd.
loadlyx converts backslashes to forward slashes on the lyx command line, 
fixing the problem with exports.

Looking at this now, it looks like it won't handle spacy names 
correctly.  It should be possible to fix that by making sure the name is 
quoted when it's passed to loadlyx, and setting the "delim" option in 
the for command.  Left as an exercise for the reader, unless I get 
around to writing a followup.

--
Michael Wojcik


installing ps4pdf

2005-02-15 Thread samar j. singh
> On Fri, 11 Feb 2005 11:40:51 +0530, samar j. singh <[EMAIL PROTECTED]>
wrote:
> > which indicated that pdflatex cannot handle pstricks!
>
> That's true, Samar. However, you can use PSTricks with beamer, as long
> as you use ps4pdf (please, notice that I wrote ps4pdf and not ps2pdf).
>
> Please, have a look at:
>
> http://www.pstricks.de/pdf/pdfoutput.phtml#ps4pdf
>
> I have successfully produced my beamer pdf presentations within LyX
> and using PSTricks. PSTricks are really powerful tools.
>
> Paul

Thanks Paul. Have been away for a few daysl.

Could you tell me what to do with the script file ps4pdf which is part of
the package to integrate into lyx.. Strangely enough, texhash does not allow
me to recognize ps4pdf.sty whether I put it in the root texmf tree or the
local texmf tree. Any advice on that?

thanks and regards

samar


>



Re: Dead keys problem, v. 1.3.5 Spanish accents

2005-02-15 Thread Paul Johnson
I don't have luck getting the compose key to work on my FC3 systems 
either. For me it is a matter of keyboard setup and compose key not 
working well with other elements.

However, in the online Lyx reference manual, I find I can get the 
symbols with accents in another way

http://www.fnal.gov/docs/products/lyx/Reference.tex.html
Section 3.3.1 show  how to get all manner of special characters.
In the "command" slot at the bottom of lyx, type "accent-acute" and  hit 
enter, then the next letter you  hit will appear with the acute.

I THINK this works fine for me.

indy wrote:
Hi,
I'm using Lyx under Fedora Core 3. I have a problem with dead keys. I
need write accents but this is not posible with my version. Example: á
 see like 'a in Lyx.
I'm reading there is a problem with qt, but I no found any solution. 
How can I solve it?

thanks!

--
Paul E. Johnson   email: [EMAIL PROTECTED]
Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas  Office: (785) 864-9086
Lawrence, Kansas 66044-3177   FAX: (785) 864-5700