pdftex process on MAC OSX-- more again

2011-05-15 Thread Robert Betz
Seemed to have narrowed down the problem of pdftex not stopping upon exit of 
Lyx. I was using the Koma-script 2 letter template, and I added a maths 
\rightarrow symbol in the text of the letter. This problem would then appear. 
Don't know why.  Take it out and the pdftex process stops and starts correctly 
with Lyx. 



Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-













Re: how to separate pdf file?

2011-05-15 Thread Hady Ariwibowo Teguh
Dear Diego,
pdf tk is powerful. thanks..:)
Teguh Hady A
CFD ENGINEER


--- On Thu, 5/12/11, Diego Queiroz queiroz.di...@gmail.com wrote:

From: Diego Queiroz queiroz.di...@gmail.com
Subject: Re: how to separate pdf file?
To: Hady Ariwibowo Teguh huget_te...@ymail.com
Cc: Julien Rioux jri...@physics.utoronto.ca, lyx-users@lists.lyx.org
Date: Thursday, May 12, 2011, 3:04 PM

 Just curious, will pdftk preserve links between chapters? This seems
 rather nontrivial.

Pdftk output is exactly like the original file, so it keeps all links.
All links in the generated file will work if they point to an existent position.
For example, if there is a link for the chapter 10, but the chapter 10
is not in the file, that link will not work (obvious?).

 I have tried to split the document by pdf creator. it works but, the link 
 cannot work.
 Any suggestion?

Use Pdftk. http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
It is much easier than using a pdf printer like PDF Creator, and the
output is much better.

Its usage is trivial:

- pdftk infile.pdf cat 1-20 output outfile.pdf
This command create a new file named outfile.pdf with the pages 1-20
from infile.pdf.

By default, the metadata is lost (bookmarks, authorname, title, password etc).
But you can use pdftk's update_info parameter to insert metadata on
a file. Google it if you need.


Take care,
---
Diego Queiroz


On-the-fly spellchecker

2011-05-15 Thread Julio Rojas
Dear all. I have been using Lyx 2.0 (Windows 7) with very much delight.
Nonetheless, there is a nagging problem that is more annoying than damaging.
When the on-the-fly spellchecker signals a mistake, sometimes when you
select the correct spelling, the cursor jumps to another instance of the
mistake in the document. It is difficult to pinpoint the cause, as it is not
frequent or predictable. It only happens every now and then. The document
I'm working with is big and has many spelling mistakes (in Spanish). Have
you seen this problem before?

If you need more info, let me know how can I gather it.

Keep the good work up. Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Jens Nöckel

On May 14, 2011, at 7:52 PM, Robert Betz wrote:

 Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9.  All 
 doing the same thing (pdftex not closing and using 100% CPU), so it may be my 
 system.  Doing on two though. The parent process for pdftex is Python, whose 
 parent in turn is Lyx. When Lyx closes down, Python closes but pdftex is not 
 closing.  Maybe there is some problem with my installation of Python. It 
 appears to be using Python 2.6
 
Bob, is this happening all the time or just for a specific file? If the latter, 
could you post a small example file? 

If it happens for any file, then go back to LyX, create a new file (e.g, 
newfile.tex) with just one line of text, and export it as a LaTeX (pdflatex) 
file. Then try to pdflatex that exported file from the _terminal_ with 
pdflatex newfile. 

If that doesn't work, it's a problem with your TeX installation. You could then 
send the tex file and the latex log. You could also try paring the file down by 
deleting any \usepackage commands in it, until the error goes away. Maybe you 
have some package or font installed that causes this crash. This could be hard 
to find if you have local installations that differ from the standard 
distribution.

Jens



Re: On-the-fly spellchecker

2011-05-15 Thread Richard Heck
On 05/15/2011 07:04 AM, Julio Rojas wrote:
 Dear all. I have been using Lyx 2.0 (Windows 7) with very much
 delight. Nonetheless, there is a nagging problem that is more annoying
 than damaging. When the on-the-fly spellchecker signals a mistake,
 sometimes when you select the correct spelling, the cursor jumps to
 another instance of the mistake in the document. It is difficult to
 pinpoint the cause, as it is not frequent or predictable. It only
 happens every now and then. The document I'm working with is big and
 has many spelling mistakes (in Spanish). Have you seen this problem
 before?

 If you need more info, let me know how can I gather it.

Please file this as a bug in trac, with spell as the component.

Richard



Re: eps graphics fails when displaying in pdf mode if inserted by ERT \includegraphics

2011-05-15 Thread Guenter Milde
On 2011-05-14, Gunnar wrote:
 On Saturday 14 May 2011 08.47.45 Gunnar wrote:

 Then I add an ERT

 {\includegraphics{venn5.eps}

 and it works when displaying as ps file but viewing as pdf file gives me
 the error

 ! LaTeX Error: Unknown graphics extension: .eps.

 Well, I exported a LaTeX file and the difference was really just the  four 
 letters:

 .eps

 I removed them and, voilá, problem solved!

But only, if you also have a *.pdf version of the same file.

 So I'd like to re-phrase  my original question:

 why isn't the filename extension .eps  allowed?

The 'pdftex' engine in PDF output mode (command `pdflatex`) does not
support EPS graphics. 

The 'pdftex' engine in DVI output mode (command `latex`) does not support
PDF graphics.

If the argument to \includegraphics has no extension, it is added by the
graphics package depending on the output format and available graphic files.

LyX converts graphics to the required format in a pre-processing step -
but not for ERT (using ERT you are on your own, this is a feature).

 How can I solve that problem?

a) do not use ERT for the graphic input command

b) provide both, EPS and PDF versions and leave out the extension in the
   ERT.
   
Günter   



Re: On-the-fly spellchecker

2011-05-15 Thread Julio Rojas
Done: Ticket #7564.

Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Sun, May 15, 2011 at 10:20 PM, Richard Heck rgh...@comcast.net wrote:

 On 05/15/2011 07:04 AM, Julio Rojas wrote:
  Dear all. I have been using Lyx 2.0 (Windows 7) with very much
  delight. Nonetheless, there is a nagging problem that is more annoying
  than damaging. When the on-the-fly spellchecker signals a mistake,
  sometimes when you select the correct spelling, the cursor jumps to
  another instance of the mistake in the document. It is difficult to
  pinpoint the cause, as it is not frequent or predictable. It only
  happens every now and then. The document I'm working with is big and
  has many spelling mistakes (in Spanish). Have you seen this problem
  before?
 
  If you need more info, let me know how can I gather it.
 
 Please file this as a bug in trac, with spell as the component.

 Richard




Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Robert Betz
Jens, 

It is not happening all the time with the system, but only under a very
specific class file.  Having thought about it a bit more after the
initial posting it may be an issue with pdftex itself, or with the
Python script the invokes it (from Lyx). 

If you create new file using the koma-letter2.lyx template file (which
uses the scrlttr2 latex class. The template is a default one in 1.6
series Lyx) and go it not math mode and insert a symbol in the text
somewhere (I inserted a \rightarrow a symbol). 

Save the file, and exit and reload.  Simply reloading the file will
start pdftex and it will continue to run, even if you exit Lyx again. 

This appears to do this on all machines that I run this on.  Also
happens under 1.6.10.  It may be an issue with pdftex and this use of it
with this class, but nevertheless the Python script that starts pdftex
should stop it on Lyx stopping.   

Incidentally the file compiles and displays OK.




Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-










 On Mon, May 16, 2011 at  3:44 AM, in message
8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu, Jens Nöckel
noec...@uoregon.edu wrote:



On May 14, 2011, at 7:52 PM, Robert Betz wrote: 




Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9. 
All doing the same thing (pdftex not closing and using 100% CPU), so it
may be my system.  Doing on two though. The parent process for pdftex is
Python, whose parent in turn is Lyx. When Lyx closes down, Python closes
but pdftex is not closing.  Maybe there is some problem with my
installation of Python. It appears to be using Python 2.6 



Bob, is this happening all the time or just for a specific file? If the
latter, could you post a small example file?  



If it happens for any file, then go back to LyX, create a new file (e.g,
newfile.tex) with just one line of text, and export it as a LaTeX
(pdflatex) file. Then try to pdflatex that exported file from the
_terminal_ with pdflatex newfile.  



If that doesn't work, it's a problem with your TeX installation. You
could then send the tex file and the latex log. You could also try
paring the file down by deleting any \usepackage commands in it, until
the error goes away. Maybe you have some package or font installed that
causes this crash. This could be hard to find if you have local
installations that differ from the standard distribution. 



Jens 





running cygwin or unix script from within lyx

2011-05-15 Thread Venable
Hi all,

I have written a couple of cygwin scripts to automate some time-consuming
repetitive tasks and would like to be able to run these from within LyX, for
example via a keyboard shortcut or a customized button on a toolbar. Is this
sort of thing possible? If so, does anyone have advice on how to set it up?

As an example, I like to use the pdfpages package to include external pdfs.
However, I often use relative paths (e.g. when collaborating with co-authors
on Dropbox and the like), and as we know LyX cannot handle this because of
all the copying to temporary directories and so on that LyX prefers. So,
I've written a very simple script to export the lyx file to tex and then
compile using miktex. It would be great if I didn't have to fire up CygWin
and type in the command and filename - rather, I'd prefer to designate a
keyboard shortcut or menu option within LyX that would tell cygwin to run
the script and pass it the current filename.

Many thanks in advance for any advice and please let me know if the question
needs clarifying, or if there is a different, better way.


Re: running cygwin or unix script from within lyx

2011-05-15 Thread Richard Heck

On 05/15/2011 08:48 PM, Venable wrote:

Hi all,

I have written a couple of cygwin scripts to automate some 
time-consuming repetitive tasks and would like to be able to run these 
from within LyX, for example via a keyboard shortcut or a customized 
button on a toolbar. Is this sort of thing possible? If so, does 
anyone have advice on how to set it up?


As an example, I like to use the pdfpages package to include external 
pdfs. However, I often use relative paths (e.g. when collaborating 
with co-authors on Dropbox and the like), and as we know LyX cannot 
handle this because of all the copying to temporary directories and so 
on that LyX prefers. So, I've written a very simple script to export 
the lyx file to tex and then compile using miktex. It would be great 
if I didn't have to fire up CygWin and type in the command and 
filename - rather, I'd prefer to designate a keyboard shortcut or menu 
option within LyX that would tell cygwin to run the script and pass it 
the current filename.


The only real way to do this, so far as I know, is to define a converter 
that will call your script. This converter might, for example, replace 
pdflatex as a LaTeX--PDF converter. There are a number of ways to do 
this, so the best way will depend on the details.


rh



Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Jens Nöckel
Bob,
I'm not sure I understand the problem, but I'm guessing you inserted a 
character like → into the text, while not in math mode. If so, you could try to 
circumvent the problem by going to Document  Settings  Fonts and changing the 
template's Roman font from Palatino to Default.

I don't see the same pdflatex crash as you, but LyX displays a latex error 
message if I try to use Palatino font with that \textrightarrow  character. 
So I can't be sure if this helps you. Could it be that your TeX installation is 
out of date?  

It may be worth thinking about how LyX can keep track of pdflatex processes it 
has spawned, so that it can kill -9 crashed processes when the user exits LyX 
(after warning about it). I don't think that anything like that has been 
implemented at this point. And of course that wouldn't help fix the root cause 
of your problem. 

Jens


On May 15, 2011, at 4:03 PM, Robert Betz wrote:

 Jens,
 
 It is not happening all the time with the system, but only under a very 
 specific class file.  Having thought about it a bit more after the initial 
 posting it may be an issue with pdftex itself, or with the Python script the 
 invokes it (from Lyx).
 
 If you create new file using the koma-letter2.lyx template file (which uses 
 the scrlttr2 latex class. The template is a default one in 1.6 series Lyx) 
 and go it not math mode and insert a symbol in the text somewhere (I inserted 
 a \rightarrow a symbol).
 
 Save the file, and exit and reload.  Simply reloading the file will start 
 pdftex and it will continue to run, even if you exit Lyx again.
 
 This appears to do this on all machines that I run this on.  Also happens 
 under 1.6.10.  It may be an issue with pdftex and this use of it with this 
 class, but nevertheless the Python script that starts pdftex should stop it 
 on Lyx stopping.  
 
 Incidentally the file compiles and displays OK.
 
 
 
 
 Regards 
 
 
 Bob Betz 
 
 
 
 - 
 
 Dr. Robert Betz 
 Ampcontrol Professor of Power Engineering, 
 Head, School of Electrical Engineering and Computer Science, 
 Faculty of Engineering and Built Environment, 
 University of Newcastle, Australia, 
 
 email: robert.b...@newcastle.edu.au 
 FAX: +61-2-4921-6993 
 TEL: +61-2-4921-6091 
 Mobile: (+61)-(0)419249948 
 Web: http://eecsbobb.newcastle.edu.au/rebetz 
 
 - 
 
 
 
 
 
 
 
 
 
 
  On Mon, May 16, 2011 at  3:44 AM, in message 
  8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu, Jens Nöckel 
  noec...@uoregon.edu wrote:
 
 On May 14, 2011, at 7:52 PM, Robert Betz wrote:
 
 Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9.  All 
 doing the same thing (pdftex not closing and using 100% CPU), so it may be 
 my system.  Doing on two though. The parent process for pdftex is Python, 
 whose parent in turn is Lyx. When Lyx closes down, Python closes but pdftex 
 is not closing.  Maybe there is some problem with my installation of Python. 
 It appears to be using Python 2.6
 
 
 Bob, is this happening all the time or just for a specific file? If the 
 latter, could you post a small example file? 
 
 If it happens for any file, then go back to LyX, create a new file (e.g, 
 newfile.tex) with just one line of text, and export it as a LaTeX 
 (pdflatex) file. Then try to pdflatex that exported file from the _terminal_ 
 with pdflatex newfile. 
 
 If that doesn't work, it's a problem with your TeX installation. You could 
 then send the tex file and the latex log. You could also try paring the file 
 down by deleting any \usepackage commands in it, until the error goes away. 
 Maybe you have some package or font installed that causes this crash. This 
 could be hard to find if you have local installations that differ from the 
 standard distribution.
 
 Jens
 
 



Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Robert Betz
Jens, 

The process that is left running is called pdftex (not pdflatex), and
its parent process is called Python, whose parent process is Lyx.  That
is the sequence of parent to child processes. 

In relation to what I inserted into the koma-let2.lyx template file it
was simply a → inserted in MATH mode, not text mode.  It does not matter
what symbol you insert in Maths mode. 

To reproduce it you simply load up the koma-let2.lyx template, compile
it as an initial test.  It will compile, and if you look at the
processes the pdftex process will have started with the compile, and
then would have closed. So it no longer appears on the list of
processes. 

Now add in in a symbol in Maths mode. Compile the same file but with
only this symbol added.  The pdftex process will continue to run once
the compilation is complete.  Quit lyx, and you will see the pdftex is
still running and consuming 100% of the core that it is running on. 

You have to do a Quit from the Activity Monitor to stop pdftex.  The
Python process )the parent of pdftex) stops when Lyx is exited. 

It would be a good idea in the future to make sure that Lyx closes all
the process that it is responsible for, even if a process has gone
rogue.  Of course an error message is handy if this is occurring. 

Thanks for your comments on this issue. 







Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-










 On Mon, May 16, 2011 at  1:23 PM, in message
98c5da25-698c-4e06-80a1-60c520337...@uoregon.edu, Jens Nöckel
noec...@uoregon.edu wrote:

Bob, 

I'm not sure I understand the problem, but I'm guessing you inserted a
character like  
→ 

 into the text, while not in math mode. If so, you could try to
circumvent the problem by going to Document  Settings  Fonts and
changing the template's Roman font from Palatino to Default. 



I don't see the same pdflatex crash as you, but LyX displays a latex
error message if I try to use Palatino font with that \textrightarrow 
character. So I can't be sure if this helps you. Could it be that your
TeX installation is out of date?   



It may be worth thinking about how LyX can keep track of pdflatex
processes it has spawned, so that it can kill -9 crashed processes
when the user exits LyX (after warning about it). I don't think that
anything like that has been implemented at this point. And of course
that wouldn't help fix the root cause of your problem.  



Jens 





On May 15, 2011, at 4:03 PM, Robert Betz wrote: 




Jens, 



It is not happening all the time with the system, but only under a very
specific class file.  Having thought about it a bit more after the
initial posting it may be an issue with pdftex itself, or with the
Python script the invokes it (from Lyx). 



If you create new file using the koma-letter2.lyx template file (which
uses the scrlttr2 latex class. The template is a default one in 1.6
series Lyx) and go it not math mode and insert a symbol in the text
somewhere (I inserted a \rightarrow a symbol). 



Save the file, and exit and reload.  Simply reloading the file will
start pdftex and it will continue to run, even if you exit Lyx again. 



This appears to do this on all machines that I run this on.  Also
happens under 1.6.10.  It may be an issue with pdftex and this use of it
with this class, but nevertheless the Python script that starts pdftex
should stop it on Lyx stopping.   



Incidentally the file compiles and displays OK.




Regards 
  




Bob Betz 
Ampcontrol Professor of Power Engineering, 
  


Head, School of Electrical Engineering and Computer Science, 
  


Faculty of Engineering and Built Environment, 
  


University of Newcastle, Australia, 
  



email: robert.b...@newcastle.edu.au 
  


FAX: +61-2-4921-6993 
  


TEL: +61-2-4921-6091 
  


Mobile: (+61)-(0)419249948 
  


Web: http://eecsbobb.newcastle.edu.au/rebetz 
  



- 
  












 On Mon, May 16, 2011 at  3:44 AM, in message
8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu, Jens Nöckel
noec...@uoregon.edu wrote:



On May 14, 2011, at 7:52 PM, Robert Betz wrote: 




Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9. 
All doing the same thing (pdftex not closing and using 100% CPU), so it
may be my system.  Doing on two though. The parent process for pdftex is
Python, whose parent in turn is Lyx. When Lyx closes down, Python closes
but pdftex is not closing.  Maybe there is some problem with my
installation of Python. It appears to be using Python 

pdftex process on MAC OSX-- more again

2011-05-15 Thread Robert Betz
Seemed to have narrowed down the problem of pdftex not stopping upon exit of 
Lyx. I was using the Koma-script 2 letter template, and I added a maths 
\rightarrow symbol in the text of the letter. This problem would then appear. 
Don't know why.  Take it out and the pdftex process stops and starts correctly 
with Lyx. 



Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-













Re: how to separate pdf file?

2011-05-15 Thread Hady Ariwibowo Teguh
Dear Diego,
pdf tk is powerful. thanks..:)
Teguh Hady A
CFD ENGINEER


--- On Thu, 5/12/11, Diego Queiroz queiroz.di...@gmail.com wrote:

From: Diego Queiroz queiroz.di...@gmail.com
Subject: Re: how to separate pdf file?
To: Hady Ariwibowo Teguh huget_te...@ymail.com
Cc: Julien Rioux jri...@physics.utoronto.ca, lyx-users@lists.lyx.org
Date: Thursday, May 12, 2011, 3:04 PM

 Just curious, will pdftk preserve links between chapters? This seems
 rather nontrivial.

Pdftk output is exactly like the original file, so it keeps all links.
All links in the generated file will work if they point to an existent position.
For example, if there is a link for the chapter 10, but the chapter 10
is not in the file, that link will not work (obvious?).

 I have tried to split the document by pdf creator. it works but, the link 
 cannot work.
 Any suggestion?

Use Pdftk. http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
It is much easier than using a pdf printer like PDF Creator, and the
output is much better.

Its usage is trivial:

- pdftk infile.pdf cat 1-20 output outfile.pdf
This command create a new file named outfile.pdf with the pages 1-20
from infile.pdf.

By default, the metadata is lost (bookmarks, authorname, title, password etc).
But you can use pdftk's update_info parameter to insert metadata on
a file. Google it if you need.


Take care,
---
Diego Queiroz


On-the-fly spellchecker

2011-05-15 Thread Julio Rojas
Dear all. I have been using Lyx 2.0 (Windows 7) with very much delight.
Nonetheless, there is a nagging problem that is more annoying than damaging.
When the on-the-fly spellchecker signals a mistake, sometimes when you
select the correct spelling, the cursor jumps to another instance of the
mistake in the document. It is difficult to pinpoint the cause, as it is not
frequent or predictable. It only happens every now and then. The document
I'm working with is big and has many spelling mistakes (in Spanish). Have
you seen this problem before?

If you need more info, let me know how can I gather it.

Keep the good work up. Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Jens Nöckel

On May 14, 2011, at 7:52 PM, Robert Betz wrote:

 Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9.  All 
 doing the same thing (pdftex not closing and using 100% CPU), so it may be my 
 system.  Doing on two though. The parent process for pdftex is Python, whose 
 parent in turn is Lyx. When Lyx closes down, Python closes but pdftex is not 
 closing.  Maybe there is some problem with my installation of Python. It 
 appears to be using Python 2.6
 
Bob, is this happening all the time or just for a specific file? If the latter, 
could you post a small example file? 

If it happens for any file, then go back to LyX, create a new file (e.g, 
newfile.tex) with just one line of text, and export it as a LaTeX (pdflatex) 
file. Then try to pdflatex that exported file from the _terminal_ with 
pdflatex newfile. 

If that doesn't work, it's a problem with your TeX installation. You could then 
send the tex file and the latex log. You could also try paring the file down by 
deleting any \usepackage commands in it, until the error goes away. Maybe you 
have some package or font installed that causes this crash. This could be hard 
to find if you have local installations that differ from the standard 
distribution.

Jens



Re: On-the-fly spellchecker

2011-05-15 Thread Richard Heck
On 05/15/2011 07:04 AM, Julio Rojas wrote:
 Dear all. I have been using Lyx 2.0 (Windows 7) with very much
 delight. Nonetheless, there is a nagging problem that is more annoying
 than damaging. When the on-the-fly spellchecker signals a mistake,
 sometimes when you select the correct spelling, the cursor jumps to
 another instance of the mistake in the document. It is difficult to
 pinpoint the cause, as it is not frequent or predictable. It only
 happens every now and then. The document I'm working with is big and
 has many spelling mistakes (in Spanish). Have you seen this problem
 before?

 If you need more info, let me know how can I gather it.

Please file this as a bug in trac, with spell as the component.

Richard



Re: eps graphics fails when displaying in pdf mode if inserted by ERT \includegraphics

2011-05-15 Thread Guenter Milde
On 2011-05-14, Gunnar wrote:
 On Saturday 14 May 2011 08.47.45 Gunnar wrote:

 Then I add an ERT

 {\includegraphics{venn5.eps}

 and it works when displaying as ps file but viewing as pdf file gives me
 the error

 ! LaTeX Error: Unknown graphics extension: .eps.

 Well, I exported a LaTeX file and the difference was really just the  four 
 letters:

 .eps

 I removed them and, voilá, problem solved!

But only, if you also have a *.pdf version of the same file.

 So I'd like to re-phrase  my original question:

 why isn't the filename extension .eps  allowed?

The 'pdftex' engine in PDF output mode (command `pdflatex`) does not
support EPS graphics. 

The 'pdftex' engine in DVI output mode (command `latex`) does not support
PDF graphics.

If the argument to \includegraphics has no extension, it is added by the
graphics package depending on the output format and available graphic files.

LyX converts graphics to the required format in a pre-processing step -
but not for ERT (using ERT you are on your own, this is a feature).

 How can I solve that problem?

a) do not use ERT for the graphic input command

b) provide both, EPS and PDF versions and leave out the extension in the
   ERT.
   
Günter   



Re: On-the-fly spellchecker

2011-05-15 Thread Julio Rojas
Done: Ticket #7564.

Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Sun, May 15, 2011 at 10:20 PM, Richard Heck rgh...@comcast.net wrote:

 On 05/15/2011 07:04 AM, Julio Rojas wrote:
  Dear all. I have been using Lyx 2.0 (Windows 7) with very much
  delight. Nonetheless, there is a nagging problem that is more annoying
  than damaging. When the on-the-fly spellchecker signals a mistake,
  sometimes when you select the correct spelling, the cursor jumps to
  another instance of the mistake in the document. It is difficult to
  pinpoint the cause, as it is not frequent or predictable. It only
  happens every now and then. The document I'm working with is big and
  has many spelling mistakes (in Spanish). Have you seen this problem
  before?
 
  If you need more info, let me know how can I gather it.
 
 Please file this as a bug in trac, with spell as the component.

 Richard




Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Robert Betz
Jens, 

It is not happening all the time with the system, but only under a very
specific class file.  Having thought about it a bit more after the
initial posting it may be an issue with pdftex itself, or with the
Python script the invokes it (from Lyx). 

If you create new file using the koma-letter2.lyx template file (which
uses the scrlttr2 latex class. The template is a default one in 1.6
series Lyx) and go it not math mode and insert a symbol in the text
somewhere (I inserted a \rightarrow a symbol). 

Save the file, and exit and reload.  Simply reloading the file will
start pdftex and it will continue to run, even if you exit Lyx again. 

This appears to do this on all machines that I run this on.  Also
happens under 1.6.10.  It may be an issue with pdftex and this use of it
with this class, but nevertheless the Python script that starts pdftex
should stop it on Lyx stopping.   

Incidentally the file compiles and displays OK.




Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-










 On Mon, May 16, 2011 at  3:44 AM, in message
8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu, Jens Nöckel
noec...@uoregon.edu wrote:



On May 14, 2011, at 7:52 PM, Robert Betz wrote: 




Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9. 
All doing the same thing (pdftex not closing and using 100% CPU), so it
may be my system.  Doing on two though. The parent process for pdftex is
Python, whose parent in turn is Lyx. When Lyx closes down, Python closes
but pdftex is not closing.  Maybe there is some problem with my
installation of Python. It appears to be using Python 2.6 



Bob, is this happening all the time or just for a specific file? If the
latter, could you post a small example file?  



If it happens for any file, then go back to LyX, create a new file (e.g,
newfile.tex) with just one line of text, and export it as a LaTeX
(pdflatex) file. Then try to pdflatex that exported file from the
_terminal_ with pdflatex newfile.  



If that doesn't work, it's a problem with your TeX installation. You
could then send the tex file and the latex log. You could also try
paring the file down by deleting any \usepackage commands in it, until
the error goes away. Maybe you have some package or font installed that
causes this crash. This could be hard to find if you have local
installations that differ from the standard distribution. 



Jens 





running cygwin or unix script from within lyx

2011-05-15 Thread Venable
Hi all,

I have written a couple of cygwin scripts to automate some time-consuming
repetitive tasks and would like to be able to run these from within LyX, for
example via a keyboard shortcut or a customized button on a toolbar. Is this
sort of thing possible? If so, does anyone have advice on how to set it up?

As an example, I like to use the pdfpages package to include external pdfs.
However, I often use relative paths (e.g. when collaborating with co-authors
on Dropbox and the like), and as we know LyX cannot handle this because of
all the copying to temporary directories and so on that LyX prefers. So,
I've written a very simple script to export the lyx file to tex and then
compile using miktex. It would be great if I didn't have to fire up CygWin
and type in the command and filename - rather, I'd prefer to designate a
keyboard shortcut or menu option within LyX that would tell cygwin to run
the script and pass it the current filename.

Many thanks in advance for any advice and please let me know if the question
needs clarifying, or if there is a different, better way.


Re: running cygwin or unix script from within lyx

2011-05-15 Thread Richard Heck

On 05/15/2011 08:48 PM, Venable wrote:

Hi all,

I have written a couple of cygwin scripts to automate some 
time-consuming repetitive tasks and would like to be able to run these 
from within LyX, for example via a keyboard shortcut or a customized 
button on a toolbar. Is this sort of thing possible? If so, does 
anyone have advice on how to set it up?


As an example, I like to use the pdfpages package to include external 
pdfs. However, I often use relative paths (e.g. when collaborating 
with co-authors on Dropbox and the like), and as we know LyX cannot 
handle this because of all the copying to temporary directories and so 
on that LyX prefers. So, I've written a very simple script to export 
the lyx file to tex and then compile using miktex. It would be great 
if I didn't have to fire up CygWin and type in the command and 
filename - rather, I'd prefer to designate a keyboard shortcut or menu 
option within LyX that would tell cygwin to run the script and pass it 
the current filename.


The only real way to do this, so far as I know, is to define a converter 
that will call your script. This converter might, for example, replace 
pdflatex as a LaTeX--PDF converter. There are a number of ways to do 
this, so the best way will depend on the details.


rh



Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Jens Nöckel
Bob,
I'm not sure I understand the problem, but I'm guessing you inserted a 
character like → into the text, while not in math mode. If so, you could try to 
circumvent the problem by going to Document  Settings  Fonts and changing the 
template's Roman font from Palatino to Default.

I don't see the same pdflatex crash as you, but LyX displays a latex error 
message if I try to use Palatino font with that \textrightarrow  character. 
So I can't be sure if this helps you. Could it be that your TeX installation is 
out of date?  

It may be worth thinking about how LyX can keep track of pdflatex processes it 
has spawned, so that it can kill -9 crashed processes when the user exits LyX 
(after warning about it). I don't think that anything like that has been 
implemented at this point. And of course that wouldn't help fix the root cause 
of your problem. 

Jens


On May 15, 2011, at 4:03 PM, Robert Betz wrote:

 Jens,
 
 It is not happening all the time with the system, but only under a very 
 specific class file.  Having thought about it a bit more after the initial 
 posting it may be an issue with pdftex itself, or with the Python script the 
 invokes it (from Lyx).
 
 If you create new file using the koma-letter2.lyx template file (which uses 
 the scrlttr2 latex class. The template is a default one in 1.6 series Lyx) 
 and go it not math mode and insert a symbol in the text somewhere (I inserted 
 a \rightarrow a symbol).
 
 Save the file, and exit and reload.  Simply reloading the file will start 
 pdftex and it will continue to run, even if you exit Lyx again.
 
 This appears to do this on all machines that I run this on.  Also happens 
 under 1.6.10.  It may be an issue with pdftex and this use of it with this 
 class, but nevertheless the Python script that starts pdftex should stop it 
 on Lyx stopping.  
 
 Incidentally the file compiles and displays OK.
 
 
 
 
 Regards 
 
 
 Bob Betz 
 
 
 
 - 
 
 Dr. Robert Betz 
 Ampcontrol Professor of Power Engineering, 
 Head, School of Electrical Engineering and Computer Science, 
 Faculty of Engineering and Built Environment, 
 University of Newcastle, Australia, 
 
 email: robert.b...@newcastle.edu.au 
 FAX: +61-2-4921-6993 
 TEL: +61-2-4921-6091 
 Mobile: (+61)-(0)419249948 
 Web: http://eecsbobb.newcastle.edu.au/rebetz 
 
 - 
 
 
 
 
 
 
 
 
 
 
  On Mon, May 16, 2011 at  3:44 AM, in message 
  8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu, Jens Nöckel 
  noec...@uoregon.edu wrote:
 
 On May 14, 2011, at 7:52 PM, Robert Betz wrote:
 
 Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9.  All 
 doing the same thing (pdftex not closing and using 100% CPU), so it may be 
 my system.  Doing on two though. The parent process for pdftex is Python, 
 whose parent in turn is Lyx. When Lyx closes down, Python closes but pdftex 
 is not closing.  Maybe there is some problem with my installation of Python. 
 It appears to be using Python 2.6
 
 
 Bob, is this happening all the time or just for a specific file? If the 
 latter, could you post a small example file? 
 
 If it happens for any file, then go back to LyX, create a new file (e.g, 
 newfile.tex) with just one line of text, and export it as a LaTeX 
 (pdflatex) file. Then try to pdflatex that exported file from the _terminal_ 
 with pdflatex newfile. 
 
 If that doesn't work, it's a problem with your TeX installation. You could 
 then send the tex file and the latex log. You could also try paring the file 
 down by deleting any \usepackage commands in it, until the error goes away. 
 Maybe you have some package or font installed that causes this crash. This 
 could be hard to find if you have local installations that differ from the 
 standard distribution.
 
 Jens
 
 



Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Robert Betz
Jens, 

The process that is left running is called pdftex (not pdflatex), and
its parent process is called Python, whose parent process is Lyx.  That
is the sequence of parent to child processes. 

In relation to what I inserted into the koma-let2.lyx template file it
was simply a → inserted in MATH mode, not text mode.  It does not matter
what symbol you insert in Maths mode. 

To reproduce it you simply load up the koma-let2.lyx template, compile
it as an initial test.  It will compile, and if you look at the
processes the pdftex process will have started with the compile, and
then would have closed. So it no longer appears on the list of
processes. 

Now add in in a symbol in Maths mode. Compile the same file but with
only this symbol added.  The pdftex process will continue to run once
the compilation is complete.  Quit lyx, and you will see the pdftex is
still running and consuming 100% of the core that it is running on. 

You have to do a Quit from the Activity Monitor to stop pdftex.  The
Python process )the parent of pdftex) stops when Lyx is exited. 

It would be a good idea in the future to make sure that Lyx closes all
the process that it is responsible for, even if a process has gone
rogue.  Of course an error message is handy if this is occurring. 

Thanks for your comments on this issue. 







Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-










 On Mon, May 16, 2011 at  1:23 PM, in message
98c5da25-698c-4e06-80a1-60c520337...@uoregon.edu, Jens Nöckel
noec...@uoregon.edu wrote:

Bob, 

I'm not sure I understand the problem, but I'm guessing you inserted a
character like  
→ 

 into the text, while not in math mode. If so, you could try to
circumvent the problem by going to Document  Settings  Fonts and
changing the template's Roman font from Palatino to Default. 



I don't see the same pdflatex crash as you, but LyX displays a latex
error message if I try to use Palatino font with that \textrightarrow 
character. So I can't be sure if this helps you. Could it be that your
TeX installation is out of date?   



It may be worth thinking about how LyX can keep track of pdflatex
processes it has spawned, so that it can kill -9 crashed processes
when the user exits LyX (after warning about it). I don't think that
anything like that has been implemented at this point. And of course
that wouldn't help fix the root cause of your problem.  



Jens 





On May 15, 2011, at 4:03 PM, Robert Betz wrote: 




Jens, 



It is not happening all the time with the system, but only under a very
specific class file.  Having thought about it a bit more after the
initial posting it may be an issue with pdftex itself, or with the
Python script the invokes it (from Lyx). 



If you create new file using the koma-letter2.lyx template file (which
uses the scrlttr2 latex class. The template is a default one in 1.6
series Lyx) and go it not math mode and insert a symbol in the text
somewhere (I inserted a \rightarrow a symbol). 



Save the file, and exit and reload.  Simply reloading the file will
start pdftex and it will continue to run, even if you exit Lyx again. 



This appears to do this on all machines that I run this on.  Also
happens under 1.6.10.  It may be an issue with pdftex and this use of it
with this class, but nevertheless the Python script that starts pdftex
should stop it on Lyx stopping.   



Incidentally the file compiles and displays OK.




Regards 
  




Bob Betz 
Ampcontrol Professor of Power Engineering, 
  


Head, School of Electrical Engineering and Computer Science, 
  


Faculty of Engineering and Built Environment, 
  


University of Newcastle, Australia, 
  



email: robert.b...@newcastle.edu.au 
  


FAX: +61-2-4921-6993 
  


TEL: +61-2-4921-6091 
  


Mobile: (+61)-(0)419249948 
  


Web: http://eecsbobb.newcastle.edu.au/rebetz 
  



- 
  












 On Mon, May 16, 2011 at  3:44 AM, in message
8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu, Jens Nöckel
noec...@uoregon.edu wrote:



On May 14, 2011, at 7:52 PM, Robert Betz wrote: 




Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9. 
All doing the same thing (pdftex not closing and using 100% CPU), so it
may be my system.  Doing on two though. The parent process for pdftex is
Python, whose parent in turn is Lyx. When Lyx closes down, Python closes
but pdftex is not closing.  Maybe there is some problem with my
installation of Python. It appears to be using Python 

pdftex process on MAC OSX-- more again

2011-05-15 Thread Robert Betz
Seemed to have narrowed down the problem of pdftex not stopping upon exit of 
Lyx. I was using the Koma-script 2 letter template, and I added a maths 
\rightarrow symbol in the text of the letter. This problem would then appear. 
Don't know why.  Take it out and the pdftex process stops and starts correctly 
with Lyx. 



Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-













Re: how to separate pdf file?

2011-05-15 Thread Hady Ariwibowo Teguh
Dear Diego,
pdf tk is powerful. thanks..:)
Teguh Hady A
CFD ENGINEER


--- On Thu, 5/12/11, Diego Queiroz  wrote:

From: Diego Queiroz 
Subject: Re: how to separate pdf file?
To: "Hady Ariwibowo Teguh" 
Cc: "Julien Rioux" , lyx-users@lists.lyx.org
Date: Thursday, May 12, 2011, 3:04 PM

> Just curious, will pdftk preserve links between chapters? This seems
> rather nontrivial.

Pdftk output is exactly like the original file, so it keeps all links.
All links in the generated file will work if they point to an existent position.
For example, if there is a link for the chapter 10, but the chapter 10
is not in the file, that link will not work (obvious?).

> I have tried to split the document by pdf creator. it works but, the link 
> cannot work.
> Any suggestion?

Use Pdftk. http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
It is much easier than using a pdf printer like PDF Creator, and the
output is much better.

Its usage is trivial:

- pdftk infile.pdf cat 1-20 output outfile.pdf
This command create a new file named outfile.pdf with the pages 1-20
from infile.pdf.

By default, the metadata is lost (bookmarks, authorname, title, password etc).
But you can use pdftk's "update_info" parameter to insert metadata on
a file. Google it if you need.


Take care,
---
Diego Queiroz


On-the-fly spellchecker

2011-05-15 Thread Julio Rojas
Dear all. I have been using Lyx 2.0 (Windows 7) with very much delight.
Nonetheless, there is a nagging problem that is more annoying than damaging.
When the on-the-fly spellchecker signals a mistake, sometimes when you
select the correct spelling, the cursor jumps to another instance of the
mistake in the document. It is difficult to pinpoint the cause, as it is not
frequent or predictable. It only happens every now and then. The document
I'm working with is big and has many spelling mistakes (in Spanish). Have
you seen this problem before?

If you need more info, let me know how can I gather it.

Keep the good work up. Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Jens Nöckel

On May 14, 2011, at 7:52 PM, Robert Betz wrote:

> Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9.  All 
> doing the same thing (pdftex not closing and using 100% CPU), so it may be my 
> system.  Doing on two though. The parent process for pdftex is Python, whose 
> parent in turn is Lyx. When Lyx closes down, Python closes but pdftex is not 
> closing.  Maybe there is some problem with my installation of Python. It 
> appears to be using Python 2.6
> 
Bob, is this happening all the time or just for a specific file? If the latter, 
could you post a small example file? 

If it happens for any file, then go back to LyX, create a new file (e.g, 
"newfile.tex") with just one line of text, and export it as a LaTeX (pdflatex) 
file. Then try to pdflatex that exported file from the _terminal_ with 
"pdflatex newfile". 

If that doesn't work, it's a problem with your TeX installation. You could then 
send the tex file and the latex log. You could also try paring the file down by 
deleting any "\usepackage" commands in it, until the error goes away. Maybe you 
have some package or font installed that causes this crash. This could be hard 
to find if you have local installations that differ from the standard 
distribution.

Jens



Re: On-the-fly spellchecker

2011-05-15 Thread Richard Heck
On 05/15/2011 07:04 AM, Julio Rojas wrote:
> Dear all. I have been using Lyx 2.0 (Windows 7) with very much
> delight. Nonetheless, there is a nagging problem that is more annoying
> than damaging. When the on-the-fly spellchecker signals a mistake,
> sometimes when you select the correct spelling, the cursor jumps to
> another instance of the mistake in the document. It is difficult to
> pinpoint the cause, as it is not frequent or predictable. It only
> happens every now and then. The document I'm working with is big and
> has many spelling mistakes (in Spanish). Have you seen this problem
> before?
>
> If you need more info, let me know how can I gather it.
>
Please file this as a bug in trac, with "spell" as the component.

Richard



Re: eps graphics fails when displaying in pdf mode if inserted by ERT \includegraphics

2011-05-15 Thread Guenter Milde
On 2011-05-14, Gunnar wrote:
> On Saturday 14 May 2011 08.47.45 Gunnar wrote:

>> Then I add an ERT

>> {\includegraphics{venn5.eps}

>> and it works when displaying as ps file but viewing as pdf file gives me
>> the error

>> ! LaTeX Error: Unknown graphics extension: .eps.

> Well, I exported a LaTeX file and the difference was really just the  four 
> letters:

> .eps

> I removed them and, voilá, problem solved!

But only, if you also have a *.pdf version of the same file.

> So I'd like to re-phrase  my original question:

> why isn't the filename extension .eps  allowed?

The 'pdftex' engine in PDF output mode (command `pdflatex`) does not
support EPS graphics. 

The 'pdftex' engine in DVI output mode (command `latex`) does not support
PDF graphics.

If the argument to \includegraphics has no extension, it is added by the
graphics package depending on the output format and available graphic files.

LyX converts graphics to the required format in a pre-processing step -
but not for ERT (using ERT you are on your own, this is a feature).

> How can I solve that problem?

a) do not use ERT for the graphic input command

b) provide both, EPS and PDF versions and leave out the extension in the
   ERT.
   
Günter   



Re: On-the-fly spellchecker

2011-05-15 Thread Julio Rojas
Done: Ticket #7564.

Regards.
-
Julio Rojas
jcredbe...@gmail.com


On Sun, May 15, 2011 at 10:20 PM, Richard Heck  wrote:

> On 05/15/2011 07:04 AM, Julio Rojas wrote:
> > Dear all. I have been using Lyx 2.0 (Windows 7) with very much
> > delight. Nonetheless, there is a nagging problem that is more annoying
> > than damaging. When the on-the-fly spellchecker signals a mistake,
> > sometimes when you select the correct spelling, the cursor jumps to
> > another instance of the mistake in the document. It is difficult to
> > pinpoint the cause, as it is not frequent or predictable. It only
> > happens every now and then. The document I'm working with is big and
> > has many spelling mistakes (in Spanish). Have you seen this problem
> > before?
> >
> > If you need more info, let me know how can I gather it.
> >
> Please file this as a bug in trac, with "spell" as the component.
>
> Richard
>
>


Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Robert Betz
Jens, 

It is not happening all the time with the system, but only under a very
specific class file.  Having thought about it a bit more after the
initial posting it may be an issue with pdftex itself, or with the
Python script the invokes it (from Lyx). 

If you create new file using the koma-letter2.lyx template file (which
uses the scrlttr2 latex class. The template is a default one in 1.6
series Lyx) and go it not math mode and insert a symbol in the text
somewhere (I inserted a \rightarrow a symbol). 

Save the file, and exit and reload.  Simply reloading the file will
start pdftex and it will continue to run, even if you exit Lyx again. 

This appears to do this on all machines that I run this on.  Also
happens under 1.6.10.  It may be an issue with pdftex and this use of it
with this class, but nevertheless the Python script that starts pdftex
should stop it on Lyx stopping.   

Incidentally the file compiles and displays OK.




Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-










>>> On Mon, May 16, 2011 at  3:44 AM, in message
<8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu>, Jens Nöckel
 wrote:



On May 14, 2011, at 7:52 PM, Robert Betz wrote: 




Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9. 
All doing the same thing (pdftex not closing and using 100% CPU), so it
may be my system.  Doing on two though. The parent process for pdftex is
Python, whose parent in turn is Lyx. When Lyx closes down, Python closes
but pdftex is not closing.  Maybe there is some problem with my
installation of Python. It appears to be using Python 2.6 



Bob, is this happening all the time or just for a specific file? If the
latter, could you post a small example file?  



If it happens for any file, then go back to LyX, create a new file (e.g,
"newfile.tex") with just one line of text, and export it as a LaTeX
(pdflatex) file. Then try to pdflatex that exported file from the
_terminal_ with "pdflatex newfile".  



If that doesn't work, it's a problem with your TeX installation. You
could then send the tex file and the latex log. You could also try
paring the file down by deleting any "\usepackage" commands in it, until
the error goes away. Maybe you have some package or font installed that
causes this crash. This could be hard to find if you have local
installations that differ from the standard distribution. 



Jens 





running cygwin or unix script from within lyx

2011-05-15 Thread Venable
Hi all,

I have written a couple of cygwin scripts to automate some time-consuming
repetitive tasks and would like to be able to run these from within LyX, for
example via a keyboard shortcut or a customized button on a toolbar. Is this
sort of thing possible? If so, does anyone have advice on how to set it up?

As an example, I like to use the pdfpages package to include external pdfs.
However, I often use relative paths (e.g. when collaborating with co-authors
on Dropbox and the like), and as we know LyX cannot handle this because of
all the copying to temporary directories and so on that LyX prefers. So,
I've written a very simple script to export the lyx file to tex and then
compile using miktex. It would be great if I didn't have to fire up CygWin
and type in the command and filename - rather, I'd prefer to designate a
keyboard shortcut or menu option within LyX that would tell cygwin to run
the script and pass it the current filename.

Many thanks in advance for any advice and please let me know if the question
needs clarifying, or if there is a different, better way.


Re: running cygwin or unix script from within lyx

2011-05-15 Thread Richard Heck

On 05/15/2011 08:48 PM, Venable wrote:

Hi all,

I have written a couple of cygwin scripts to automate some 
time-consuming repetitive tasks and would like to be able to run these 
from within LyX, for example via a keyboard shortcut or a customized 
button on a toolbar. Is this sort of thing possible? If so, does 
anyone have advice on how to set it up?


As an example, I like to use the pdfpages package to include external 
pdfs. However, I often use relative paths (e.g. when collaborating 
with co-authors on Dropbox and the like), and as we know LyX cannot 
handle this because of all the copying to temporary directories and so 
on that LyX prefers. So, I've written a very simple script to export 
the lyx file to tex and then compile using miktex. It would be great 
if I didn't have to fire up CygWin and type in the command and 
filename - rather, I'd prefer to designate a keyboard shortcut or menu 
option within LyX that would tell cygwin to run the script and pass it 
the current filename.


The only real way to do this, so far as I know, is to define a converter 
that will call your script. This converter might, for example, replace 
pdflatex as a LaTeX-->PDF converter. There are a number of ways to do 
this, so the best way will depend on the details.


rh



Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Jens Nöckel
Bob,
I'm not sure I understand the problem, but I'm guessing you inserted a 
character like → into the text, while not in math mode. If so, you could try to 
circumvent the problem by going to Document > Settings > Fonts and changing the 
template's Roman font from "Palatino" to "Default".

I don't see the same pdflatex crash as you, but LyX displays a latex error 
message if I try to use Palatino font with that "\textrightarrow"  character. 
So I can't be sure if this helps you. Could it be that your TeX installation is 
out of date?  

It may be worth thinking about how LyX can keep track of pdflatex processes it 
has spawned, so that it can "kill -9" crashed processes when the user exits LyX 
(after warning about it). I don't think that anything like that has been 
implemented at this point. And of course that wouldn't help fix the root cause 
of your problem. 

Jens


On May 15, 2011, at 4:03 PM, Robert Betz wrote:

> Jens,
> 
> It is not happening all the time with the system, but only under a very 
> specific class file.  Having thought about it a bit more after the initial 
> posting it may be an issue with pdftex itself, or with the Python script the 
> invokes it (from Lyx).
> 
> If you create new file using the koma-letter2.lyx template file (which uses 
> the scrlttr2 latex class. The template is a default one in 1.6 series Lyx) 
> and go it not math mode and insert a symbol in the text somewhere (I inserted 
> a \rightarrow a symbol).
> 
> Save the file, and exit and reload.  Simply reloading the file will start 
> pdftex and it will continue to run, even if you exit Lyx again.
> 
> This appears to do this on all machines that I run this on.  Also happens 
> under 1.6.10.  It may be an issue with pdftex and this use of it with this 
> class, but nevertheless the Python script that starts pdftex should stop it 
> on Lyx stopping.  
> 
> Incidentally the file compiles and displays OK.
> 
> 
> 
> 
> Regards 
> 
> 
> Bob Betz 
> 
> 
> 
> - 
> 
> Dr. Robert Betz 
> Ampcontrol Professor of Power Engineering, 
> Head, School of Electrical Engineering and Computer Science, 
> Faculty of Engineering and Built Environment, 
> University of Newcastle, Australia, 
> 
> email: robert.b...@newcastle.edu.au 
> FAX: +61-2-4921-6993 
> TEL: +61-2-4921-6091 
> Mobile: (+61)-(0)419249948 
> Web: http://eecsbobb.newcastle.edu.au/rebetz 
> 
> - 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> >>> On Mon, May 16, 2011 at  3:44 AM, in message 
> >>> <8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu>, Jens Nöckel 
> >>>  wrote:
> 
> On May 14, 2011, at 7:52 PM, Robert Betz wrote:
> 
>> Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9.  All 
>> doing the same thing (pdftex not closing and using 100% CPU), so it may be 
>> my system.  Doing on two though. The parent process for pdftex is Python, 
>> whose parent in turn is Lyx. When Lyx closes down, Python closes but pdftex 
>> is not closing.  Maybe there is some problem with my installation of Python. 
>> It appears to be using Python 2.6
>> 
> 
> Bob, is this happening all the time or just for a specific file? If the 
> latter, could you post a small example file? 
> 
> If it happens for any file, then go back to LyX, create a new file (e.g, 
> "newfile.tex") with just one line of text, and export it as a LaTeX 
> (pdflatex) file. Then try to pdflatex that exported file from the _terminal_ 
> with "pdflatex newfile". 
> 
> If that doesn't work, it's a problem with your TeX installation. You could 
> then send the tex file and the latex log. You could also try paring the file 
> down by deleting any "\usepackage" commands in it, until the error goes away. 
> Maybe you have some package or font installed that causes this crash. This 
> could be hard to find if you have local installations that differ from the 
> standard distribution.
> 
> Jens
> 
> 



Re: pdftex process on MAC OSX Lyx 2.0.0 - more

2011-05-15 Thread Robert Betz
Jens, 

The process that is left running is called pdftex (not pdflatex), and
its parent process is called Python, whose parent process is Lyx.  That
is the sequence of parent to child processes. 

In relation to what I inserted into the koma-let2.lyx template file it
was simply a → inserted in MATH mode, not text mode.  It does not matter
what symbol you insert in Maths mode. 

To reproduce it you simply load up the koma-let2.lyx template, compile
it as an initial test.  It will compile, and if you look at the
processes the pdftex process will have started with the compile, and
then would have closed. So it no longer appears on the list of
processes. 

Now add in in a symbol in Maths mode. Compile the same file but with
only this symbol added.  The pdftex process will continue to run once
the compilation is complete.  Quit lyx, and you will see the pdftex is
still running and consuming 100% of the core that it is running on. 

You have to do a "Qui"t from the Activity Monitor to stop pdftex.  The
Python process )the parent of pdftex) stops when Lyx is exited. 

It would be a good idea in the future to make sure that Lyx closes all
the process that it is responsible for, even if a process has gone
rogue.  Of course an error message is handy if this is occurring. 

Thanks for your comments on this issue. 







Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-










>>> On Mon, May 16, 2011 at  1:23 PM, in message
<98c5da25-698c-4e06-80a1-60c520337...@uoregon.edu>, Jens Nöckel
 wrote:

Bob, 

I'm not sure I understand the problem, but I'm guessing you inserted a
character like  
→ 

 into the text, while not in math mode. If so, you could try to
circumvent the problem by going to Document > Settings > Fonts and
changing the template's Roman font from "Palatino" to "Default". 



I don't see the same pdflatex crash as you, but LyX displays a latex
error message if I try to use Palatino font with that "\textrightarrow" 
character. So I can't be sure if this helps you. Could it be that your
TeX installation is out of date?   



It may be worth thinking about how LyX can keep track of pdflatex
processes it has spawned, so that it can "kill -9" crashed processes
when the user exits LyX (after warning about it). I don't think that
anything like that has been implemented at this point. And of course
that wouldn't help fix the root cause of your problem.  



Jens 





On May 15, 2011, at 4:03 PM, Robert Betz wrote: 




Jens, 



It is not happening all the time with the system, but only under a very
specific class file.  Having thought about it a bit more after the
initial posting it may be an issue with pdftex itself, or with the
Python script the invokes it (from Lyx). 



If you create new file using the koma-letter2.lyx template file (which
uses the scrlttr2 latex class. The template is a default one in 1.6
series Lyx) and go it not math mode and insert a symbol in the text
somewhere (I inserted a \rightarrow a symbol). 



Save the file, and exit and reload.  Simply reloading the file will
start pdftex and it will continue to run, even if you exit Lyx again. 



This appears to do this on all machines that I run this on.  Also
happens under 1.6.10.  It may be an issue with pdftex and this use of it
with this class, but nevertheless the Python script that starts pdftex
should stop it on Lyx stopping.   



Incidentally the file compiles and displays OK.




Regards 
  




Bob Betz 
Ampcontrol Professor of Power Engineering, 
  


Head, School of Electrical Engineering and Computer Science, 
  


Faculty of Engineering and Built Environment, 
  


University of Newcastle, Australia, 
  



email: robert.b...@newcastle.edu.au 
  


FAX: +61-2-4921-6993 
  


TEL: +61-2-4921-6091 
  


Mobile: (+61)-(0)419249948 
  


Web: http://eecsbobb.newcastle.edu.au/rebetz 
  



- 
  












>>> On Mon, May 16, 2011 at  3:44 AM, in message
<8ca2dbec-1d05-48e1-b7e4-4bb8157d1...@uoregon.edu>, Jens Nöckel
 wrote:



On May 14, 2011, at 7:52 PM, Robert Betz wrote: 




Tried uninstalling Lyx 2.0.0 and reinstalled Lyx 1.6.10 and also 1.6.9. 
All doing the same thing (pdftex not closing and using 100% CPU), so it
may be my system.  Doing on two though. The parent process for pdftex is
Python, whose parent in turn is Lyx. When Lyx closes down, Python closes
but pdftex is not closing.  Maybe there is some problem with my
installation of Python. It