mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 14:28:05 +02:00
added 3 more examples
This commit is contained in:
parent
229a59babc
commit
5259753e8c
7 changed files with 11421 additions and 0 deletions
11200
tikz/3d-cmos-loss-diagram/3d-cmos-loss-diagram.svg
Normal file
11200
tikz/3d-cmos-loss-diagram/3d-cmos-loss-diagram.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 805 KiB |
43
tikz/3d-cmos-loss-diagram/3d-cmos-loss-diagram.tex
Normal file
43
tikz/3d-cmos-loss-diagram/3d-cmos-loss-diagram.tex
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
\documentclass{article}
|
||||||
|
\usepackage[pdftex,active,tightpage]{preview}
|
||||||
|
\setlength\PreviewBorder{2mm}
|
||||||
|
\usepackage{pgfplots}
|
||||||
|
\usepgfplotslibrary{patchplots}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\begin{preview}
|
||||||
|
\pgfplotsset{
|
||||||
|
colormap={whitered}{
|
||||||
|
color(0cm)=(white);
|
||||||
|
color(1cm)=(orange!75!red)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\begin{tikzpicture}
|
||||||
|
\begin{axis}[
|
||||||
|
colormap name=whitered,
|
||||||
|
width=15cm,
|
||||||
|
view={10}{15},
|
||||||
|
enlargelimits=false,
|
||||||
|
grid=major,
|
||||||
|
domain=1.5:6,
|
||||||
|
y domain=0:10^9,
|
||||||
|
ymode=log,
|
||||||
|
samples=46, %57 : TeX capacity exceeded, sorry [main memory size=3000000].
|
||||||
|
% see also http://tex.stackexchange.com/a/7954/5645
|
||||||
|
xlabel=$V_{dd}$ in V,
|
||||||
|
ylabel=$f$ in Hz,
|
||||||
|
zlabel=$P_v$ in mW,
|
||||||
|
%colorbar,
|
||||||
|
%colorbar style={
|
||||||
|
% at={(-0.1,0)},
|
||||||
|
% anchor=south west,
|
||||||
|
% height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height},
|
||||||
|
% title={$f(x,y)$}
|
||||||
|
%}
|
||||||
|
]
|
||||||
|
%\addplot3[patch,patch type=bilinear,mesh,black] {0};
|
||||||
|
\addplot3[surf,opacity=0.9] {x*x*y};
|
||||||
|
\end{axis}
|
||||||
|
\end{tikzpicture}
|
||||||
|
\end{preview}
|
||||||
|
\end{document}
|
31
tikz/3d-cmos-loss-diagram/Makefile
Normal file
31
tikz/3d-cmos-loss-diagram/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
SOURCE = 3d-cmos-loss-diagram
|
||||||
|
DELAY = 80
|
||||||
|
DENSITY = 300
|
||||||
|
WIDTH = 500
|
||||||
|
|
||||||
|
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
|
40
tikz/3d-function-9/3d-function-9.tex
Normal file
40
tikz/3d-function-9/3d-function-9.tex
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
\documentclass{article}
|
||||||
|
\usepackage[pdftex,active,tightpage]{preview}
|
||||||
|
\setlength\PreviewBorder{2mm}
|
||||||
|
\usepackage{pgfplots}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\begin{preview}
|
||||||
|
\pgfplotsset{
|
||||||
|
colormap={whitered}{
|
||||||
|
color(0cm)=(white);
|
||||||
|
color(1cm)=(orange!75!red)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\begin{tikzpicture}
|
||||||
|
\begin{axis}[
|
||||||
|
colormap name=whitered,
|
||||||
|
width=15cm,
|
||||||
|
view={60}{55},
|
||||||
|
enlargelimits=false,
|
||||||
|
grid=major,
|
||||||
|
domain=-2:2,
|
||||||
|
y domain=-5:5,
|
||||||
|
samples=50, %57 : TeX capacity exceeded, sorry [main memory size=3000000].
|
||||||
|
% see also http://tex.stackexchange.com/a/7954/5645
|
||||||
|
xlabel=$x$,
|
||||||
|
ylabel=$y$,
|
||||||
|
zlabel={$z$},
|
||||||
|
colorbar,
|
||||||
|
colorbar style={
|
||||||
|
at={(-0.1,0)},
|
||||||
|
anchor=south west,
|
||||||
|
height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height},
|
||||||
|
title={$f(x,y)$}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
\addplot3[surf] {sin((x*x)r)*y};
|
||||||
|
\end{axis}
|
||||||
|
\end{tikzpicture}
|
||||||
|
\end{preview}
|
||||||
|
\end{document}
|
31
tikz/3d-function-9/Makefile
Normal file
31
tikz/3d-function-9/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
SOURCE = 3d-function-9
|
||||||
|
DELAY = 80
|
||||||
|
DENSITY = 300
|
||||||
|
WIDTH = 500
|
||||||
|
|
||||||
|
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
|
31
tikz/line-reflection/Makefile
Normal file
31
tikz/line-reflection/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
SOURCE = line-reflection
|
||||||
|
DELAY = 80
|
||||||
|
DENSITY = 300
|
||||||
|
WIDTH = 500
|
||||||
|
|
||||||
|
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
|
45
tikz/line-reflection/line-reflection.tex
Normal file
45
tikz/line-reflection/line-reflection.tex
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
\documentclass[varwidth=true, border=2pt]{standalone}
|
||||||
|
|
||||||
|
\usepackage{tkz-fct}
|
||||||
|
\usetikzlibrary{arrows, decorations.pathreplacing}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\begin{tikzpicture}
|
||||||
|
\tkzInit [xmin=0,xmax=7.8,ymin=0,ymax=9.5]
|
||||||
|
\begin{scriptsize}
|
||||||
|
\tkzGrid[color = gray!30!white]
|
||||||
|
\tkzAxeXY
|
||||||
|
\end{scriptsize}
|
||||||
|
\draw[thick,green] (0,3.6) -- (8,6.5);
|
||||||
|
\node[green,rotate=20] at (6.5,6.15) {$\scriptstyle g(x) = m \cdot x + t$};
|
||||||
|
|
||||||
|
\draw[dashed,red] (5.5,1) -- (2.5,9);
|
||||||
|
|
||||||
|
\draw[thick,fill=red,red] (5.5,1) circle (2pt);
|
||||||
|
\node[red] at (5.6,1.25) {$P$};
|
||||||
|
|
||||||
|
\draw[thick,fill=red,red] (2.5,9) circle (2pt);
|
||||||
|
\node[red] at (2.8,9) {$P'$};
|
||||||
|
|
||||||
|
\draw[dashed] (2.5,5.05) -- (5.6,5.05);
|
||||||
|
|
||||||
|
\draw [decorate,decoration={brace,amplitude=10pt,mirror,raise=4pt},yshift=0pt]
|
||||||
|
(5.5,1) -- (5.5,5.05) node [black,midway,xshift=0.8cm] {\footnotesize
|
||||||
|
$\Delta y$};
|
||||||
|
|
||||||
|
\draw [decorate,decoration={brace,amplitude=10pt,mirror,raise=4pt},yshift=0pt]
|
||||||
|
(2.5,9) -- (2.5,5.05) node [black,midway,xshift=-0.8cm] {\footnotesize
|
||||||
|
$\Delta y$};
|
||||||
|
|
||||||
|
\draw [decorate,decoration={brace,amplitude=2pt,mirror,raise=2pt},yshift=0pt]
|
||||||
|
(2.5,5.05) -- (3.97,5.05) node [black,midway,yshift=-0.4cm] {\footnotesize
|
||||||
|
$\Delta x$};
|
||||||
|
|
||||||
|
\draw [decorate,decoration={brace,amplitude=2pt,mirror,raise=2pt},yshift=0pt]
|
||||||
|
(3.97,5.05) -- (5.5,5.05) node [black,midway,yshift=-0.4cm] {\footnotesize
|
||||||
|
$\Delta x$};
|
||||||
|
|
||||||
|
\draw[thick,fill=red,red] (3.97,5.05) circle (2pt);
|
||||||
|
\node[red] at (4.1,5.4) {$L$};
|
||||||
|
\end{tikzpicture}
|
||||||
|
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue