1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

Bring back transparent background to figures

Black arrows are visible only in light theme (unless white background
for dark theme). Two-color arrows are visible in light theme and in
dark theme.
This commit is contained in:
katesalazar 2022-05-13 20:20:49 +00:00
parent b1791c24aa
commit 3248581928
6 changed files with 3568 additions and 807 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
bip-0174/coinjoin-workflow.aux
bip-0174/coinjoin-workflow.log
bip-0174/coinjoin-workflow.pdf
bip-0174/multisig-workflow.aux
bip-0174/multisig-workflow.log
bip-0174/multisig-workflow.pdf

9
bip-0174/build.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
pdflatex -output-format=pdf coinjoin-workflow.tex && \
inkscape --with-gui --export-text-to-path \
--export-plain-svg=coinjoin-workflow.svg coinjoin-workflow.pdf && \
pdflatex -output-format=pdf multisig-workflow.tex && \
inkscape --with-gui --export-text-to-path \
--export-plain-svg=multisig-workflow.svg multisig-workflow.pdf && \
echo '"success"'

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -7,7 +7,7 @@
\usepackage{lmodern} \usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault} \renewcommand*\familydefault{\sfdefault}
\usepackage{tikz} \usepackage{tikz}
\usetikzlibrary{shapes,arrows} \usetikzlibrary{shapes,arrows.meta}
\tikzset{>=latex} \tikzset{>=latex}
\begin{document} \begin{document}
% \sffamily{} % \sffamily{}
@ -22,7 +22,7 @@
rounded corners] rounded corners]
\begin{tikzpicture}[auto] \begin{tikzpicture}[auto]
% outlining the flowchart on a grid % outlining the flowchart on a grid
\matrix[column sep=3ex,row sep=2ex]{ \matrix[column sep=3ex,row sep=3ex]{
\node [block_center] (0alice1) \node [block_center] (0alice1)
{Alice creates a PSBT with only her inputs {Alice creates a PSBT with only her inputs
with UTXOs filled in.\\Sends it to Bob.}; with UTXOs filled in.\\Sends it to Bob.};
@ -49,7 +49,13 @@
\\ \\
};% end matrix };% end matrix
% connecting nodes with paths % connecting nodes with paths
\draw[line width = 1pt, ->] \draw [ultra thick, draw=black, -{Stealth[length=8pt]}]
(0alice1) edge (1bob1)
(1bob1) edge (2carol1)
(2carol1) edge (3bob2)
(3bob2) edge (4alice1)
(4alice1) edge (5alice2);
\draw [thin, white, -{Stealth[color=black, fill=white, length=8pt]}]
(0alice1) edge (1bob1) (0alice1) edge (1bob1)
(1bob1) edge (2carol1) (1bob1) edge (2carol1)
(2carol1) edge (3bob2) (2carol1) edge (3bob2)

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View File

@ -7,7 +7,7 @@
\usepackage{lmodern} \usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault} \renewcommand*\familydefault{\sfdefault}
\usepackage{tikz} \usepackage{tikz}
\usetikzlibrary{shapes,arrows} \usetikzlibrary{shapes,arrows.meta}
\tikzset{>=latex} \tikzset{>=latex}
%\pgfdeclarelayer{bg} % declare background layer %\pgfdeclarelayer{bg} % declare background layer
%\pgfsetlayers{bg,main} % set order of layers %\pgfsetlayers{bg,main} % set order of layers
@ -83,7 +83,15 @@
};% end matrix };% end matrix
% connecting nodes with paths % connecting nodes with paths
% \begin{pgfonlayer}{bg} % \begin{pgfonlayer}{bg}
\draw[line width = 1pt, ->] \draw [ultra thick, draw=black, -{Stealth[length=8pt]}]
(R1) edge (R2)
(R2) edge (R3)
(R3) -| (R4C1)
(R3) edge (R4C2)
(R5) edge (R6)
(R6) edge (R7)
(R7) edge (stop);
\draw [thin, white, -{Stealth[color=black, fill=white, length=8pt]}]
(R1) edge (R2) (R1) edge (R2)
(R2) edge (R3) (R2) edge (R3)
(R3) -| (R4C1) (R3) -| (R4C1)
@ -92,7 +100,12 @@
(R6) edge (R7) (R6) edge (R7)
(R7) edge (stop); (R7) edge (stop);
% circumvent missing arrow % circumvent missing arrow
\draw[line width = 1pt, ->] \draw [ultra thick, draw=black, -{Stealth[length=8pt]}]
(R4C1) |-+(0,-2.2em)-| (R5)
(R4C2) edge (R5)
(R4C3) |-+(0,-2.2em)-| (R5)
(R3) -| (R4C3);
\draw [thin, white, -{Stealth[color=black, fill=white, length=8pt]}]
(R4C1) |-+(0,-2.2em)-| (R5) (R4C1) |-+(0,-2.2em)-| (R5)
(R4C2) edge (R5) (R4C2) edge (R5)
(R4C3) |-+(0,-2.2em)-| (R5) (R4C3) |-+(0,-2.2em)-| (R5)