- Commit
- 9595d4e31fab53935cd5c71226a4008c5fd8466e
- Parent
- a46cb25171de5d9b555da10f203f49a56b2a2fbb
- Author
- Pablo <pablo-escobar@riseup.net>
- Date
Moved .tikz files to .tex
Also made it so that tikz_gallery_generator properly handles .tex
Custum build of stapix for tikz.pablopie.xyz
Moved .tikz files to .tex
Also made it so that tikz_gallery_generator properly handles .tex
40 files changed, 42 insertions, 42 deletions
diff --git a/examples/config.yml b/examples/config.yml @@ -1,5 +1,5 @@ # TODO: Differenciate between alt texts and captions -- path: ./images/26-nodes-diagram.tikz +- path: ./images/26-nodes-diagram.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -11,64 +11,64 @@ source: https://commons.wikimedia.org/wiki/File:Calabi-Yau-alternate.png alt: A visual representation of the Calebi-Yau manifold -- path: ./images/complex-lattice.tikz +- path: ./images/complex-lattice.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: A complex lattice with two linearly independent periods -- path: ./images/complex-surreal-venn.tikz +- path: ./images/complex-surreal-venn.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture represents the relationship between the real, complex and surreal numbers -- path: ./images/cube.tikz +- path: ./images/cube.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: A cube -- path: ./images/diamond.tikz +- path: ./images/diamond.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: A domond-like shape -- path: ./images/dihedral-representation-is-irreducible.tikz +- path: ./images/dihedral-representation-is-irreducible.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: An ilustration of the proof that the natural real representation of the Dihidral group is irreducible -- path: ./images/dihedral-representation.tikz +- path: ./images/dihedral-representation.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The action of the dihedral group in the real plain -- path: ./images/elliptic-curve-group-structure.tikz +- path: ./images/elliptic-curve-group-structure.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The group structure of the points of an elliptic curve -- path: ./images/euclidian-plane.tikz +- path: ./images/euclidian-plane.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The Cartesian plane -- path: ./images/finite-topological-plot.tikz +- path: ./images/finite-topological-plot.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: A plot of the number of topological spaces of n points in logarithmic scale -- path: ./images/galois-lattice-antisomorphism.tikz +- path: ./images/galois-lattice-antisomorphism.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -76,14 +76,14 @@ subgroups of the Galois group of a Galois extension and the lattice of intermediary subfields of such extension. -- path: ./images/geodesic.tikz +- path: ./images/geodesic.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture represents the fact that geodesics locally minimize distances -- path: ./images/grothendieck-riemann-roch.tikz +- path: ./images/grothendieck-riemann-roch.tex license: PD author: Alexander Grothendieck author-url: https://grothendieckcircle.org/ @@ -99,7 +99,7 @@ alt: A diagram of the classification of finite simple groups in the format of a periodic table -- path: ./images/hyperbolic-plane-disc.tikz +- path: ./images/hyperbolic-plane-disc.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -119,13 +119,13 @@ source: https://commons.wikimedia.org/wiki/File:KleinInvariantJ.jpg alt: The j-invariant Klein function in the complex plane -- path: ./images/k4.tikz +- path: ./images/k4.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The complete graph of four vertices -- path: ./images/mobius.tikz +- path: ./images/mobius.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -138,19 +138,19 @@ alt: The first columns of the chacter table of the monster simple group in characteristic zero -- path: ./images/natural-number-line.tikz +- path: ./images/natural-number-line.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The natural number line -- path: ./images/ordinal-number-line.tikz +- path: ./images/ordinal-number-line.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The ordinal number line -- path: ./images/quaternion-rotation.tikz +- path: ./images/quaternion-rotation.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -161,54 +161,54 @@ space, and conjugation by cos t + p sin t acts as rotation by 2 t around this axis." -- path: ./images/real-number-line.tikz +- path: ./images/real-number-line.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The real number line -- path: ./images/real-ordinal-surreal-venn.tikz +- path: ./images/real-ordinal-surreal-venn.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture represents the relationship between the real, ordinal and surreal numbers -- path: ./images/riemannian-metric.tikz +- path: ./images/riemannian-metric.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture is a comparison between the Euclidean distance and the Riemannian distance in a 3-dimensional sphere -- path: ./images/rigid-motion-reflections.tikz +- path: ./images/rigid-motion-reflections.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture represents the fact that reflections are rigid motions -- path: ./images/rigid-motion-rotation.tikz +- path: ./images/rigid-motion-rotation.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture represents the fact that rotations are rigid motions -- path: ./images/smooth-function.tikz +- path: ./images/smooth-function.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture represents the definition of a smooth map between manifolds -- path: ./images/smooth-manifold.tikz +- path: ./images/smooth-manifold.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This picture represents the definition of a smooth manifold -- path: ./images/sphere-quotient.tikz +- path: ./images/sphere-quotient.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -216,7 +216,7 @@ quotient of the (n + 1)-dimensional simple orthogonal group by the n-dimensional simple orthogonal group -- path: ./images/sphere.tikz +- path: ./images/sphere.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -228,20 +228,20 @@ source: https://en.wikipedia.org/wiki/File:SporadicGroups.svg alt: All the Sporadic groups in their subquotient relationship -- path: ./images/square-to-circle-projection.tikz +- path: ./images/square-to-circle-projection.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: "The projection from the square to the circle: we map a point in the square of length √2/2 onto the unit circle by normalizing it" -- path: ./images/standard-sets-venn.tikz +- path: ./images/standard-sets-venn.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: This diagram represents the relationship between standard number sets -- path: ./images/stereographic-projection.tikz +- path: ./images/stereographic-projection.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz @@ -254,30 +254,30 @@ source: https://en.wikipedia.org/wiki/File:Surreal_number_tree.svg alt: Visualization of the surreal number tree -- path: ./images/tangent-space.tikz +- path: ./images/tangent-space.tex license: CC-BY-4 author: Gustavo Mezzovilla alt: The tangent space of a smooth manifold at a point -- path: ./images/topology-mug-donut.tikz +- path: ./images/topology-mug-donut.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: A mug continuously morphing into a donut -- path: ./images/unit-circle-covering.tikz +- path: ./images/unit-circle-covering.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The universal covering of the unit circle -- path: ./images/unit-circle.tikz +- path: ./images/unit-circle.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz alt: The unit complex circle -- path: ./images/upper-central-projection.tikz +- path: ./images/upper-central-projection.tex license: CC-BY-4 author: Pablo author-url: https://pablopie.xyz
diff --git a/examples/images/coxerter-group-reflections.tikz b/examples/images/coxerter-group-reflections.tex
diff --git a/examples/images/cube.tikz b/examples/images/cube.tex
diff --git a/examples/images/diamond.tikz b/examples/images/diamond.tex
diff --git a/examples/images/dihedral-representation-is-irreducible.tikz b/examples/images/dihedral-representation-is-irreducible.tex
diff --git a/examples/images/dihedral-representation.tikz b/examples/images/dihedral-representation.tex
diff --git a/examples/images/elliptic-curve-group-structure.tikz b/examples/images/elliptic-curve-group-structure.tex
diff --git a/examples/images/finite-topological-plot.tikz b/examples/images/finite-topological-plot.tex
diff --git a/examples/images/galois-lattice-antisomorphism.tikz b/examples/images/galois-lattice-antisomorphism.tex
diff --git a/examples/images/geodesic.tikz b/examples/images/geodesic.tex
diff --git a/examples/images/grothendieck-riemann-roch.tikz b/examples/images/grothendieck-riemann-roch.tex
diff --git a/examples/images/k4.tikz b/examples/images/k4.tex
diff --git a/examples/images/mobius.tikz b/examples/images/mobius.tex
diff --git a/examples/images/real-ordinal-surreal-venn.tikz b/examples/images/real-ordinal-surreal-venn.tex
diff --git a/examples/images/rigid-motion-reflections.tikz b/examples/images/rigid-motion-reflections.tex
diff --git a/examples/images/sphere.tikz b/examples/images/sphere.tex
diff --git a/examples/images/square-to-circle-projection.tikz b/examples/images/square-to-circle-projection.tex
diff --git a/examples/images/stereographic-projection.tikz b/examples/images/stereographic-projection.tex
diff --git a/examples/images/unit-circle.tikz b/examples/images/unit-circle.tex
diff --git a/examples/images/upper-central-projection.tikz b/examples/images/upper-central-projection.tex
diff --git a/src/gallery_entry.rs b/src/gallery_entry.rs @@ -64,7 +64,7 @@ pub struct GalleryEntry { #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FileFormat { - TikZ, + TeX, Svg, Png, Jpeg, @@ -234,8 +234,8 @@ impl<'de> Deserialize<'de> for GalleryEntry { Unexpected::Str(&path_str), &"valid file path (couldn't guess file format)", )); - }, - Some("tikz") => FileFormat::TikZ, + } + Some("tex") => FileFormat::TeX, Some("svg") => FileFormat::Svg, Some("png") => FileFormat::Png, Some("jpeg" | "jpg") => FileFormat::Jpeg,
diff --git a/src/main.rs b/src/main.rs @@ -495,7 +495,7 @@ fn render_thumbnail(pic: GalleryEntry) -> bool { } match pic.file_format { - FileFormat::TikZ => { + FileFormat::TeX => { // TODO: Remove the dependancie on tikztosvg to optimize IO? // currently tikztosvg creates new directories in tmp for each // single file. Maybe we could optimize IO by reusing the same dir @@ -632,7 +632,7 @@ fn thumb_path(pic: &GalleryEntry) -> PathBuf { result.push(THUMBS_PATH); match pic.file_format { - FileFormat::TikZ => { + FileFormat::TeX => { result.push(pic.file_name.clone() + ".svg"); } FileFormat::Svg => { @@ -651,7 +651,7 @@ impl<'a> Display for ThumbPath<'a> { write!(f, "/{THUMBS_PATH}/{name}", name = Escaped(&self.0.file_name))?; match self.0.file_format { - FileFormat::TikZ => write!(f, ".svg")?, + FileFormat::TeX => write!(f, ".svg")?, FileFormat::Svg => {} FileFormat::Jpeg | FileFormat::Png => write!(f, ".webp")?, }