railtoolkit / tikz-trackschematic

This TikZ library is a toolbox of symbols geared primarily towards creating track schematic for either research or educational purposes. It provides a TikZ frontend to some of the symbols which may be needed to describe situations and layouts in railway operation.
https://ctan.org/pkg/tikz-trackschematic
ISC License
5 stars 1 forks source link

VERSIONDATE does not get replaced in tikz-trackschematic.sty #16

Closed apriljunge closed 2 years ago

apriljunge commented 2 years ago

In all bash scripts (except create-release.sh) the replacement of VERSIONDATE is missing. This breaks the scripts.

https://github.com/railtoolkit/tikz-trackschematic/blob/6dc00facc4d11a92a4761d214c6d7be1cf9fec5e/src/tikz-trackschematic.sty#L8

kaat0 commented 2 years ago

It should not break the testing.sh and dev-install.sh! They do not rely on a correct VERSIONDATE. Only CTAN requires a correct versioning of the .sty-file.

apriljunge commented 2 years ago

When I execute pdflatex I get this error:

(/usr/local/share/texmf/tex/latex/local/tikz-trackschematic-dev/tikzlibrarytrackschematic-dev.code.tex)
! Missing = inserted for \ifnum.
<to be read again> 
                   V
l.9

I can solve this by removing [VERSIONDATE tikz-trackschematic] completely or replacing VERSIONDATE it with a valid date. This issue is discussed here: https://tex.stackexchange.com/questions/274650/missing-inserted-for-ifnum

kaat0 commented 2 years ago

Fixed issue with https://github.com/railtoolkit/tikz-trackschematic/commit/83a0a6f2ec573d53064c93ff1a5dd431155738af