I want to have following example format for two tikz figures, where (a) and (b) are located at most left side of them.
Example reference: Cormen/Introduction to Algorithms 2022 page: 341
Please note that I am only interested for placing (a), (b), (c), ... labels.
The solution I come up with is using How to label/tag TikZ diagrams?. But here I was not able to change equation numbers (2) to (a) and (3) to (b) , also I was not able to change their location to the most left hand side.
my tex code:
\documentclass{article}
\usepackage{tikz-cd}
\usepackage{blindtext}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\setcounter{page}{15}
\noindent
\begin{equation}
\begin{tikzcd}
x = 5 * 5; \
\end{tikzcd}
\end{equation}
into a commutative diagramm
\begin{equation}
\begin{tikzcd}
B\times_A C \arrow{r}{\pi_2}\arrow{d}[swap]{\pi_1} & C\arrow{d}{g} \
B \arrow{r}[swap]{f} & A;
\end{tikzcd}
\end{equation}
\begin{equation}
\begin{tikzpicture}[compute/.style={draw,thick,font=\sffamily,
append after command={
(\tikzlastnode.south west) edge[double=gray!50,double distance=3pt,
line cap=rect,
shorten >=-2pt,shorten <=-2pt]
(\tikzlastnode.south east)}}]
\node[compute] (n1) {Node};
\node[compute,right=2cm of n1] (n2) {More text};
\draw[thick,-stealth] (n1) -- (n2);
\end{tikzpicture}
\end{equation}
\end{document}
output:
wanted output:




tikz-pgf? I never thought about what will happen afterz, at most I thought I will use tillg– alper Oct 09 '22 at 21:18