Compare commits

...

207 Commits

Author SHA1 Message Date
Martin Scheidt c369ec7c1b excluding certain commits 2022-06-21 17:29:59 +02:00
Martin Scheidt 752340e0de updated citation 2022-06-21 17:13:13 +02:00
Martin Scheidt 580571ee1e changed Github Action for twitter 2022-06-02 17:59:17 +02:00
kaat0 b8a251cc53 DOI updated to v0.7.1 (via github action) 2022-06-02 15:53:57 +00:00
Martin Scheidt 5c2ca786c7 updated ctan-o-mat, git push, and twitter 2022-06-02 17:49:14 +02:00
Martin Scheidt 71b341934f Debugging Github Actions is my new hobby! 2022-06-02 17:07:23 +02:00
Martin Scheidt 43879c3b58 updated to new zenodraft options 2022-06-02 13:01:46 +02:00
Martin Scheidt 134edca0b1 fix wrong branch in github action 2022-06-01 15:28:56 +02:00
Martin Scheidt 1c41e85629 handeling color background and foreground with native xcolor alias "\colorlet{}{}" instead of pgf macro 2022-06-01 14:50:32 +02:00
Martin Scheidt 4e9f5ea052 updated checkout action 2022-04-18 18:03:18 +02:00
Martin Scheidt cc95bf8a15 add Twitter to release action 2022-04-16 21:13:16 +02:00
Martin Scheidt 57773951d3 removed trailing "v" for zenodo upload 2022-04-15 14:58:42 +02:00
Martin Scheidt de9ed8ca40 added zenodo's RailToolKit community 2022-04-15 14:20:02 +02:00
Martin Scheidt 95e8544139 Minor fix for Release-Notes with only one entry 2022-04-15 13:39:43 +02:00
Martin Scheidt 88de19e39c fixed typo 2022-04-09 06:55:06 +02:00
Martin Scheidt 10feea7259 small amendments in naming 2022-04-07 10:27:45 +02:00
Martin Scheidt a8a050b184 amended GitHub action release 2022-04-06 17:16:28 +02:00
Martin Scheidt 51d25db670 corrected DOI in manual 2022-04-06 17:15:40 +02:00
Martin Scheidt 48794dd20c updated DOI 2022-04-06 16:50:15 +02:00
Martin Scheidt 0b1a14fbc9 zenodo upload with CLI zenodraft 2022-04-06 16:30:05 +02:00
Martin Scheidt bdf679986e Merge pull request #31 from jspaaks/master
changed some metadata properties to be able to publish on Zenodo
2022-04-05 10:33:58 +02:00
Jurriaan H. Spaaks 3eef5a1e18 changed some metadata properties to be able to publish on Zenodo 2022-04-04 17:42:37 +02:00
Martin Scheidt 162d59e14a enable zenodo upload 2022-04-04 14:31:32 +02:00
Martin Scheidt ae8ed95aee restructured github actions 2022-04-03 12:43:28 +02:00
Martin Scheidt ac3e664ae6 added DOI 2022-04-01 16:10:16 +02:00
Martin Scheidt e64e57d728 switch for automated CTAN upload to ctan-o-mat 2022-03-30 21:39:47 +02:00
Martin Scheidt 2683bf27c2 fixed bad substitution in shell script 2022-03-29 14:33:03 +02:00
Martin Scheidt c159bb00a2 Added test for automated CTAN upload 2022-03-29 14:22:56 +02:00
Martin Scheidt 8934fecbf7 fixed missing symbology 2022-03-25 10:57:38 +01:00
Martin Scheidt 4f9932d33c release candidate for v0.7.0 2022-03-24 22:31:56 +01:00
Martin Scheidt 9d705de572 added poppler/pdftocairo as option for SVG converting 2022-03-24 22:18:50 +01:00
Martin Scheidt 25c007c70f added list of packages for doc compilation and included TeX memory increase for build script 2022-03-24 14:58:28 +01:00
Martin Scheidt 25e66b6e79 fixed wrong tex live profile 2022-03-23 22:54:33 +01:00
Martin Scheidt 1e8de05d95 Enhanced developement documentation 2022-03-23 22:29:58 +01:00
Martin Scheidt 7ae66cc182 small amendments 2022-03-22 19:09:33 +01:00
Martin Scheidt f46d7a7770 Fixed label test 2022-03-22 18:39:57 +01:00
Martin Scheidt 70b5ec4e57 added automatic documentation compilation before release 2022-03-22 18:33:21 +01:00
Martin Scheidt a98f3b26bd integrated documentation compilation in build.sh script 2022-03-22 18:27:29 +01:00
Martin Scheidt 2c869daa70 Fixed label coordinate calculation for vehicles in manual or automatic mode 2022-03-22 18:20:08 +01:00
Martin Scheidt d1ff03de71 revised symbol and syntax for balises 2022-03-22 17:07:19 +01:00
Martin Scheidt 876c8907e5 Merge branch 'master' of github.com:railtoolkit/tikz-trackschematic 2022-03-11 11:47:13 +01:00
Martin Scheidt c0ad07f84e added fall back if development package is not installed 2022-03-11 11:46:59 +01:00
Martin Scheidt c9f5e7a7ba added fall back if development package is not installed 2022-03-11 11:31:08 +01:00
Martin Scheidt 9a7828e059 fixed PackageWarning Error in development mode 2022-03-11 11:28:36 +01:00
Martin Scheidt 7ed8411378 refactored log() function - part 2 2022-03-11 11:04:36 +01:00
Martin Scheidt 43c132a957 refactored log() function 2022-03-11 10:55:21 +01:00
Martin Scheidt 1dfb44feed refactored user interaction 2022-03-11 10:51:26 +01:00
Martin Scheidt 3d6030b43b combined if condition 2022-03-10 17:17:17 +01:00
Martin Scheidt f90b3a9b0d POSIX compatiblity 2022-03-10 17:14:02 +01:00
Martin Scheidt 44110223b6 minor changes 2022-03-10 15:41:17 +01:00
Martin Scheidt 90aebcda84 added silent and debug logging 2022-03-10 15:26:50 +01:00
Martin Scheidt 7dfad7eef5
Merge pull request #27 from apriljunge/run-tests-on-pullrequest
Run tests on pull request
2022-03-10 11:18:11 +01:00
Gregor 8d27ed80ad
Run tests on pullrequest 2022-03-10 10:34:17 +01:00
Martin Scheidt f5e79dedb2
Merge pull request #26 from apriljunge/small-pdftoppm-tweaks
Small pdftoppm tweaks
2022-03-10 10:18:55 +01:00
Gregor b4f1112448
Use singlefile transformation for ppm 2022-03-09 23:02:53 +01:00
Gregor 91b9b3631c
Use shorthand resultion parameter for pdftoppm 2022-03-09 22:58:59 +01:00
Martin Scheidt 42773fc910 testing for file not for directory 2022-03-09 22:48:55 +01:00
Martin Scheidt 6a73b502e2 Merge branch 'master' of github.com:railtoolkit/tikz-trackschematic 2022-03-09 22:30:08 +01:00
Martin Scheidt 9f72df2b64 reduced resolution for pdftoppm conversion and fixed array handling for POSIX shell 2022-03-09 22:29:53 +01:00
Gregor 540813a062
Fix small typo in build script 2022-03-09 20:03:26 +01:00
Martin Scheidt c44553d7ad removed unnecessary line in help message 2022-03-09 18:34:23 +01:00
Martin Scheidt beb481d2a7 enhanced path check in build script 2022-03-09 18:32:29 +01:00
Martin Scheidt 1ac4d7a596 Merge branch 'master' of github.com:railtoolkit/tikz-trackschematic 2022-03-09 18:04:41 +01:00
Martin Scheidt 42dd769fcf added uninstaller to build script 2022-03-09 18:04:23 +01:00
Martin Scheidt bb1f41080a added uninstaller to build script 2022-03-09 18:01:10 +01:00
Martin Scheidt 864d0dfb87 renamed --batch-mode to --noninteractive 2022-03-09 16:40:25 +01:00
Martin Scheidt 5afacf62fc improved error message for ImageMagick policy check 2022-03-09 16:35:15 +01:00
Martin Scheidt 8f7ecbc04b fixed path extraction for multiple paths 2022-03-09 16:22:18 +01:00
Martin Scheidt c317a8dc0c update debug github action 2022-03-09 16:21:19 +01:00
Martin Scheidt 07de619804 update debug github action 2022-03-09 14:53:39 +01:00
Martin Scheidt 520d94848a Nothing is so simple that it cannot fail! 2022-03-09 14:38:54 +01:00
Martin Scheidt 6c64c241c9 fixed ImageMagick policy location for '[built-in]' 2022-03-09 14:25:20 +01:00
Martin Scheidt 7bfdbfacfc using --batch-mode for github action 'testing' 2022-03-09 14:00:43 +01:00
Martin Scheidt d0710c39f2 Fixed check_imagemagick_policy and check_pdftoppm for --batch-mode 2022-03-09 13:56:35 +01:00
Martin Scheidt 4567a56fa2 renamed option for installing dev files 2022-03-09 13:46:47 +01:00
Martin Scheidt 1a9fa2ea68 reordered script functions 2022-03-09 13:43:36 +01:00
Martin Scheidt cc0c6306f0 added ImageMagick policy check and pdftoppm as alternative 2022-03-09 13:17:43 +01:00
Martin Scheidt 4974780cf5 added cleanup routine and modified other routines, respectively 2022-03-09 13:09:03 +01:00
Martin Scheidt bb6cb783cc separate clean up routine 2022-03-08 14:42:27 +01:00
Martin Scheidt 54019d15ad Revert "unified comparison with '=='"
This reverts commit 4d6d5a2cdd.

# Conflicts:
#	build.sh
2022-03-07 13:49:44 +01:00
Martin Scheidt f498dd4a85 added timing for tests 2022-03-07 13:44:34 +01:00
Martin Scheidt 4d6d5a2cdd unified comparison with '==' 2022-03-07 11:40:23 +01:00
Martin Scheidt b970ff7357 fixed unfechted error for release version 2022-03-07 11:39:28 +01:00
Martin Scheidt 65552d40d6 Merge branch 'master' of github.com:railtoolkit/tikz-trackschematic 2022-03-07 11:15:05 +01:00
Martin Scheidt 9947c24f65 fix for broken build script on linux 2022-03-07 11:14:32 +01:00
Martin Scheidt 16ec1a0fb7 fix for broken build script on linux 2022-03-07 11:13:49 +01:00
Martin Scheidt 267ca88ff8 Merge branch 'github-action' of github.com:railtoolkit/tikz-trackschematic into github-action 2022-03-07 10:34:43 +01:00
Martin Scheidt 96f6eeb9c0 update debug action for unified build script 2022-03-07 10:34:15 +01:00
Martin Scheidt b68b787bff switching github action to teatimeguest/setup-texlive-action 2022-03-07 10:02:32 +01:00
Martin Scheidt 9b8ae101cd highlander on all the scripts 🗡 2022-03-07 01:20:18 +01:00
Martin Scheidt 92cb3f0b57
Merge pull request #25 from apriljunge/fix-testing-action-texprofile
Fix profile-path for texlive in testing action
2022-03-06 17:06:30 +01:00
Gregor 25f8b42af2
Fix profile-path for texlive in testing action
The filenames of the profiles were changed before
2022-03-06 17:01:35 +01:00
Martin Scheidt 1ead291f21 switching github action to teatimeguest/setup-texlive-action 2022-03-06 13:20:33 +01:00
Martin Scheidt 83a0a6f2ec fixed error when executing src/ directly 2022-03-06 13:01:57 +01:00
Martin Scheidt 714536ab9f added scaling test 2022-02-27 01:19:56 +01:00
Martin Scheidt ad0efb5b00 changed label placement for derailers 2022-02-27 01:07:31 +01:00
Martin Scheidt ddb997de1d added memory consumption and improved error handling for testing 2022-02-26 18:29:20 +01:00
Martin Scheidt ee00fd7173 updated symbology table URL 2022-02-25 22:46:56 +01:00
Martin Scheidt 373d234a1b added merge to CHANGELOG.md 2022-02-23 23:36:19 +01:00
Martin Scheidt 531edef131
Merge pull request #9 from apriljunge/patch-1 2022-02-23 22:16:19 +01:00
Gregor 1902a16bcc
Fixes foreground of sidetrack
sidetrack is an alias to secondarytrack, but did ignore foreground setting
2022-02-23 20:20:09 +01:00
Martin Scheidt ac6386b69f tidying up the citation 2022-02-23 15:43:57 +01:00
Martin Scheidt e4921ab06e added automated CITATION.cff validation via github actions 2022-02-23 15:43:57 +01:00
Martin Scheidt 26533372a9 prepared for lwarp package 2022-02-23 10:35:52 +01:00
Martin Scheidt 71ae156dbb fixed small mistakes 2022-02-22 23:13:40 +01:00
Martin Scheidt ad91fd973d updated citation 2022-02-22 11:57:22 +01:00
Martin Scheidt b33cdec179 adapted tests for non emph-label 2022-02-21 16:59:30 +01:00
Martin Scheidt c170becf2e replaced '\gettikzxy' with '\path let' syntax 2022-02-21 16:50:57 +01:00
Martin Scheidt b1961f274f fixed: wrong option for labels in vehicles 2022-02-20 15:00:37 +01:00
Martin Scheidt 3757f750b2 modified test for labels in 'topology' 2022-02-19 17:17:30 +01:00
Martin Scheidt 02005f3cbf updated information about number of sublibraries 2022-02-19 16:40:20 +01:00
Martin Scheidt 5ca71c0d03 renamed test 'misc_topology' to 'topology' 2022-02-19 16:05:37 +01:00
Martin Scheidt 62642983d1 updated documentation for v0.6.3 2022-02-15 16:46:14 +01:00
Martin Scheidt e52205f004 moved history from README.md to CHANGELOG.md for automated release note 2022-02-15 16:17:24 +01:00
Martin Scheidt 2e6b6fd7ae removed 'chmod +x' from github actions 2022-02-15 00:11:01 +01:00
Martin Scheidt 142709e43e fixed problem with different sed implementations on different OSs 2022-02-15 00:05:34 +01:00
Martin Scheidt 1119e991ad fixed different handling of egrep between mac and ubuntu 2022-02-14 18:56:21 +01:00
Martin Scheidt 0e47498055 checking for zip program 2022-02-14 18:06:21 +01:00
Martin Scheidt 3c83ea03cd fixed 'Syntax error: redirection unexpected' for shell script 2022-02-14 17:49:43 +01:00
Martin Scheidt 82e81aa750 fixed 'Bad substitution' for sehll script 2022-02-14 17:44:39 +01:00
Martin Scheidt 98992c5855 updated github actions 2022-02-14 17:23:37 +01:00
Martin Scheidt 6cbca99d1d Merge remote-tracking branch 'github/github-action' 2022-02-14 17:19:58 +01:00
Martin Scheidt 38f1e6b529 testing 'tag' variable 2022-02-14 16:29:13 +01:00
Martin Scheidt 1776f620f5 fixing github action parsing error 2022-02-14 14:27:22 +01:00
Martin Scheidt 417cc0b29a fixed handling with sed backup file 2022-02-14 12:11:53 +01:00
Martin Scheidt b92f8685b5 fixing github action parsing error 2022-02-13 20:34:30 +01:00
Martin Scheidt 6dc00facc4 removed the test from github action 'release' 2022-02-13 20:31:23 +01:00
Martin Scheidt f0772c5742 Merge remote-tracking branch 'github/github-action'
# Conflicts:
#	.github/workflows/release.yaml
#	.github/workflows/testing.yml
2022-02-13 20:30:05 +01:00
Martin Scheidt 75aabc3c19 removed the test from github action 'release' 2022-02-13 20:24:32 +01:00
Martin Scheidt d64b1fcc02 removed the test from github action 'release' 2022-02-13 20:17:04 +01:00
Martin Scheidt dafec941d2 updated URL for alternative 'SIGNALSCHABLONE' 2022-02-13 20:11:35 +01:00
Martin Scheidt 585439d473 modified release script for automated releases 2022-02-13 19:47:16 +01:00
Martin Scheidt bafeb79b2d so close! 🤏 2022-02-10 15:52:44 +01:00
Martin Scheidt 79e6999507 finaly fixed the testing workflow for github action! 💪 2022-02-10 15:40:44 +01:00
Martin Scheidt 586bd5bd94 finaly fixed the testing workflow for github action! 💪 2022-02-10 15:35:16 +01:00
Martin Scheidt a85ceae8ff added install ghostscript 2022-02-10 15:30:55 +01:00
Martin Scheidt 5c38af9a3f adapted imagemagick compare metric to match github action runnr 2022-02-10 15:22:38 +01:00
Martin Scheidt 546c2da7ca added upgrade for imagemagick 2022-02-10 14:49:36 +01:00
Martin Scheidt 379ce3a724 added dependency 'epstopdf-pkg' 2022-02-10 14:34:50 +01:00
Martin Scheidt ac37402cf7 modified dependencies for 'paolobrasolin/setup-texlive-action' 2022-02-10 14:30:46 +01:00
Martin Scheidt d25d6b0e93 fixed 'profile-path' for 'paolobrasolin/setup-texlive-action' 2022-02-10 14:22:23 +01:00
Martin Scheidt d9f09f1a2d next try: paolobrasolin/setup-texlive-action 2022-02-10 10:25:40 +01:00
Martin Scheidt 24a3f95a5b next try: manual apt-get install 2022-02-10 09:55:40 +01:00
Martin Scheidt b4d0080c3e moved dependencies to top for easier dependency management 2022-02-10 09:19:26 +01:00
Martin Scheidt ba299daaa6 added several base dependencies 2022-02-10 08:23:51 +01:00
Martin Scheidt b060ee2c54 added dependency 'cm-super' 2022-02-09 22:50:53 +01:00
Martin Scheidt 96e1255653 added dependency 'latex-fonts','latex-uni8', and 'metafont' 2022-02-09 22:43:57 +01:00
Martin Scheidt 683a931192 replaced dependency 'latex-fonts' with 'latex' 2022-02-09 21:59:25 +01:00
Martin Scheidt 2ebd817e33 replaced dependency 'latex-uni8' with 'latex-fonts' 2022-02-09 21:38:20 +01:00
Martin Scheidt 8893421b0c added dependency 'latex-uni8' 2022-02-09 21:25:16 +01:00
Martin Scheidt e83eaba0cd added dependency 'epstopdf-pkg' 2022-02-09 21:14:37 +01:00
Martin Scheidt 7e7051d6ad added dependency 'ltablex' 2022-02-09 21:09:45 +01:00
Martin Scheidt 799102f211 replaced dependency 'tabularx' with 'tools' 2022-02-09 21:04:39 +01:00
Martin Scheidt ea2e92d197 added dependency 'tabularx' 2022-02-09 20:59:16 +01:00
Martin Scheidt 15877acfa0 remove dependency 'multicol' 2022-02-09 20:56:19 +01:00
Martin Scheidt d311ea4afe added dependency 'xltabular' and 'multicol' 2022-02-09 20:52:39 +01:00
Martin Scheidt 98d20e1070 added dependency 'booktabs' 2022-02-09 19:55:41 +01:00
Martin Scheidt 8b9f09aff6 added dependency 'collectbox' 2022-02-09 19:52:57 +01:00
Martin Scheidt 0144aef64c added dependency 'adjustbox' 2022-02-09 19:50:07 +01:00
Martin Scheidt 926a484baf fixing missing dependencies one by one 🤪 2022-02-09 19:41:09 +01:00
Martin Scheidt 5c6113eecd fixing missing dependencies one by one 🤪 2022-02-09 19:38:39 +01:00
Martin Scheidt 4902c59ee3 added missing package for testing 2022-02-09 19:32:36 +01:00
Martin Scheidt 8dee36fcdd fixing tests for github action 2022-02-09 19:15:59 +01:00
Martin Scheidt 706803d391 😈 2022-02-09 18:08:50 +01:00
Martin Scheidt 2b0a6dd3aa fixed yaml syntax for github action - now for sure 2022-02-09 17:30:52 +01:00
Martin Scheidt 02b247a088 fixed yaml syntax for github action 2022-02-09 17:28:48 +01:00
Martin Scheidt c8ec753ce7 using third github action for TeX Live install 2022-02-09 17:25:15 +01:00
Martin Scheidt d725200dc1 fixed texlive package requirement for tikz 2022-02-09 14:25:14 +01:00
Martin Scheidt 65368ec61a fixed order steps in github action 2022-02-09 14:18:21 +01:00
Martin Scheidt 476f263972 added github action 'debug' 2022-02-09 14:09:41 +01:00
Martin Scheidt 74a419c972 added check for trackschematic library 2022-02-09 02:11:02 +01:00
Martin Scheidt d762a9bc8e modified scripts for github action 2022-02-09 01:49:11 +01:00
Martin Scheidt 10408acab5
Merge pull request #7 from railtoolkit/github-action-for-testing
Create testing.yml
2022-02-08 22:46:18 +01:00
Martin Scheidt d58c4046f8
Create testing.yml
added github action for testing
2022-02-08 22:45:09 +01:00
Martin Scheidt fd7f558bbd documented (slip-)turnout option: points=moving 2022-02-02 11:54:16 +01:00
Martin Scheidt 085023f70c
Merge pull request #2 from railtoolkit/visio
added Visio stencil in symbology
2022-01-27 18:51:52 +01:00
Bob Janssen 52108352ef added Visio stencil
vsg shapes were imported into Visio and then redrawn as accurately as possible. Arrow-heads and linestyles may differ ever so slightly.
2022-01-27 14:13:36 +01:00
Martin Scheidt 6dc980c1c2 updated README to include new folder layout in test/ and doc/symbology/ 2022-01-17 10:54:56 +01:00
Martin Scheidt 43773cddff reorganized the doc/symbolgy folder to ease conversion to different tools 2022-01-17 09:34:48 +01:00
Martin Scheidt 6c385d20f8 moved symbology_table from testing, since it uses to many external packages for just one TeX compiling run 2022-01-16 17:46:31 +01:00
Martin Scheidt 9ea0677d16 test script looping through test files 2022-01-16 17:43:56 +01:00
Martin Scheidt 122c759f57 added testing shell script 2022-01-16 16:27:22 +01:00
Martin Scheidt 48523cad66 prepare test folder for continuous integration 2022-01-10 17:54:28 +01:00
Martin Scheidt 7aaea84fcb updated copyright 2022-01-06 20:17:51 +01:00
Martin Scheidt 76829f4ecf added fall-back if dev environment is not present 2021-12-09 11:51:06 +01:00
Martin Scheidt 9f33480227 updated paackage siunitx option change 2021-12-09 11:48:17 +01:00
Martin Scheidt 58f8f08088 added Overleaf to CONTRIBUTING 2021-12-09 11:46:50 +01:00
Martin Scheidt 28f7c5f02b added Overleaf and corrected examples 2021-12-09 09:58:32 +01:00
Martin Scheidt ee87caa44f added snippet.pdf update to contribution 2021-12-03 14:22:37 +01:00
Martin Scheidt e640fae427 Merge branch 'master' of https://github.com/railtoolkit/tikz-trackschematic 2021-12-01 11:47:48 +01:00
Martin Scheidt 14ca5c3cd8 minor coordinate ajustment for better copying 2021-12-01 11:47:34 +01:00
RailToolKit 741ffb0049
Merge pull request #1 from apriljunge/patch-1
Fix spelling errors in manual
2021-11-30 23:27:22 +01:00
Gregor db1d0238c1
Fix spelling errors in manual 2021-11-30 21:50:16 +01:00
Martin Scheidt f92a285282 included versioning process 2021-10-15 13:18:15 +02:00
Martin Scheidt 900dbb7b48 updated citation information 2021-10-15 11:25:07 +02:00
Martin Scheidt af21a6b96f updated version 2021-10-15 11:10:08 +02:00
Martin Scheidt eed35164dc BUG: runaway argument fixed 2021-10-15 11:03:09 +02:00
Martin Scheidt 97f5958433 BUG: developer mode always on 2021-10-15 10:37:58 +02:00
Martin Scheidt eac65bbe06 included information about the CTAN package in README 2021-10-14 13:37:42 +02:00
Martin Scheidt 6b389bb1c6 updated URLs in README and corrected pkg date information in preamble 2021-10-14 13:27:53 +02:00
Martin Scheidt 90aac76a12 included symbology.code.tex zu CTAN creation 2021-09-30 12:40:26 +02:00
Martin Scheidt 48419928e4 remove package requirement lmodern, minor corrections, added citing information 2021-09-30 12:37:31 +02:00
Martin Scheidt 24f0bcfec5 removed local tikz-trackschematic-dev.sty call with [dev]-call provided by ctan tikz-trackschematic package 2021-01-02 19:47:14 +01:00
Martin Scheidt dad18e2e1c more typos 2021-01-02 16:00:56 +01:00
Martin Scheidt 60f4bec1d2 typos 2021-01-02 14:21:03 +01:00
Martin Scheidt e28ce6c4c5 Added symbols for "direction control", "track marking", "pylons" and
electric wiring; changed symbol for "friction bufferstop"; created an
encapsulating package for future flexibilty - changed load command for
library to \usepackage{tikz-trackschematic}.
2021-01-02 14:04:05 +01:00
martin 204012a9ae improved comments in shell script 2020-02-11 12:42:17 +01:00
681 changed files with 11178 additions and 2807 deletions

53
.github/tex/packages.doc.txt vendored Normal file
View File

@ -0,0 +1,53 @@
## -- engine used to compile (pdflatex)
latex-bin
latexmk
## -- direct dependencies
tikz-trackschematic
koma-script
pgf
xkeyval
etoolbox
adjustbox
booktabs
xltabular
tools
marginnote
babel-english
vhistory
carlisle
xcolor-solarized
enumitem
listings
siunitx
amsmath
hyperref
bookmark
preprint
## -- lwarp dependencies
lwarp
ifptex
## -- indirect dependencies
standalone
epstopdf-pkg
ltablex
collectbox
geometry
environ
xpatch
infwarerr
catchfile
ltxcmds
etexcmds
letltxmacro
newunicodechar
upquote
kvoptions
kvsetkeys
comment
xstring
microtype
psnfss
collection-fontsrecommended

19
.github/tex/packages.test.txt vendored Normal file
View File

@ -0,0 +1,19 @@
## -- engine used to compile (pdflatex)
latex-bin
## -- direct dependencies
pgf
xkeyval
etoolbox
adjustbox
booktabs
xltabular
tools
## -- indirect dependencies
standalone
epstopdf-pkg
ltablex
collectbox
geometry
environ

2
.github/tex/packages.upload.txt vendored Normal file
View File

@ -0,0 +1,2 @@
## -- upload
ctan-o-mat

13
.github/tex/profile.basic.txt vendored Normal file
View File

@ -0,0 +1,13 @@
# .github/tex/basic.profile.txt
# used for paolobrasolin/setup-texlive-action@v1
# Install the scheme:
#
# basic scheme (<minimal> and latex)
#
selected_scheme scheme-basic
# Omit documentation files:
tlpdbopt_install_docfiles 0
# Omit source files:
tlpdbopt_install_srcfiles 0
# Avoid doing backups:
tlpdbopt_autobackup 0

13
.github/tex/profile.full.txt vendored Normal file
View File

@ -0,0 +1,13 @@
# .github/tex/full.profile.txt
# used for paolobrasolin/setup-texlive-action@v1
# Install the scheme:
#
# full scheme (everything)
#
selected_scheme scheme-full
# Omit documentation files:
tlpdbopt_install_docfiles 0
# Omit source files:
tlpdbopt_install_srcfiles 0
# Avoid doing backups:
tlpdbopt_autobackup 0

13
.github/tex/profile.medium.txt vendored Normal file
View File

@ -0,0 +1,13 @@
# .github/tex/medium.profile.txt
# used for paolobrasolin/setup-texlive-action@v1
# Install the scheme:
#
# medium scheme (<small> + more packages and languages)
#
selected_scheme scheme-medium
# Omit documentation files:
tlpdbopt_install_docfiles 0
# Omit source files:
tlpdbopt_install_srcfiles 0
# Avoid doing backups:
tlpdbopt_autobackup 0

13
.github/tex/profile.minimal.txt vendored Normal file
View File

@ -0,0 +1,13 @@
# .github/tex/minimal.profile.txt
# used for paolobrasolin/setup-texlive-action@v1
# Install the scheme:
#
# minimal scheme (plain only)
#
selected_scheme scheme-minimal
# Omit documentation files:
tlpdbopt_install_docfiles 0
# Omit source files:
tlpdbopt_install_srcfiles 0
# Avoid doing backups:
tlpdbopt_autobackup 0

13
.github/tex/profile.small.txt vendored Normal file
View File

@ -0,0 +1,13 @@
# .github/tex/small.profile.txt
# used for paolobrasolin/setup-texlive-action@v1
# Install the scheme:
#
# small scheme (<basic> + xetex, metapost, and a few languages)
#
selected_scheme scheme-small
# Omit documentation files:
tlpdbopt_install_docfiles 0
# Omit source files:
tlpdbopt_install_srcfiles 0
# Avoid doing backups:
tlpdbopt_autobackup 0

125
.github/tex/tikz-trackschematic.pkg vendored Normal file
View File

@ -0,0 +1,125 @@
% This is a description file for ctan-o-mat.
% It manages uploads of a package to
% CTAN -- the Comprehensive TeX Archive Network.
%
% The syntax is roughly oriented towards (La)TeX.
% Two form of the macros are used. The simple macros take one argument
% in braces. Here the argument may not contain embedded macros.
%
% The second form uses an environment enclosed in \begin{}/\end{}.
% In the long text fields logo macros can be used.
%
% You should enter your values between the begin and the end of the
% named type.
% -------------------------------------------------------------------------
% This field contains the CTAN id of the package.
% The value is optional.
% The value is restricted to 32 characters.
\pkg{tikz-trackschematic}
% -------------------------------------------------------------------------
% This field contains the version of the package.
% The value is optional.
% The value is restricted to 32 characters.
\version{}%%[SCRIPT]
% -------------------------------------------------------------------------
% This field contains the name of the author(s).
% The value is optional.
% The value is restricted to 128 characters.
\author{Martin Scheidt}
% -------------------------------------------------------------------------
% This field contains the email address of the uploader.
% The value is an email address.
% The value is restricted to 255 characters.
\email{m.scheidt@tu-braunschweig.de}
% -------------------------------------------------------------------------
% This field contains the name of the uploader.
% The value is restricted to 255 characters.
\uploader{Martin Scheidt (via github actions)}
% -------------------------------------------------------------------------
% This field contains the directory on CTAN.
% The value is optional.
% The value is restricted to 255 characters.
\ctanPath{/graphics/pgf/contrib/tikz-trackschematic}
% -------------------------------------------------------------------------
% This field contains the license.
% The value is optional.
% The value is restricted to 2048 characters.
% Multiple values are allowed.
\license{isc}
% -------------------------------------------------------------------------
% This field contains the URL of the home page.
% The value is optional.
% The value is a URL.
% The value is restricted to 255 characters.
% Multiple values are allowed.
\home{https://www.railtoolkit.org/projects/tikz-trackschematic/}
% -------------------------------------------------------------------------
% This field contains the URL of the bug tracker.
% The value is optional.
% The value is a URL.
% The value is restricted to 255 characters.
% Multiple values are allowed.
\bugtracker{https://github.com/railtoolkit/tikz-trackschematic/issues}
% -------------------------------------------------------------------------
% This field contains the support channel.
% The value is optional.
% The value is a URL.
% The value is restricted to 255 characters.
% Multiple values are allowed.
\support{}
% -------------------------------------------------------------------------
% This field contains the version management.
% The value is optional.
% The value is a URL.
% The value is restricted to 255 characters.
% Multiple values are allowed.
\repository{https://github.com/railtoolkit/tikz-trackschematic}
% -------------------------------------------------------------------------
% This field contains the developer's channel.
% The value is optional.
% The value is a URL.
% The value is restricted to 255 characters.
% Multiple values are allowed.
\development{}
% -------------------------------------------------------------------------
% This field contains the update indicator; true for update.
% The value is optional.
% The value is restricted to 8 characters.
\update{true}
% -------------------------------------------------------------------------
% This field contains the topics id.
% The value is optional.
% The value is restricted to 1024 characters.
% Multiple values are allowed.
\topic{}
% -------------------------------------------------------------------------
% This field contains the text for the mail announcement.
% The value is optional.
% The value is restricted to 8192 characters.
\begin{announcement}
%RELEASE-NOTES%%[SCRIPT]
\end{announcement}
% -------------------------------------------------------------------------
% This field contains the one-liner for the package.
% The value is optional.
% The value is restricted to 128 characters.
\summary{A TikZ library for creating track diagrams in railways}
% -------------------------------------------------------------------------
% This field contains the descriptive abstract for the package.
% The value is optional.
% The value is restricted to 4096 characters.
\begin{description}
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. The library is divided into sublibraries: topology, trafficcontrol, vehicles, constructions, electrics, symbology, and measures.
\end{description}
% -------------------------------------------------------------------------
% This field contains the note to the CTAN upload managers.
% The value is optional.
% The value is restricted to 2048 characters.
\begin{note}
Uploaded automatically by ctan-o-mat (via github actions)
\end{note}
% -------------------------------------------------------------------------
% This field contains the archive file.
% The value is the file name of the archive to be uploaded.
% It may have a relative or absolute directory.
\file{}%%[SCRIPT]

25
.github/workflows/cffvalidating.yaml vendored Normal file
View File

@ -0,0 +1,25 @@
### github action to publish a new CITATION.cff
##
name: "cff validation"
## Controls when the workflow will run
on:
push:
paths:
- CITATION.cff
## Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
validate:
name: "validate"
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repository
uses: actions/checkout@v3
- name: Validate a CITATION.cff from a subdirectory
uses: citation-file-format/cffconvert-github-action@2.0.0
with:
args: "--infile ./CITATION.cff --validate"

82
.github/workflows/debug.yaml vendored Normal file
View File

@ -0,0 +1,82 @@
### github action to publish a debug
##
name: "debug"
## Controls when the workflow will run
on:
# push:
# branches: [ github-action ]
## Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
## A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
debug:
# needs: create_package
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: "checkout"
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v3
# # download artifact in folder artifact/
# - uses: actions/download-artifact@v3
# - name: "install ghostscript"
# run: sudo apt-get install -y ghostscript
###### multiple options for a TeX environment
# ##
# - name: "setup TeX Live (via apt-get)"
# # old TeX Live version: 2019
# run: |
# sudo apt-get update -y || sudo apt-get update -y || sudo apt-get update -y
# sudo apt-get install -y texlive-latex-base || sudo apt-get install -y texlive-latex-base || sudo apt-get install -y texlive-latex-base
# ##
# - name: "setup TeX Live (via DanySK)"
# # old TeX Live version: 2019
# uses: DanySK/setup-texlive-action@master
# with:
# requirements-file: .github/tex/packages.test.txt
# ##
# - name: "setup TeX Live (via teatimeguest)"
# uses: teatimeguest/setup-texlive-action@v2
# with:
# package-file: .github/tex/packages.test.txt
# ##
- name: "setup TeX Live (via paolobrasolin)"
uses: paolobrasolin/setup-texlive-action@v1
# with:
# profile-path: ${{ github.workspace }}/.github/tex/profile.minimal.txt
# packages-path: ${{ github.workspace }}/.github/tex/packages.doc.txt
- run: tlmgr install ctan-o-mat
# - name: "install tikz-trackschematic"
# run: ./build.sh --non-interactive --install-dev
# - name: "test tikz-trackschematic"
# run: ./build.sh --non-interactive --test --verbose
# ## create varibale ${{ steps.tag.outputs.tag }}
# - name: "get tag"
# id: tag
# uses: dawidd6/action-get-tag@v1
# with:
# # Optionally strip `v` prefix
# strip_v: false
# - name: "create tikz-trackschematic package"
# run: ./build.sh --non-interactive --release ${{ steps.tag.outputs.tag }}
## opening a debug console
- name: Setup upterm session
env:
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
uses: lhotari/action-upterm@v1
with:
limit-access-to-actor: true

189
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,189 @@
### github action to make and publish a release
##
name: release
## Controls when the workflow will run
on:
## Triggers the workflow on push or pull request events but only for the master branch
push:
tags:
- "v*"
## A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
create_package:
name: "create a TeX Live package for tikz-trackschematic"
outputs:
version: ${{ steps.tag.outputs.tag }}
runs-on: ubuntu-latest
steps:
# 1. get varibale tag and put it in ${{ steps.tag.outputs.tag }}
- name: "get tag"
id: tag
uses: dawidd6/action-get-tag@v1
with:
# Optionally strip `v` prefix
strip_v: false
# 2. checkout the repo
- name: "checkout"
uses: actions/checkout@v3
# 3. install TeX Live
- name: "install ghostscript"
run: sudo apt-get install -y ghostscript
- name: "setup TeX Live (via paolobrasolin)"
uses: paolobrasolin/setup-texlive-action@v1
with:
profile-path: ${{ github.workspace }}/.github/tex/profile.minimal.txt
packages-path: ${{ github.workspace }}/.github/tex/packages.doc.txt
# 4. (re-)compile the documentation
- name: "update tikz-trackschematic documentation before release"
run: ./build.sh --non-interactive --memory-increase --compile-doc
# 5. create package and release notes
- name: "create tikz-trackschematic package"
run: ./build.sh --non-interactive --release ${{ steps.tag.outputs.tag }}
# 6. upload artifact to share it with other jobs
- uses: actions/upload-artifact@v3
with:
path: |
tikz-trackschematic-${{ steps.tag.outputs.tag }}.zip
release-note-${{ steps.tag.outputs.tag }}.md
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
with:
path: .github/tex/tikz-trackschematic.pkg
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
with:
path: .github/zenodo/metadata.json
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
publish_github:
needs: create_package
name: "publish on github"
runs-on: ubuntu-latest
steps:
# 1. download artifact in folder artifact/
- uses: actions/download-artifact@v3
# 2. creating a new release
- name: "create release"
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: artifact/release-note-${{needs.create_package.outputs.version}}.md
draft: false
prerelease: false
# 3. upload package to new release
- name: "upload release asset"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifact/tikz-trackschematic-${{needs.create_package.outputs.version}}.zip
asset_name: tikz-trackschematic-${{needs.create_package.outputs.version}}.zip
asset_content_type: application/zip
# 4. publish release on github
- name: "publish release"
uses: StuYarrow/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id }}
publish_CTAN:
needs: create_package
name: "publish on CTAN"
runs-on: ubuntu-latest
steps:
# 1. download artifact in folder artifact/ and move it one level up
- uses: actions/download-artifact@v3
- run: |
mv ./artifact/tikz-trackschematic-${{needs.create_package.outputs.version}}.zip ./
# 2. install ctan-o-mat
- name: "setup TeX Live (via paolobrasolin)"
uses: paolobrasolin/setup-texlive-action@v1
- run: tlmgr install ctan-o-mat
# 3. upload new release to CTAN
- name: CTAN submit
run: ctan-o-mat --verbose --submit artifact/tikz-trackschematic.pkg
publish_zenodo:
needs: create_package
name: "publish on zenodo"
outputs:
doi: ${{ steps.zenodraft.outputs.doi }}
runs-on: ubuntu-latest
steps:
# 1. download artifact in folder artifact/ and move it one level up
- uses: actions/download-artifact@v3
- run: |
mv ./artifact/tikz-trackschematic-${{needs.create_package.outputs.version}}.zip ./
# 2. install zenodraft
- name: "install zenodraft"
run: npm install -g zenodraft
# 3. upload new release to zenodo
- name: "uploading to zenodo"
id: zenodraft
env:
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
COLLECTION: 5539844
run: |
ID=$(zenodraft deposition create version $COLLECTION)
zenodraft file add $ID tikz-trackschematic-*.zip
zenodraft metadata update $ID artifact/metadata.json
zenodraft deposition publish $ID
echo "::set-output name=doi::$(zenodraft deposition show prereserved $ID)"
update_citation:
needs: [create_package, publish_zenodo]
name: "updating CITATION.cff"
runs-on: ubuntu-latest
steps:
# 1. checkout the repo
- name: "checkout"
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
# 2. update CITATION.cff
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}
# 3. push the change back to master
- name: push
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "DOI updated to ${{needs.create_package.outputs.version}} (via github action)"
branch: master
file_pattern: CITATION.cff
commit_user_name: railtoolkit
commit_user_email: railtoolkit@ownx.net
publish_twitter:
needs: [create_package, publish_zenodo]
name: "tweet about it!"
runs-on: ubuntu-latest
steps:
- uses: devigned/go-twitter-action@v1
with:
message: "The version ${{needs.create_package.outputs.version}} of TikZ-trackschematic is available! DOI: https://doi.org/${{needs.publish_zenodo.outputs.doi}}"
apiKey: ${{ secrets.TWITTER_API_KEY }}
apiKeySecret: ${{ secrets.TWITTER_API_SECRET }}
accessToken: ${{ secrets.TWITTER_ACCESS_TOKEN }}
accessTokenSecret: ${{ secrets.TWITTER_ACCESS_SECRET }}

63
.github/workflows/testing.yaml vendored Normal file
View File

@ -0,0 +1,63 @@
# This is a basic workflow to help you get started with Actions
name: "continuous integration test"
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths-ignore:
- 'CHANGELOG.md'
- 'CITATION.cff'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- '.github/workflows/cffvalidation.yaml'
- '.github/workflows/debug.yaml'
- '.github/workflows/release.yaml'
- '.github/workflows/zenodo.yaml'
- '.github/zenodo/*'
pull_request:
branches: [ master ]
paths-ignore:
- 'CHANGELOG.md'
- 'CITATION.cff'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- '.github/workflows/cffvalidation.yaml'
- '.github/workflows/debug.yaml'
- '.github/workflows/release.yaml'
- '.github/workflows/zenodo.yaml'
- '.github/zenodo/*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: "checkout"
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v3
- name: "install ghostscript"
run: sudo apt-get install -y ghostscript
- name: "setup TeX Live (via paolobrasolin)"
uses: paolobrasolin/setup-texlive-action@v1
with:
profile-path: ${{ github.workspace }}/.github/tex/profile.basic.txt
packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt
- name: "test tikz-trackschematic"
run: ./build.sh --non-interactive --test --verbose

126
.github/workflows/zenodo.yaml vendored Normal file
View File

@ -0,0 +1,126 @@
name: zenodo sandbox test
on:
# # Trigger when you publish a release via GitHub's release page
# release:
# types:
# - published
# # Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
create_package:
name: "create a TeX Live package"
outputs:
version: ${{ steps.tag.outputs.tag }}
runs-on: ubuntu-latest
steps:
# set varibale ${{ steps.tag.outputs.tag }}
- name: "get tag"
id: tag
run: echo "::set-output name=tag::v0.7.0"
# checkout the repo
- name: "checkout"
uses: actions/checkout@v3
# create package and release notes
- name: "create tikz-trackschematic package"
run: ./build.sh --non-interactive --release ${{ steps.tag.outputs.tag }}
# upload artifact to share it with other jobs
- uses: actions/upload-artifact@v3
with:
path: |
tikz-trackschematic-${{ steps.tag.outputs.tag }}.zip
release-note-${{ steps.tag.outputs.tag }}.md
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
with:
path: .github/tex/tikz-trackschematic.pkg
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
with:
path: .github/zenodo/metadata.json
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
# publish_zenodo:
# needs: create_package
# name: "publish on zenodo sandbox"
# runs-on: ubuntu-latest
# steps:
# # checkout the repo
# - name: "checkout"
# uses: actions/checkout@v3
# # download artifact in folder artifact/
# - uses: actions/download-artifact@v3
# - run: |
# mv ./artifact/tikz-trackschematic-*.zip ./
# mv ./artifact/metadata.json ./
# - name: "uploading to zenodo sandbox"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
# ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
# uses: zenodraft/action@0.10.0
# with:
# # collection: 5539844
# collection: 1047380
# filenames: tikz-trackschematic-v0.7.0.zip
# upsert-doi: true
# upsert-location: identifiers[1]
# metadata: metadata.json
# publish: true
# sandbox: true
# verbose: true
publish_zenodo:
needs: create_package
name: "publish on zenodo sandbox"
outputs:
doi: ${{ steps.zenodraft.outputs.doi }}
runs-on: ubuntu-latest
steps:
# download artifact in folder artifact/
- uses: actions/download-artifact@v3
- run: |
mv ./artifact/tikz-trackschematic-${{needs.create_package.outputs.version}}.zip ./
- name: "install zenodraft"
run: npm install -g zenodraft
- name: "uploading to zenodo sandbox"
id: zenodraft
env:
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
COLLECTION: 1047380
run: |
ID=$(zenodraft --sandbox deposition create in-existing-collection $COLLECTION)
zenodraft --sandbox file add $ID tikz-trackschematic-*.zip
zenodraft --sandbox metadata update $ID artifact/metadata.json
zenodraft --sandbox deposition publish $ID
echo "::set-output name=doi::$(zenodraft --sandbox deposition show prereserved $ID)"
update_citation:
needs: publish_zenodo
name: "updates CITATION.cff"
runs-on: ubuntu-latest
steps:
# 1. checkout the repo for zenodraft/action@0.10.0 to work
- name: "checkout"
uses: actions/checkout@v3
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}
- name: push
uses: github-actions-x/commit@v2.8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
force-add: 'true'
files: CITATION.cff
commit-message: 'updated DOI (via github action)'
name: Martin Scheidt
email: m.scheidt@tu-bs.de

32
.github/zenodo/metadata.json vendored Normal file
View File

@ -0,0 +1,32 @@
{
"title": "TikZ-trackschematic",
"version": "%%[SCRIPT]",
"publication_date": "%%[SCRIPT]",
"creators": [
{
"orcid": "0000-0002-9384-8945",
"affiliation": "TU Braunschweig",
"name": "Scheidt, Martin"
}
],
"description": "A TikZ library for creating track diagrams in railways. The TikZ-trackschematic 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 maybe needed to describe situations and layouts in railway operation.",
"keywords": [
"tex",
"tikz",
"railway",
"railroad",
"tracks",
"schematics"
],
"license": {
"id": "ISC"
},
"language": "eng",
"access_right": "open",
"upload_type": "software",
"communities": [
{
"identifier": "railtoolkit"
}
]
}

7
.gitignore vendored
View File

@ -244,6 +244,9 @@ TSWLatexianTemp*
Output
.tex
# Testing
.testing
## -- macOS ignore
# General
.DS_Store
@ -274,4 +277,6 @@ Temporary Items
.apdisk
# Archives for upload
*.zip
artifact
tikz-trackschematic-*.zip
release-note-*.md

174
CHANGELOG.md Normal file
View File

@ -0,0 +1,174 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Categories: Added, Changed, Deprecated, Removed, Fixed, and Security.
## [Unreleased]
### Todo
* i18n option
## Version [0.7.1] - 2022-06-02
### Changed
* handeling color background and foreground with native xcolor alias "\colorlet{}{}" instead of pgf macro
## Version [0.7.0] - 2022-04-02
### Added
* unified build script for development
### Changed
* revised symbol and syntax for balises
* the track loop was separated from the balises
* replaced "\gettikzxy" with "\path let" syntax
* label placement for derailers
### Fixed
* wrong option for labels in vehicles
* foreground of sidetrack (alias)
* PackageWarning Error in development mode
## Version [0.6.3] - 2022-02-15
### Added
* anchor for SVG export
* automated testing and releasing
* separate changelog
### Fixed
* documented (slip-)turnout option: points=moving
* spelling error in documentation
* URL to signalschablone
## Version [0.6.2] - 2021-10-15
### Fixed
* runaway argument
* developer mode always on
## Version [0.6.1] - 2021-09-30
### Added
* added citation information
### Removed
* removed package requirement lmodern
### Fixed
* minor correction in manual
## Version [0.6] - 2021-01-02
### Added
* created an encapsulating package for future flexibility
* added symbols for direction control, track marking, pylons and electric wiring
### Changed
* changed symbol for friction bufferstop;
* changed load command to \usepackage{tikz-trackschematic}
## Version [0.5.1] - 2020-02-10
### Added
* added symbols "braking point" and "danger point"
### Changed
* modified symbol "end of movement authority"
## Version [0.5] - 2020-01-14
### Added
* documentation
### Changed
* new improved syntax for topology
## Version [0.4] - 2019-07-21
### Added
* added document for symbology
### Changed
* renamed overview to snippets
* reworked library for common tikz library layout
## Version [0.3] - 2019-04-04
### Added
* added shunting movements
* added points to turnouts
* added moving trains
* defined and used color foreground and background
### Changed
* moved snippet folder to root folder
## Version [0.2] - 2018-12-19
### Added
* added transmitters
### Changed
* reorganized src library
* minor improvements
## Version [0.1] - 2018-09-14
### Added
Basic concept of a library with railway topology symbols and some examples.
[Unreleased]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.7.1...master
[0.7.1]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.7.0...v0.7.1
[0.7.0]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.6.3...v0.7.0
[0.6.3]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.6.2...v0.6.3
[0.6.2]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.6.1...v0.6.2
[0.6.1]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.6...v0.6.1
[0.6]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.5.1...v0.6
[0.5.1]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.5...v0.5.1
[0.5]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.4...v0.5
[0.4]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.3...v0.4
[0.3]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.2...v0.3
[0.2]: https://github.com/railtoolkit/tikz-trackschematic/compare/v0.1...v0.2
[0.1]: https://github.com/railtoolkit/tikz-trackschematic/releases/tag/v0.1

57
CITATION.cff Normal file
View File

@ -0,0 +1,57 @@
# YAML 1.2
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
---
cff-version: 1.2.0
title: tikz-trackschematic
message: 'If you use this software, please cite both the proceedings from preferred-citation and the software itself.'
type: software
authors:
- given-names: Martin
family-names: Scheidt
email: m.scheidt@tu-bs.de
orcid: 'https://orcid.org/0000-0002-9384-8945'
affiliation: TU Braunschweig
identifiers:
- type: doi
value: 10.5281/zenodo.5539844
description: 'Collection of archived snapshots of all versions of the library'
- type: doi
value: 10.5281/zenodo.6607601
description: Current version
url: https://www.railtoolkit.org/projects/tikz-trackschematic
repository: https://github.com/railtoolkit/tikz-trackschematic
repository-code: https://repository.ivev.bau.tu-bs.de/martin/tikz-trackschematic
repository-artifact: https://ctan.org/pkg/tikz-trackschematic
abstract: >-
'A TikZ library for creating track diagrams in
railways. The tikz-trackschematic 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 maybe needed to
describe situations and layouts in railway
operation.'
keywords:
- tex
- symbology
- railway
- railroad
- operational scenarios
- graphical description
license: ISC
version: v0.7.1
date-released: 2022-06-02
preferred-citation:
authors:
- family-names: Scheidt
given-names: Martin
orcid: https://orcid.org/0000-0002-9384-8945
- family-names: Pachl
given-names: Jörn
doi: 10.24355/dbbs.084-202204140847-0
title: 'TikZ-trackschematic library: a symbology towards a universal graphical description for operational scenarios in railway research'
type: proceedings
year: 2022
publisher:
name: "RailBeijing 2021 - the 9th International Conference on Railway Operations Modelling and Analysis (ICROMA). 3.-7. November , 2021"

74
CODE_OF_CONDUCT.md Normal file
View File

@ -0,0 +1,74 @@
# Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

28
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,28 @@
# Contributing
When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
# Enhancing and developing the tikz-trackschematic library
1. The tikz-trackschematic should be regularly installed via TeX Live to modify the library. The distributed package comes with a development switch.
2. Run the build script with `sudo ./build.sh --install-dev`. This will soft link the local files out of src folder into your TeX Live installation.
3. The TeX command `\usepackage[dev]{tikz-trackschematic}` will load the linked src folder instead of the distributed package from TeX Live.
4. After implementing your modification run `./build.sh --test` to check for any breaking changes.
# Pull Request Process
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
build.
2. Update the CHANGELOG.md with details of changes to the interface, this includes new environment
variables, exposed ports, useful file locations and container parameters.
3. The versioning scheme we use is [SemVer](http://semver.org/). Increase the version numbers in the following files to the new version that this Pull Request would represent:
1. CHANGELOG.md
2. doc/versionhistory.tex
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
do not have permission to do that, you may request the second reviewer to merge it for you.
5. The following versioning steps will be taken care of by the maintainer:
1. git repo with tag
2. sync Overleaf project

View File

@ -1,6 +1,6 @@
ISC License
Copyright (c) 2018 - 2020, Martin Scheidt \<m.scheidt@tu-bs.de\>
Copyright (c) 2018 - 2022, Martin Scheidt \<m.scheidt@tu-bs.de\>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

View File

@ -1,79 +1,69 @@
# TikZ-trackschematic
[![License: ISC](https://img.shields.io/badge/license-ISC-green.svg)](https://opensource.org/licenses/ISC) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5539844.svg)](https://doi.org/10.5281/zenodo.5539844) [![CI test](https://github.com/railtoolkit/tikz-trackschematic/actions/workflows/testing.yaml/badge.svg)](https://github.com/railtoolkit/tikz-trackschematic/actions/workflows/testing.yaml)
------------
# Installation
The tikz library is contained in the files:
* tikz-trackschematic.sty
* tikzlibrarytrackschematic.code.tex,
* tikzlibrarytrackschematic.topology.code.tex,
* tikzlibrarytrackschematic.trafficcontrol.code.tex,
* tikzlibrarytrackschematic.vehicles.code.tex,
* tikzlibrarytrackschematic.constructions.code.tex, and
* tikzlibrarytrackschematic.messures.code.tex.
These files should be copied wherever TeX can find it, for example in your TEXMF folder. The library can then be loaded through the command \usetikzlibrary{trackschematic} in any tex file.
* tikzlibrarytrackschematic.constructions.code.tex,
* tikzlibrarytrackschematic.symbology.code.tex,
* tikzlibrarytrackschematic.electrics.code.tex, and
* tikzlibrarytrackschematic.measures.code.tex.
These files should be copied wherever TeX can find it, for example in your $TEXMF folder.
Alternatively, the tikz library is provided by CTAN as "[tikz-trackschematic](https://ctan.org/pkg/tikz-trackschematic)" and is thus part of the TeX Live distribution or can be installed via MiKTeX.
The library can then be loaded through the command
```TeX
\usepackage{tikz-trackschematic}
```
in any LaTeX file.
The library can also be used in [Overleaf](https://www.overleaf.com/read/crrxfcdzbhbd).
------------
# Usage
# Minimal working example
```TeX
\documentclass[tikz]{standalone}
\usetikzlibrary{trackschematic}
\begin{document}
\documentclass{standalone} % LaTeX
\usepackage{tikz-trackschematic} % loading the library
\begin{document}
\begin{tikzpicture}
% TikZ command: specify coordinates
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (T) at (5,0);
% draw a track
\maintrack (A) -- (B);
\train[forward] at (T) label (train);
% place a train on the track
\train[forward] at (T) label ();
\end{tikzpicture}
\end{document}
```
results in:
![train on a track](https://raw.githubusercontent.com/railtoolkit/tikz-trackschematic/master/doc/examples/minimal_working_example.png "train on a track")
------------
# History
# Symbology and meaning
## Version 0.5.1
* modified symbol "end of movement authority"
* added symbols "braking point" and "danger point"
## Version 0.5
* new improved syntax for topology
* documentation
## Version 0.4
* added document for symbology
* renamed overview to snippets
* reworked library for common tikz library layout
## Version 0.3
* moved snippet folder to root folder
* added shunting movements
* added points to turnouts
* added moving trains
* defined and used color foreground and background
## Version 0.2
* added transmitters
* reorganized src library
* minor improvements
## Version 0.1
Basic concept of a library with railway topology symbols and some examples.
Please consult the [symbology table](https://github.com/railtoolkit/tikz-trackschematic/blob/master/doc/symbology-table.pdf) for further information regarding meaning of the symbols.
------------
@ -82,6 +72,7 @@ These files should be copied wherever TeX can find it, for example in your TEXMF
* rethink syntax
* provide option for internationalziation (i18n)
* rewrite library with better coding skills
* include support for glossaries package
------------
@ -93,9 +84,9 @@ These files should be copied wherever TeX can find it, for example in your TEXMF
# License
ISC License
[![Open Source Initiative Approved License logo](https://opensource.org/files/OSIApproved_100X125.png "Open Source Initiative Approved License logo")](https://opensource.org)
Copyright (c) 2018 - 2020, Martin Scheidt \<m.scheidt@tu-bs.de\>
Copyright (c) 2018 - 2022, Martin Scheidt \<m.scheidt@tu-bs.de\> (ISC License)
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

1133
build.sh Executable file

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +0,0 @@
#!/usr/bin/env sh
echo "specify version ( e.g. v0.5 ):"
read VERSION
mkdir tikz-trackschematic-$VERSION
cp README.md tikz-trackschematic-$VERSION/README.md
cp doc/tikz-trackschematic-documentation.sty tikz-trackschematic-$VERSION/tikz-trackschematic-documentation.sty
cp doc/manual.pdf tikz-trackschematic-$VERSION/tikz-trackschematic.pdf
cp doc/manual.tex tikz-trackschematic-$VERSION/tikz-trackschematic.tex
cp doc/snippets.pdf tikz-trackschematic-$VERSION/tikz-trackschematic-snippets.pdf
cp doc/snippets.tex tikz-trackschematic-$VERSION/tikz-trackschematic-snippets.tex
mkdir tikz-trackschematic-$VERSION/tikz-trackschematic-examples
mkdir tikz-trackschematic-$VERSION/tikz-trackschematic-snippets
cp -R doc/examples/* tikz-trackschematic-$VERSION/tikz-trackschematic-examples
cp -R doc/snippets/* tikz-trackschematic-$VERSION/tikz-trackschematic-snippets
cp src/tikzlibrarytrackschematic.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.code.tex
cp src/tikzlibrarytrackschematic.constructions.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.constructions.code.tex
cp src/tikzlibrarytrackschematic.messures.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.messures.code.tex
cp src/tikzlibrarytrackschematic.topology.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.topology.code.tex
cp src/tikzlibrarytrackschematic.trafficcontrol.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.trafficcontrol.code.tex
cp src/tikzlibrarytrackschematic.vehicles.code.tex tikz-trackschematic-$VERSION/tikzlibrarytrackschematic.vehicles.code.tex
zip -r tikz-trackschematic-$VERSION.zip tikz-trackschematic-$VERSION/*
rm -rf tikz-trackschematic-$VERSION/*
rmdir tikz-trackschematic-$VERSION

View File

@ -1,18 +0,0 @@
#!/usr/bin/env sh
echo "specify path for installation!"
echo "( e.g. /usr/local/texlive/2019/texmf-dist/tex/latex ):"
read INSTALLPATH
DIR=$(pwd -P)
DEVDIR="tikz-trackschematic-dev"
mkdir $INSTALLPATH/$DEVDIR
ln -s $DIR/src/tikzlibrarytrackschematic.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.constructions.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.constructions.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.messures.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.messures.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.topology.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.topology.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.trafficcontrol.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.trafficcontrol.code.tex
ln -s $DIR/src/tikzlibrarytrackschematic.vehicles.code.tex $INSTALLPATH/$DEVDIR/tikzlibrarytrackschematic-dev.vehicles.code.tex

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,16 @@
\documentclass{standalone}
% loading the library
\usepackage{tikz-trackschematic}
\begin{document} % LaTeX
\begin{tikzpicture} % TikZ
% draw a track with (x,y) coordinates
\maintrack (0,0) -- (6,0);
% place a train on the track
\train[forward] at (5,0) label ();
\end{tikzpicture}
\end{document}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -1,15 +1,15 @@
%!TEX TS-program = pdflatexmk
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\documentclass[tikz,border=2]{standalone}
\usetikzlibrary{trackschematic}
\usepackage{tikz-trackschematic} % loading the library
\begin{document}
\begin{tikzpicture}[font=\sffamily]
{ % station names
\tikzset{every node/.style={\foreground!50!\background}};
\tikzset{every node/.style={foreground!50!background}};
\node[right,align=left] at ( 2,1.3) {to and from\\ Arnau};
\node at (21,3.3) {{\LARGE Bf Berg}};
\node[left,align=right] at (38,1.3) {to and from\\ Chamstadt};
@ -134,7 +134,7 @@
\platform[side=right] at (P2);
\platform[side=left ] at (P1);
}
{ %% messures
{ %% measures
% hectometer posts
\tikzset{hectometer base={(HM)},orientation=right};
\hectometer[] at (S1) label ( 7.200);

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -1,15 +1,15 @@
%!TEX TS-program = pdflatexmk
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\documentclass[tikz,border=2]{standalone}
\usetikzlibrary{trackschematic}
\usepackage{tikz-trackschematic} % loading the library
\begin{document}
\begin{tikzpicture}[font=\sffamily]
{ % station names
\tikzset{every node/.style={\foreground!50!\background}};
\tikzset{every node/.style={foreground!50!background}};
\node[right,align=left] at ( 5,1.3) {to and from\\ Berg};
\node at (21,3.9) {{\LARGE Bf Chamstadt}};
\node[left,align=right] at (37.5,1.3) {to and from\\ Dornroda};
@ -145,7 +145,7 @@
\platform[side=right] at (P2);
\platform[side=left ] at (P1);
}
{ %% messures
{ %% measures
% hectometer posts
\tikzset{hectometer base={(HM1)},orientation=right};
\hectometer[] at (S01) label ( 7.200);
@ -161,8 +161,8 @@
\hectometer[] at (S09) label ( 9.900);
\hectometer[] at (S11) label (10.900);
\messureline (S09) -- ++(0,1.7) -- (S10);
\messureline (S11) -- ++(0,2.2) -- (S12);
\measureline (S09) -- ++(0,1.7) -- (S10);
\measureline (S11) -- ++(0,2.2) -- (S12);
\tikzset{hectometer base={(HM2)},orientation=left};
\hectometer[] at (14 ,1) label ( 8.500);

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
@ -11,4 +11,4 @@
\maintrack (A) -- (B);
\routesignal[forward] at (S) label ();
\balise[] at (S) label ();
\balise[forward] at (S) label ();

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
@ -11,5 +11,5 @@
\maintrack (A) -- (B);
\balise[forward] at (T1) label ();
\balise[forward,position=left] at (T2) label ();
\balise[forward,switched] at (T1) label ();
\balise[backward,switched] at (T2) label ();

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
@ -11,5 +11,5 @@
\maintrack (A) -- (B);
\balise[] at (T1) label ();
\balise[position=left] at (T2) label ();
\balise[forward] at (T1) label ();
\balise[backward] at (T2) label ();

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A1) at (0 ,-0.5);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (S) at (3,0);
\maintrack (A) -- (B);
\signal[block,shunting,backward] at (S) label (S1);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (S) at (3,0);
\maintrack (A) -- (B);
\signal[block,shunting,forward] at (S) label (S1);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,8 +1,9 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A1) at (0, 0);
\coordinate (B1) at (6, 0);
\coordinate (A2) at (2,-1);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (3,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -0,0 +1,12 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (DC) at (3,0);
\coordinate (B) at (6,0);
\maintrack (A) -- (B);
\directioncontrol[bidirectional] at (DC);

View File

@ -0,0 +1,12 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (DC) at (3,0);
\coordinate (B) at (6,0);
\maintrack (A) -- (B);
\directioncontrol[backward] at (DC);

View File

@ -0,0 +1,12 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (DC) at (3,0);
\coordinate (B) at (6,0);
\maintrack (A) -- (B);
\directioncontrol[forward] at (DC);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\distantpantographdown[backward] at (E) label (dP);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\distantpantographdown[forward] at (E) label (dP);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\distantpoweroff[backward] at (E) label (dP);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\distantpoweroff[forward] at (E) label (dP);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (3,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
@ -11,5 +11,5 @@
\maintrack (A) -- (B);
\balise[backward] at (T1) label ();
\balise[backward,position=left] at (T2) label ();
\balise[forward,along={0,1,2,3}] at (T1) label (A);
\balise[backward,along={0,1,2,3}] at (T2) label (B);

View File

@ -0,0 +1,27 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (T1) at (2,0);
\coordinate (T2) at (4,0);
\maintrack (A) -- (B);
\balise[
forward,
along={0,1,3},
along switched={2},
oppose={0,2},
] at (T1) label (A);
\balise[
backward,
along={0,1,3},
along switched={2},
oppose={0,2,3},
oppose switched={1},
index % show index number
] at (T2) label (B);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (I) at (3,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A1) at (0,-0.5);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A1) at (0,-0.5);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -0,0 +1,12 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (X) at (3,0);
\secondarytrack (A) -- (B);
\levelcrossing[] at (X);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A1) at (0,-0.5);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,10 +1,12 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\messureline (A) -- (B);
\measureline (A) -- (B);
\trackclosure at (A);
\trackclosure at (B);

View File

@ -0,0 +1,28 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A1) at (0,0);
\coordinate (X1) at (3,0);
\coordinate (B1) at (6,0);
\coordinate (A2) at (0,3);
\coordinate (X2) at (2,3);
\coordinate (X3) at (5,3);
\coordinate (B2) at (6,3);
\coordinate (hb) at (0,-2);
\maintrack (A1) -- (B1);
\maintrack (A2) -- (B2);
\measureline (A2) -- (A1);
\measureline (X2) -- ++(0,-1) -- ++(1,-1) -- (X1);
\measureline (X3) -- ++(0,-1) -- ++(1,-1) -- (B1);
\tikzset{hectometer base={(hb)},orientation=right}
\hectometer[] at (A) mileage (0.000);
\hectometer[] at (X1) mileage (4.000);
\hectometer[] at (B) mileage (6.000);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\pantographdown[backward] at (E) label (down);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\pantographdown[forward] at (E) label (down);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\pantographup[backward] at (E) label (up);

View File

@ -0,0 +1,13 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);
\coordinate (B) at (6,0);
\coordinate (E) at (3,0);
\maintrack (A) -- (B);
\pantographup[forward] at (E) label (up);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

View File

@ -1,7 +1,7 @@
%!TEX TS-program = pdflatexmk
%!TEX root = ../snippets.tex
% Copyright (c) 2018 - 2020, Martin Scheidt (ISC license)
% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\coordinate (A) at (0,0);

Some files were not shown because too many files have changed in this diff Show More