2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-11 15:38:15 +02:00

Add README.md and rendered png to all folders except for /documents

The examples were found by

```bash
$ find . -not -path '*/\.*' -type d '!' -exec test -e "{}/README.md" ';' -print
```

To do so, a cleanup-script .meta/add_readme.py was created.
This commit is contained in:
Martin Thoma 2015-11-22 09:11:19 +01:00
parent de1ad26035
commit 2de9065138
154 changed files with 483 additions and 171 deletions

3
.gitattributes vendored Normal file
View file

@ -0,0 +1,3 @@
*.gif diff=image
*.jpg diff=image
*.png diff=image

37
.meta/add_readme.py Executable file
View file

@ -0,0 +1,37 @@
#!/usr/bin/env python
import os
from os import listdir
from os.path import isfile, join
import logging
import sys
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s',
level=logging.DEBUG,
stream=sys.stdout)
def create_readme(directory):
project_name = os.path.basename(directory)
onlyfiles = [f.lower()
for f in listdir(directory)
if isfile(join(directory, f))]
if ('%s.tex' % project_name) not in onlyfiles:
logging.warning("Dir '%s' has no standard .tex filename.", directory)
return
text = "Compiled example\n"
text += "----------------\n"
text += "![Example](%s.png)\n" % project_name
with open(os.path.join(directory, "README.md"), 'w') as f:
f.write(text)
os.system("make png -C %s" % directory)
subdirs = [x[0] for x in os.walk('.')]
subdirs = [f for f in subdirs
if not any([True for e in f.split('/')
if e.startswith('.') and len(e) > 1])]
for subdir in subdirs:
onlyfiles = [f.lower() for f in listdir(subdir) if isfile(join(subdir, f))]
if 'readme.md' not in onlyfiles:
create_readme(subdir)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](chess-chessboard-4x4.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](chess-chessboard-shortest-game.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](chess-chessboard-simple-example.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](chess-skak-simple-example.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -1,7 +1,33 @@
SOURCE = eaz
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

3
documents/eaz/README.md Normal file
View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](eaz.png)

Binary file not shown.

BIN
documents/eaz/eaz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](math-euklidische-normalform.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](math-sylvester-diagonal-matrix.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

@ -1,10 +1,33 @@
SOURCE = size
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf # first run for the aux file
makeindex $(SOURCE) # now the index is generated
pdflatex $(SOURCE).tex -output-format=pdf # pdf with index :-)
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

3
documents/size/README.md Normal file
View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](size.png)

Binary file not shown.

BIN
documents/size/size.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1 @@
Example with a very long table over multiple pages

View file

@ -0,0 +1,2 @@
Example for a contract - in German - about giving your apartment to somebody
else for a short time.

View file

@ -1,8 +1,34 @@
SOURCE = basic
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

1
images/basic/README.md Normal file
View file

@ -0,0 +1 @@
Just include an image in a document in its original size

View file

@ -1,8 +1,33 @@
SOURCE = float
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

3
images/float/README.md Normal file
View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](float.png)

BIN
images/float/float.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View file

@ -1,8 +1,33 @@
SOURCE = scaling
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

3
images/scaling/README.md Normal file
View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](scaling.png)

BIN
images/scaling/scaling.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

View file

@ -1,4 +1,7 @@
SOURCE = side-by-side-subfig
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
@ -6,4 +9,26 @@ make:
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

View file

@ -1,4 +1,7 @@
SOURCE = side-by-side
DELAY = 80
DENSITY = 300
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
@ -6,4 +9,26 @@ make:
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](side-by-side.png)

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](commutative-diagramm.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View file

@ -0,0 +1 @@
Presentation of a softskill course at KIT.

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](quotes.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](b-tree-2-small-2.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](b-tree-2-small-3.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](b-tree-2-small-4.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -1,14 +1,14 @@
SOURCE = b-tree-2-small
DELAY = 80
DENSITY = 300
WIDTH = 500
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif:
pdfcrop $(SOURCE).pdf
@ -28,4 +28,6 @@ svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](b-tree-2-small.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](b-tree-3-evolution.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](b-tree-node.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](binary-search-tree.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](bounding-box-lines-1.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](bounding-box-lines-2.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](bounding-box-lines-3.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](bounding-box-lines-4.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](cache-4-way-associative.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](chemistry-example.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](circle-convex-metric-space.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](circles-closed.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](circular-cone.png)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](circular-sector-centroid.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

3
tikz/cmos-nor/README.md Normal file
View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](cmos-nor.png)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](cmos-sram-cell.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](countable-sets.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -1,7 +1,7 @@
SOURCE = cubic-function
DELAY = 80
DENSITY = 300
WIDTH = 500
WIDTH = 512
make:
pdflatex $(SOURCE).tex -output-format=pdf
@ -28,4 +28,6 @@ svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](cubic-function.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](dijkstra-fail.png)

View file

@ -1,25 +0,0 @@
SOURCE = dot-product-1
DELAY = 80
DENSITY = 300
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg

View file

@ -1,2 +0,0 @@
Das ist nicht fertig!
TODO: Fertig stellen

View file

@ -1,93 +0,0 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
class Node(object):
""" A node. """
def __init__(self, x, y, data):
self._data = data # data connected to the node
self._x = x # x-position
self._y = y # y-position
data = property(fget=lambda self: self._data)
x = property(fget=lambda self: self._x)
y = property(fget=lambda self: self._y)
def __str__(self):
return "{(%i,%i)/%s}" % (self.x, self.y, str(self.data))
def __repr__(self):
return "{(%i,%i)/%s}" % (self.x, self.y, str(self.data))
class Edge(object):
""" An edge. """
def __init__(self, startNode, endNode, weight=0, directed=False):
self._startNode = startNode
self._endNode = endNode
self._weight = weight
self._directed = directed
startNode = property(fget=lambda self: self._startNode)
endNode = property(fget=lambda self: self._endNode)
weight = property(fget=lambda self: self._weight)
directed = property(fget=lambda self: self._directed)
def __str__(self):
return "%s/%s/%i" % (str(id(self.startNode)), str(id(self.endNode)), self.weight)
def __repr__(self):
return "%s/%s/%i" % (str(id(self.startNode)), str(id(self.endNode)), self.weight)
class Graph(object):
""" A graph. """
def __init__(self, directed=False):
self._directed = directed
self._edges = []
self._vertices = []
directed = property(fget=lambda self: self._directed)
edges = property(fget=lambda self: self._edges)
vertices = property(fget=lambda self: self._vertices)
def printVertices(self):
vertexString = ""
for vertex in self.vertices:
vertexString += str(vertex)
return vertexString
def printEdges(self):
edgeString = "% Connect vertices with edges and draw weights\n"
edgeString += "\\foreach \source/ \dest /\weight in {"
for i, edge in enumerate(self.edges):
if i != 0:
edgeString += ", "
edgeString += str(edge)
edgeString += "}\n"
edgeString += "\path[edge] (\source) -- node[weight] {$\weight$} (\dest);"
return edgeString
def printGraph(self):
print("\\begin{tikzpicture}[scale=1.8, auto,swap]")
print("\\foreach \pos/\\name in {" + self.printVertices() + "}")
print("\t\\node[vertex] (\\name) at \pos {$\\name$};")
print(self.printEdges())
print("\end{tikzpicture}")
if '__main__' == __name__:
graph = Graph()
k1 = Node(1,2, 1)
k2 = Node(3,0, 2)
k3 = Node(3,3, 3)
k6 = Node(1,4, 6)
k5 = Node(4,5, 5)
k4 = Node(5,3, 4)
graph._vertices.append(k1)
graph._vertices.append(k2)
graph._vertices.append(k3)
graph._vertices.append(k4)
graph._vertices.append(k5)
graph._vertices.append(k6)
graph._edges.append(Edge(k1,k2, 7))
graph.printGraph()

View file

@ -1,24 +0,0 @@
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning}
\tikzset{
%Define standard arrow tip
>=stealth',
% Define arrow style
pil/.style={
->,
thick}
}
\begin{document}
\begin{preview}
\begin{tikzpicture}
\draw[fill=green!30] (0,0) -- (90:.75cm) arc (90:27:.75cm);
\draw[pil,color=black] (0,0) -- node[right=2pt] {$\vec a$} (27:2.2cm);
\draw[pil,color=black] (0,0) -- node[near end, right=-3pt] {$\vec b$} (90:2cm);
\draw(60:0.5cm) node {$\varphi$};
\end{tikzpicture}
\end{preview}
\end{document}

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](dot-product-1.png)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](dot-product-2.png)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](dot-product-4.png)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](dot-product-5.png)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](dot-product-6.png)

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](doubly-linked-list.png)

View file

@ -25,11 +25,9 @@ transparentGif:
make clean
svg:
make
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
rm $(SOURCE)2.svg
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](earth-skizze-2.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

@ -0,0 +1,3 @@
Compiled example
----------------
![Example](earth-skizze.png)

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