John K writes:
> OK I tried this. I defined a new Python file format with extension .py in Lyx,
and then created a Python -> PDF
> (pdflatex) converter that runs the command:
>
> python $$i $$o
>
> But when I try exporting the document to PDF I get the following error:
>
> "No information for c
>> I added the following to the Lyx external_templates file:
>>
>> Template Python
>> GuiName "Python: $$AbsOrRelPathParent$$Basename"
>> HelpText
>> Python diagram.
>> HelpTextEnd
>> InputFormat "*"
>
> I think you need to define an input format and a .py -> .pdf converter which
> runs the python
On 2010-03-11, John K wrote:
>> I think you need to define an input format and a .py -> .pdf converter which
>> runs the python interpreter on your file.
This is an alternative way to the "external inset".
...
>> Try the way I described above: defining the file format and converter
>> under the
> John K writes:
>> I added the following to the Lyx external_templates file:
>>
>> Template Python
>> GuiName "Python: $$AbsOrRelPathParent$$Basename"
>> HelpText
>> Python diagram.
>> HelpTextEnd
>> InputFormat "*"
>
> I think you need to define an input format and a .py -> .pdf converter which
> John K wrote:
>>
>>
>> I am trying to auto-generate a diagram from a Python script in my Lyx
>> document using the "External Material" function. I have created a Python
>> script called "myscript.py" which generates a diagram and saves it to
>> "myscript.pdf". I am trying to make Lyx run my
John K writes:
> I added the following to the Lyx external_templates file:
>
> Template Python
> GuiName "Python: $$AbsOrRelPathParent$$Basename"
> HelpText
> Python diagram.
> HelpTextEnd
> InputFormat "*"
I think you need to define an input format and a .py -> .pdf converter which
runs the pyt
John K wrote:
I am trying to auto-generate a diagram from a Python script in my Lyx document using the "External
Material" function. I have created a Python script called "myscript.py" which generates a
diagram and saves it to "myscript.pdf". I am trying to make Lyx run my script to generate
I am trying to auto-generate a diagram from a Python script in my Lyx document
using the "External Material" function. I have created a Python script called
"myscript.py" which generates a diagram and saves it to "myscript.pdf". I am
trying to make Lyx run my script to generate the diagram wh