Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
circle-ci committed Jul 6, 2024
1 parent c66ceb4 commit 407ffc4
Show file tree
Hide file tree
Showing 13 changed files with 372 additions and 292 deletions.
133 changes: 9 additions & 124 deletions asciidoctor-diagram_overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
<h1><span class="maintitle"><strong>Asciidoctor</strong> Diagram</span>: <span class="subtitle">Supported Diagram Types</span></h1>
<div class="details">
<span id="author" class="author">brought to you with <span class="icon"><i class="fa fa-heart fa-1x"></i></span> by barthel</span><br>
<span id="revnumber">version: e669d1d6</span>
<span id="revnumber">version: 25b88df9</span>
</div>
<div id="toc" class="toc2">
<div id="toctitle">Table of Content</div>
Expand Down Expand Up @@ -1693,132 +1693,17 @@ <h2 id="section-tikz"><a class="anchor" href="#section-tikz"></a>23. Tikz</h2>
</div>
<div class="sect2">
<h3 id="_internal_diagram_source_24"><a class="anchor" href="#_internal_diagram_source_24"></a>23.1. Internal diagram source</h3>
<div class="listingblock">
<div class="content">
<pre>Failed to generate image: pdflatex failed: This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Alpine Linux) (preloaded format=pdflatex)
\write18 enabled.
I can't find the format file `pdflatex.fmt'!


\usetikzlibrary {3d}
\begin{tikzpicture}[z={(10:10mm)},x={(-45:5mm)}]
\def\wave{
\draw[fill,thick,fill opacity=.2]
(0,0) sin (1,1) cos (2,0) sin (3,-1) cos (4,0)
sin (5,1) cos (6,0) sin (7,-1) cos (8,0)
sin (9,1) cos (10,0)sin (11,-1)cos (12,0);
\foreach \shift in {0,4,8}
{
\begin{scope}[xshift=\shift cm,thin]
\draw (.5,0) -- (0.5,0 |- 45:1cm);
\draw (1,0) -- (1,1);
\draw (1.5,0) -- (1.5,0 |- 45:1cm);
\draw (2.5,0) -- (2.5,0 |- -45:1cm);
\draw (3,0) -- (3,-1);
\draw (3.5,0) -- (3.5,0 |- -45:1cm);
\end{scope}
}
}
\begin{scope}[canvas is zy plane at x=0,fill=blue]
\wave
\node at (6,-1.5) [transform shape] {magnetic field};
\end{scope}
\begin{scope}[canvas is zx plane at y=0,fill=red]
\draw[help lines] (0,-2) grid (12,2);
\wave
\node at (6,1.5) [rotate=180,xscale=-1,transform shape] {electric field};
\end{scope}
\end{tikzpicture}</pre>
<div class="imageblock">
<div class="content">
<img src="./images/tikz-internal-example-diagram.svg" alt="tikz internal example diagram" width="379" height="109">
</div>
</div>
</div>
<div class="sect2">
<h3 id="_external_diagram_source_file_24"><a class="anchor" href="#_external_diagram_source_file_24"></a>23.2. External diagram source file</h3>
<div class="listingblock">
<div class="content">
<pre>Failed to generate image: pdflatex failed: This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Alpine Linux) (preloaded format=pdflatex)
\write18 enabled.
I can't find the format file `pdflatex.fmt'!

% 3D Cone
% Author: Gene Ressler. Adapted to TikZ by Kjell Magne Fauske.
% See http://www.frontiernet.net/~eugene.ressler/ for more details.
% The following code is generated by Sketch. I have edited it a bit
% to make it easier to read.
\begin{tikzpicture}[join=round]
\tikzstyle{conefill} = [fill=blue!20,fill opacity=0.8]
\tikzstyle{ann} = [fill=white,font=\footnotesize,inner sep=1pt]
\tikzstyle{ghostfill} = [fill=white]
\tikzstyle{ghostdraw} = [draw=black!50]
\filldraw[conefill](-.775,1.922)--(-1.162,.283)--(-.274,.5)
--(-.183,2.067)--cycle;
\filldraw[conefill](-.183,2.067)--(-.274,.5)--(.775,.424)
--(.516,2.016)--cycle;
\filldraw[conefill](.516,2.016)--(.775,.424)--(1.369,.1)
--(.913,1.8)--cycle;
\filldraw[conefill](-.913,1.667)--(-1.369,-.1)--(-1.162,.283)
--(-.775,1.922)--cycle;
\draw(1.461,.107)--(1.734,.127);
\draw[arrows=&lt;-&gt;](1.643,1.853)--(1.643,.12);
\filldraw[conefill](.913,1.8)--(1.369,.1)--(1.162,-.283)
--(.775,1.545)--cycle;
\draw[arrows=-&gt;,line width=.4pt](.274,-.5)--(0,0)--(0,2.86);
\draw[arrows=-,line width=.4pt](0,0)--(-1.369,-.1);
\draw[arrows=-&gt;,line width=.4pt](-1.369,-.1)--(-2.1,-.153);
\filldraw[conefill](-.516,1.45)--(-.775,-.424)--(-1.369,-.1)
--(-.913,1.667)--cycle;
\draw(-1.369,.073)--(-1.369,2.76);
\draw(1.004,1.807)--(1.734,1.86);
\filldraw[conefill](.775,1.545)--(1.162,-.283)--(.274,-.5)
--(.183,1.4)--cycle;
\draw[arrows=&lt;-&gt;](0,2.34)--(-.913,2.273);
\draw(-.913,1.84)--(-.913,2.447);
\draw[arrows=&lt;-&gt;](0,2.687)--(-1.369,2.587);
\filldraw[conefill](.183,1.4)--(.274,-.5)--(-.775,-.424)
--(-.516,1.45)--cycle;
\draw[arrows=&lt;-,line width=.4pt](.42,-.767)--(.274,-.5);
\node[ann] at (-.456,2.307) {$r_0$};
\node[ann] at (-.685,2.637) {$r_1$};
\node[ann] at (1.643,.987) {$h$};
\path (.42,-.767) node[below] {$x$}
(0,2.86) node[above] {$y$}
(-2.1,-.153) node[left] {$z$};
% Second version of the cone
\begin{scope}[xshift=3.5cm]
\filldraw[ghostdraw,ghostfill](-.775,1.922)--(-1.162,.283)--(-.274,.5)
--(-.183,2.067)--cycle;
\filldraw[ghostdraw,ghostfill](-.183,2.067)--(-.274,.5)--(.775,.424)
--(.516,2.016)--cycle;
\filldraw[ghostdraw,ghostfill](.516,2.016)--(.775,.424)--(1.369,.1)
--(.913,1.8)--cycle;
\filldraw[ghostdraw,ghostfill](-.913,1.667)--(-1.369,-.1)--(-1.162,.283)
--(-.775,1.922)--cycle;
\filldraw[ghostdraw,ghostfill](.913,1.8)--(1.369,.1)--(1.162,-.283)
--(.775,1.545)--cycle;
\filldraw[ghostdraw,ghostfill](-.516,1.45)--(-.775,-.424)--(-1.369,-.1)
--(-.913,1.667)--cycle;
\filldraw[ghostdraw,ghostfill](.775,1.545)--(1.162,-.283)--(.274,-.5)
--(.183,1.4)--cycle;
\filldraw[fill=red,fill opacity=0.5](-.516,1.45)--(-.775,-.424)--(.274,-.5)
--(.183,1.4)--cycle;
\fill(-.775,-.424) circle (2pt);
\fill(.274,-.5) circle (2pt);
\fill(-.516,1.45) circle (2pt);
\fill(.183,1.4) circle (2pt);
\path[font=\footnotesize]
(.913,1.8) node[right] {$i\hbox{$=$}0$}
(1.369,.1) node[right] {$i\hbox{$=$}1$};
\path[font=\footnotesize]
(-.645,.513) node[left] {$j$}
(.228,.45) node[right] {$j\hbox{$+$}1$};
\draw (-.209,.482)+(-60:.25) [yscale=1.3,-&gt;] arc(-60:240:.25);
\fill[black,font=\footnotesize]
(-.516,1.45) node [above] {$P_{00}$}
(-.775,-.424) node [below] {$P_{10}$}
(.183,1.4) node [above] {$P_{01}$}
(.274,-.5) node [below] {$P_{11}$};
\end{scope}
\end{tikzpicture}</pre>
<div class="imageblock">
<div class="content">
<img src="./images/tikz.svg" alt="Diagram" width="234" height="131">
</div>
</div>
</div>
Expand Down Expand Up @@ -1975,8 +1860,8 @@ <h2 id="section-bibliography"><a class="anchor" href="#section-bibliography"></a
</div>
<div id="footer">
<div id="footer-text">
version: e669d1d6<br>
e669d1d6 - 2024-07-04 21:10:24 UTC
version: 25b88df9<br>
25b88df9 - 2024-07-06 16:45:44 UTC
</div>
</div>
</body>
Expand Down
Binary file modified asciidoctor-diagram_overview.pdf
Binary file not shown.
145 changes: 15 additions & 130 deletions asciidoctor-diagram_overview_inlined.html

Large diffs are not rendered by default.

Loading

0 comments on commit 407ffc4

Please sign in to comment.