Executable schema #494
Replies: 9 comments 7 replies
-
Should |
Beta Was this translation helpful? Give feedback.
-
I'm looking for ways to make this as simple as possible for our users. My thoughts:
My proposal: <?xml version="1.0" encoding="utf-8"?>
<executables
latex="/local/path/to/latex"
pdflatex="/local/path/to/pdflatex"
... etc.
asy="/local/path/to/asy or https://address/of/asy.org"
sage="/local/path/to/sage or https://address/of/sage.org"
>
<asy method="local or global"/>
<sage method="local or server"/>
</executables> Rules:
|
Beta Was this translation helpful? Give feedback.
-
Future thoughts:
|
Beta Was this translation helpful? Give feedback.
-
Core PreTeXt has support for these local non-Python dependencies (and we should too, even if we have a server alternative): https://github.com/PreTeXtBook/pretext/blob/master/pretext/pretext.cfg#L55 |
Beta Was this translation helpful? Give feedback.
-
@Alex-Jordan is this an option these days? |
Beta Was this translation helpful? Give feedback.
-
@bjones1 Let me think about it, but I think I prefer <executables>
<foo path="bar" method="server"/>
<baz path="wee"/>
</executables> over <executables
foo="bar"
baz="wee"/>
<foo method="server"/>
</executables> |
Beta Was this translation helpful? Give feedback.
-
Elements are expensive.
You will be happier with one element used repeatedly with an attribute for the program/purpose.
…On July 26, 2023 7:50:48 PM GMT+02:00, Steven Clontz ***@***.***> wrote:
@bjones1 Let me think about it, but I think I prefer
```xml
<executables>
<foo path="bar" method="server"/>
<baz path="wee"/>
</executables>
```
over
```xml
<executables
foo="bar"
baz="wee"/>
<foo method="server"/>
</executables>
```
|
Beta Was this translation helpful? Give feedback.
-
The publisher specifies which webwork server to use (i.e., it's in the publication file). Perhaps if you wanted to force a particular server that you know has compatibility with your code, you should specify that in a persistent way, not in the non-tracked executables file. So maybe that makes the asy-method and sage-method attributes of project? |
Beta Was this translation helpful? Give feedback.
-
This is implemented in #511. |
Beta Was this translation helpful? Give feedback.
-
Inside
<executables>
, have tags for each executable, that can have attributes@path
,@server
, and@method
(which could be"server"
or"local"
.Beta Was this translation helpful? Give feedback.
All reactions