summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/pfdicons/pfdicons-doc.tex
blob: f6eedd2f4c4a2881ce51d2380812ec33821ddb2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{tikz, stix2, inconsolata, ifthen, lipsum, array, xspace, listings, booktabs, adjustbox, longtable, enumitem, amsmath}
\usepackage[hidelinks, colorlinks=true, linkcolor=red]{hyperref}
\usetikzlibrary{positioning, shapes, arrows.meta, matrix, calc, intersections, spath3, plotmarks, fit, decorations.pathmorphing}
\usepackage{pfdicons}

\definecolor{LightGray}{gray}{0.93}
\lstset{
	language=[LaTeX]TeX,
	texcsstyle=*\bfseries, 
	commentstyle=\color{gray}\ttfamily,
	emph={draw, node, path, coordinate}, emphstyle=\bfseries,
	tabsize=3,
	numbers=left,
	breaklines=true,
	backgroundcolor=\color{LightGray},
	basicstyle=\footnotesize\ttfamily,
	xleftmargin=5ex,
	xrightmargin=4ex}
\lstMakeShortInline|

% Attempt to improve copy/paste for code:
\usepackage{accsupp}
\lstset{numberstyle=\color{gray}\small\noncopynumber, columns=fullflexible} 
\newcommand{\noncopynumber}[1]{
	\BeginAccSupp{method=escape,ActualText={}}
	#1\hspace{-1em}
	\EndAccSupp{}
}

\newcommand\Tikz{Ti\textit{k}Z\xspace}
\newcommand\redtt[1]{{\color{red}\texttt{#1}}}
\newcommand\boldtt[1]{\textbf{\texttt{#1}}}


\title{The \boldtt{pfdicons} Package: Documentation}
\author{\Large Aaron Drews\\ \texttt{adrews@ucsd.edu}}
\date{v1.0a from 2021/07/26}
\setcounter{tocdepth}{2}

\begin{document}
\maketitle

\tableofcontents

	
\section{Introduction}
This package provides \Tikz shapes and a few supporting functions to draw icons and streams for process flow diagrams (PFDs) in chemical engineering, and to a lesser extent process and instrumentation diagrams (PIDs) in the same field. Unit operations provided by this package are expected to cover--in Turton's estimate--about 90\% of fluid processing systems. 

This package was developed to support students and faculty in undergraduate chemical engineering courses where excessive detail and customization are not necessary to convey meaning, as opposed to professionals who may require more customization than this package currently provides. Examples from several standard textbooks in undergraduate chemical engineering have been reproduced in the Examples section to illustrate the applicability of this package. A visual summary of all process units is provided at the end of this document as a quick reference.

\section{Usage}
To use this package simply provide
\begin{lstlisting}[numbers=none]
\usepackage{tikz}
\usepackage{pfdicons}
\end{lstlisting}
in your preamble. The |tikz| package must be loaded first. The |pfdicons| package automatically loads the |ifthen| package as well as the following \Tikz libraries: |positioning|, |shapes|, |arrows.meta|, and |spath3|. Most shapes provided by the package are drawn within a |tikzpicture| 
environment using the basic syntax
\begin{lstlisting}[numbers=none]
\begin{tikzpicture}
	\node[<shape>] {};
\end{tikzpicture}
\end{lstlisting}
where |<shape>| is the desired process unit. Like most \Tikz shapes the icons provided by |pfdicons| can be scaled, rotated, and colored in the usual ways:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\node[basic hx] at (0,0) {};
	\node[basic hx, draw=blue] at (1,0) {};
	\node[basic hx, draw=red, fill=yellow] at (0,-1) {};
	\node[basic hx, scale=0.75, rotate=90, anchor=center] at (1,-1) {};				
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\node[basic hx] at (0,0) {};
				\node[basic hx, draw=blue] at (1,0) {};
				\node[basic hx, draw=red, fill=yellow] at (0,-1) {};
				\node[basic hx, scale=0.75, rotate=90, thick] at (1,-1) {};				
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
Two additional PGF keys are available for some process units: |unit int| which modifies the interior contents of the process unit, and |unit ext| which modifies the exterior of the process unit.\footnote{A few other keys are available for drawing streams which are introduced later.} These keys can be used as
\begin{lstlisting}[numbers=none]
\node[<shape>, unit int=<intopt>, unit ext=<extopt>] {};
\end{lstlisting}
where |<intopt>| and |<extopt>| are interior and exterior options specific to the process unit. For most process units both keys can be used to combine effects. For example, the |basic hx| shape drawn above has keys |U tube| and |stems| which can be combined as follows:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\node[basic hx] at (0,0) {};
	\node[basic hx, unit ext=util] at (1,0) {};
	\node[basic hx, unit fill=U tube] at (0,-1) {};
	\node[basic hx, unit fill=U tube, unit ext=util] at (1,-1) {};		
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\node[basic hx] at (0,0) {};
				\node[basic hx, unit ext=util] at (1,0) {};
				\node[basic hx, unit int=U tube] at (0,-1) {};
				\node[basic hx, unit int=U tube, unit ext=util] at (1,-1) {};		
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
However, unlike ``standard'' nodes \textit{the curly braces should always be empty}; that is, text cannot be directly included as part of the node (this prohibition includes keys like |label|). Annotations and labels of shapes from |pfdicons| must be included as separate nodes:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	% No:
	% \node[basic hx] {H-101};
	
	% Yes:
	\node[basic hx] (g) {};
	\node[right] at (g.east) {H-101};				
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				% No:
				% \node[basic hx] {H-101};
				
				% Yes:
				\node[basic hx] (g) {};
				\node[right] at (g.east) {H-101};				
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}

All process units have the standard cardinal and off-cardinal anchors which can be accessed using the standard \Tikz anchor notation such as |f.north| or |mycolumn.south east|. Some units have additional anchors on half-cardinal points (\textit{e.g.}, |north north east| or |east south east|) or special process unit features (\textit{e.g.}, |east jacket| or |actuator|). All compass anchors of custom shapes provided by the |pfdicons| package are \textbf{aliased with abbreviated versions} (\textit{e.g.}, |n| for |north|, |ene| for |east north east|) to allow for shortened code. Full anchor names can always be used to provide syntax consistency with core \Tikz.

\section{Process units}
\subsection{Reactors}
\subsubsection{Tank reactor}
\begin{lstlisting}[numbers=none]
\node[tank reactor] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
		\node[tank reactor] {};	
		&
		\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
		\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
		\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
		\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
		\node[left] at (-10mm,0mm) {\color{blue!20}0};
		\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
		\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
		\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
		\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
		\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
		\node[tank reactor] {};
				&
		\node[tank reactor, scale=1.5] (f) {};
		
		\foreach \anchor/\pos in {
			n/above, 
			e/right, 
			w/left, 
			s/below}
		{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
			\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
		\foreach \anchor/\pos in {
			ne/right, 
			nw/left, 
			se/right, 
			sw/left,
			nne/above right, 
			nnw/above left, 
			sse/below right, 
			ssw/below left,
			ese/right, 
			wsw/left}
		{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
		\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}

		\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
		\\	
		};	
	\end{tikzpicture}
\end{figure}
The |tank reactor| shape provides a cylindrical tank reactor, also referred to as a stirred-tank reactor, continuous stirred-tank reactor (CSTRs), or autoclave. The |center| anchor is offset slightly to accommodate fill and interior options as described below. Several key modifiers are available:

\begin{center}
	\begin{longtable}{p{1.2in}p{2.5in}c}
		\caption{Key-value pairs for the \boldtt{tank reactor} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{tank reactor} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{unit int=stirred} & Adds a rounded stirrer with motor and 
		mixing blade. Three additional anchors are specific to this option: 
		\redtt{west motor}, \redtt{north motor}, and \redtt{east motor}. & 
		\adjustbox{valign=t}{
		\begin{tikzpicture}
			\node[tank reactor, unit int=stirred] (f) {};
			\node[tank reactor, unit int=stirred, above=of f.north] {};
			\foreach \anchor/\pos in {
				west motor/left,
				north motor/above,
				east motor/right}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}

		\end{tikzpicture}} \\ 
		& & \\
		
		\texttt{unit int=liquid} & Adds wavy lines from |west| to |east| to 
		indicate a liquid surface. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[tank reactor, unit int=liquid] {};				
		\end{tikzpicture}} \\ 
		& & \\
		
		\texttt{unit int=stirred} \texttt{liquid} & A combination of |unit int=stirred| and |unit int=liquid|.
		& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[tank reactor, unit int=stirred liquid] {};				
		\end{tikzpicture}} \\ 
		& & \\
		
		\texttt{unit ext=lower} \texttt{jacket} & Adds a jacket around the lower portion of the reactor. Two additional anchors are specific to this option: \redtt{west jacket} and \redtt{east jacket}. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[tank reactor, unit ext=lower jacket] (f) {};
				\foreach \anchor/\pos in {
					west jacket/left,
					east jacket/right}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
				
				\node[align=left, anchor=west] at (f.east jacket) {\footnotesize\texttt{east}\\ \footnotesize\texttt{jacket}};
				\node[align=right, anchor=east] at (f.west jacket) {\footnotesize\texttt{west}\\ \footnotesize\texttt{jacket}};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit ext=side} \texttt{jacket} & Adds a jacket around the side of the reactor. Several additional anchors available: \redtt{west jacket}, \redtt{north west jacket}, \redtt{south west jacket}, \redtt{east jacket}, \redtt{north east jacket}, and \redtt{south east jacket}. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture} [font=\footnotesize\ttfamily]
				\node[tank reactor, unit ext=side jacket] (f) {};
				\foreach \anchor in {
					west jacket,
					east jacket,
					north west jacket,
					north east jacket,
					south west jacket,
					south east jacket}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
				
				\node[align=left, anchor=west] at (f.east jacket) {east jacket};
				\node[align=left, anchor=south west] at (f.north east jacket) {north east\\[-3pt]jacket};
				\node[align=left, anchor=north west] at (f.south east jacket) {south east\\[-3pt]jacket};
				\node[align=right, anchor=east] at (f.west jacket) {west jacket};
				\node[align=right, anchor=south east] at (f.north west jacket) {north west\\[-3pt]jacket};
				\node[align=right, anchor=north east] at (f.south west jacket) {south west\\[-3pt]jacket};

		\end{tikzpicture}} \\
	\end{longtable}
\end{center}




\subsubsection{Tube reactor}
\begin{lstlisting}{numbers=none}
\node[tube reactor] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[tube reactor] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[tube reactor] {}; 
			&
			\node[tube reactor, scale=1.8] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |tube reactor| shape provides a horizontal cylinder with curved sides to be used for such reactors as plug flow reactors, packed bed reactors, fixed bed reactors, tubular reactors, and so forth. Several key-value pairs can be provided to indicate common fills and utility features:
\begin{center}
	\begin{longtable}{p{1.5in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{tube reactor} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{tube reactor} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{unit int=packed} & Adds a cross representing a packed, dumped, or random fill within the reactor.  & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[tube reactor, unit int=packed] {};
		\end{tikzpicture}} \\ 
		& & \\
		\texttt{unit int=fixed} & Adds angled lines representing a fixed bed.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[tube reactor, unit int=fixed] {};
		\end{tikzpicture}} \\
		& & \\
		\texttt{unit int=tubular} & Adds horizontal lines representing tubes for (\textit{e.g.}) shell-and-tube reactors, double-pipe reactors, and so forth.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[tube reactor, unit int=tubular] {};
		\end{tikzpicture}} \\
	
		& & \\
		\texttt{unit ext=cis shell} & Adds two shell-side stems, both on the north side with anchors \redtt{west shell} and \redtt{east shell}. Stems can be moved to the south side by rotating (|rotate=180|) or scaling (|yscale=-1|) the node. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}[font=\footnotesize\ttfamily]
				\node[tube reactor, unit ext=cis shell] (f) {};
				\foreach \anchor in {west shell, east shell}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
				\node[align=right, anchor=south east] at (f.west shell) {west\\[-3pt]shell};
				\node[align=left, anchor=south west] at (f.east shell) {east\\[-3pt]shell};
		\end{tikzpicture}} \\
	
		& & \\ 
		\texttt{unit ext=trans shell} & Adds two shell-side stems, one on the north side and one on the south side, with anchors \redtt{north shell} and \redtt{south shell}. Stem locations can be swapped by scaling the node (|yscale=-1| or |xscale=-1|). & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}[font=\footnotesize\ttfamily]
				\node[tube reactor, unit ext=trans shell] (f) {};
				\foreach \anchor in {north shell, south shell}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}	
				\node[align=right, anchor=south east] at (f.north shell) {north\\[-3pt]shell};
				\node[align=left, anchor=north west] at (f.south shell) {south\\[-3pt]shell};
		\end{tikzpicture}} \\
	\end{longtable}
\end{center}






\subsection{Heat exchangers}
\subsubsection{Basic heat exchanger}
\begin{lstlisting}[numbers=none]
\node[basic hx] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[basic hx] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[basic hx] {};
			&
			\node[basic hx, scale=1.5] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |basic hx| shape provides a circle with a jagged interior line and represents a generic heat exchange unit. Only the four cardinal and intercardinal anchors are used; the half-cardinals |nnw|, |nne|, |ssw|, and |sse| anchors are not used. Protrusions from the inner ``tube'' line can be added to provide additional indication of tube-side fluids, typically to indicate utility fluids (hence the |util| value). Additional anchors can be used to place labels at ends of the protrusions.
\begin{center}
	\begin{longtable}{p{1.5in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{basic hx} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{basic hx} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{unit ext=util} & Adds protrusions from the inner tube, typically to indicate utility fluids. Additional anchors \redtt{south util} and \redtt{north util} are available at the terminals. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[basic hx, unit ext=util] (f) {};
				\foreach \anchor/\pos in {
					north util/above,
					south util/below}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\ 
		& & \\
		\texttt{unit int=U tube} & Modifies interior to a generic U-tube orientation with both tube points on the same shell side. The |south west| and |south east| anchors are located at these tube points. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[basic hx, unit int=U tube] {};
		\end{tikzpicture}} \\
		& & \\
		\texttt{unit int=U tube,}\newline \texttt{unit ext=util} & Modifies interior to U-tube orientation and adds protrusions, typically to indicate utility fluids. Additional anchors \redtt{west util} and \redtt{east util} are available at the terminals. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[basic hx, unit int=U tube, unit ext=util] (f) {};
				\foreach \anchor/\pos in {
					west util/below left,
					east util/below right}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\
	\end{longtable}
\end{center}


\subsubsection{Shell and tube heat exchanger}
\begin{lstlisting}[numbers=none]
\node[shell and tube hx] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[shell and tube hx] (g) {};
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[shell and tube hx] {};
			&
			\node[shell and tube hx, scale=1.5] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |shell and tube hx| shape provides a rectangle with an inner set of horizontal lines representing a shell and tube heat exchanger. Keys can modify the appearance to provide shell-side stems or modify the tube ends to represent two-pass or four-pass arrangements.
\begin{center}
	\begin{longtable}{p{1.5in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{shell and tube hx} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{shell and tube hx} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{unit int=two pass} & Adds a horizontal line on the west shell side to indicate a two-pass heat exchanger.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[shell and tube hx, unit int=two pass] (f) {};
		\end{tikzpicture}} \\ 
		& & \\
		\texttt{unit int=four pass} & Adds two horizontal line on the west shell side and one on the east to indicate a four-pass heat exchanger.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[shell and tube hx, unit int=four pass] (f) {};
		\end{tikzpicture}} \\ 
		& & \\
		
		\texttt{unit ext=cis shell} & Adds two shell-side stems, both on the north side with anchors \redtt{west shell} and \redtt{east shell}. Stems can be moved to the south side by rotating (|rotate=180|) or scaling (|yscale=-1|) the node. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}[font=\footnotesize\ttfamily]
				\node[shell and tube hx, unit ext=cis shell] (f) {};
				\foreach \anchor in {west shell, east shell}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
				\node[align=right, anchor=south east] at (f.west shell) {west\\[-3pt]shell};
				\node[align=left, anchor=south west] at (f.east shell) {east\\[-3pt]shell};
		\end{tikzpicture}} \\
		
		& & \\ 
		\texttt{unit ext=trans shell} & Adds two shell-side stems, one on the north side and one on the south side, with anchors \redtt{north shell} and \redtt{south shell}. Stem locations can be swapped by scaling the node (|yscale=-1| or |xscale=-1|). & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}[font=\footnotesize\ttfamily]
				\node[shell and tube hx, unit ext=trans shell] (f) {};
				\foreach \anchor in {north shell, south shell}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}	
				\node[align=right, anchor=south east] at (f.north shell) {north\\[-3pt]shell};
				\node[align=left, anchor=north west] at (f.south shell) {south\\[-3pt]shell};
		\end{tikzpicture}} \\
	\end{longtable}
\end{center}



\subsubsection{Plate heat exchanger}
\begin{lstlisting}[numbers=none]
\node[plate hx] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[plate hx] {};
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[plate hx] {};
			&
			\node[plate hx, scale=1.8] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |plate hx| shape provides a rectangle with an inner set of vertical lines representing a plate-and-frame heat exchanger. This unit has no |key=value| pairs for additional modification.


\subsubsection{Fired exchanger}
\begin{lstlisting}[numbers=none]
\node[fired hx] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[fired hx] {};
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[fired hx] {};
			&
			\node[fired hx, scale=1] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/right, 
				sw/left,
				nne/right, 
				nnw/left, 
				sse/below right, 
				ssw/below left,
				ese/below right, 
				wsw/below left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |fired hx| shape provides a square unit with tapered chimney representing a fired heat exchanger. A horizontal through-line represents the process tube; a small circular icon at the bottom indicates the combustion region of the heat exchanger. The default number of process tubes is one (|unit int=single| or omitted) but additional process tubes can be added using the |unit int| key. Inlets and outlets will shift to correspond to half-cardinal anchors as shown below.
\begin{center}
	\begin{longtable}{p{1.5in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{fired hx} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{fired hx} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{unit int=double} & Provides two tubes roughly corresponding to 
		the radiative and convective zones. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[fired hx, unit int=double] (f) {};
				\foreach \anchor/\pos in {
					ese/right, 
					wsw/left,
					wnw/left,
					ene/right}
				{\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\ 
		& & \\
		\texttt{unit int=triple} & Provides three tubes roughly corresponding to a radiative zone and two convective zones. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[fired hx, unit int=triple] (f) {};
				\foreach \anchor/\pos in {
					nne/right, 
					nnw/left, 
					ese/right, 
					wsw/left,
					wnw/left,
					ene/right}
				{\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\
	\end{longtable}
\end{center}


\subsection{Separation units}
\subsubsection{Column}
\begin{lstlisting}[numbers=none]
\node[column] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[column] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -15mm) grid (10mm, 15mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -15mm) to (0mm, 15mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[left] at (-10mm,15mm) {\color{blue!20}$+15$};
			\node[left] at (-10mm,-15mm){\color{blue!20}$-15$};
			\node[anchor=north east] at (12mm,-15mm) {\color{blue!20}mm}; 
			\node[column] {};
			&
			\node[column] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left,
				nne/above right, 
				nnw/above left, 
				sse/below right, 
				ssw/below left,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |column| shape provides a vertical, elongated cylinder as a generic separation column. The default fill is empty but several |key=value| pairs are provided to represent the most common separation units. Several additional anchors and keys are available based on these settings.

\begin{center}
	\begin{longtable}{p{1.75in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{column} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
			
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{column} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
			
		\bottomrule
		\endfoot
			
		\bottomrule
		\endlastfoot
		
		\texttt{unit ext=simple hx} & Provides stylized representation of condenser and reboiler along with anchors \redtt{distillate} and \redtt{bottoms} for stream connections. These anchors always exist but coincide with |north east| and |south east| when the |simple hx| key is omitted.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[column, unit ext=simple hx] (f) {};
				\foreach \anchor/\pos in {
					distillate/right,
					bottoms/right}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\ 
	
		& & \\
		\texttt{unit int=tray}\newline \texttt{unit int=dashed tray} & Dashed, horizontal lines. Dashes will always have three segments and two openings.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[column, unit int=tray] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=weir tray} & Solid, horizontal lines with small risers to 
		represent tray weirs.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[column, unit int=weir tray] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=numbered tray}\newline\newline\hspace*{1em}\textit{associated keys:}\newline\hspace*{2em}\texttt{top tray=99}\newline\hspace*{2em}\texttt{feed tray=00}\newline\hspace*{2em}\texttt{bottom tray=22} & Dashed, horizontal lines at top, feed, and bottom trays. Associated keys |top tray|, |feed tray|, and |bottom tray| can be used to indicate tray numbers \textbf{if column is not transformed}. If column is transformed then associated keys can be omitted and anchors \redtt{feed tray}, \redtt{top tray}, and \redtt{bottom tray} used for placement of additional text nodes.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[column, unit int=numbered tray, top tray=99, feed tray=00, 
				bottom tray=22] (f) {};
				\foreach \anchor/\pos in {
					top tray/below,
					feed tray/below,
					bottom tray/below}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=packed} & Large cross symbol indicating random or dumped fill (packing).& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[column, unit int=packed] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=double packed} & Two sections of random or dumped fill (packing) separated by a small, central gap.& 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[column, unit int=double packed] (f) {};
		\end{tikzpicture}} \\
\end{longtable}
\end{center}






\subsubsection{Vessel}
\begin{lstlisting}[numbers=none]
\node[vessel] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[vessel] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[vessel] {};
			&
			\node[vessel, scale=1.5] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left,
				nne/above right, 
				nnw/above left, 
				sse/below right, 
				ssw/below left,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |vessel| shape provides a vertical cylinder as a generic vessel. Such a vessel can be, for example, down-scaled and rotated 90${^\circ}$ can represent a product tank or a phase separator after a condenser. The default fill is empty but several |key=value| pairs are provided to represent two common vapor-liquid units as well as liquid accumulation tanks. Several additional anchors are available based on these settings.

\begin{center}
	\begin{longtable}{p{1.75in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{vessel} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{vessel} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		
		\texttt{unit int=liquid} & Adds wavy lines across the middle of the vessel to indicate a liquid level. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[vessel, unit int=liquid] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int = liquid rotated} & Adds wavy lines down the center of the vessel to indicate a liquid level. This key is intended to be used with a rotated node such as
		\begin{lstlisting}[numbers=none]
\node[vessel, rotate=90, unit int=liquid rotated] {};
		\end{lstlisting}
		 & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[vessel, rotate=90, unit int=liquid rotated] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=phase sep} & Adds a knock-down element near the |west| anchor and a dashed, horizontal line near the top of the vessel to indicate a demister pad. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[vessel, unit int=phase sep] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit ext=simple hx} & Adds a simplified heat transfer element to the bottom portion of the vessel. Two additional anchors, \redtt{north hx} and \redtt{south hx}, are located at the exterior points of the heat exchanger tubes. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[vessel, unit ext=simple hx] (f) {};
				\foreach \anchor/\pos in {
					north hx/right,
					south hx/right}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\ 
		
		& & \\
	\end{longtable}
\end{center}




\subsection{Fluid transport}
\subsubsection{Centrifugal pump}
\begin{lstlisting}[numbers=none]
\node[centrifugal pump] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[centrifugal pump] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[centrifugal pump] {};
			&
			\node[centrifugal pump, scale=1.5] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}

\newpage
The |centrifugal pump| shape provides a circular element with a triangular base to represent a centrifugal pump. An additional half-circle can be added using the |unit int| key to indicate the pump inlet and a rectangular outlet direction can be added using the |unit ext| key.

\begin{center}
	\begin{longtable}{p{1.75in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{centrifugal pump} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{centrifugal pump} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{unit int=inlet west} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the west. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit int=inlet west] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=inlet east} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the east. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit int=inlet east] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=inlet north} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the north. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit int=inlet north] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit int=inlet south} & Adds a half-circle around the |center| anchor to accept an inlet stream to enter from the south. Note that there is no means of removing the triangular base; such an inlet stream should be drawn as going through the base. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit int=inlet south] (f) {};
		\end{tikzpicture}} \\
		& & \\
		
		\texttt{unit ext=outlet east} & Adds a rectangular protrusion facing east to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit ext=outlet east] (f) {};
				\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
				\node[right] at (f.outlet) {\footnotesize\texttt{outlet}};
		\end{tikzpicture}} \\
		
		& & \\
		\texttt{unit ext=outlet west} & Adds a rectangular protrusion facing west to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit ext=outlet west] (f) {};
				\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
				\node[left] at (f.outlet) {\footnotesize\texttt{outlet}};
		\end{tikzpicture}} \\
		
		& & \\
		\texttt{unit ext=outlet north east} & Adds a rectangular protrusion facing north on the east side of the pump to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit ext=outlet north east] (f) {};
				\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
				\node[above] at (f.outlet) {\footnotesize\texttt{outlet}};
		\end{tikzpicture}} \\
		
		& & \\
		\texttt{unit ext=outlet north west} & Adds a rectangular protrusion facing north on the west side of the pump  to represent an outlet. Also adds the \redtt{outlet} anchor in the center of the outlet box. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[centrifugal pump, unit ext=outlet north west] (f) {};
				\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.outlet) {};
				\node[above] at (f.outlet) {\footnotesize\texttt{outlet}};
		\end{tikzpicture}} \\
		& & \\

	\end{longtable}
\end{center}




\subsubsection{Reciprocating pump}
\begin{lstlisting}[numbers=none]
\node[reciprocating pump] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[reciprocating pump] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[reciprocating pump] {};
			&
			\node[reciprocating pump, scale=1] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |reciprocating pump| shape provides two square elements--a pump head and motor--connected by a simple shaft. Most anchors are placed relative to the pump head. This unit has no |key=value| pairs for additional modification.


\subsubsection{Compressor}
\begin{lstlisting}[numbers=none]
\node[compressor] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[compressor] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[compressor] {};
			&
			\node[compressor, scale=2.5] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/left, 
				se/below right, 
				sw/left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |compressor| shape provides a quadrilateral to represent a gas-phase compressor. This unit has no |key=value| pairs for additional modification. If mirrored along the $x$-axis (\textit{e.g.}, by using something like |xscale=-1| or |rotate=90|) then the |compressor| shape is identical to the |turbine| shape but with different anchor points.



\subsubsection{Turbine}
\begin{lstlisting}[numbers=none]
\node[turbine] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[turbine] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[turbine] {};
			&
			\node[turbine, scale=2.5] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/above left, 
				se/right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |turbine| shape provides a quadrilateral to represent a gas-phase turbine. This unit has no |key=value| pairs for additional modification. If mirrored along the $x$-axis (\textit{e.g.}, by using something like |xscale=-1| or |rotate=90|) then the |turbine| shape is identical to the |compressor| shape but with different anchor points.





\section{Streams}


\subsection{Feed terminal}
\begin{lstlisting}[numbers=none]
\node[feed] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[feed] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[feed] {};
			&
			\node[feed, scale=2] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
			\node[right] at (f.stream) {\footnotesize\texttt{\textbf{e}} \textit{or} \redtt{stream}};
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |feed| shape provides a half-filled circle representing a process feed point. The special anchor \redtt{stream} corresponds to the |east| anchor and is provided as an optional method to define stream starting points. This unit has no |key=value| pairs for additional modification.




\subsection{Product terminal}
\begin{lstlisting}[numbers=none]
\node[product] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[product] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[product] {};
			&
			\node[product, scale=2] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
			\node[left] at (f.stream) {\footnotesize \redtt{stream} \textit{or} \boldtt{w}};
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |product| shape provides a half-filled circle representing a process product point. The special anchor \redtt{stream} corresponds to the |west| anchor and is provided as an optional method to define stream ending points. This unit has no |key=value| pairs for additional modification.



\subsection{Stream numbers}
\begin{lstlisting}[numbers=none]
\node[sid] {99};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[sid] {99};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[sid] {99};
			&
			\node[sid, scale=2] (f) {99};		
			\foreach \anchor/\pos in {
				north/above, 
				east/right, 
				west/left, 
				south/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				north east/above right, 
				north west/above left, 
				south east/below right, 
				south west/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |sid| (read ``ess eye dee'' for ``stream identification'') shape provides a modified |diamond| shape from the |shapes| library for the purpose of labeling streams. The anchors \textbf{are not aliased} with their abbreviations because \textit{(a)} this is not a custom shape of the |pfdicons| package and \textit{(b)} the |sid| shape is typically used within a line (stream) without accessing its anchors. The fill of |sid| is white which allows it to be conveniently placed within a stream-drawing command such as
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0) -- node[sid] {00} (2,0);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0) -- node[sid] {00} (2,0);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
The |sid| shape has no |key=value| pairs to modify its appearance but you can modify the appearance by redefining its |tikzstyle|, which by default is
\begin{lstlisting}[numbers=none]
\tikzstyle{sid} = [diamond, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\footnotesize]
\end{lstlisting}
Modifications to this definition can occur either in the preamble (to affect all drawings) or within the document (to affect individual drawings or lines). For example, if you'd like to use circular identifiers with a blue fill and more space around bigger numbers then you could do something like this:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0) -- node[sid] {1} (2,0);
	
	\tikzstyle{sid} = [circle, draw, solid, fill=blue!15, text badly centered, inner sep=3pt, font=\tiny]
	
	\draw[->] (0,-1) -- node[sid] {2} (2,-1);
	
	\draw[->] (0,-2) -- node[sid] {3} (2,-2);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0) -- node[sid] {1} (2,0);
				
				\tikzstyle{sid} = [circle, draw, solid, 
				fill=blue!15, text badly centered,
				inner sep=3pt, font=\tiny]
				
				\draw[->] (0,-1) -- node[sid] {2} (2,-1);
				
				\draw[->] (0,-2) -- node[sid] {3} (2,-2);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
You can also modify individual parameters while retaining others by passing additional modifiers within the |sid| node usage, like this:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0) -- node[sid] {1} (2,0);
			
	\draw[->] (0,-1) -- node[sid, rectangle, fill=red!20] {2} (2,-1);
		
	\draw[->] (0,-2) -- node[sid] {3} (2,-2);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0) -- node[sid] {1} (2,0);
				
				\draw[->] (0,-1) -- node[sid, rectangle, fill=red!20] {2} (2,-1);
				
				\draw[->] (0,-2) -- node[sid] {3} (2,-2);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}


\subsection{Stream arrow tips}
The arrow tip is set using the standard TikZ syntax
\begin{lstlisting}[numbers=none]
\tikzset{>=<tip style>}
\end{lstlisting}
When loaded the |pfdicons| package sets |<tip style>| to |Triangle| as
\begin{lstlisting}[numbers=none]
\tikzset{>=Triangle}
\end{lstlisting}
You can change this setting in the preamble or within the document itself to whatever arrow tip you prefer (see \S16.5 in the PGF manual for a summary of arrow tips). For example,
\begin{center}
\begin{minipage}{5in}
\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0) -- (1,0);
	
	\tikzset{>=Latex[open]} 
	\draw[->] (0,-0.5) -- (1,-0.5);	
	\draw[->] (0,-1) -- (1,-1);
\end{tikzpicture}
\end{lstlisting}
\end{minipage}\hspace{0.25in}
\begin{minipage}{1in}
\begin{center}
	\begin{tikzpicture}
		\draw[->] (0,0) -- (1,0);
		\tikzset{>=Latex[open]} % Latex-style arrow tip
		\draw[->] (0,-0.5) -- (1,-0.5);
		\draw[->] (0,-1) -- (1,-1);
	\end{tikzpicture}
\end{center}
\end{minipage}
\end{center}
You can also make modifications to individual arrow tips simply by using a different tip for that particular arrow:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0) -- (1,0);
	\draw[-{Stealth[red]}] (0,-0.5) -- (1,-0.5);
	\draw[->] (0,-1) -- (1,-1);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0) -- (1,0);
				\draw[-{Stealth[red]}] (0,-0.5) -- (1,-0.5);
				\draw[->] (0,-1) -- (1,-1);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}


\subsection{Stream crossings}
When two streams cross it's desirable to indicate their status as distinct streams to avoid confusion with junctions or mixing points. Consider the following example:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0.5) -- node[sid, pos=0.25]{1} (2,0.5);
	\draw[->] (0,0) -- node[sid]{2} (1.5,0) -- (1.5,1) -- (2,1);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0.5) -- node[sid, pos=0.25]{1} (2,0.5);
				\draw[->] (0,0) -- node[sid]{2} (1.3,0) -- (1.3,1) -- (2,1);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
It may not be immediately obvious that the intersection between streams 1 and 2 is not a four-way pipe junction with two inlets and two outlets. To make such distinction a \textit{bridge} can be used, most commonly in the form of a break in one stream, an arc of one stream, or a combination of a break and an arc. The |pfdicons| package provides a |bridge| style which uses the |spath3| package to detect crossings and create bridges. The workflow to use the |bridge| style is as follows:
\begin{enumerate}
	\item Identify that a crossing has occurred (\textit{e.g.}, by completing a drawing as done above). Determine which stream is to be drawn continuously (the |over| stream) and which stream is to be broken (the |under| stream).
	\item Re-define the original streams using the |path| operation, removing all decorations.
	\item Use the |bridge| key with |tikzset| to set the |over| and |under| paths as |\tikzset{bridge={over}{under}}|.
	\item Re-draw the streams with a |draw| operation, replacing any previously removed decorations.
\end{enumerate}
To demonstrate this process on the previous example we select stream 1 as the |over| stream (Turton recommends horizontal streams be continuous and vertical streams be broken). The remaining steps are completed as follows:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	% \draw[->] (0,0.5) -- node[sid, pos=0.25]{1} (2,0.5);
	% \draw[->] (0,0) -- node[sid]{2} (1.5,0) -- (1.5,1) -- (2,1);
	\path[spath/save=over] (0,0.5) -- (2,0.5);
	\path[spath/save=under] (0,0) -- (1.3,0) -- (1.3,1) -- (2,1);
	\tikzset{bridge={over}{under}}
	\draw[->, spath/use=over] node[sid, pos=0.15]{1};
	\draw[->, spath/use=under] node[sid, pos=0.1]{2};
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\path[spath/save=over] (0,0.5) -- (2,0.5);
				\path[spath/save=under] (0,0) -- (1.3,0) -- (1.3,1) -- (2,1);
				\tikzset{bridge={over}{under}}
				\draw[->, spath/use=over] node[sid, pos=0.2]{1};
				\draw[->, spath/use=under] node[sid, pos=0.1]{2};
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
Lines 4 and 5 define the original streams using the |path| operation. Line 6 sets the |bridge| key to identify the |over| and |under| stream (the names here could be anything as long as the first input is the ``over'' path and the second input is the ``under'' path). Lines 7 and 8 re-draw the streams with an appropriate \texttt{draw} operation, adding the stream labels as well. Notice that the positioning of the stream labels must be modified slightly from the original syntax; getting the labels \textit{precisely} where they were before the bridging operation can be challenging (but is usually not necessary).

The bridge style can be modified by using |\tikzset| to set the value of two keys, |bridge gap| and |bridge radius|, as summarized below.
\begin{center}
	\begin{longtable}{p{1in}p{3in}c}
		\caption{Key-value pairs for use with stream crossings}\\
		\toprule
		\texttt{key} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the use with stream crossings \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{bridge gap} & Adjusts the amount of space around a stream break. The default value is |4pt|. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge gap=0pt}|};
				\tikzset{bridge gap=0pt}
				\path[spath/save=over] (0,0.5) -- (2,0.5);
				\path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
				\tikzset{bridge={over}{under}}
				\draw[->, spath/use=over] ;
				\draw[->, spath/use=under] ;				
		\end{tikzpicture}} \\ 
		
		& & \\
		
		& & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge gap=15pt}|};
				\tikzset{bridge gap=15pt}
				\path[spath/save=over] (0,0.5) -- (2,0.5);
				\path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
				\tikzset{bridge={over}{under}}
				\draw[->, spath/use=over] ;
				\draw[->, spath/use=under] ;				
		\end{tikzpicture}} \\ 
		
		& & \\
		
		\texttt{bridge radius} & Adjusts the radius of an arc bridge. The default value is |0pt| which produces a straight line. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge radius=8pt}|};
				\tikzset{bridge gap=4pt}
				\tikzset{bridge radius=8pt}
				\path[spath/save=over] (0,0.5) -- (2,0.5);
				\path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
				\tikzset{bridge={over}{under}}
				\draw[->, spath/use=over] ;
				\draw[->, spath/use=under] ;				
		\end{tikzpicture}} \\ 
		
		& & \\
		
		& & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[above] at (1,1) {\footnotesize\verb|\tikzset{bridge radius=20pt}|};
				\tikzset{bridge radius=16pt}
				\path[spath/save=over] (0,0.5) -- (2,0.5);
				\path[spath/save=under] (0,0) -- (1,0) -- (1,1) -- (2,1);
				\tikzset{bridge={over}{under}}
				\draw[->, spath/use=over] ;
				\draw[->, spath/use=under] ;				
		\end{tikzpicture}} \\ 
		
		& & \\

	\end{longtable}
\end{center}

\section{Control elements}

\subsection{Valve}
\begin{lstlisting}[numbers=none]
\node[valve] {};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[valve] {};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[valve] {};
			&
			\node[valve, scale=2] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |valve| shape provides two opposing triangles as a generic valve shape. Unlike most other shapes the fill color of a |valve| shape is white which allows it to be conveniently placed within a line-drawing operation such as
\begin{center}
	\begin{minipage}{4in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0) -- node[valve] {} (2,0);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0) -- node[valve] {} (2,0);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
Placement of the valve on the stream can be modified using the standard placement keys (\textit{e.g.}, |middle| or |near start|) or by the |pos=number| key. The valve can also be rotated to an arbitrary angle using the |rotate=degree| key. For example:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0) -- node[valve, near start] {} (2,0);
	\draw[->] (0,-0.5) -- node[valve, near end] {} (2,-0.5);
	\draw[->] (0,-1) -- node[valve, pos=0.4] {} (2,-1);
	\draw[->] (0,-1.5) -- (1,-1.5) -- node[valve, rotate=90] {} (1,-2.5) -- ++(1,0);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0) -- node[valve, near start] {} (2,0);
				\draw[->] (0,-0.5) -- node[valve, near end] {} (2,-0.5);
				\draw[->] (0,-1) -- node[valve, pos=0.4] {} (2,-1);
				\draw[->] (0,-1.5) -- (1,-1.5) --node[valve, rotate=90] {}
				(1,-2.5) -- ++(1,0);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}


A generic actuator can be added to the |valve| shape by using the |unit ext| key as summarized below.
\begin{center}
	\begin{longtable}{p{1.5in}p{3in}c}
		\caption{Key-value pairs for the \boldtt{valve} shape.}\\
		\toprule
		\texttt{key=value} & Description & Example \\
		\midrule
		\endfirsthead
		
		\multicolumn{3}{c}{\tablename\ \thetable: Key-value pairs for the \boldtt{valve} shape \textit{(cont'd)}} \\
		\midrule
		\endhead
		
		\bottomrule
		\endfoot
		
		\bottomrule
		\endlastfoot
		
		\texttt{unit ext=actuator} & Adds a hemisphere-capped protrusion as an indicator of a generic actuation device. The \redtt{actuator} anchor is placed at the top of the hemisphere for electrical connections. & 
		\adjustbox{valign=t}{
			\begin{tikzpicture}
				\node[valve, unit ext=actuator, scale=1.5] (f) {};
				\foreach \anchor/\pos in {
					actuator/above}
				{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
					\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
		\end{tikzpicture}} \\ 
	\end{longtable}
\end{center}


\subsection{Electrical instruments}
\begin{lstlisting}[numbers=none]
\node[elec] {XX};
\end{lstlisting}
\begin{figure}[h!]
	\centering
	\begin{tikzpicture}[line width=0.6pt]
		\matrix[column sep=1cm, row sep=1cm, nodes={font=\footnotesize}]{%
			\node[elec] {XX};	
			&
			\draw[help lines, blue!5, step=1mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[help lines, blue!10, step=5mm, ultra thin] (-10mm, -10mm) grid (10mm, 10mm);
			\draw[red!20, thin] (-10mm,0mm) to (10mm, 0mm);
			\draw[red!20, thin] (0mm, -10mm) to (0mm, 10mm);
			\node[left] at (-10mm,0mm) {\color{blue!20}0};
			\node[left] at (-10mm,5mm) {\color{blue!20}$+5$};
			\node[left] at (-10mm,-5mm) {\color{blue!20}$-5$};
			\node[left] at (-10mm,10mm) {\color{blue!20}$+10$};
			\node[left] at (-10mm,-10mm){\color{blue!20}$-10$};
			\node[anchor=north east] at (12mm,-10mm) {\color{blue!20}mm}; 
			\node[elec] {XX};
			&
			\node[elec, scale=2] (f) {XX};		
			\foreach \anchor/\pos in {
				north/above, 
				east/right, 
				west/left, 
				south/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				north east/above right, 
				north west/above left, 
				south east/below right, 
				south west/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			\\	
		};	
	\end{tikzpicture}
\end{figure}
The |elec| shape provides a modified |circle| shape from the |shapes| library for the purpose of labeling streams. The anchors \textbf{are not aliased} with their abbreviations because this is not a custom shape of the |pfdicons| package. Like the |valve| and |sid| shapes the fill of |elec| is white which allows it to be conveniently placed within a stream-drawing command such as
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[dashed] (0,0) -- node[elec] {XX} (2,0);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[dashed] (0,0) -- node[elec] {XX} (2,0);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
The |elec| shape has no |key=value| pairs to modify its appearance but you can modify the appearance by redefining its |tikzstyle|, which by default is
\begin{lstlisting}[numbers=none]
\tikzstyle{elec} = [circle, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\footnotesize]
\end{lstlisting}
Modifications to this definition can occur either in the preamble (to affect all drawings) or within the document (to subsequent drawings or lines). For example, if you'd like to use circular identifiers with a blue fill and more space around bigger numbers then you could do something like this:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[dashed] (0,0) -- node[elec] {TT} (2,0);
	
	\tikzstyle{elec} = [circle, draw, solid, fill=blue!15, text badly centered, inner sep=3pt, font=\tiny]
	
	\draw[dashed] (0,-1) -- node[elec] {LT} (2,-1);
	
	\draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[dashed] (0,0) -- node[elec] {TT} (2,0);
			
				\tikzstyle{elec} = [circle, draw, solid, fill=blue!15, text badly centered, inner sep=3pt, font=\tiny]
				
				\draw[dashed] (0,-1) -- node[elec] {LT} (2,-1);
				
				\draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}
You can also modify individual parameters while retaining others by passing additional modifiers within the |sid| node usage, like this:
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[dashed] (0,0) -- node[elec] {TT} (2,0);
	
	\draw[dashed] (0,-1) -- node[elec, rectangle, fill=red!20] {LT} (2,-1);
	
	\draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[dashed] (0,0) -- node[elec] {TT} (2,0);
			
				\draw[dashed] (0,-1) -- node[elec, rectangle, fill=red!20] {LT} (2,-1);
				
				\draw[dashed] (0,-2) -- node[elec] {PT} (2,-2);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}


\section{Examples}
The following examples use the |pfdicons| package to replicate process flow diagrams and other diagrams found in several standard undergraduate textbooks. The examples are generally grouped according to the (approximate) course in which they occur: material and energy balances, thermodynamics, reaction engineering, separations, process controls, and capstone design.

\textbf{Caution:} Sometimes copy/pasting example code will introduce artifacts (mostly whitespaces) into the pasted code which are not apparent in this document. If this occurs you can (1) check and remove any erroneous whitespaces in your pasted code, (2) type out the examples here by hand, or (3) copy the code directly from the |pfdicons-doc.tex| file on the CTAN page for this package.

\subsection{Material and Energy Balances}
\begin{enumerate}[itemindent=0.75in, leftmargin=0.25in, label=\textsc{\textbf{Example \arabic*:}}]
	
		\item A basic separation process consisting of a pump, flash unit, and valve. Source: Himmelblau, D.; Riggs, J. \textit{Basic Principles and Calculations in Chemical Engineering}, 8th ed.; Prentice Hall, 2012.
		\begin{center}
			\begin{tikzpicture}		
				\node[centrifugal pump, unit ext=outlet east] (c) {};
				\node[vessel, right=2cm of c.outlet] (s) {};				
				\draw[<-] (c.west) -- ++(-2,0);
				\draw[->] (c.outlet) -- (s.west);
				\draw[->] (s.north) -- ++(0,0.5) -- node[valve] {} ++(2,0);
				\draw[->] (s.south) |- ++(2,-0.5);		
			\end{tikzpicture}
		\end{center}
		\begin{lstlisting}
\begin{tikzpicture}		
	\node[centrifugal pump, unit ext=outlet east] (c) {};
	\node[vessel, right=2cm of c.outlet] (s) {};	
	\draw[<-] (c.west) -- ++(-2,0);
	\draw[->] (c.outlet) -- (s.west);
	\draw[->] (s.north) -- ++(0,0.5) -- node[valve] {} ++(2,0);
	\draw[->] (s.south) |- ++(2,-0.5);		
\end{tikzpicture}
		\end{lstlisting}
	
		\item A simplified ethylene dichloride synthesis process illustrating the reactor-separator-recycle-purge (RSRP) arrangement. Source: Himmelblau, D.; Riggs, J. \textit{Basic Principles and Calculations in Chemical Engineering}, 8th ed.; Prentice Hall, 2012.
		\begin{center}
			\begin{tikzpicture}		
				\node[tube reactor, unit int=packed] (r) {};
				\node[column, right=of r] (s) {};
				\coordinate [left=of r] (m); % helps set recycle merge point
				
				\draw[<-] (r.west) -- ++(-2,0);
				\draw[->] (r.east) -- (s.west);
				\draw[->] (s.south) |- ++(1,-0.5);
				\draw[->] (s.north) -- ++(0,1);
				\draw[->] (s.north) -- ++(0,0.5) -| (m);
			\end{tikzpicture}
		\end{center}		
		\begin{lstlisting}
\begin{tikzpicture}
	\node[tube reactor, unit int=packed] (r) {};
	\node[column, right=of r] (s) {};
	\coordinate [left=of r] (m);
		
	\draw[<-] (r.west) -- ++(-2,0);
	\draw[->] (r.east) -- (s.west);
	\draw[->] (s.south) |- ++(1,-0.5);
	\draw[->] (s.north) -- ++(0,1);
	\draw[->] (s.north) -- ++(0,0.5) -| (m);
\end{tikzpicture}
		\end{lstlisting}
\end{enumerate}


\subsection{Thermodynamics}
\begin{enumerate}[resume*]
	\item A simple steam power plant. Source: Figure 8.1 on pg. 270 in Smith, J.M.; Van Ness, H.C.; Abbot, M.M. \textit{Introduction to Chemical Engineering Thermodynamics}, 6th ed.; McGraw-Hill, 2001. 
	\begin{center}
	\begin{tikzpicture}[font=\footnotesize]	
		% Nodes
		\node [basic hx, rotate=90] (boiler) {};
		\node [turbine, below right=1cm and 2cm of boiler] (turbine) {};
		\node [basic hx, rotate=90, below left=of turbine] (cond) {};
		\node [centrifugal pump, below left=of boiler, unit int=inlet south, 
		unit ext=outlet north west] (pump) {};
		
		% Streams
		\draw[->] (boiler.south) -| (turbine.nnw);
		\draw[->] (turbine.sse) |- (cond.south);
		\draw[->] (cond.north) -| (pump.center);
		\draw[->] (pump.outlet) |- (boiler.north);
		
		% Labels
		\node[below] at (boiler.west) {Boiler};
		\node[above] at (cond.east) {Condenser};
		\node[left] at (turbine.west) {Turbine};
		\draw[<-] (boiler.east) -- node[pos=1.5] {$\dot{Q}_H$} ++(0,5mm);
		\draw[->] (cond.west) -- node[pos=1.5] {$\dot{Q}_C$} ++(0,-5mm);
		\draw[->] (turbine.east) -- node[pos=1.5] {$\dot{W}_s$} ++(5mm,0);
		\draw[<-] (pump.west) -- node[pos=1.5] {$\dot{W}_s$} ++(-5mm,0);
	\end{tikzpicture}
	\end{center}
		\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]	
	% Units
	\node [basic hx, rotate=90] (boiler) {};
	\node [turbine, below right=1cm and 2cm of boiler] (turbine) {};
	\node [basic hx, rotate=90, below left=of turbine] (cond) {};
	\node [centrifugal pump, below left=of boiler, unit int=inlet south, unit ext=outlet north west] (pump) {};
	
	% Streams
	\draw[->] (boiler.south) -| (turbine.nnw);
	\draw[->] (turbine.sse) |- (cond.south);
	\draw[->] (cond.north) -| (pump.center);
	\draw[->] (pump.outlet) |- (boiler.north);
	
	% Labels
	\node[below] at (boiler.west) {Boiler};
	\node[above] at (cond.east) {Condenser};
	\node[left] at (turbine.west) {Turbine};
	\draw[<-] (boiler.east) -- node[pos=1.5] {$\dot{Q}_H$} ++(0,5mm);
	\draw[->] (cond.west) -- node[pos=1.5] {$\dot{Q}_C$} ++(0,-5mm);
	\draw[->] (turbine.east) -- node[pos=1.5] {$\dot{W}_s$} ++(5mm,0);
	\draw[<-] (pump.west) -- node[pos=1.5] {$\dot{W}_s$} ++(-5mm,0);
\end{tikzpicture}
		\end{lstlisting}
	

	\item A two-stage cascade refrigeration system. Here a |matrix| structure is used for node placement but one could equally use positioning keys (\textit{i.e.}, |above|, |below|, and so forth) to achieve similar placement. Source: Figure 9.3 on pg. 301 in Smith, J.M.; Van Ness, H.C.; Abbot, M.M. \textit{Introduction to Chemical Engineering Thermodynamics}, 6th ed.; McGraw-Hill, 2001.
	\begin{center}
	\begin{tikzpicture}[font=\footnotesize]
		% Nodes
		\matrix [column sep=1.5cm, row sep=0.75 cm] {
			% Row 1
			& \node[basic hx, rotate=90] (cond) {}; 
			& \\
			% Row 2
			\node[valve, rotate=90] (v2) {}; & 
			\node{\normalsize Cycle 2}; & 
			\node[turbine] (c2) {}; \\
			% Row 3
			& \node[shell and tube hx] (intx) {}; 
			& \\
			% Row 4
			\node[valve, rotate=90] (v1) {}; &
			\node{\normalsize Cycle 1}; &
			\node[turbine] (c1) {}; \\
			% Row 5
			& \node[basic hx, rotate=90] (evap) {}; & \\
		};
	
		% Streams
		\tikzset{>=Stealth} 
		% Upper loop
		\draw[->] (cond.n) -| (v2.e);
		\draw[->] (v2.w) |- (intx.wnw);
		\draw[->] (intx.ene) -| (c2.sse);
		\draw[->] (c2.nnw) |- (cond.s);
		% Lower loop
		\draw[->] (intx.wsw) -| (v1.e);
		\draw[->] (v1.w) |- (evap.n);
		\draw[->] (evap.s) -| (c1.sse);
		\draw[->] (c1.nnw) |- (intx.ese);
		
		% Labels
		\node[above] at (intx.north) {Interchanger};
		\node[below] at (cond.w) {Condenser at $T_H$};
		\node[above] at (evap.e) {Evaporator at $T_C$};
		\node[above left=1pt and 7mm of intx.wnw] {$T^{\prime}_C$};
		\node[below left=1pt and 7mm of intx.wsw] {$T^{\prime}_H$};
		
		\draw[<-] (c2.e) -- node[pos=2] {$W_s(2)$} ++(5mm,0);
		\draw[<-] (c1.e) -- node[pos=2] {$W_s(1)$} ++(5mm,0);
		\draw[->] (cond.e) -- node[pos=1.5] {$\lvert Q_H \rvert$} ++(0,5mm);
		\draw[<-] (evap.w) -- node[pos=1.5] {$\lvert Q_C \rvert$} ++(0,-5mm);
	\end{tikzpicture}
	\end{center}

	\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]
	% \usetikzlibrary{matrix}
	% Units
	\matrix [column sep=1.5cm, row sep=0.75 cm] {
		% Row 1
		& \node[basic hx, rotate=90] (cond) {}; 
		& \\
		% Row 2
		\node[valve, rotate=90] (v2) {}; & 
		\node{\normalsize Cycle 2}; & 
		\node[turbine] (c2) {}; \\
		% Row 3
		& \node[shell and tube hx] (intx) {}; 
		& \\
		% Row 4
		\node[valve, rotate=90] (v1) {}; &
		\node{\normalsize Cycle 1}; &
		\node[turbine] (c1) {}; \\
		% Row 5
		& \node[basic hx, rotate=90] (evap) {}; & \\
	};
	
	% Streams
	\tikzset{>=Stealth} 
	% Upper loop
	\draw[->] (cond.n) -| (v2.e);
	\draw[->] (v2.w) |- (intx.wnw);
	\draw[->] (intx.ene) -| (c2.sse);
	\draw[->] (c2.nnw) |- (cond.s);
	% Lower loop
	\draw[->] (intx.wsw) -| (v1.e);
	\draw[->] (v1.w) |- (evap.n);
	\draw[->] (evap.s) -| (c1.sse);
	\draw[->] (c1.nnw) |- (intx.ese);
	
	% Labels
	\node[above] at (intx.north) {Interchanger};
	\node[below] at (cond.w) {Condenser at $T_H$};
	\node[above] at (evap.e) {Evaporator at $T_C$};
	\node[above left=1pt and 7mm of intx.wnw] {$T^{\prime}_C$};
	\node[below left=1pt and 7mm of intx.wsw] {$T^{\prime}_H$};
	
	\draw[<-] (c2.e) -- node[pos=2] {$W_s(2)$} ++(5mm,0);
	\draw[<-] (c1.e) -- node[pos=2] {$W_s(1)$} ++(5mm,0);
	\draw[->] (cond.e) -- node[pos=1.5] {$\lvert Q_H \rvert$} ++(0,5mm);
	\draw[<-] (evap.w) -- node[pos=1.5] {$\lvert Q_C \rvert$} ++(0,-5mm);
\end{tikzpicture}
	\end{lstlisting}
\end{enumerate}



\subsection{Reaction Engineering}
\begin{enumerate}[resume*]
	\item A series of two CSTRs followed by a PFR as part of a discussion regarding Levenspiel plots. Source: Figure 2-10 on pg. 61 in Fogler, H.S. \textit{Elements of Chemical Reaction Engineering}, 4th ed.; Pearson, 2006.
	
	\begin{center}
		\begin{tikzpicture}[font=\footnotesize]
			% Custom point marker
			\tikzstyle{dot} = [circle, draw, fill=black, inner sep=1.5pt]
			
			% Units
			\node[tank reactor, unit int=stirred liquid] (R1) {};
			\node[tank reactor, unit int=stirred liquid, below right=of R1] 
			(R2) {};
			\node[tube reactor, unit int=tubular, right=2cm of R2.ese] (R3) {};
			
			% Streams
			\draw[<-] (R1.nnw) |- coordinate[at end] (p0) ++(-1.5,0.5);
			\draw[->] (R1.ese) -| node[dot, pos=0.3] (p1) {} (R2.nnw);
			\draw[->] (R2.ese) -- node[dot, pos=0.3] (p2) {} (R3.w);
			\draw[->] (R3.e) -- node[dot] (p3) {} coordinate[at end] (p4) ++(1.5,0);
			
			% Labels
			\node[left, align=right] at (p0) {$F_{A0}$\\$X=0$};
			\node[above] at (p1) {(1)};
			\node[right=5mm of p1, align=left] {$F_{A1}$\\$X_1$};
			\node[above] at (p2) {(2)};
			\node[above left, align=left] at (R3.w) {$F_{A2}$\\$X_2$};
			\node[above] at (p3) {(3)};
			\node[right, align=left] at (p4) {$F_{A3}$\\$X_3$};
		\end{tikzpicture}
	\end{center}
	\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]
	% Custom point marker
	\tikzstyle{dot} = [circle, draw, fill=black, inner sep=1.5pt]
	
	% Units
	\node[tank reactor, unit int=stirred liquid] (R1) {};
	\node[tank reactor, unit int=stirred liquid, below right=of R1] (R2) {};
	\node[tube reactor, unit int=tubular, right=2cm of R2.ese] (R3) {};
	
	% Streams
	\draw[<-] (R1.nnw) |- coordinate[at end] (p0) ++(-1.5,0.5);
	\draw[->] (R1.ese) -| node[dot, pos=0.3] (p1) {} (R2.nnw);
	\draw[->] (R2.ese) -- node[dot, pos=0.3] (p2) {} (R3.w);
	\draw[->] (R3.e) -- node[dot] (p3) {} coordinate[at end] (p4) ++(1.5,0);
	
	% Labels
	\node[left, align=right] at (p0) {$F_{A0}$\\$X=0$};
	\node[above] at (p1) {(1)};
	\node[right=5mm of p1, align=left] {$F_{A1}$\\$X_1$};
	\node[above] at (p2) {(2)};
	\node[above left, align=left] at (R3.w) {$F_{A2}$\\$X_2$};
	\node[above] at (p3) {(3)};
	\node[right, align=left] at (p4) {$F_{A3}$\\$X_3$};
\end{tikzpicture}		
	\end{lstlisting}

	\item Two adiabatic reactors separated by a heat exchanger as part of a discussion regarding interstage heating and cooling. Source: Figure 11.2 on pg. 300 in Drews, A. \textit{An Introduction to Chemical Reaction Engineering with MATLAB}; \texttt{ceng113.eng.ucsd.edu} (2019).
	
	\begin{center}
	\begin{tikzpicture}[font=\footnotesize]
		% Units
		\node[tank reactor, unit int=stirred liquid] (R1) {};
		\node[basic hx, unit ext=util, right=2cm of R1] (HX1) {};
		\node[tube reactor, unit int=tubular, right=2cm of HX1] (R2) {};
		
		% Streams
		\draw[<-] (R1.w) -- node[above, near end] {0} ++(-2,0);
		\draw[->] (R1.e) -- node[above] {1} (HX1.w);
		\draw[->] (HX1.e) -- node[above] {2} (R2.w);
		\draw[->] (R2.e) -- node[above] {3} ++(2,0);

		% Control volumes
		\coordinate[above left=7mm and 5mm of R1.nw] (a);
		\coordinate[below right=7mm and 5mm of R1.se] (b);
		\coordinate[above left=9mm and 8mm of R1.nw] (c);
		\coordinate[below right=11mm and 5mm of R2.se] (d);
		\draw[dashed] (a) rectangle (b);
		\draw[dashed] (c) rectangle (d);	
			
		% Labels
		\node[below] at (R1.s) {R-1};
		\node[below] at (HX1.south util) {HX-1};
		\node[below] at (R2.s) {R-2};
		\node[anchor=base west] at (b) {\textbf{CV1}};
		\node[anchor=base west] at (d) {\textbf{CV2}};
	\end{tikzpicture}
	\end{center}

	\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]
	% Units
	\node[tank reactor, unit int=stirred liquid] (R1) {};
	\node[basic hx, unit ext=util, right=2cm of R1] (HX1) {};
	\node[tube reactor, unit int=tubular, right=2cm of HX1] (R2) {};
	
	% Streams
	\draw[<-] (R1.w) -- node[above, near end] {0} ++(-2,0);
	\draw[->] (R1.e) -- node[above] {1} (HX1.w);
	\draw[->] (HX1.e) -- node[above] {2} (R2.w);
	\draw[->] (R2.e) -- node[above] {3} ++(2,0);
	
	% Control volumes
	\coordinate[above left=7mm and 5mm of R1.nw] (a);
	\coordinate[below right=7mm and 5mm of R1.se] (b);
	\coordinate[above left=9mm and 8mm of R1.nw] (c);
	\coordinate[below right=11mm and 5mm of R2.se] (d);
	\draw[dashed] (a) rectangle (b);
	\draw[dashed] (c) rectangle (d);	
	
	% Labels
	\node[below] at (R1.s) {R-1};
	\node[below] at (HX1.south util) {HX-1};
	\node[below] at (R2.s) {R-2};
	\node[anchor=base west] at (b) {\textbf{CV1}};
	\node[anchor=base west] at (d) {\textbf{CV2}};
\end{tikzpicture}
	\end{lstlisting}
\end{enumerate}




\subsection{Separations}
\begin{enumerate}[resume*]
	\item A general distillation system using a total condenser and partial reboiler. Some annotations have been excluded for clarity (clarity of this document, not the figure: if so desired it would only be a matter of additional |node| elements to replace the excluded annotations). Source: Figure 7.2 on pg. 261 in Seader, J.D.; Henley, E.J.; Roper, D.K. \textit{Separation Process Principles}, 3rd ed.; John Wiley and Sons, 2011. 
	\begin{center}
		\begin{tikzpicture}[font=\footnotesize]
			%\usetikzlibrary{decorations.pathmorphing}
			% Units	
			\node[column, unit int=numbered tray, scale=1.5] (c) {};
			\node[vessel, rotate=90, unit int=liquid rotated, above right=8mm 
			and 15mm of c, anchor=north] (drum) {};
			\node[basic hx, unit ext=util, above left=8mm and 5mm of drum.north] (cond) {};
			\node[basic hx, unit int=U tube, unit ext=util, rotate=90, below 
			right=5mm and 5mm of c, anchor=east] (reboil) {};
			
			% Helpful points
			\coordinate[left=3cm of c.west] (F);
			\coordinate[right=4cm of c.north east] (D);
			\coordinate[below right=2cm and 2.5cm of c.south east] (B);
			
			% Streams
			\draw[->] (c.north) |- (cond.west);
			\draw[->] (cond.east) -| (drum.east);
			\draw[->] (drum.west) |- (c.north east);
			\draw[->] (drum.west) |- (D);			
			\draw[->] (c.south) |- (reboil.north);
			\draw[->] (reboil.east) |- (c.south east);		
			\draw[->] (reboil.west) |- (B);			
			\draw[->] (F) -- node[valve, near end] {} (c.west);
			
			% Distillate labels
			\node[above=0.5pt of c.top tray] {1};	
			\node[left=5mm of c.top tray, anchor=east] {Top stage};
			\node[anchor=south west] at (c.ne) {Reflux};
			\node[above] at (D) {Distillate};
			\node[above right] at (cond.ne) {Total condenser};
			\node[above right] at (drum.south east) {Reflux drum};
			
			% Feed labels
			\node[above=0.5pt of c.feed tray] {$f$};
			\node[anchor=south west] at (F) {Feed};
			\node[right=5mm of c.feed tray, anchor=west] {Feed stage};
			\node[align=left, anchor=north west] at (F) {Light-key\\mole frac, $z_F$};
	
			% Bottoms labels
			\node[above=0.5pt of c.bottom tray] {$N$};
			\node[above] at (B) {Bottoms};
			\node[right] at (reboil.south) {Partial reboiler};
			\node[left=5mm of c.bottom tray, anchor=east, align=center] {Bottom\\stage};
			\node[below, align=center] at (D) {Light-key\\mole frac, $x_D$};	
			\node[below, align=center] at (B) {Light-key\\mole frac, $x_B$};
		\end{tikzpicture}
	\end{center}
	\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]
	%\usetikzlibrary{decorations.pathmorphing}
	% Units	
	\node[column, unit int=numbered tray, scale=1.5] (c) {};
	\node[vessel, rotate=90, unit int=liquid rotated, above right=8mm and 15mm of c, anchor=north] (drum) {};
	\node[basic hx, unit ext=util, above left=8mm and 5mm of drum.north] (cond) {};
	\node[basic hx, unit int=U tube, unit ext=util, rotate=90, below right=5mm and 5mm of c, anchor=east] (reboil) {};
	
	% Helpful points
	\coordinate[left=3cm of c.west] (F);
	\coordinate[right=4cm of c.north east] (D);
	\coordinate[below right=2cm and 2.5cm of c.south east] (B);
	
	% Streams
	\draw[->] (c.north) |- (cond.west);
	\draw[->] (cond.east) -| (drum.east);
	\draw[->] (drum.west) |- (c.north east);
	\draw[->] (drum.west) |- (D);			
	\draw[->] (c.south) |- (reboil.north);
	\draw[->] (reboil.east) |- (c.south east);		
	\draw[->] (reboil.west) |- (B);			
	\draw[->] (F) -- node[valve, near end] {} (c.west);
	
	% Distillate labels
	\node[above=0.5pt of c.top tray] {1};	
	\node[left=5mm of c.top tray, anchor=east] {Top stage};
	\node[anchor=south west] at (c.ne) {Reflux};
	\node[above] at (D) {Distillate};
	\node[above right] at (cond.ne) {Total condenser};
	\node[above right] at (drum.south east) {Reflux drum};	
	
	% Feed labels
	\node[above=0.5pt of c.feed tray] {$f$};
	\node[anchor=south west] at (F) {Feed};
	\node[right=5mm of c.feed tray, anchor=west] {Feed stage};
	\node[align=left, anchor=north west] at (F) {Light-key\\mole frac, $z_F$};
	
	% Bottoms labels
	\node[above=0.5pt of c.bottom tray] {$N$};
	\node[above] at (B) {Bottoms};
	\node[right] at (reboil.south) {Partial reboiler};
	\node[left=5mm of c.bottom tray, anchor=east, align=center] {Bottom\\stage};
	\node[below, align=center] at (D) {Light-key\\mole frac, $x_D$};	
	\node[below, align=center] at (B) {Light-key\\mole frac, $x_B$};
\end{tikzpicture}
	\end{lstlisting}

\item A schematic of pressure-swing adsorption for the dehydration of air. In this diagram the original authors used approximately the same symbol for a filter as the adsorber, a similarity retained here. A matrix was again used to help with alignment and several |tikzstyle| definitions were used to create ``shortcut'' shapes for the |filter|, |ads|, and |pump| units. Source: Figure 15.2 on pg. 570 in Seader, J.D.; Henley, E.J.; Roper, D.K. \textit{Separation Process Principles}, 3rd ed.; John Wiley and Sons, 2011. 

\begin{center}
	\begin{tikzpicture}[font=\footnotesize]
		% \usetikzlibrary{matrix}
		
		% Definitions
		\tikzstyle{filter} = [tube reactor, unit int=packed, rotate=90, 
		scale=0.75];
		\tikzstyle{ads} = [tube reactor, unit int=packed, rotate=90];
		\tikzstyle{pump} = [reciprocating pump, yscale=-1];	
		
		% Nodes
		\matrix [column sep=1.5cm, row sep=0.5 cm] {
			% 4 columns:  & & & \\
			& & \node[filter] (f1) {}; & \\
			& & & \\
			& & & \\
			& \node[ads] (ads1) {}; & & \node[ads] (ads2) {};\\
			& & & \\
			& & \node[filter] (f2) {}; & \\ % f2
			\node[pump] (p) {}; & \node[basic hx, unit ext=util] (hx) {};& & \\ % pump+cooler
		};
			
		% Helper points
		\coordinate[above=5mm of f2.e] (v2); % for valves near f2
		\coordinate[below=11mm of f1.w] (v1); % for valves near f1
		
		% Streams
		\draw[<-] (p.w) -- node[pos=1.7] {Moist air} ++(-1,0);
		\draw[->] (p.e) -- (hx.w);
		\draw[->] (hx.e) -| (f2.w);
		\draw[->] (f2.e) -- (v2);
		\draw (v2) -| node[valve, near start] {} (ads1.w);
		\draw[->] (ads1.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(-2,0);
		\draw (v2) -| node[valve, near start] {} (ads2.w);
		\draw[->] (ads2.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(2,0);
		\draw (ads1.e) |- node[valve, near end] {} (v1) -| node[valve, near start] {} (ads2.e);
		\draw (v1) -- node[valve, rotate=90] {} (f1.w);
		\draw (ads1.e) -- ++(0,1.3) -| (ads2.e);
		\draw[->] (f1.e) -- ++(0,5mm);
		
		% Labels
		\node[right, align=center] at (f1.s) {Particulate\\filter};
		\node[right, align=center] at (ads2.s) {Adsorber\\no. 2};
		\node[left, align=center] at (ads1.n) {Adsorber\\no. 1};
		\node[right, align=center] at (f2.s) {Coalescing\\filter};
		\node[below, align=center] at (p.n) {Gas\\compressor};
		\node[below] at (hx.south util) {Aftercooler};
		\node[above] at (hx.north util) {cw};
		
	\end{tikzpicture}
\end{center}


\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]
	% \usetikzlibrary{matrix}
	
	% Definitions
	\tikzstyle{filter} = [tube reactor, unit int=packed, rotate=90, scale=0.75];
	\tikzstyle{ads} = [tube reactor, unit int=packed, rotate=90];
	\tikzstyle{pump} = [reciprocating pump, yscale=-1];	
	
	% Nodes
	\matrix [column sep=1.5cm, row sep=0.5 cm] {
		% 4 columns:  & & & \\
		& & \node[filter] (f1) {}; & \\
		& & & \\
		& & & \\
		& \node[ads] (ads1) {}; & & \node[ads] (ads2) {};\\
		& & & \\
		& & \node[filter] (f2) {}; & \\ % f2
		\node[pump] (p) {}; & \node[basic hx, unit ext=util] (hx) {};& & \\ % pump+cooler
	};
	
	% Helper points
	\coordinate[above=5mm of f2.e] (v2); % for valves near f2
	\coordinate[below=11mm of f1.w] (v1); % for valves near f1
	
	% Streams
	\draw[<-] (p.w) -- node[pos=1.7] {Moist air} ++(-1,0);
	\draw[->] (p.e) -- (hx.w);
	\draw[->] (hx.e) -| (f2.w);
	\draw[->] (f2.e) -- (v2);
	\draw (v2) -| node[valve, near start] {} (ads1.w);
	\draw[->] (ads1.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(-2,0);
	\draw (v2) -| node[valve, near start] {} (ads2.w);
	\draw[->] (ads2.w |- v2) -- node[valve] {} node[anchor=north, at end] {Purge} ++(2,0);
	\draw (ads1.e) |- node[valve, near end] {} (v1) -| node[valve, near start] {} (ads2.e);
	\draw (v1) -- node[valve, rotate=90] {} (f1.w);
	\draw (ads1.e) -- ++(0,1.3) -| (ads2.e);
	\draw[->] (f1.e) -- ++(0,5mm);
	
	% Labels
	\node[right, align=center] at (f1.s) {Particulate\\filter};
	\node[right, align=center] at (ads2.s) {Adsorber\\no. 2};
	\node[left, align=center] at (ads1.n) {Adsorber\\no. 1};
	\node[right, align=center] at (f2.s) {Coalescing\\filter};
	\node[below, align=center] at (p.n) {Gas\\compressor};
	\node[below] at (hx.south util) {Aftercooler};
	\node[above] at (hx.north util) {cw};
	
\end{tikzpicture}
\end{lstlisting}
\end{enumerate}


\subsection{Process Controls}
\begin{enumerate}[resume*]
	\item A comparison of feedforward and feedback control systems. This example illustrates the use of absolute positioning (only for variety, not because it's necessary). Source: Figure E1.9 on pg. 13 in Seborg, D.E.; Edgar, T.F.; Mellichamp, D.A.; Doyle III, F.J. \textit{Process Dynamics and Control}, 4th ed.; John Wiley and Sons, 2016. 
	\begin{center}
		\begin{tikzpicture}[font=\footnotesize]	
			% Feedforward system
			\draw[->] (0,0) -- ++(4,0);
			\node[elec] at (1, 0.5) (ft1) {FT};
			\node[elec] at (2, 1.2) (fc1) {FC};
			\node[valve, unit ext=actuator, scale=1.5] at (3,0) (v1) {};
			\node[left] at (0,0) {Liquid};
			\node[below] at (2,-0.1) {System A};
			\draw (1,0) -- (ft1.south);
			\draw[->, dashed] (ft1.north) |- (fc1.west);
			\draw[->, dashed] (fc1.east) -| (v1.actuator);
					
			% Feedback system
			\draw[->] (0,-2.5) -- ++(4,0);
			\node[valve, unit ext=actuator, scale=1.5] at (1,-2.5) (v2) {};
			\node[elec] at (2, -1.2) (fc2) {FC};
			\node[elec] at (3, -2) (ft2) {FT};
			
			\node[left] at (0,-2.5) {Liquid};
			\node[below] at (2,-2.6) {System B};
			\draw (3,-2.5) -- (ft2.south);
			\draw[->, dashed] (ft2.north) |- (fc2.east);
			\draw[->, dashed] (fc2.west) -| (v2.actuator);
		\end{tikzpicture}
	\end{center}
	\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]	
	% Feedforward system
	\draw[->] (0,0) -- ++(4,0);
	\node[elec] at (1, 0.5) (ft1) {FT};
	\node[elec] at (2, 1.2) (fc1) {FC};
	\node[valve, unit ext=actuator, scale=1.5] at (3,0) (v1) {};
	\node[left] at (0,0) {Liquid};
	\node[below] at (2,-0.1) {System A};
	\draw (1,0) -- (ft1.south);
	\draw[->, dashed] (ft1.north) |- (fc1.west);
	\draw[->, dashed] (fc1.east) -| (v1.actuator);
	
	% Feedback system
	\draw[->] (0,-2.5) -- ++(4,0);
	\node[valve, unit ext=actuator, scale=1.5] at (1,-2.5) (v2) {};
	\node[elec] at (2, -1.2) (fc2) {FC};
	\node[elec] at (3, -2) (ft2) {FT};
	
	\node[left] at (0,-2.5) {Liquid};
	\node[below] at (2,-2.6) {System B};
	\draw (3,-2.5) -- (ft2.south);
	\draw[->, dashed] (ft2.north) |- (fc2.east);
	\draw[->, dashed] (fc2.west) -| (v2.actuator);
\end{tikzpicture}		
	\end{lstlisting}
	
	
	
	\item A blending system controlled by measuring the composition of the stream 1 and adjusting a control valve on stream two. Source: Figure 1.5 on pg. 5 in Seborg, D.E.; Edgar, T.F.; Mellichamp, D.A.; Doyle III, F.J. \textit{Process Dynamics and Control}, 4th ed.; John Wiley and Sons, 2016. 
	\begin{center}
		\begin{tikzpicture}[font=\footnotesize]	
			% Units
			\node[tank reactor, unit int=stirred liquid, scale=2] (r) {};
			\node[elec, above=of r] (ac) {AC};

			% Helpful points
			\coordinate[left=2cm of r.nw] (f1);
			\coordinate[right=2cm of r.ne] (f2);
			\coordinate[right=2cm of r.se] (p);
			
			% Streams and stream labels
			\draw[->] (f1) -- coordinate[pos=0.7] (s) (r.nw);
			\draw[->] (f2) -- node[valve, unit ext=actuator, pos=0.6] (v) {} (r.ne);
			\draw[->] (r.e) -- ++(3mm,0) |- (p);
			\node[left, align=right] at (f1) {$x_1$\\$w_1$};
			\node[right, align=left] at (f2) {$x_2=1$\\$w_2$};
			\node[right, align=left] at (p) {$x$\\$w$};
			
			% Control elements
			\node[elec, above=5mm of s] (at) {AT};
			\draw (s) -- (at.south);
			\draw[->, dashed] (at.north) |- (ac.west);
			\draw[->, dashed] (ac.east) -| (v.actuator);
			
			% Labels
			\node[align=center, anchor=south east] at (at.west) {Composition\\analyzer/transmitter};
			\node[align=left, anchor=south west] at (v.ne) {Control\\valve};
			\node[align=center, above] at (ac.north) {Composition\\controller};
		\end{tikzpicture}
	\end{center}
	\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]	
	% Units
	\node[tank reactor, unit int=stirred liquid, scale=2] (r) {};
	\node[elec, above=of r] (ac) {AC};
	
	% Helpful points
	\coordinate[left=2cm of r.nw] (f1);
	\coordinate[right=2cm of r.ne] (f2);
	\coordinate[right=2cm of r.se] (p);
	
	% Streams and stream labels
	\draw[->] (f1) -- coordinate[pos=0.7] (s) (r.nw);
	\draw[->] (f2) -- node[valve, unit ext=actuator, pos=0.6] (v) {} (r.ne);
	\draw[->] (r.e) -- ++(3mm,0) |- (p);
	\node[left, align=right] at (f1) {$x_1$\\$w_1$};
	\node[right, align=left] at (f2) {$x_2=1$\\$w_2$};
	\node[right, align=left] at (p) {$x$\\$w$};
	
	% Control elements
	\node[elec, above=5mm of s] (at) {AT};
	\draw (s) -- (at.south);
	\draw[->, dashed] (at.north) |- (ac.west);
	\draw[->, dashed] (ac.east) -| (v.actuator);
	
	% Labels
	\node[align=center, anchor=south east] at (at.west) {Composition\\analyzer/transmitter};
	\node[align=center, anchor=south west] at (v.ne) {Control\\valve};
	\node[align=center, above] at (ac.north) {Composition\\controller};
\end{tikzpicture}			
	\end{lstlisting}

\end{enumerate}

\newpage
\subsection{Capstone processes}
\begin{enumerate}[resume*]
	\item Hydrodealkylation of toluene to produce benzene. Source: Figure 1.3 in Turton, R.; Bailie, R.C.; Whiting, W.B.; Shaeiwitz, J.A. \textit{Analysis, Synthesis, and Design of Chemical Processes}, 3rd ed.; Pearson, 2009. 
\end{enumerate}


\begin{center}
	\makebox[\textwidth][c]{%
		\begin{tikzpicture}[font=\footnotesize]
			% Reduce stream label sizes
			\tikzstyle{sid} = [diamond, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\tiny]
			
			% Units	
			\node[vessel, rotate=90] (V101) {};
			\node[reciprocating pump, below right=0.75cm and 0.5cm of V101] (P101) {};
			\node[basic hx, unit ext=util, above right=0.25cm and 2.75cm of V101] (E101) {};
			\node[fired hx, below right=1cm and 0.6cm of E101, anchor=west] (H101) {};
			\node[tube reactor, unit int=packed, right=of H101, anchor=center, rotate=90] (R101) {};
			\node[turbine, right=1.5cm of R101.se] (C101) {};
			\node[basic hx, unit ext=util, below=of C101] (E102) {};
			\node[vessel, unit int=phase sep, right=0.5cm of E102] (V102) {};
			\node[vessel, unit int=phase sep, below=of V102.se, anchor=west] (V103) {};
			\node[basic hx, unit ext=util, right=2.75cm of C101] (E103) {};
			\node[column, unit int=tray, right=1cm of E103] (T101) {};
			\node[basic hx, unit ext=util, below left=0.5cm and 0.7cm of T101.s] (E106) {};
			\node[basic hx, unit ext=util, above right=0.5cm and 1cm of T101.n] (E104) {};
			\node[vessel, rotate=90, below right=1cm and 0.5cm of E104] (V104) {};
			\node[centrifugal pump, below=1cm of V104.nw] (P102) {};
			\node[basic hx, unit ext=util, below=0.5cm of P102] (E105) {};
			\node[product, right=1.3cm of E105] (bz) {};
			\node[product, above=4.5cm of bz] (fuel) {};
			\node[feed, above left=0.75cm and 1cm of V101.ne] (tol) {};
			\node[feed, below=3.5cm of tol] (h2) {};
			
			% Streams
			\draw[->] (tol.e) -| node[sid, near start]{1} node[valve, near end, rotate=90]{} (V101.ne);
			\draw[->] (V101.sw) |- (P101.w);
			\draw[->] (P101.n) |- (E101.w);
			\draw[<-] (V101.se) |- node[valve, pos=0.6]{} node[sid, pos=0.83]{2} (E101.w) node[pos=0.92](n1){} ;
			\draw[->] (E101.e) -- ++(0.2,0) |- node[sid, near start]{4} (H101.w);
			\draw[->] (H101.e) -| node[sid,near end]{6} ++(0.3,1) -| (R101.e);	
			\draw[->] (E102.e) -- (V102.w);
			\draw[->] (V102.s) |- node[valve, rotate=90, near start]{} (V103.w);
			\draw[->] (V103.s) |- node[valve, rotate=90, near start]{} ++(0.5,-0.6) |- node[sid, near start]{18} (E103.w);
			\draw[->] (E103.e) -- node[sid, pos=0.4]{10} (T101.w);			
			\draw[->] (T101.ssw) |- (E106.e);
			\draw[->] (E106.w) -- ++(-0.2,0) |- (T101.sw);		
			\draw[->] (T101.n) |- node[sid,near end]{13} (E104.w);
			\draw[->] (E104.e) -| (V104.ne);
			\draw[->] (V104.sw) |- (P102.e);
			\draw[->] (P102.w) -- ++(-0.75,0) |- node[sid,pos=0.15]{12} node[valve,rotate=90,pos=0.4]{} (T101.ne);
			\draw[->] (P102.w) -- node[sid]{14} ++(-0.75,0) |- node[valve,rotate=90,near start]{} (E105.w);
			\draw[->] (E105.e) -- (bz.w);
			\draw[->] (V103.n) |- node[sid, pos=0.2]{17} node[valve,rotate=90, pos=0.3]{} (fuel.w);
			\draw[->] (V102.n) |- node[sid, pos=0.2]{8} node[valve,rotate=90, pos=0.3]{} node[sid, pos=0.96]{16} (fuel.w);
			\draw[->] (V104.e) -- node[sid,pos=0.3]{19} node[valve,rotate=90,pos=0.6]{} (V104 |- fuel);
			\draw[->] (V102.n) |- (C101.e);
			\draw[->] (C101.w) -- node[valve, near start]{} node[sid,near end]{7} (R101.se) node[pos=0.5](n2){};	
			
			
			% Cross stream 9 over 5
			\path[spath/save=over1] (R101.w) |- (E102.w);
			\path[spath/save=under1] (n2 |- C101) |- (n1 |- V103)  -| (n1 |- E101);
			\tikzset{bridge={over1}{under1}}	
			\draw[->, spath/use=over1] node[sid, pos=0.5]{9};
			\draw[->, spath/use=under1] node[sid, pos=0.5]{5};
			
			
			% Cross stream 3 over 11
			\path[spath/save=over2] (h2.e) -- (n1 |- h2);
			\path[spath/save=under2] (T101.s) -- ++(0,-3.5) -| (V101.w);
			\tikzset{bridge={over2}{under2}}
			\draw[->, spath/use=over2] node[sid, pos=0.2]{3};
			\draw[->, spath/use=under2] node[sid, pos=0.4]{11};
			
			
			% Unit labels
			\node at (V101.center) {V-101};
			\node[below] at (P101.s) {P-101};
			\node[above] at (E101.north util) {E-101};
			\node[left] at (H101.sw) {H-101};
			\node[above=4mm of R101.e] {R-101};
			\node[above=1mm of C101.n] {C-101};
			\node[below] at (E102.south util) {E-102};
			\node[left, anchor=south east] at (V102.n) {V-102};
			\node[below left, anchor=north east] at (V103.sw) {V-103};
			\node[above] at (E103.north util) {E-103};
			\node[above left] at (T101.nw) {T-101};
			\node[above] at (E104.north util) {E-104};
			\node at (V104.center) {V-104};
			\node[above] at (P102.n) {P-102};
			\node[below] at (E105.south util) {E-105};
			\node[below] at (E106.south util) {E-106};
			
			% Stream labels
			\node[above] at (tol.n) {toluene};
			\node[above] at (h2.n) {hydrogen};
			\node[below] at (bz.s) {benzene};
			\node[above] at (fuel.n) {fuel gas};
			
			% Utility labels
			\tikzset{font=\scriptsize}
			\node[right] at (E105.north util) {cw};
			\node[below] at (E104.south util) {cw};
			\node[above] at (E102.north util) {cw};
			\node[right] at (E106.north util) {mps};
			\node[below] at (E101.south util) {hps};
			
			\draw[->] (H101.n) -- node[at end, right, align=center] {combustion\\products} ++(0,0.8);
			\draw[<-] (H101.sse) -- node[right, align=left] {fuel\\gas} ++(0,-0.8);
			\draw[<-] (H101.ssw) -- node[left] {air} ++(0,-0.8);	
		\end{tikzpicture}
	}
\end{center}

\begin{lstlisting}
\begin{tikzpicture}[font=\footnotesize]
	% Reduce stream label sizes
	\tikzstyle{sid} = [diamond, draw, solid, fill=white, text badly centered, inner sep=1pt, font=\tiny]
	
	% Units	
	\node[vessel, rotate=90] (V101) {};
	\node[reciprocating pump, below right=0.75cm and 0.5cm of V101] (P101) {};
	\node[basic hx, unit ext=util, above right=0.25cm and 2.75cm of V101] (E101) {};
	\node[fired hx, below right=1cm and 0.6cm of E101, anchor=west] (H101) {};
	\node[tube reactor, unit int=packed, right=of H101, anchor=center, rotate=90] (R101) {};
	\node[turbine, right=1.5cm of R101.se] (C101) {};
	\node[basic hx, unit ext=util, below=of C101] (E102) {};
	\node[vessel, unit int=phase sep, right=0.5cm of E102] (V102) {};
	\node[vessel, unit int=phase sep, below=of V102.se, anchor=west] (V103) {};
	\node[basic hx, unit ext=util, right=2.75cm of C101] (E103) {};
	\node[column, unit int=tray, right=1cm of E103] (T101) {};
	\node[basic hx, unit ext=util, below left=0.5cm and 0.7cm of T101.s] (E106) {};
	\node[basic hx, unit ext=util, above right=0.5cm and 1cm of T101.n] (E104) {};
	\node[vessel, rotate=90, below right=1cm and 0.5cm of E104] (V104) {};
	\node[centrifugal pump, below=1cm of V104.nw] (P102) {};
	\node[basic hx, unit ext=util, below=0.5cm of P102] (E105) {};
	\node[product, right=1.3cm of E105] (bz) {};
	\node[product, above=4.5cm of bz] (fuel) {};
	\node[feed, above left=0.75cm and 1cm of V101.ne] (tol) {};
	\node[feed, below=3.5cm of tol] (h2) {};
	
	% Streams
	\draw[->] (tol.e) -| node[sid, near start]{1} node[valve, near end, rotate=90]{} (V101.ne);
	\draw[->] (V101.sw) |- (P101.w);
	\draw[->] (P101.n) |- (E101.w);
	\draw[<-] (V101.se) |- node[valve, pos=0.6]{} node[sid, pos=0.83]{2} (E101.w) node[pos=0.92](n1){} ;
	\draw[->] (E101.e) -- ++(0.2,0) |- node[sid, near start]{4} (H101.w);
	\draw[->] (H101.e) -| node[sid,near end]{6} ++(0.3,1) -| (R101.e);	
	\draw[->] (E102.e) -- (V102.w);
	\draw[->] (V102.s) |- node[valve, rotate=90, near start]{} (V103.w);
	\draw[->] (V103.s) |- node[valve, rotate=90, near start]{} ++(0.5,-0.6) |- node[sid, near start]{18} (E103.w);
	\draw[->] (E103.e) -- node[sid, pos=0.4]{10} (T101.w);			
	\draw[->] (T101.ssw) |- (E106.e);
	\draw[->] (E106.w) -- ++(-0.2,0) |- (T101.sw);		
	\draw[->] (T101.n) |- node[sid,near end]{13} (E104.w);
	\draw[->] (E104.e) -| (V104.ne);
	\draw[->] (V104.sw) |- (P102.e);
	\draw[->] (P102.w) -- ++(-0.75,0) |- node[sid,pos=0.15]{12} node[valve,rotate=90,pos=0.4]{} (T101.ne);
	\draw[->] (P102.w) -- node[sid]{14} ++(-0.75,0) |- node[valve,rotate=90,near start]{} (E105.w);
	\draw[->] (E105.e) -- (bz.w);
	\draw[->] (V103.n) |- node[sid, pos=0.2]{17} node[valve,rotate=90, pos=0.3]{} (fuel.w);
	\draw[->] (V102.n) |- node[sid, pos=0.2]{8} node[valve,rotate=90, pos=0.3]{} node[sid, pos=0.96]{16} (fuel.w);
	\draw[->] (V104.e) -- node[sid,pos=0.3]{19} node[valve,rotate=90,pos=0.6]{} (V104 |- fuel);
	\draw[->] (V102.n) |- (C101.e);
	\draw[->] (C101.w) -- node[valve, near start]{} node[sid,near end]{7} (R101.se) node[pos=0.5](n2){};	
	
	% Cross stream 9 over 5
	\path[spath/save=over1] (R101.w) |- (E102.w);
	\path[spath/save=under1] (n2 |- C101) |- (n1 |- V103)  -| (n1 |- E101);
	\tikzset{bridge={over1}{under1}}	
	\draw[->, spath/use=over1] node[sid, pos=0.5]{9};
	\draw[->, spath/use=under1] node[sid, pos=0.5]{5};	
	
	% Cross stream 3 over 11
	\path[spath/save=over2] (h2.e) -- (n1 |- h2);
	\path[spath/save=under2] (T101.s) -- ++(0,-3.5) -| (V101.w);
	\tikzset{bridge={over2}{under2}}
	\draw[->, spath/use=over2] node[sid, pos=0.2]{3};
	\draw[->, spath/use=under2] node[sid, pos=0.4]{11};
	
	% Unit labels
	\node at (V101.center) {V-101};
	\node[below] at (P101.s) {P-101};
	\node[above] at (E101.north util) {E-101};
	\node[left] at (H101.sw) {H-101};
	\node[above=4mm of R101.e] {R-101};
	\node[above=1mm of C101.n] {C-101};
	\node[below] at (E102.south util) {E-102};
	\node[left, anchor=south east] at (V102.n) {V-102};
	\node[below left, anchor=north east] at (V103.sw) {V-103};
	\node[above] at (E103.north util) {E-103};
	\node[above left] at (T101.nw) {T-101};
	\node[above] at (E104.north util) {E-104};
	\node at (V104.center) {V-104};
	\node[above] at (P102.n) {P-102};
	\node[below] at (E105.south util) {E-105};
	\node[below] at (E106.south util) {E-106};
	
	% Stream labels
	\node[above] at (tol.n) {toluene};
	\node[above] at (h2.n) {hydrogen};
	\node[below] at (bz.s) {benzene};
	\node[above] at (fuel.n) {fuel gas};
	
	% Utility labels
	\tikzset{font=\scriptsize}
	\node[right] at (E105.north util) {cw};
	\node[below] at (E104.south util) {cw};
	\node[above] at (E102.north util) {cw};
	\node[right] at (E106.north util) {mps};
	\node[below] at (E101.south util) {hps};
	
	\draw[->] (H101.n) -- node[at end, right, align=center] {combustion\\products} ++(0,0.8);
	\draw[<-] (H101.sse) -- node[right, align=left] {fuel\\gas} ++(0,-0.8);
	\draw[<-] (H101.ssw) -- node[left] {air} ++(0,-0.8);	
\end{tikzpicture}	
\end{lstlisting}


\newgeometry{margin=0.5in}
\pagenumbering{gobble}

\section{Quick reference}
\begin{center}
	\begin{tikzpicture}[font=\footnotesize\ttfamily]
		\matrix[
		column sep=0.5cm,
		row sep=0.5cm,
		column1/.style={nodes={anchor=center}},
		column2/.style={nodes={anchor=center}},
		column2/.style={nodes={anchor=center}}]{
			% ========================== 
			% Header
			% ==========================
			\node (s) {\normalsize\textbf{shape name}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{default}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{anchors}};
			\draw (s.south west) -- (s.south east);
			& 
			\node (s) {\normalsize\textbf{unit int}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{unit ext}};
			\draw (s.south west) -- (s.south east);
			\\
			
			% ========================== 
			% Tank reactor
			% ========================== 
			\node {tank reactor};
			&
			\node[tank reactor] {}; 
			&
			\node[tank reactor] (f) {};
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left,
				nne/above right, 
				nnw/above left, 
				sse/below right, 
				ssw/below left,
				ese/right, 
				wsw/left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			& 
			\node[tank reactor, unit int=stirred] at (0,-3mm) (f) {};
			\node[left] at (f.west) {stirred};
			\foreach \anchor/\pos in {west motor/left, north motor/above}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\color{red}\anchor};
			}
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.east motor) {};
			\node[rotate=-90, above] at (f.east) {\color{red}east motor};
			
			\node[tank reactor, unit int=liquid, below=3mm of f] (g) {};
			\node[left] at (g.west) {liquid}; 
			\node[tank reactor, unit int=stirred liquid, below=5mm of g] (h) 
			{};
			\node[left, align=right] at (h.west) {stirred\\liquid};
			&
			\node[tank reactor, unit ext=lower jacket] (f) {}; 
			\node[align=center, below] at (f.s) {lower\\[-3pt]jacket};
			\foreach \anchor/\pos in {
				west jacket/left,
				east jacket/right}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};}
			
			\node[align=left, anchor=west] at (f.east jacket) {\color{red}east\\[-3pt]\color{red}jacket};
			\node[align=right, anchor=east] at (f.west jacket) {\color{red}west\\[-3pt]\color{red}jacket};
			
			
			\node[tank reactor, unit ext=side jacket, below=1.3cm of f] (g) {};
			\node[align=center, below] at (g.south) {side\\[-3pt]jacket};
			\foreach \anchor in {
				west jacket,
				east jacket,
				north west jacket,
				north east jacket,
				south west jacket,
				south east jacket}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};}
			
			\node[align=left, anchor=west] at (g.east jacket) {\color{red}east jacket};
			\node[align=left, anchor=south west] at (g.north east jacket) {\color{red}north east\\[-3pt]\color{red}jacket};
			\node[align=left, anchor=north west] at (g.south east jacket) {\color{red}south east\\[-3pt]\color{red}jacket};
			\node[align=right, anchor=east] at (g.west jacket) {\color{red}west jacket};
			\node[align=right, anchor=south east] at (g.north west jacket) {\color{red}north west\\[-3pt]\color{red}jacket};
			\node[align=right, anchor=north east] at (g.south west jacket) {\color{red}south west\\[-3pt]\color{red}jacket};
			\\ \hline
			
			% ========================== 
			% Tube reactor
			% ========================== 
			\node {tube reactor};
			&
			\node[tube reactor] {};
			& 
			\node[tube reactor, scale=1.8] (f) {};
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			& 
			\node[tube reactor, unit int=packed] (g) {};
			\node[left] at (g.west) {packed};
			\node[tube reactor, unit int=fixed, below=0.5cm of g] (h) {};
			\node[left] at (h.west) {fixed};
			\node[tube reactor, unit int=tubular, below=0.5cm of h] (j) {}; 
			\node[left] at (j.west) {tubular};
			&
			\node[tube reactor, unit ext=cis shell] (f) {};
			\foreach \anchor/\pos in {west shell/above left, east shell/above right}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\color{red}\anchor};}
			\node[left] at (f.west) {cis shell};
			
			\node[tube reactor, unit ext=trans shell, below=7mm of f] (g) {};
			\foreach \anchor/\pos in {north shell/above, south shell/below}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};
				\node[\pos] at (g.\anchor) {\color{red}\anchor};}
			\node[left] at (g.west) {trans shell};
			
			\\ \hline
			
			% ========================== 
			% Basic hx
			% ========================== 
			\node {basic hx};
			& 
			\node [basic hx] {};
			&
			\node[basic hx] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			\node[basic hx, unit ext=util, draw=white] (f) {};
			\node[basic hx, unit int=U tube, below=of f] (g) {};
			\node[left] at (g.west) {U tube};
			&
			\node[basic hx, unit ext=util] (f) {};
			\node[left] at (f.west) {util};
			\foreach \anchor/\pos in {
				north util/right,
				south util/left}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\color{red}\footnotesize\texttt{\anchor}};}
			
			\node[basic hx, unit int=U tube, unit ext=util, below=of f] (g) 
			{};
			\node[left] at (g.west) {util};
			\foreach \anchor/\pos in {
				west util/left,
				east util/right}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};
				\node[\pos] at (g.\anchor) {\color{red}\anchor};
			}
			
			\\ \hline
			
			% ========================== 
			% Shell and tube hx
			% ==========================
			\node {shell and tube hx};
			&
			\node[shell and tube hx] {};
			&
			\node[shell and tube hx, scale=1.5] (f) {};			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			\node[shell and tube hx, unit int=two pass] (f) {};
			\node[left] at (f.west) {two pass};
			\node[shell and tube hx, unit int=four pass, below=0.5cm of f] (g) 
			{};
			\node[left] at (g.west) {four pass};
			&
			\node[shell and tube hx, unit ext=cis shell] (f) {};
			\foreach \anchor/\pos in {west shell/above left, east shell/above right}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\color{red}\anchor};}
			\node[left] at (f.west) {cis shell};
			
			\node[shell and tube hx, unit ext=trans shell, below=7mm of f] (g) {};
			\foreach \anchor/\pos in {north shell/above, south shell/below}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (g.\anchor) {};
				\node[\pos] at (g.\anchor) {\color{red}\anchor};}
			\node[left] at (g.west) {trans shell};
			
			\\ \hline
			
			% ========================== 
			% Plate hx
			% ==========================
			\node {plate hx};
			&
			\node[plate hx] {};
			&
			\node[plate hx, scale=1.8] (f) {};	
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			&
			% no unit ext
			\\ \hline
			
			% ========================== 
			% Fired hx
			% ==========================
			\node {fired hx};
			&
			\node[fired hx] {};
			&
			\node[fired hx] (f) {};
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/right, 
				sw/left,
				nne/right, 
				nnw/left, 
				sse/below right, 
				ssw/below left,
				ese/below right, 
				wsw/below left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			\node[fired hx, unit int=double] at (0,3mm) (f) {};
			\node[left=0.7cm of f.west] {double};
			\foreach \anchor/\pos in {
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\color{gray}\footnotesize\texttt{\anchor}};}
			
			\node[fired hx, unit int=triple, below=3mm of f] (g) {};
			\node[left=0.7cm of g.west] {triple};
			\foreach \anchor/\pos in {
				nne/right, 
				nnw/left, 
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue, inner sep=0pt, minimum size=2pt] at (g.\anchor) {};
				\node[\pos] at (g.\anchor) {\color{gray}\footnotesize\texttt{\anchor}};}
			&
			% no unit ext
			\\
		};
	\end{tikzpicture}
\end{center}



\begin{center}
	\begin{tikzpicture}[font=\footnotesize\ttfamily]
		\matrix[
		column sep=0.5cm,
		row sep=0.5cm,
		column1/.style={nodes={anchor=center}},
		column2/.style={nodes={anchor=center}},
		column2/.style={nodes={anchor=center}}]{
			% ========================== 
			% Header
			% ==========================
			\node (s) {\normalsize\textbf{shape name}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{default}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{anchors}};
			\draw (s.south west) -- (s.south east);
			& 
			\node (s) {\normalsize\textbf{unit int}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{unit ext}};
			\draw (s.south west) -- (s.south east);
			\\ 
			
			% ========================== 
			% Column
			% ==========================
			\node{column};
			&
			\node [column] {};
			&
			\node[column] (f) {};			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left,
				nne/above right, 
				nnw/above left, 
				sse/below right, 
				ssw/below left,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)}; 
			&
			\node[column, unit int=tray] at (-4mm,0mm) (c1) {};
			\node[left, align=right] at (c1.west) {tray \textit{or}\\dashed tray};
			\node[column, unit int=weir tray, right=0.25cm of c1] (c2) {};
			\node[right] at (c2.east) {weir tray};
			\node[column, unit int=double packed, below=0.5cm of c1] (c3) {};
			\node[left] at (c3.west) {double packed};			
			\node[column, unit int=packed, right=0.25cm of c3] (c4) {};
			\node[right] at (c4.east) {packed};	
			\node[column, unit int=numbered tray, feed tray=00, top tray=99, 
			bottom tray=22, below=0.5cm of c3] (c5) {};
			\node[left, align=right] at (c5.west) {numbered tray,\\top tray=99,\\feed tray=00,\\bottom tray=22};
			\foreach \anchor/\pos in {
				top tray/right,
				feed tray/right,
				bottom tray/right}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (c5.\anchor) {};
				\node[right=3mm of c5.\anchor] {\color{red}\anchor};}
			
			&
			\node[column, unit ext=simple hx] (f) {};
			\node[left] at (f.west) {simple hx};
			\foreach \anchor/\pos in {
				distillate/below,
				bottoms/below}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos, rotate=90] at (f.\anchor) {\color{red}\anchor};}
			\\ \hline
			
			% ========================== 
			% Vessel
			% ==========================
			\node {vessel};
			&
			\node[vessel] {};
			&
			\node[vessel, scale=1.5] (f) {};
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left,
				nne/above right, 
				nnw/above left, 
				sse/below right, 
				ssw/below left,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}		
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			\node[vessel, unit int=phase sep] (f) {};
			\node[left] at (f.west) {phase sep};
			\node[vessel, unit int=liquid, below=5mm of f] (g) {};
			\node[left] at (g.west) {liquid};
			\node[vessel, unit int=liquid rotated, below=5mm of g] (h) {};
			\node[left, align=right] at (h.west) {liquid\\rotated};
			&
			\node[vessel, unit ext=simple hx] (f) {};
			\node[left] at (f.west) {simple hx};
			\foreach \anchor/\pos in {
				north hx/right,
				south hx/right}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\color{red}\anchor};}
			\\ \hline
			
			% ========================== 
			% Centrifugal pump
			% ==========================
			\node[align=center] {centrifugal\\pump};
			&
			\node[centrifugal pump] {};
			&
			\node[centrifugal pump, scale=1.5] (f) {};
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			\node[centrifugal pump, unit int=inlet west] (p1) {};
			\node[left] at (p1.west) {inlet west};
			\node[centrifugal pump, unit int=inlet east, below=0.25cm  of p1] 
			(p2) {};
			\node[left] at (p2.west) {inlet east};
			\node[centrifugal pump, unit int=inlet north, below=0.25cm of p2] 
			(p3) {};
			\node[left] at (p3.west) {inlet north};
			\node[centrifugal pump, unit int=inlet south, below=0.25cm of p3] 
			(p4) {};
			\node[left] at (p4.west) {inlet south};
			&
			\node[centrifugal pump, unit ext=outlet north west] (p1) {};
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p1.outlet) {};
			\node[left] at (p1.outlet) {\color{red}outlet};
			\node[align=right, anchor=east] at (p1.west) {outlet\\[-5pt]north west};
			
			\node[centrifugal pump, unit ext=outlet north east, below=0.25cm of p1] (p2) {};
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p2.outlet) {};
			\node[below, rotate=90] at (p2.outlet) {\color{red}outlet};
			\node[align=right, anchor=east] at (p2.west) {outlet\\[-5pt]north east};
			
			\node[centrifugal pump, unit ext=outlet west, below=0.25cm of p2] (p3) {};
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p3.outlet) {};
			\node[left] at (p3.outlet) {\color{red}outlet};
			\node[left] at (p3.west) {outlet west};
			
			\node[centrifugal pump, unit ext=outlet east, below=0.25cm of p3] (p4) {};
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (p4.outlet) {};
			\node[below, rotate=90] at (p4.outlet) {\color{red}outlet};
			\node[left] at (p4.west) {outlet east};
			\\ \hline
			
			% ========================== 
			% Reciprocating pump
			% ========================== 
			\node[align=center]{reciprocating\\pump};
			&
			\node[reciprocating pump] {};
			&
			\node[reciprocating pump] (f) {};			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/left, 
				se/right, 
				sw/left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			&
			% no unit ext
			\\ 
		};
	\end{tikzpicture}
\end{center}			


\begin{center}
	\begin{tikzpicture}[font=\footnotesize\ttfamily]
		\matrix[
		column sep=0.5cm,
		row sep=0.5cm,
		column1/.style={nodes={anchor=center}},
		column2/.style={nodes={anchor=center}},
		column2/.style={nodes={anchor=center}}]{
			% ========================== 
			% Header
			% ==========================
			\node (s) {\normalsize\textbf{shape name}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{default}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{anchors}};
			\draw (s.south west) -- (s.south east);
			& 
			\node (s) {\normalsize\textbf{unit int}};
			\draw (s.south west) -- (s.south east);
			&
			\node (s) {\normalsize\textbf{unit ext}};
			\draw (s.south west) -- (s.south east);
			\\ 	
			
			% ========================== 
			% Compressor
			% ========================== 
			\node{compressor};
			&
			\node[compressor] {};
			&
			\node[compressor, scale=2.5] (f) {};		
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/left, 
				se/below right, 
				sw/left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}		
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			&
			% no unit ext
			\\ \hline
			
			% ========================== 
			% Turbine
			% ==========================
			\node{turbine};
			&
			\node[turbine] {};
			&
			\node[turbine, scale=2.5] (f) {};			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}			
			\foreach \anchor/\pos in {
				ne/right, 
				nw/above left, 
				se/right, 
				sw/below left,
				nne/above, 
				nnw/above, 
				sse/below, 
				ssw/below,
				ese/right, 
				wsw/left,
				wnw/left,
				ene/right}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			&
			% no unit ext
			\\ \hline
			
			% ========================== 
			% Feed
			% ==========================
			\node{feed};
			&
			\node[feed] {};
			&
			\node[feed, scale=2] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
			\node[right] at (f.stream) {\footnotesize\texttt{\textbf{e}} \textit{or} \redtt{stream}};
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			&
			% no unit ext
			\\ \hline
			
			
			% ========================== 
			% Product
			% ==========================
			\node{product};
			&
			\node[product] {};
			& 
			\node[product, scale=2] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.stream) {};
			\node[left] at (f.stream) {\footnotesize \redtt{stream} \textit{or} \boldtt{w}};
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			& 
			% no unit int
			&
			% no unit ext
			\\ \hline
			
			% ========================== 
			% Valve
			% ==========================
			\node{valve};
			&
			\node[valve] {};
			&
			\node[valve, scale=2] (f) {};
			
			\foreach \anchor/\pos in {
				n/above, 
				e/right, 
				w/left, 
				s/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				ne/above right, 
				nw/above left, 
				se/below right, 
				sw/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			&
			\node[valve, unit ext=actuator, scale=1.5] (f) {};
			\node[left] at (f.west) {actuator};
			\foreach \anchor/\pos in {
				actuator/above}
			{\node[circle, draw, red, fill=red!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\color{red}\anchor};}
			\\ \hline
			
			
			% ========================== 
			% Stream numbers
			% ==========================
			\node{\verb|\node[sid] {99};|};
			&
			\node[sid] (f) {99};
			&
			\node[sid, scale=2] (f) {99};		
			\foreach \anchor/\pos in {
				north/above, 
				east/right, 
				west/left, 
				south/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				north east/above right, 
				north west/above left, 
				south east/below right, 
				south west/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			&
			% no unit ext
			\\ \hline
			
			% ========================== 
			% Electrical components
			% ==========================
			\node{\verb|\node[elec] {XX};|};
			&
			\node[elec] {XX};
			&
			\node[elec, scale=2] (f) {XX};		
			\foreach \anchor/\pos in {
				north/above, 
				east/right, 
				west/left, 
				south/below}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\textbf{\anchor}}};}
			
			\foreach \anchor/\pos in {
				north east/above right, 
				north west/above left, 
				south east/below right, 
				south west/below left}
			{\node[circle, draw, blue, fill=blue!25, inner sep=0pt, minimum size=3pt] at (f.\anchor) {};
				\node[\pos] at (f.\anchor) {\footnotesize\texttt{\anchor}};}
			
			\draw[shift=(f.center),red] plot[mark=x] coordinates{(0,0)};
			&
			% no unit int
			& 
			% no unit ext
			\\
		};
	\end{tikzpicture}
\end{center}

%\textbf{Drawing streams}
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\draw[->] (0,0.5) -- node[sid] {99} (2,0.5);
	\draw[->] (0,0) -- node[valve] {} (2,0);
	\draw[dashed] (0,-0.5) -- node[elec] {XX} (2,-0.5);
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\draw[->] (0,0.5) -- node[sid] {99} (2,0.5);
				\draw[->] (0,0) -- node[valve] {} (2,0);
				\draw[dashed] (0,-0.5) -- node[elec] {XX} (2,-0.5);
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}

\vspace*{-1em}
\begin{center}
	\begin{minipage}{5in}
		\begin{lstlisting}
\begin{tikzpicture}
	\tikzset{bridge radius=8pt} % default 0pt=straight line
	\path[->, spath/save=over] (0,0) -- (2,0);
	\path[->, spath/save=under] (1,-1) -- (1,1);
	\tikzset{bridge={over}{under}}
	\draw[->, spath/use=over] node[sid, pos=0.1]{1};
	\draw[->, spath/use=under] node[sid, pos=0.2]{2};
\end{tikzpicture}
		\end{lstlisting}
	\end{minipage}\hspace{0.25in}
	\begin{minipage}{1in}
		\begin{center}
			\begin{tikzpicture}
				\tikzset{bridge radius=8pt} % default 0pt=straight line
				\path[->, spath/save=over] (0,0) -- (2,0);
				\path[->, spath/save=under] (1,-1) -- (1,1);
				\tikzset{bridge={over}{under}}
				\draw[->, spath/use=over] node[sid, pos=0.1]{1};
				\draw[->, spath/use=under] node[sid, pos=0.2]{2};
			\end{tikzpicture}
		\end{center}
	\end{minipage}
\end{center}


\end{document}