summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/visualtikz/Source/tkzfig.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-01 23:35:32 +0000
committerKarl Berry <karl@freefriends.org>2016-03-01 23:35:32 +0000
commite7dd41895d83a8493af36e8684ff8371abb0c2c0 (patch)
tree7cc00b5b0d44ea6c0501521dca0326f92a8b2328 /Master/texmf-dist/doc/latex/visualtikz/Source/tkzfig.tex
parent64fe092a8f3dc062b323f28f52dc82c7be509252 (diff)
visualtikz (29feb16)
git-svn-id: svn://tug.org/texlive/trunk@39905 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/visualtikz/Source/tkzfig.tex')
-rw-r--r--Master/texmf-dist/doc/latex/visualtikz/Source/tkzfig.tex243
1 files changed, 243 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/visualtikz/Source/tkzfig.tex b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzfig.tex
new file mode 100644
index 00000000000..13a4d553b4f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/visualtikz/Source/tkzfig.tex
@@ -0,0 +1,243 @@
+\SbSSCT{Dans le texte}{In the text}
+
+
+\subsubsection{Sans option de décalage}
+
+\RRR{12-2}
+
+\TFRGB{dessin directement dans le texte}{picture in the text} \tikz \draw[blue] (0,0) rectangle(2,2); \tikz \draw[blue] (0,0) circle (1);\TFRGB{ici est inclus le code suivant}{here is the following code} : \BS{tikz} \BS{Draw} (0,0) rectangle(2,2);\BS{tikz} \BS{Draw} (0,0) circle (1);
+\bigskip
+
+\subsubsection{Avec décalage nul}
+
+\TFRGB{dessin directement dans le texte}{picture in the text} \tikz[baseline=0pt] \draw[blue] (0,0) rectangle(2,2); \tikz[baseline=0pt] \draw[blue] (0,0) circle (1);\TFRGB{ici est inclus le code suivant}{here is the following code} : \BS{tikz}[\RDD{baseline}=0pt] \BS{Draw} (0,0) rectangle(2,2);\BS{tikz}[\RDD{baseline}=0pt] \BS{Draw} (0,0) circle (1);
+\bigskip
+
+
+\subsubsection{Avec décalage }
+
+\TFRGB{dessin directement dans le texte}{picture in the text} \tikz[baseline=1cm] \draw[blue] (0,0) rectangle(2,2); \tikz[baseline=1cm] \draw[blue] (0,0) circle (1);\TFRGB{ici est inclus le code suivant}{here is the following code} : \BS{tikz}[\RDD{baseline}=1cm] \BS{Draw} (0,0) rectangle(2,2);\BS{tikz}[\RDD{baseline}=1cm] \BS{Draw} (0,0) circle (1);
+
+
+\newpage
+%----------------------------------------------------------
+\SbSSCT{Dans un environnement tikzpicture}{In a tikzpicture environment}
+
+\RRR{12-1}
+
+\begin{tabular}{|l|l|} \hline
+
+\TFRGB{texte avant}{text before}
+\begin{tikzpicture}[blue]
+\draw (0,0) rectangle(2,2);
+ \draw (0,0) circle (1);
+\end{tikzpicture}
+\TFRGB{texte après}{text after}
+&
+\parbox[b]{8cm}{
+\TFRGB{texte avant}{text before} \\
+\ESS{begin\AC{tikzpicture}}[blue] \\
+\BS{draw} (0,0) rectangle(2,2); \\
+\BS{draw} (0,0) circle (1); \\
+\ESS{end\AC{tikzpicture}}\\
+\TFRGB{texte après}{text after} \\
+}
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+
+\begin{tabular}{|l|l|} \hline
+\TFRGB{texte avant}{text before}
+\begin{tikzpicture}[blue,baseline=0pt]
+\draw (0,0) rectangle(2,2);
+ \draw (0,0) circle (1);
+\end{tikzpicture}
+\TFRGB{texte après}{text after}
+&
+\parbox[c]{8cm}{
+\TFRGB{texte avant}{text before} \\
+\BS{begin}\AC{tikzpicture}[blue,\RDD{baseline}=0pt] \\
+\BS{draw} (0,0) rectangle(2,2); \\
+\BS{draw} (0,0) circle (1); \\
+\BS{end}\AC{tikzpicture} \\
+\TFRGB{texte après}{text after} \\
+}
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+\begin{tabular}{|l|l|} \hline
+\TFRGB{texte avant}{text before}
+\begin{tikzpicture}[blue,baseline=1cm]
+\draw (0,0) rectangle(2,2);
+ \draw (0,0) circle (1);
+\end{tikzpicture}
+\TFRGB{texte après}{text after}
+&
+\parbox[t]{8cm}{
+\TFRGB{texte avant}{text before} \\
+\BS{begin}\AC{tikzpicture}[blue,\RDD{baseline}=1cm] \\
+\BS{draw} (0,0) rectangle(2,2); \\
+\BS{draw} (0,0) circle (1); \\
+\BS{end}\AC{tikzpicture} \\
+\TFRGB{texte après}{text after} \\
+}
+\\ \hline
+\end{tabular}
+
+\subsection{Dans un environnement fbox}
+
+
+
+\begin{tabular}{|l|l|} \hline
+\TFRGB{texte avant}{text before}
+\fbox{
+\begin{tikzpicture}[blue,baseline=0pt]
+\draw (0,0) rectangle(2,2);
+ \draw (0,0) circle (1);
+\end{tikzpicture}}
+\TFRGB{texte après}{text after}
+&
+\parbox[c]{8cm}{
+\TFRGB{texte avant}{text before}\\
+\BSS{fbox}\{ \\
+\BS{begin}\AC{tikzpicture}[blue,\RDD{baseline}=0pt] \\
+\BS{draw} (0,0) rectangle(2,2); \\
+\BS{draw} (0,0) circle (1); \\
+\BS{end}\AC{tikzpicture} \\
+ \}\\
+\TFRGB{texte après}{text after} \\
+}
+\\ \hline
+\end{tabular}
+
+\subsection{Modification du cadrage}
+
+\begin{tabular}{|c|c|} \hline
+\multicolumn{2}{|l|}{\BS{draw} [\RDD{use as bounding box}] (1,0) rectangle (2,1);}\\
+\multicolumn{2}{|l|}{\BS{draw}[blue] (-1,0) - - (3,1);} \\\hline
+texte avant\begin{tikzpicture}
+\draw [use as bounding box] (1,0) rectangle (2,1);
+\draw[blue] (-1,0) - - (3,1);
+\draw [red](1,0) rectangle (2,1);
+\end{tikzpicture}texte après
+&
+texte avant
+\begin{tikzpicture}
+\draw [use as bounding box] (0,0) rectangle (0,0);
+\draw[blue] (-1,0) - - (3,1);
+\draw [red](0,0) rectangle (0,0);
+\end{tikzpicture}
+texte après
+\\ \hline
+(1,0) rectangle (2,1) & (0,0) rectangle (0,0)
+\\ \hline
+\end{tabular}
+
+\bigskip
+
+\begin{tabular}{|c|c|} \hline
+\multicolumn{2}{|l|}{texte avant. \BS{begin\AC{tikzpicture}} [\RDD{trim left}=1cm] }\\
+\multicolumn{2}{|l|}{\BS{draw}[blue] (-1,0) - - (3,1); \BS{draw}[red] (0,0) grid (2,1);} \\
+\multicolumn{2}{|l|}{ \BS{end\AC{tikzpicture}}texte après }\\
+\hline
+
+texte avant.%
+\begin{tikzpicture}[trim left=1cm]
+\draw[blue] (-1,0) - - (3,1);
+\draw [red](0,0) grid (2,1);
+\end{tikzpicture}%
+texte après
+&
+texte avant.%
+\begin{tikzpicture}[trim right= 1cm]
+\draw[blue] (-1,0) - - (3,1);
+\draw [red](0,0) grid(2,1);
+\end{tikzpicture}%
+texte après
+\\ \hline
+[\RDD{trim left}=1cm]
+&
+[\RDD{trim right}= 1cm]
+\\ \hline
+\end{tabular}
+
+
+\SbSSCT{Coupure de l'image}{Clipping the picture}
+
+\begin{tabular}{|c|c|} \hline
+\tikzpicture[red]
+\draw[help lines] (-2,-2) grid (2,2);
+\draw[blue] (-1,-1) --(0,2) -- (1,-1) -- cycle;
+\draw (0,0) circle (.5);
+\draw (0,0) circle (1);
+\draw (0,0) circle (1.5);
+\endtikzpicture
+&
+\tikzpicture[red]
+\clip (-1,-1) --(0,2) -- (1,-1) -- cycle;
+\draw[help lines] (-2,-2) grid (2,2);
+\draw[blue] (-1,-1) --(0,2) -- (1,-1) -- cycle;
+\draw (0,0) circle (.5);
+\draw (0,0) circle (1);
+\draw (0,0) circle (1.5);
+\endtikzpicture
+\\ \hline
+sans coupure
+&
+\BSS{clip} (-1,-1) - -(0,2) - - (1,-1) - - cycle;
+\\ \hline
+\end{tabular}
+
+
+\SbSSCT{Rognage partiel}{ Partial clipping}
+
+\begin{tabular}{|c|c|} \hline
+
+\tikzpicture[red,scale=.7,baseline=0pt]
+\draw[help lines] (-2,-2) grid (2,2);
+\draw[blue] (-1.1,-0.2) rectangle (2,1.5);
+\draw (0,0) circle (1.5);
+\clip (-1.1,-0.2) rectangle (2,1.5);
+\draw (0,0) circle (.5);
+\draw (0,0) circle (1);
+\endtikzpicture
+&
+\parbox{8cm}{
+\BS{tikzpicture}[red,scale=.7] \\
+\BS{draw}[help lines] (-2,-2) grid (2,2); \\
+\BS{draw}[blue] (-1.1,-0.2) rectangle (2,1.5); \\
+\BS{draw} (0,0) circle (1.5); \\
+\BSS{clip} (-1.1,-0.2) rectangle (2,1.5); \\
+\BS{draw} (0,0) circle (.5); \\
+\BS{draw} (0,0) circle (1); \\
+\BS{endtikzpicture}}
+\\ \hline
+\end{tabular}
+
+\subsubsection{Changement d'échelle}
+
+\begin{tabular}{|c|c|} \hline
+\tikzpicture[blue]
+\draw[help lines] (-2,-2) grid (2,2);
+\draw (0,0) circle (.5);
+\draw (0,0) circle (1);
+\draw (0,0) circle (1.5);
+\endtikzpicture
+&
+\tikzpicture[blue,scale=.5]
+\draw[help lines] (-2,-2) grid (2,2);
+\draw (0,0) circle (.5);
+\draw (0,0) circle (1);
+\draw (0,0) circle (1.5);
+\endtikzpicture
+\\ \hline
+Taille normale
+&
+\BS{tikzpicture}[blue,\RDD{scale}=.5]
+\\ \hline
+\end{tabular}
+