Add options to add TeX libraries and add to the TeX preamble in the PGtikz.pl macro#541
Conversation
TikzImage.pm/PGtikz.pl macro. This makes that method more versatile.
|
Before patch: After patch - no error from PG, but the image did not render for me. so I installed: Still not working... but then I saw #432 (comment) and to and deleted the empty temporary file. Then a problem reload generated the image. We need to make instructions about editing |
taniwallach
left a comment
There was a problem hiding this comment.
The additional features make sense and seem very useful.
Testing with the sample file was successful, once the prerequisite packages were installed and configuration settings made.
|
The attached problem will not work without this pull request. The issue that you are seeing with |
pstaabp
left a comment
There was a problem hiding this comment.
I too needed to configure all the external programs in site.conf, but afterward, worked great.
I'll definitely use this as I am a big tikz user.
Additional Ubuntu packages: libcgi-pm-perl (for CGI::Cookie) libdbd-mariadb-perl (for alternate DB connector) iputils-ping (prevents ping during startup from failing) imagemagick (needed by openwebwork/pg#541) docker-compose.yml: * Set fixed container names (so names will not depend on name of directory where docker-compose is being run. * Sample lines to use some new sample DB config files + brief comments. * Sample line to make host /etc/localtime read-only available to the DB container. * Sample ulimits + timezone lines for the DB container. * Set the Docker container to mount the updated Lite.pm with the UTF-8 patch. * Sample lines to use either DB connector. Default remains the "old" DBD::mysql driver. * Modify the bottom "main" volumes section, so fixed persistant volumes are used for the OPL and the DB storage, regardless of the directory name where docker-compose is run.
This makes that method more versatile. For example, with this you can use the pgfplots package.
This was also something that was requested when the PGtikz.pl macro was originally introduced (see #432 (comment)).
You can test this with the attached pg file.
tikz-package-test.zip