How to run a shell script before a compilation to pdf?

2009-07-14 Thread nuke

The problem: I regularly export my references from Zotero to a BibTeX file.
Unfortunately, so far I cannot control in Zotero which bibliography fields
must be skip (like URL, notes etc). These unnecessary fields go to my
references list and spoil it. Some time ago, I was using WinEdt where it was
possible to run a shell script which removed the trash from my bib-files.

Is it possible with LyX? Is there a way how to automatically execute my
script before compiling to pdf etc.? I really want it to be done by pressing
one LyX button.

PS.
In the thread http://n2.nabble.com/Run-script-from-LyX--tp479512p479512.html
Paul suggested to make own converter. I wonder will it be executed before
bib-files accessed or after?

Thanks
-- 
View this message in context: 
http://n2.nabble.com/How-to-run-a-shell-script-before-a-compilation-to-pdf--tp3257262p3257262.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: How to run a shell script before a compilation to pdf?

2009-07-14 Thread nuke

... i.e. I need execution of a script before DVI been compiled!


nuke wrote:
 
 PS.
 In the thread
 http://n2.nabble.com/Run-script-from-LyX--tp479512p479512.html
 Paul suggested to make own converter. I wonder will it be executed before
 bib-files accessed or after?
 
-- 
View this message in context: 
http://n2.nabble.com/How-to-run-a-shell-script-before-a-compilation-to-pdf--tp3257262p3257301.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: How to run a shell script before a compilation to pdf?

2009-07-14 Thread Steve Litt
On Tuesday 14 July 2009 10:57:14 am nuke wrote:
 The problem: I regularly export my references from Zotero to a BibTeX file.
 Unfortunately, so far I cannot control in Zotero which bibliography fields
 must be skip (like URL, notes etc). These unnecessary fields go to my
 references list and spoil it. Some time ago, I was using WinEdt where it
 was possible to run a shell script which removed the trash from my
 bib-files.

 Is it possible with LyX? Is there a way how to automatically execute my
 script before compiling to pdf etc.? I really want it to be done by
 pressing one LyX button.

The answer is yes, it's possible -- you just have to use a shellscript for the 
LyX to PDF converter. But before you do that, listen to what I do...

I build the exact shellscript I need to do the compile and any other work I 
may need. For instance, because I do so much work with layout files, I often 
need configure.py run before the LyX to LaTeX conversion.

You should see my eBook generation shellscript! I personalize every book sold 
so the person's name is in it. It's a way of discouraging unauthorized 
copying without using DRM, which I refuse to do. So my shellscript makes a 
copy of the LyX file, uses sed to install the customer's name into a LyX 
variable, does some other (secret) mumbo jumbo, and then converts to LaTeX 
and then postscript and then PDF. The script then shows me the finished eBook 
so I can check the personalization.

I installed my personalization scripts (one for each eBook) into my UMENU 
system, so it all gets done with a couple keystrokes.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



How to run a shell script before a compilation to pdf?

2009-07-14 Thread nuke

The problem: I regularly export my references from Zotero to a BibTeX file.
Unfortunately, so far I cannot control in Zotero which bibliography fields
must be skip (like URL, notes etc). These unnecessary fields go to my
references list and spoil it. Some time ago, I was using WinEdt where it was
possible to run a shell script which removed the trash from my bib-files.

Is it possible with LyX? Is there a way how to automatically execute my
script before compiling to pdf etc.? I really want it to be done by pressing
one LyX button.

PS.
In the thread http://n2.nabble.com/Run-script-from-LyX--tp479512p479512.html
Paul suggested to make own converter. I wonder will it be executed before
bib-files accessed or after?

Thanks
-- 
View this message in context: 
http://n2.nabble.com/How-to-run-a-shell-script-before-a-compilation-to-pdf--tp3257262p3257262.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: How to run a shell script before a compilation to pdf?

2009-07-14 Thread nuke

... i.e. I need execution of a script before DVI been compiled!


nuke wrote:
 
 PS.
 In the thread
 http://n2.nabble.com/Run-script-from-LyX--tp479512p479512.html
 Paul suggested to make own converter. I wonder will it be executed before
 bib-files accessed or after?
 
-- 
View this message in context: 
http://n2.nabble.com/How-to-run-a-shell-script-before-a-compilation-to-pdf--tp3257262p3257301.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: How to run a shell script before a compilation to pdf?

2009-07-14 Thread Steve Litt
On Tuesday 14 July 2009 10:57:14 am nuke wrote:
 The problem: I regularly export my references from Zotero to a BibTeX file.
 Unfortunately, so far I cannot control in Zotero which bibliography fields
 must be skip (like URL, notes etc). These unnecessary fields go to my
 references list and spoil it. Some time ago, I was using WinEdt where it
 was possible to run a shell script which removed the trash from my
 bib-files.

 Is it possible with LyX? Is there a way how to automatically execute my
 script before compiling to pdf etc.? I really want it to be done by
 pressing one LyX button.

The answer is yes, it's possible -- you just have to use a shellscript for the 
LyX to PDF converter. But before you do that, listen to what I do...

I build the exact shellscript I need to do the compile and any other work I 
may need. For instance, because I do so much work with layout files, I often 
need configure.py run before the LyX to LaTeX conversion.

You should see my eBook generation shellscript! I personalize every book sold 
so the person's name is in it. It's a way of discouraging unauthorized 
copying without using DRM, which I refuse to do. So my shellscript makes a 
copy of the LyX file, uses sed to install the customer's name into a LyX 
variable, does some other (secret) mumbo jumbo, and then converts to LaTeX 
and then postscript and then PDF. The script then shows me the finished eBook 
so I can check the personalization.

I installed my personalization scripts (one for each eBook) into my UMENU 
system, so it all gets done with a couple keystrokes.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



How to run a shell script before a compilation to pdf?

2009-07-14 Thread nuke

The problem: I regularly export my references from Zotero to a BibTeX file.
Unfortunately, so far I cannot control in Zotero which bibliography fields
must be skip (like URL, notes etc). These unnecessary fields go to my
references list and spoil it. Some time ago, I was using WinEdt where it was
possible to run a shell script which removed the trash from my bib-files.

Is it possible with LyX? Is there a way how to automatically execute my
script before compiling to pdf etc.? I really want it to be done by pressing
one LyX button.

PS.
In the thread http://n2.nabble.com/Run-script-from-LyX--tp479512p479512.html
Paul suggested to make own converter. I wonder will it be executed before
bib-files accessed or after?

Thanks
-- 
View this message in context: 
http://n2.nabble.com/How-to-run-a-shell-script-before-a-compilation-to-pdf--tp3257262p3257262.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: How to run a shell script before a compilation to pdf?

2009-07-14 Thread nuke

... i.e. I need execution of a script before DVI been compiled!


nuke wrote:
> 
> PS.
> In the thread
> http://n2.nabble.com/Run-script-from-LyX--tp479512p479512.html
> Paul suggested to make own converter. I wonder will it be executed before
> bib-files accessed or after?
> 
-- 
View this message in context: 
http://n2.nabble.com/How-to-run-a-shell-script-before-a-compilation-to-pdf--tp3257262p3257301.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: How to run a shell script before a compilation to pdf?

2009-07-14 Thread Steve Litt
On Tuesday 14 July 2009 10:57:14 am nuke wrote:
> The problem: I regularly export my references from Zotero to a BibTeX file.
> Unfortunately, so far I cannot control in Zotero which bibliography fields
> must be skip (like URL, notes etc). These unnecessary fields go to my
> references list and spoil it. Some time ago, I was using WinEdt where it
> was possible to run a shell script which removed the trash from my
> bib-files.
>
> Is it possible with LyX? Is there a way how to automatically execute my
> script before compiling to pdf etc.? I really want it to be done by
> pressing one LyX button.

The answer is yes, it's possible -- you just have to use a shellscript for the 
LyX to PDF converter. But before you do that, listen to what I do...

I build the exact shellscript I need to do the compile and any other work I 
may need. For instance, because I do so much work with layout files, I often 
need configure.py run before the LyX to LaTeX conversion.

You should see my eBook generation shellscript! I personalize every book sold 
so the person's name is in it. It's a way of discouraging unauthorized 
copying without using DRM, which I refuse to do. So my shellscript makes a 
copy of the LyX file, uses sed to install the customer's name into a LyX 
variable, does some other (secret) mumbo jumbo, and then converts to LaTeX 
and then postscript and then PDF. The script then shows me the finished eBook 
so I can check the personalization.

I installed my personalization scripts (one for each eBook) into my UMENU 
system, so it all gets done with a couple keystrokes.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt