在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):takidau/animations开源软件地址(OpenSource Url):https://github.com/takidau/animations开源编程语言(OpenSource Language):TeX 98.0%开源软件介绍(OpenSource Introduction):LaTeX/Tikz animation goodness. Overview:Each diagram corresponds to a single main LaTeX file, e.g. the sessions diagram corresponds to sessions.tex. All of the diagrams depend on a common library of commands definitions and initialization in the diagrams.tex file. Each frame of animation advances processing time by 1/9 of a minute (i.e. 0.111). I don't remember why I set it up this way originally, I just did, and it's worked out pretty well. The main command used to render a single frame is \TriggersDiagram. It takes two parameters*:
*Technically it takes three parameters. The truly first parameter is the color of the horizontal line indicating what time it is in processing time, for fading that line out. This is typically only used for the final frames of the animation. Most of the rendering is done using other custom commands for basic primitives, like \DrawState and \DrawOutput. Poking around in the existing files and the command definitions should be pretty helpful for figuring them all out. Setup (Mac - RECOMMENDED):
You should then be able to load, edit, and render PDFs in TexShop. PDF → GIF conversion is detailed below.g Setup (Linux Workstation):NOTE: I never fully managed to get fonts working properly on Linux. You'll either have to figure out how to make that work, or comment out the FiraSans lines in diagrams.tex to get this to render on your workstation. Or just use a Mac, as above. Some subset of the following commands are needed to install the necessary LaTeX packages (I'm not sure which, since I was totally shooting in the dark trying to get this set up the first time, and I know of no good way to return to a clean state to try it all over again from the beginning):
You'll also need the pdflatex and convert (i.e. Image Magick) commands installed. For me, they already were (not sure if I installed them manually once upon a time, or not). LaTeX to PDF:Mac: Open file in TexShop, Render to PDF (command+t). Linux: PDF to GIF:
Extract frames from GIF to PNG:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论