Re: Embedding asymptote in Lyx

2014-06-07 Thread Cyril

Le 07/06/2014 04:52, Scott Kostyshak a écrit :

On Fri, Jun 6, 2014 at 10:53 AM, Cyril mathsbruye...@free.fr wrote:

Hello everybody,

I'm trying to embed asymptote code in my LyX files.

The compilation of a file containing asymptote code named myfile.tex works
like this:

latex myfile.tex
asy myfile-*
latex myfile.tex

How can i manage to get this sequence of instructions with a simple shortcut
inside LyX ?

Thank you for your answers,

Hi Cyril,

I have little experience with this kind of thing, but you should take
a look at the converters section in Help  Customization. You could
create a format pdfA (or PDF (Asymptote) ) and then a converter
latex - pdfA and add your commands there.

Best,

Scott



Ty Scott,

That is eactly what I did, but the problem is which commands ??.
Since I have to execute 3 commands in just one converter. The 
documentation does'nt explain how to manage with this.


Best,

Cyril


Re: Embedding asymptote in Lyx

2014-06-07 Thread Georg Baum
Cyril wrote:

 Le 07/06/2014 04:52, Scott Kostyshak a écrit :

 I have little experience with this kind of thing, but you should take
 a look at the converters section in Help  Customization. You could
 create a format pdfA (or PDF (Asymptote) ) and then a converter
 latex - pdfA and add your commands there.

 Best,

 Scott


 Ty Scott,
 
 That is eactly what I did, but the problem is which commands ??.
 Since I have to execute 3 commands in just one converter. The
 documentation does'nt explain how to manage with this.

You need a wrapper script and define that one as converter. You can use the 
default converter shipped by LyX (scripts/convertDefault.py) as a template, 
and instead of calling convert, call your three commands in a row.


Georg



Re: Embedding asymptote in Lyx

2014-06-07 Thread Cyril

Le 07/06/2014 04:52, Scott Kostyshak a écrit :

On Fri, Jun 6, 2014 at 10:53 AM, Cyril mathsbruye...@free.fr wrote:

Hello everybody,

I'm trying to embed asymptote code in my LyX files.

The compilation of a file containing asymptote code named myfile.tex works
like this:

latex myfile.tex
asy myfile-*
latex myfile.tex

How can i manage to get this sequence of instructions with a simple shortcut
inside LyX ?

Thank you for your answers,

Hi Cyril,

I have little experience with this kind of thing, but you should take
a look at the converters section in Help  Customization. You could
create a format pdfA (or PDF (Asymptote) ) and then a converter
latex - pdfA and add your commands there.

Best,

Scott



More precisely, the biggest question I have is:

The converter is from what initial format ? I guess the final is PDF. 
But the initial one is LaTeX, LyX,...?




Re: Embedding asymptote in Lyx

2014-06-07 Thread Georg Baum
Cyril wrote:

 The converter is from what initial format ? I guess the final is PDF.
 But the initial one is LaTeX, LyX,...?

That depends. I guess you want to use pdflatex for direct pdf production. In 
that case, use LaTeX (pdflatex) (code name pdflatex in the preferences 
file), and your three commands are

pdflatex myfile.tex
asy myfile-*
pdflatex myfile.tex

If you use TeXLive, you can even use latexmk instead of a wrapper script 
(from 
http://asymptote.sourceforge.net/doc/LaTeX-usage.html):

latexmk -pdf myfile

The final format is the new PDF variant you need to define. Otherwise your 
new converter would overwrite the default, and this would cause errors for 
files without asymptote code. 


Georg



Lualatex at startup

2014-06-07 Thread Julio Rojas
Dear all,

I have just tried to install Lyx 2.1 on my Windows 7 PC on which I already
had Lyx 2.0.6 and TexLive 2013, so I went the update way. During
configuration, Lyx runs LuaLatex which in turn gets stuck and start
bloating and eating all the resources. I tried killing the script
(python.exe). Lyx starts telling me that there were no classes installed. I
tried reconfigure, but had the same result.

Has somebody had this problem?

Thanks in advance. Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: Embedding asymptote in Lyx

2014-06-07 Thread Cyril

Le 07/06/2014 04:52, Scott Kostyshak a écrit :

On Fri, Jun 6, 2014 at 10:53 AM, Cyril mathsbruye...@free.fr wrote:

Hello everybody,

I'm trying to embed asymptote code in my LyX files.

The compilation of a file containing asymptote code named myfile.tex works
like this:

latex myfile.tex
asy myfile-*
latex myfile.tex

How can i manage to get this sequence of instructions with a simple shortcut
inside LyX ?

Thank you for your answers,

Hi Cyril,

I have little experience with this kind of thing, but you should take
a look at the converters section in Help  Customization. You could
create a format pdfA (or PDF (Asymptote) ) and then a converter
latex - pdfA and add your commands there.

Best,

Scott



Ty Scott,

That is eactly what I did, but the problem is which commands ??.
Since I have to execute 3 commands in just one converter. The 
documentation does'nt explain how to manage with this.


Best,

Cyril


Re: Embedding asymptote in Lyx

2014-06-07 Thread Georg Baum
Cyril wrote:

 Le 07/06/2014 04:52, Scott Kostyshak a écrit :

 I have little experience with this kind of thing, but you should take
 a look at the converters section in Help  Customization. You could
 create a format pdfA (or PDF (Asymptote) ) and then a converter
 latex - pdfA and add your commands there.

 Best,

 Scott


 Ty Scott,
 
 That is eactly what I did, but the problem is which commands ??.
 Since I have to execute 3 commands in just one converter. The
 documentation does'nt explain how to manage with this.

You need a wrapper script and define that one as converter. You can use the 
default converter shipped by LyX (scripts/convertDefault.py) as a template, 
and instead of calling convert, call your three commands in a row.


Georg



Re: Embedding asymptote in Lyx

2014-06-07 Thread Cyril

Le 07/06/2014 04:52, Scott Kostyshak a écrit :

On Fri, Jun 6, 2014 at 10:53 AM, Cyril mathsbruye...@free.fr wrote:

Hello everybody,

I'm trying to embed asymptote code in my LyX files.

The compilation of a file containing asymptote code named myfile.tex works
like this:

latex myfile.tex
asy myfile-*
latex myfile.tex

How can i manage to get this sequence of instructions with a simple shortcut
inside LyX ?

Thank you for your answers,

Hi Cyril,

I have little experience with this kind of thing, but you should take
a look at the converters section in Help  Customization. You could
create a format pdfA (or PDF (Asymptote) ) and then a converter
latex - pdfA and add your commands there.

Best,

Scott



More precisely, the biggest question I have is:

The converter is from what initial format ? I guess the final is PDF. 
But the initial one is LaTeX, LyX,...?




Re: Embedding asymptote in Lyx

2014-06-07 Thread Georg Baum
Cyril wrote:

 The converter is from what initial format ? I guess the final is PDF.
 But the initial one is LaTeX, LyX,...?

That depends. I guess you want to use pdflatex for direct pdf production. In 
that case, use LaTeX (pdflatex) (code name pdflatex in the preferences 
file), and your three commands are

pdflatex myfile.tex
asy myfile-*
pdflatex myfile.tex

If you use TeXLive, you can even use latexmk instead of a wrapper script 
(from 
http://asymptote.sourceforge.net/doc/LaTeX-usage.html):

latexmk -pdf myfile

The final format is the new PDF variant you need to define. Otherwise your 
new converter would overwrite the default, and this would cause errors for 
files without asymptote code. 


Georg



Lualatex at startup

2014-06-07 Thread Julio Rojas
Dear all,

I have just tried to install Lyx 2.1 on my Windows 7 PC on which I already
had Lyx 2.0.6 and TexLive 2013, so I went the update way. During
configuration, Lyx runs LuaLatex which in turn gets stuck and start
bloating and eating all the resources. I tried killing the script
(python.exe). Lyx starts telling me that there were no classes installed. I
tried reconfigure, but had the same result.

Has somebody had this problem?

Thanks in advance. Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: Embedding asymptote in Lyx

2014-06-07 Thread Cyril

Le 07/06/2014 04:52, Scott Kostyshak a écrit :

On Fri, Jun 6, 2014 at 10:53 AM, Cyril  wrote:

Hello everybody,

I'm trying to embed asymptote code in my LyX files.

The compilation of a file containing asymptote code named "myfile.tex" works
like this:

latex myfile.tex
asy myfile-*
latex myfile.tex

How can i manage to get this sequence of instructions with a simple shortcut
inside LyX ?

Thank you for your answers,

Hi Cyril,

I have little experience with this kind of thing, but you should take
a look at the converters section in Help > Customization. You could
create a format "pdfA" (or "PDF (Asymptote)" ) and then a converter
latex -> pdfA and add your commands there.

Best,

Scott



Ty Scott,

That is eactly what I did, but the problem is "which commands ??".
Since I have to execute 3 commands in just one converter. The 
documentation does'nt explain how to manage with this.


Best,

Cyril


Re: Embedding asymptote in Lyx

2014-06-07 Thread Georg Baum
Cyril wrote:

> Le 07/06/2014 04:52, Scott Kostyshak a écrit :
>>
>> I have little experience with this kind of thing, but you should take
>> a look at the converters section in Help > Customization. You could
>> create a format "pdfA" (or "PDF (Asymptote)" ) and then a converter
>> latex -> pdfA and add your commands there.
>>
>> Best,
>>
>> Scott
>>
>>
> Ty Scott,
> 
> That is eactly what I did, but the problem is "which commands ??".
> Since I have to execute 3 commands in just one converter. The
> documentation does'nt explain how to manage with this.

You need a wrapper script and define that one as converter. You can use the 
default converter shipped by LyX (scripts/convertDefault.py) as a template, 
and instead of calling convert, call your three commands in a row.


Georg



Re: Embedding asymptote in Lyx

2014-06-07 Thread Cyril

Le 07/06/2014 04:52, Scott Kostyshak a écrit :

On Fri, Jun 6, 2014 at 10:53 AM, Cyril  wrote:

Hello everybody,

I'm trying to embed asymptote code in my LyX files.

The compilation of a file containing asymptote code named "myfile.tex" works
like this:

latex myfile.tex
asy myfile-*
latex myfile.tex

How can i manage to get this sequence of instructions with a simple shortcut
inside LyX ?

Thank you for your answers,

Hi Cyril,

I have little experience with this kind of thing, but you should take
a look at the converters section in Help > Customization. You could
create a format "pdfA" (or "PDF (Asymptote)" ) and then a converter
latex -> pdfA and add your commands there.

Best,

Scott



More precisely, the biggest question I have is:

The converter is from what initial format ? I guess the final is PDF. 
But the initial one is LaTeX, LyX,...?




Re: Embedding asymptote in Lyx

2014-06-07 Thread Georg Baum
Cyril wrote:

> The converter is from what initial format ? I guess the final is PDF.
> But the initial one is LaTeX, LyX,...?

That depends. I guess you want to use pdflatex for direct pdf production. In 
that case, use "LaTeX (pdflatex)" (code name pdflatex in the preferences 
file), and your three commands are

pdflatex myfile.tex
asy myfile-*
pdflatex myfile.tex

If you use TeXLive, you can even use latexmk instead of a wrapper script 
(from 
http://asymptote.sourceforge.net/doc/LaTeX-usage.html):

latexmk -pdf myfile

The final format is the new PDF variant you need to define. Otherwise your 
new converter would overwrite the default, and this would cause errors for 
files without asymptote code. 


Georg



Lualatex at startup

2014-06-07 Thread Julio Rojas
Dear all,

I have just tried to install Lyx 2.1 on my Windows 7 PC on which I already
had Lyx 2.0.6 and TexLive 2013, so I went the update way. During
configuration, Lyx runs LuaLatex which in turn gets stuck and start
bloating and eating all the resources. I tried killing the script
(python.exe). Lyx starts telling me that there were no classes installed. I
tried reconfigure, but had the same result.

Has somebody had this problem?

Thanks in advance. Regards.
-
Julio Rojas
jcredbe...@gmail.com