Переглянути джерело

two column layout of acronyms example

Martin Thoma 11 роки тому
батько
коміт
489d7edac0

+ 2 - 1
documents/acronyms-example/acronyms-example.tex

@@ -39,6 +39,7 @@ vel eros fermentum vestibulum id at ipsum. In vitae orci mauris, et
 rhoncus odio. Pellentesque habitant morbi tristique senectus et netus 
 rhoncus odio. Pellentesque habitant morbi tristique senectus et netus 
 et malesuada fames ac turpis egestas.
 et malesuada fames ac turpis egestas.
 \clearpage
 \clearpage
+\twocolumn
 \begin{acronym}[SQL]
 \begin{acronym}[SQL]
  \acro{KDE}{K Desktop Environment}
  \acro{KDE}{K Desktop Environment}
  \acro{SQL}{Structured Query Language}
  \acro{SQL}{Structured Query Language}
@@ -86,5 +87,5 @@ et malesuada fames ac turpis egestas.
  \acro{SQL}{Structured Query Language}
  \acro{SQL}{Structured Query Language}
  \acro{Bash}{Bourne-again shell}
  \acro{Bash}{Bourne-again shell}
 \end{acronym}
 \end{acronym}
-
+\onecolumn
 \end{document}
 \end{document}

+ 31 - 0
tikz/ueberlappung-kaestchen-torus/Makefile

@@ -0,0 +1,31 @@
+SOURCE = ueberlappung-kaestchen-torus
+DELAY = 80
+DENSITY = 300
+WIDTH = 512
+
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	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-plain-svg=$(SOURCE).svg

+ 3 - 0
tikz/ueberlappung-kaestchen-torus/Readme.md

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

+ 54 - 0
tikz/ueberlappung-kaestchen-torus/ueberlappung-kaestchen-torus.tex

@@ -0,0 +1,54 @@
+% The following answers were used to create this image:
+% - http://tex.stackexchange.com/a/45824/5645 - Grid
+% - http://tex.stackexchange.com/a/373/5645 - Torus
+\documentclass[border=2pt]{standalone}
+\usepackage{amsmath,amssymb}
+\usepackage{tikz}
+\usetikzlibrary{patterns,arrows,positioning}
+
+\begin{document}
+\begin{tikzpicture}
+\tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt]
+\newcommand*{\xMin}{0}%
+\newcommand*{\xMax}{6}%
+\newcommand*{\yMin}{0}%
+\newcommand*{\yMax}{6}%
+
+\draw (-3.5,0) .. controls (-3.5,2) and (-1.5,2.5) .. (0,2.5);
+\draw[xscale=-1] (-3.5,0) .. controls (-3.5,2) and (-1.5,2.5) .. (0,2.5);
+\draw[rotate=180] (-3.5,0) .. controls (-3.5,2) and (-1.5,2.5) .. (0,2.5);
+\draw[yscale=-1] (-3.5,0) .. controls (-3.5,2) and (-1.5,2.5) .. (0,2.5);
+
+\draw (-2,.2) .. controls (-1.5,-0.3) and (-1,-0.5) .. (0,-.5) .. controls (1,-0.5) and (1.5,-0.3) .. (2,0.2);
+\draw (-1.75,0) .. controls (-1.5,0.3) and (-1,0.5) .. (0,.5) .. controls (1,0.5) and (1.5,0.3) .. (1.75,0);
+
+
+\begin{scope}[shift={(-12,-3)}]
+    \foreach \i in {\xMin,...,\xMax} {
+        \draw [very thin,gray] (\i,\yMin) -- (\i,\yMax)  node [below] at (\i,\yMin) {$\i$};
+    }
+    \foreach \i in {\yMin,...,\yMax} {
+        \draw [very thin,gray] (\xMin,\i) -- (\xMax,\i) node [left] at (\xMin,\i) {$\i$};
+    }
+
+    \begin{scope}[shift={(14,2)}]
+        \node (P) at (0.4,0.9) {};
+        \node (Q) at (0.9,0.4) {};
+        \draw [red] (P) rectangle (Q);
+        \draw (0.65, 0.6) node[red] {*};
+    \end{scope}
+
+    \foreach \x in {0,1,2,3,4,5} {
+        \foreach \y in {0,1,2,3,4,5} {
+            \begin{scope}[shift={(\x,\y)}]
+                \node (P) at (0.4,0.9) {};
+                \node (Q) at (0.9,0.4) {};
+                \draw [red] (P) rectangle (Q);
+                \draw (0.65, 0.6) node[red] {*};
+            \end{scope}
+        }
+    }
+\end{scope}
+    \draw (-4.5, 0) node[below] {$\xrightarrow{\text{\;\;\;\;\;\;\;\;}}$};
+\end{tikzpicture}
+\end{document}