Closed coltongrainger closed 5 years ago
Provided that I chance the server to https://webwork-ptx.aimath.org/
, the regex functions as expected, which allows one to properly name static images.
Since I'd like images with webwork problems, I'll take a closed look this weekend.
Here's a workaround for me: just disable lighttpd and keep the traditional image directories under the WebWork server.
[Disabling Optional B (lighttpd) for a single course](http://webwork.maa.org/wiki/Installation_Manual_for_2.13_on_Ubuntu_18.04].
Another workaround is just to use https://webwork-ptx.aimath.org
. I'm satisfied.
I mean, it's my own local server. Of course I don't need lighttpd for compiling.
# Do not use lightppd (port 8080) for this course
$webworkURLs{htdocs_temp} = '/wwtmp';
$courseURLs{html_temp} = "/wwtmp/$courseName";
$webworkURLs{equationCache} = "$webworkURLs{htdocs_temp}/equations";
$webworkURLs{MathJax} = "$webworkURLs{htdocs}/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML-full";
If there is anything useful you'd like to see added to the documentation, feel free to make a new issue, or re-open this one. Thanks for your interest in PreTeXt + WeBWorK.
On 7/1/19 11:02 PM, Colton Grainger wrote:
Another workaround is just to use |https://webwork-ptx.aimath.org|. I'm satisfied.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/1135?email_source=notifications&email_token=AAOLM4UFVP4YMWXTCCMOOWLP5LVOFA5CNFSM4H4YDCS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZAFB3Y#issuecomment-507531503, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOLM4UEVTT22XOJNLZWJG3P5LVOFANCNFSM4H4YDCSQ.
Thanks for the detailed description of the regex issue. I will make an issue from that and return to see about making it better at some point. It sounds like for now it is not urgent, but it also sounds like better quality regex would be good here.
To pinpoint the issue for later reference. The regex
matches both
<image source="/wwtmp/anonymous//gif/d911f729-b144-3e2c-877b-40969fbbb6da___64d25fc4-b24a-3bcc-8e16-0cab02808ecf.png"
<image source="http://127.0.0.1:8080/wwtmp/anonymous//gif/df899ba6-b336-33a5-9603-8b672b91ccc7___6bb688ad-bad2-32ef-ad88-fc9d44e14581.png"
but the iterator in line 627 of
mbx
, under the definition ofwebwork_to_xml
, relies on stripping a file extension viaeventually raises
raise ValueError(os.path.join(dest_dir, ptx_filename) + root_cause)
.Minimal working example
Makefile as follows.
Document to compile.