-
Notifications
You must be signed in to change notification settings - Fork 2
/
bbl_to_tex.nb
5696 lines (5625 loc) · 283 KB
/
bbl_to_tex.nb
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
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.3' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 284095, 5688]
NotebookOptionsPosition[ 279315, 5600]
NotebookOutlinePosition[ 279714, 5616]
CellTagsIndexPosition[ 279671, 5613]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[CellGroupData[{
Cell["Analysis", "Title",
CellChangeTimes->{{3.839919424688694*^9,
3.839919426482007*^9}},ExpressionUUID->"675e6912-781d-4012-a726-\
6865cfd55596"],
Cell[BoxData[
RowBox[{
RowBox[{"bblpath", "=",
RowBox[{
RowBox[{"NotebookDirectory", "[", "]"}], "<>", "\"\<main.bbl\>\""}]}],
";"}]], "Input",
CellChangeTimes->{{3.8399053149193783`*^9, 3.839905335651888*^9}},
CellLabel->
"In[900]:=",ExpressionUUID->"09b2b1fd-a0df-4b2b-905f-e287ae1b3370"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"string", "=",
RowBox[{"Import", "[", "bblpath", "]"}],
RowBox[{"(*",
RowBox[{"//", "FullForm"}], "*)"}]}]], "Input",
CellChangeTimes->{{3.8399053396146774`*^9, 3.839905376188969*^9}, {
3.8399054551967335`*^9, 3.8399054705359125`*^9}, {3.8399206018977437`*^9,
3.8399206103271184`*^9}, 3.8399207506027946`*^9, {3.839921447101616*^9,
3.839921540578436*^9}},
CellLabel->
"In[903]:=",ExpressionUUID->"daea0135-2fe6-42aa-a783-edb966fb6406"],
Cell[BoxData["\<\"%apsrev4-2.bst 2019-01-14 (MD) hand-edited version of \
apsrev4-1.bst\\n%Control: key (0)\\n%Control: author (72) initials \
jnrlst\\n%Control: editor formatted (1) identically to author\\n%Control: \
production of article title (-1) disabled\\n%Control: page (0) \
single\\n%Control: year (1) truncated\\n%Control: production of eprint (0) \
enabled\\n\\\\begin{thebibliography}{6}%\\n\\\\makeatletter\\n\\\\\
providecommand \\\\@ifxundefined [1]{%\\n \\\\@ifx{#1\\\\undefined}\\n}%\\n\\\
\\providecommand \\\\@ifnum [1]{%\\n \\\\ifnum #1\\\\expandafter \
\\\\@firstoftwo\\n \\\\else \\\\expandafter \\\\@secondoftwo\\n \
\\\\fi\\n}%\\n\\\\providecommand \\\\@ifx [1]{%\\n \\\\ifx #1\\\\expandafter \
\\\\@firstoftwo\\n \\\\else \\\\expandafter \\\\@secondoftwo\\n \
\\\\fi\\n}%\\n\\\\providecommand \\\\natexlab [1]{#1}%\\n\\\\providecommand \
\\\\enquote [1]{``#1''}%\\n\\\\providecommand \\\\bibnamefont [1]{#1}%\\n\\\
\\providecommand \\\\bibfnamefont [1]{#1}%\\n\\\\providecommand \
\\\\citenamefont [1]{#1}%\\n\\\\providecommand \\\\href@noop \
[0]{\\\\@secondoftwo}%\\n\\\\providecommand \\\\href [0]{\\\\begingroup \
\\\\@sanitize@url \\\\@href}%\\n\\\\providecommand \
\\\\@href[1]{\\\\@@startlink{#1}\\\\@@href}%\\n\\\\providecommand \
\\\\@@href[1]{\\\\endgroup#1\\\\@@endlink}%\\n\\\\providecommand \
\\\\@sanitize@url [0]{\\\\catcode `\\\\\\\\12\\\\catcode \
`\\\\$12\\\\catcode\\n `\\\\&12\\\\catcode `\\\\#12\\\\catcode \
`\\\\^12\\\\catcode `\\\\_12\\\\catcode \
`\\\\%12\\\\relax}%\\n\\\\providecommand \
\\\\@@startlink[1]{}%\\n\\\\providecommand \
\\\\@@endlink[0]{}%\\n\\\\providecommand \\\\url \
[0]{\\\\begingroup\\\\@sanitize@url \\\\@url }%\\n\\\\providecommand \\\\@url \
[1]{\\\\endgroup\\\\@href {#1}{\\\\urlprefix }}%\\n\\\\providecommand \
\\\\urlprefix [0]{URL }%\\n\\\\providecommand \\\\Eprint [0]{\\\\href \
}%\\n\\\\providecommand \\\\doibase \
[0]{https://doi.org/}%\\n\\\\providecommand \\\\selectlanguage \
[0]{\\\\@gobble}%\\n\\\\providecommand \\\\bibinfo [0]{\\\\@secondoftwo}%\\n\
\\\\providecommand \\\\bibfield [0]{\\\\@secondoftwo}%\\n\\\\providecommand \
\\\\translation [1]{[#1]}%\\n\\\\providecommand \\\\BibitemOpen \
[0]{}%\\n\\\\providecommand \\\\bibitemStop [0]{}%\\n\\\\providecommand \
\\\\bibitemNoStop [0]{.\\\\EOS\\\\space}%\\n\\\\providecommand \\\\EOS [0]{\\\
\\spacefactor3000\\\\relax}%\\n\\\\providecommand \\\\BibitemShut \
[1]{\\\\csname \
bibitem#1\\\\endcsname}%\\n\\\\let\\\\auto@bib@innerbib\\\\@empty\\n%</\
preamble>\\n\\\\bibitem [{\\\\citenamefont {Po}\\\\ \\\\emph {et~al.}(2018)\\\
\\citenamefont {Po},\\n \\\\citenamefont {Zou}, \\\\citenamefont \
{Vishwanath},\\\\ and\\\\ \\\\citenamefont\\n {Senthil}}]{Po2018PRX}%\\n \\\
\\BibitemOpen\\n \\\\bibfield {author} {\\\\bibinfo {author} \
{\\\\bibfnamefont {H.~C.}\\\\ \\\\bibnamefont\\n {Po}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {L.}~\\\\bibnamefont {Zou}}, \\\\bibinfo\\n {author} \
{\\\\bibfnamefont {A.}~\\\\bibnamefont {Vishwanath}},\\\\ and\\\\ \\\\bibinfo\
\\n {author} {\\\\bibfnamefont {T.}~\\\\bibnamefont {Senthil}},\\\\ \
}\\\\href\\n {https://doi.org/10.1103/physrevx.8.031089} {\\\\bibfield \
{journal} {\\\\bibinfo\\n {journal} {Phys. Rev. X}\\\\ }\\\\textbf \
{\\\\bibinfo {volume} {8}},\\\\ \\\\bibinfo {pages}\\n {031089} (\\\\bibinfo \
{year} {2018})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem [{\\\\citenamefont \
{Codecido}\\\\ \\\\emph {et~al.}(2019)\\\\citenamefont\\n {Codecido}, \
\\\\citenamefont {Wang}, \\\\citenamefont {Koester}, \\\\citenamefont\\n \
{Che}, \\\\citenamefont {Tian}, \\\\citenamefont {Lv}, \\\\citenamefont \
{Tran},\\n \\\\citenamefont {Watanabe}, \\\\citenamefont {Taniguchi}, \
\\\\citenamefont {Zhang},\\n \\\\citenamefont {Bockrath},\\\\ and\\\\ \
\\\\citenamefont {Lau}}]{Codecido2019SA}%\\n \\\\BibitemOpen\\n \
\\\\bibfield {author} {\\\\bibinfo {author} {\\\\bibfnamefont \
{E.}~\\\\bibnamefont\\n {Codecido}}, \\\\bibinfo {author} {\\\\bibfnamefont \
{Q.}~\\\\bibnamefont {Wang}},\\n \\\\bibinfo {author} {\\\\bibfnamefont \
{R.}~\\\\bibnamefont {Koester}}, \\\\bibinfo\\n {author} {\\\\bibfnamefont \
{S.}~\\\\bibnamefont {Che}}, \\\\bibinfo {author}\\n {\\\\bibfnamefont {H.}~\
\\\\bibnamefont {Tian}}, \\\\bibinfo {author} {\\\\bibfnamefont\\n \
{R.}~\\\\bibnamefont {Lv}}, \\\\bibinfo {author} {\\\\bibfnamefont \
{S.}~\\\\bibnamefont\\n {Tran}}, \\\\bibinfo {author} {\\\\bibfnamefont \
{K.}~\\\\bibnamefont {Watanabe}},\\n \\\\bibinfo {author} {\\\\bibfnamefont \
{T.}~\\\\bibnamefont {Taniguchi}}, \\\\bibinfo\\n {author} {\\\\bibfnamefont \
{F.}~\\\\bibnamefont {Zhang}}, \\\\bibinfo {author}\\n {\\\\bibfnamefont \
{M.}~\\\\bibnamefont {Bockrath}},\\\\ and\\\\ \\\\bibinfo {author}\\n \
{\\\\bibfnamefont {C.~N.}\\\\ \\\\bibnamefont {Lau}},\\\\ }\\\\href\\n \
{https://doi.org/10.1126/sciadv.aaw9770} {\\\\bibfield {journal} \
{\\\\bibinfo\\n {journal} {Sci. Adv.}\\\\ }\\\\textbf {\\\\bibinfo {volume} \
{5}},\\\\ \\\\bibinfo {pages}\\n {eaaw9770} (\\\\bibinfo {year} \
{2019})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem [{\\\\citenamefont \
{Zhang}\\\\ \\\\emph {et~al.}(2017)\\\\citenamefont {Zhang},\\n \
\\\\citenamefont {Chuu}, \\\\citenamefont {Ren}, \\\\citenamefont {Li}, \
\\\\citenamefont\\n {Li}, \\\\citenamefont {Jin}, \\\\citenamefont {Chou},\\\
\\ and\\\\ \\\\citenamefont\\n {Shih}}]{Zhang2017SA}%\\n \\\\BibitemOpen\\n \
\\\\bibfield {author} {\\\\bibinfo {author} {\\\\bibfnamefont \
{C.}~\\\\bibnamefont\\n {Zhang}}, \\\\bibinfo {author} {\\\\bibfnamefont \
{C.-P.}\\\\ \\\\bibnamefont {Chuu}},\\n \\\\bibinfo {author} \
{\\\\bibfnamefont {X.}~\\\\bibnamefont {Ren}}, \\\\bibinfo {author}\\n \
{\\\\bibfnamefont {M.-Y.}\\\\ \\\\bibnamefont {Li}}, \\\\bibinfo {author} {\\\
\\bibfnamefont\\n {L.-J.}\\\\ \\\\bibnamefont {Li}}, \\\\bibinfo {author} \
{\\\\bibfnamefont\\n {C.}~\\\\bibnamefont {Jin}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {M.-Y.}\\\\\\n \\\\bibnamefont {Chou}},\\\\ and\\\\ \
\\\\bibinfo {author} {\\\\bibfnamefont {C.-K.}\\\\\\n \\\\bibnamefont \
{Shih}},\\\\ }\\\\href {https://doi.org/10.1126/sciadv.1601459}\\n \
{\\\\bibfield {journal} {\\\\bibinfo {journal} {Sci. Adv.}\\\\ }\\\\textbf \
{\\\\bibinfo\\n {volume} {3}},\\\\ \\\\bibinfo {pages} {e1601459} \
(\\\\bibinfo {year}\\n {2017})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem \
[{\\\\citenamefont {Liu}\\\\ \\\\emph {et~al.}(2020)\\\\citenamefont \
{Liu},\\n \\\\citenamefont {Zong}, \\\\citenamefont {Wang}, \\\\citenamefont \
{Wen},\\n \\\\citenamefont {Wu}, \\\\citenamefont {Xia},\\\\ and\\\\ \
\\\\citenamefont\\n {Wei}}]{Liu2020JPDAP}%\\n \\\\BibitemOpen\\n \
\\\\bibfield {author} {\\\\bibinfo {author} {\\\\bibfnamefont \
{H.}~\\\\bibnamefont\\n {Liu}}, \\\\bibinfo {author} {\\\\bibfnamefont {Y.}~\
\\\\bibnamefont {Zong}}, \\\\bibinfo\\n {author} {\\\\bibfnamefont \
{P.}~\\\\bibnamefont {Wang}}, \\\\bibinfo {author}\\n {\\\\bibfnamefont \
{H.}~\\\\bibnamefont {Wen}}, \\\\bibinfo {author} {\\\\bibfnamefont\\n {H.}~\
\\\\bibnamefont {Wu}}, \\\\bibinfo {author} {\\\\bibfnamefont \
{J.}~\\\\bibnamefont\\n {Xia}},\\\\ and\\\\ \\\\bibinfo {author} \
{\\\\bibfnamefont {Z.}~\\\\bibnamefont {Wei}},\\\\\\n }\\\\href \
{https://doi.org/10.1088/1361-6463/abbf75} {\\\\bibfield {journal}\\n \
{\\\\bibinfo {journal} {J. Phys. D: Appl. Phys.}\\\\ }\\\\textbf \
{\\\\bibinfo {volume}\\n {54}},\\\\ \\\\bibinfo {pages} {053001} \
(\\\\bibinfo {year} {2020})}\\\\BibitemShut\\n {NoStop}%\\n\\\\bibitem \
[{\\\\citenamefont {Mucha-Kruczy{\\\\'{n}}ski}\\\\ \\\\emph\\n \
{et~al.}(2013)\\\\citenamefont {Mucha-Kruczy{\\\\'{n}}ski}, \
\\\\citenamefont\\n {Wallbank},\\\\ and\\\\ \\\\citenamefont\\n \
{Fal{\\\\textquotesingle}ko}}]{MuchaKruczynski2013PRB}%\\n \
\\\\BibitemOpen\\n \\\\bibfield {author} {\\\\bibinfo {author} \
{\\\\bibfnamefont {M.}~\\\\bibnamefont\\n {Mucha-Kruczy{\\\\'{n}}ski}}, \
\\\\bibinfo {author} {\\\\bibfnamefont {J.~R.}\\\\\\n \\\\bibnamefont \
{Wallbank}},\\\\ and\\\\ \\\\bibinfo {author} {\\\\bibfnamefont \
{V.~I.}\\\\\\n \\\\bibnamefont {Fal{\\\\textquotesingle}ko}},\\\\ \
}\\\\href\\n {https://doi.org/10.1103/physrevb.88.205418} {\\\\bibfield \
{journal} {\\\\bibinfo\\n {journal} {Phys. Rev. B}\\\\ }\\\\textbf \
{\\\\bibinfo {volume} {88}},\\\\ \\\\bibinfo\\n {pages} {205418} \
(\\\\bibinfo {year} {2013})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem \
[{\\\\citenamefont {Gruji{\\\\'c}}\\\\ \\\\emph \
{et~al.}(2011)\\\\citenamefont\\n {Gruji{\\\\'c}}, \\\\citenamefont \
{Zarenia}, \\\\citenamefont {Chaves}, \\\\citenamefont\\n {Tadi{\\\\'c}}, \\\
\\citenamefont {Farias},\\\\ and\\\\ \\\\citenamefont\\n \
{Peeters}}]{Grujic2011PRB}%\\n \\\\BibitemOpen\\n \\\\bibfield {author} \
{\\\\bibinfo {author} {\\\\bibfnamefont {M.}~\\\\bibnamefont\\n \
{Gruji{\\\\'c}}}, \\\\bibinfo {author} {\\\\bibfnamefont {M.}~\\\\bibnamefont \
{Zarenia}},\\n \\\\bibinfo {author} {\\\\bibfnamefont {A.}~\\\\bibnamefont \
{Chaves}}, \\\\bibinfo\\n {author} {\\\\bibfnamefont {M.}~\\\\bibnamefont \
{Tadi{\\\\'c}}}, \\\\bibinfo {author}\\n {\\\\bibfnamefont {G.~A.}\\\\ \
\\\\bibnamefont {Farias}},\\\\ and\\\\ \\\\bibinfo {author}\\n \
{\\\\bibfnamefont {F.~M.}\\\\ \\\\bibnamefont {Peeters}},\\\\ }\\\\href\\n \
{https://doi.org/10.1103/PhysRevB.84.205441} {\\\\bibfield {journal} \
{\\\\bibinfo\\n {journal} {Phys. Rev. B}\\\\ }\\\\textbf {\\\\bibinfo \
{volume} {84}},\\\\ \\\\bibinfo\\n {pages} {205441} (\\\\bibinfo {year} \
{2011})}\\\\BibitemShut {NoStop}%\\n\\\\end{thebibliography}%\"\>"], "Output",
CellChangeTimes->{{3.8399053498711205`*^9, 3.839905377534423*^9}, {
3.8399054574238033`*^9, 3.8399054712613487`*^9}, {3.839920246094081*^9,
3.8399202512335215`*^9}, {3.83992060518602*^9, 3.8399206109423137`*^9}, {
3.8399214425975237`*^9, 3.83992145972836*^9}, {3.839921490424139*^9,
3.839921529720907*^9}, 3.839921597645201*^9, 3.8399218016542764`*^9},
CellLabel->
"Out[903]=",ExpressionUUID->"85a565e1-8ac1-465f-9b3d-8da88a68486f"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"(*",
RowBox[{"regexes", "=",
RowBox[{"RegularExpression", "/@",
RowBox[{"{",
RowBox[{
"\"\< \\\\\\\\BibitemOpen\\n\>\"", ",",
"\"\<\\\\\\\\BibitemShut \\\\{NoStop\\\\}\>\"", ",",
"\"\< \\\\\\\\bibfield \\\\{author\\\\} \>\""}], "}"}]}]}], "*)"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"StringDelete", "[",
RowBox[{"string", ",",
RowBox[{"RegularExpression", "[", "\"\<(?m)^\\\\%.+\\n\>\"", "]"}]}],
"]"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"StringDelete", "[",
RowBox[{"%", ",",
RowBox[{
"RegularExpression", "[", "\"\<\\\\\\\\makeatletter\\n\>\"", "]"}]}],
"]"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"StringDelete", "[",
RowBox[{"%", ",", "\"\<\\\\let\\\\auto@bib@innerbib\\\\@empty\\n\>\""}],
"]"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"StringDelete", "[",
RowBox[{"%", ",",
RowBox[{
"RegularExpression", "[",
"\"\<\\\\\\\\providecommand .+\\\\{(?s).+?\\\\}%\\n\>\"", "]"}]}],
"]"}], ";"}], "\[IndentingNewLine]",
RowBox[{"string2", "=",
RowBox[{"StringDelete", "[",
RowBox[{"%", ",",
RowBox[{"RegularExpression", "[", "\"\< \\\\[(?s).+?\\\\]\>\"", "]"}]}],
"]"}]}],
RowBox[{"(*",
RowBox[{";", "\[IndentingNewLine]",
RowBox[{"Fold", "[",
RowBox[{
RowBox[{
RowBox[{"StringDelete", "[",
RowBox[{"%", ",", "#"}], "]"}], "&"}], ",", "regexes"}], "]"}]}],
"*)"}], "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"StringCases", "[", "]"}], "*)"}]}]}]], "Input",
CellChangeTimes->{{3.8399054153259068`*^9, 3.839905442075653*^9}, {
3.839905478539751*^9, 3.839905593772375*^9}, {3.8399056299164047`*^9,
3.839905702484356*^9}, {3.839905826588708*^9, 3.8399058812927103`*^9}, {
3.839905969818122*^9, 3.839905987116534*^9}, {3.8399060230213704`*^9,
3.8399060362126184`*^9}, {3.839906325532967*^9, 3.839906327645976*^9}, {
3.839906370357088*^9, 3.8399063720849047`*^9}, {3.8399064665099163`*^9,
3.83990648133315*^9}, {3.8399065485808487`*^9, 3.8399065487486725`*^9}, {
3.83990664706907*^9, 3.839906697916967*^9}, {3.8399067721892824`*^9,
3.839906794108985*^9}, {3.8399068271820946`*^9, 3.839906928957102*^9}, {
3.8399069705183425`*^9, 3.8399070330229073`*^9}, {3.8399070682100105`*^9,
3.839907078661436*^9}, 3.839907126701404*^9, {3.839907162869947*^9,
3.839907170364422*^9}, {3.8399072405574493`*^9, 3.8399072847894545`*^9}, {
3.8399073967522287`*^9, 3.8399074870633426`*^9}, {3.8399079362140274`*^9,
3.839908008477212*^9}, {3.839908043189165*^9, 3.839908129031307*^9}, {
3.839908216414836*^9, 3.839908228278234*^9}, 3.839908261022855*^9, {
3.839908332629125*^9, 3.839908339738133*^9}, {3.839908389814534*^9,
3.839908390807121*^9}, {3.839908440438035*^9, 3.83990853249356*^9}, {
3.8399085730090027`*^9, 3.8399085984650326`*^9}, {3.839908643170166*^9,
3.8399088083826637`*^9}, {3.8399088542790613`*^9,
3.8399089384941063`*^9}, {3.8399092478984847`*^9, 3.839909262609824*^9},
3.8399094901455717`*^9, {3.8399125955117407`*^9, 3.839912598704216*^9},
3.8399184903553195`*^9, 3.839918612741229*^9},
CellLabel->
"In[783]:=",ExpressionUUID->"db09a213-bc88-446e-8c58-74b14877e1dc"],
Cell[BoxData["\<\"\\\\begin{thebibliography}{4}%\\n\\\\bibitem{Po2018PRX}%\\n \
\\\\BibitemOpen\\n \\\\bibfield {author} {\\\\bibinfo {author} \
{\\\\bibfnamefont {H.~C.}\\\\ \\\\bibnamefont\\n {Po}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {L.}~\\\\bibnamefont {Zou}}, \\\\bibinfo\\n {author} \
{\\\\bibfnamefont {A.}~\\\\bibnamefont {Vishwanath}},\\\\ and\\\\ \\\\bibinfo\
\\n {author} {\\\\bibfnamefont {T.}~\\\\bibnamefont {Senthil}},\\\\ \
}\\\\href\\n {https://doi.org/10.1103/physrevx.8.031089} {\\\\bibfield \
{journal} {\\\\bibinfo\\n {journal} {Phys. Rev. X}\\\\ }\\\\textbf \
{\\\\bibinfo {volume} {8}},\\\\ \\\\bibinfo {pages}\\n {031089} (\\\\bibinfo \
{year} {2018})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem{Codecido2019SA}%\\n \
\\\\BibitemOpen\\n \\\\bibfield {author} {\\\\bibinfo {author} \
{\\\\bibfnamefont {E.}~\\\\bibnamefont\\n {Codecido}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {Q.}~\\\\bibnamefont {Wang}},\\n \\\\bibinfo {author} \
{\\\\bibfnamefont {R.}~\\\\bibnamefont {Koester}}, \\\\bibinfo\\n {author} {\
\\\\bibfnamefont {S.}~\\\\bibnamefont {Che}}, \\\\bibinfo {author}\\n \
{\\\\bibfnamefont {H.}~\\\\bibnamefont {Tian}}, \\\\bibinfo {author} \
{\\\\bibfnamefont\\n {R.}~\\\\bibnamefont {Lv}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {S.}~\\\\bibnamefont\\n {Tran}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {K.}~\\\\bibnamefont {Watanabe}},\\n \\\\bibinfo {author} \
{\\\\bibfnamefont {T.}~\\\\bibnamefont {Taniguchi}}, \\\\bibinfo\\n {author} \
{\\\\bibfnamefont {F.}~\\\\bibnamefont {Zhang}}, \\\\bibinfo {author}\\n {\\\
\\bibfnamefont {M.}~\\\\bibnamefont {Bockrath}},\\\\ and\\\\ \\\\bibinfo \
{author}\\n {\\\\bibfnamefont {C.~N.}\\\\ \\\\bibnamefont {Lau}},\\\\ \
}\\\\href\\n {https://doi.org/10.1126/sciadv.aaw9770} {\\\\bibfield \
{journal} {\\\\bibinfo\\n {journal} {Sci. Adv.}\\\\ }\\\\textbf {\\\\bibinfo \
{volume} {5}},\\\\ \\\\bibinfo {pages}\\n {eaaw9770} (\\\\bibinfo {year} \
{2019})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem{Zhang2017SA}%\\n \
\\\\BibitemOpen\\n \\\\bibfield {author} {\\\\bibinfo {author} \
{\\\\bibfnamefont {C.}~\\\\bibnamefont\\n {Zhang}}, \\\\bibinfo {author} {\\\
\\bibfnamefont {C.-P.}\\\\ \\\\bibnamefont {Chuu}},\\n \\\\bibinfo {author} \
{\\\\bibfnamefont {X.}~\\\\bibnamefont {Ren}}, \\\\bibinfo {author}\\n \
{\\\\bibfnamefont {M.-Y.}\\\\ \\\\bibnamefont {Li}}, \\\\bibinfo {author} {\\\
\\bibfnamefont\\n {L.-J.}\\\\ \\\\bibnamefont {Li}}, \\\\bibinfo {author} \
{\\\\bibfnamefont\\n {C.}~\\\\bibnamefont {Jin}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {M.-Y.}\\\\\\n \\\\bibnamefont {Chou}},\\\\ and\\\\ \
\\\\bibinfo {author} {\\\\bibfnamefont {C.-K.}\\\\\\n \\\\bibnamefont \
{Shih}},\\\\ }\\\\href {https://doi.org/10.1126/sciadv.1601459}\\n \
{\\\\bibfield {journal} {\\\\bibinfo {journal} {Sci. Adv.}\\\\ }\\\\textbf \
{\\\\bibinfo\\n {volume} {3}},\\\\ \\\\bibinfo {pages} {e1601459} \
(\\\\bibinfo {year}\\n {2017})}\\\\BibitemShut \
{NoStop}%\\n\\\\bibitem{Liu2020JPDAP}%\\n \\\\BibitemOpen\\n \\\\bibfield \
{author} {\\\\bibinfo {author} {\\\\bibfnamefont {H.}~\\\\bibnamefont\\n \
{Liu}}, \\\\bibinfo {author} {\\\\bibfnamefont {Y.}~\\\\bibnamefont {Zong}}, \
\\\\bibinfo\\n {author} {\\\\bibfnamefont {P.}~\\\\bibnamefont {Wang}}, \
\\\\bibinfo {author}\\n {\\\\bibfnamefont {H.}~\\\\bibnamefont {Wen}}, \
\\\\bibinfo {author} {\\\\bibfnamefont\\n {H.}~\\\\bibnamefont {Wu}}, \
\\\\bibinfo {author} {\\\\bibfnamefont {J.}~\\\\bibnamefont\\n {Xia}},\\\\ \
and\\\\ \\\\bibinfo {author} {\\\\bibfnamefont {Z.}~\\\\bibnamefont {Wei}},\\\
\\\\n }\\\\href {https://doi.org/10.1088/1361-6463/abbf75} {\\\\bibfield \
{journal}\\n {\\\\bibinfo {journal} {J. Phys. D: Appl. Phys.}\\\\ \
}\\\\textbf {\\\\bibinfo {volume}\\n {54}},\\\\ \\\\bibinfo {pages} {053001} \
(\\\\bibinfo {year} {2020})}\\\\BibitemShut\\n \
{NoStop}%\\n\\\\end{thebibliography}%\"\>"], "Output",
CellChangeTimes->{{3.839908491901142*^9, 3.839908532696806*^9},
3.8399085987085953`*^9, {3.8399087117515216`*^9, 3.8399087176271257`*^9}, {
3.83990876064972*^9, 3.8399088090625763`*^9}, 3.839908872820574*^9, {
3.839908903709217*^9, 3.839908941714422*^9}, 3.839909255016695*^9,
3.839909490748988*^9, 3.83991259943781*^9, 3.839918491104065*^9,
3.8399186141222334`*^9},
CellLabel->
"Out[787]=",ExpressionUUID->"23bc914d-7791-4f30-9d86-82d19f5944ea"]
}, Closed]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{
RowBox[{"StringCases", "[",
RowBox[{"string", ",",
RowBox[{
"RegularExpression", "[",
"\"\<(?<=%</preamble>\\n)((?s).+)(?=\\n\\\\\\\\end)\>\"", "]"}]}],
"]"}], "\[LeftDoubleBracket]", "1", "\[RightDoubleBracket]"}],
";"}], "\[IndentingNewLine]",
RowBox[{"string22", "=",
RowBox[{"StringDelete", "[",
RowBox[{"%", ",",
RowBox[{"RegularExpression", "[", "\"\< \\\\[(?s).+?\\\\]\>\"", "]"}]}],
"]"}]}]}], "Input",
CellChangeTimes->{{3.839918621795017*^9, 3.8399186916650195`*^9}, {
3.839918748635912*^9, 3.839918777690782*^9}, {3.839918855721373*^9,
3.83991890748975*^9}},
CellLabel->
"In[802]:=",ExpressionUUID->"3c55583d-86a5-4a9a-98ee-8e6ce81de50f"],
Cell[BoxData["\<\"\\\\bibitem{Po2018PRX}%\\n \\\\BibitemOpen\\n \
\\\\bibfield {author} {\\\\bibinfo {author} {\\\\bibfnamefont {H.~C.}\\\\ \\\
\\bibnamefont\\n {Po}}, \\\\bibinfo {author} {\\\\bibfnamefont \
{L.}~\\\\bibnamefont {Zou}}, \\\\bibinfo\\n {author} {\\\\bibfnamefont {A.}~\
\\\\bibnamefont {Vishwanath}},\\\\ and\\\\ \\\\bibinfo\\n {author} \
{\\\\bibfnamefont {T.}~\\\\bibnamefont {Senthil}},\\\\ }\\\\href\\n \
{https://doi.org/10.1103/physrevx.8.031089} {\\\\bibfield {journal} \
{\\\\bibinfo\\n {journal} {Phys. Rev. X}\\\\ }\\\\textbf {\\\\bibinfo \
{volume} {8}},\\\\ \\\\bibinfo {pages}\\n {031089} (\\\\bibinfo {year} \
{2018})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem{Codecido2019SA}%\\n \
\\\\BibitemOpen\\n \\\\bibfield {author} {\\\\bibinfo {author} \
{\\\\bibfnamefont {E.}~\\\\bibnamefont\\n {Codecido}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {Q.}~\\\\bibnamefont {Wang}},\\n \\\\bibinfo {author} \
{\\\\bibfnamefont {R.}~\\\\bibnamefont {Koester}}, \\\\bibinfo\\n {author} {\
\\\\bibfnamefont {S.}~\\\\bibnamefont {Che}}, \\\\bibinfo {author}\\n \
{\\\\bibfnamefont {H.}~\\\\bibnamefont {Tian}}, \\\\bibinfo {author} \
{\\\\bibfnamefont\\n {R.}~\\\\bibnamefont {Lv}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {S.}~\\\\bibnamefont\\n {Tran}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {K.}~\\\\bibnamefont {Watanabe}},\\n \\\\bibinfo {author} \
{\\\\bibfnamefont {T.}~\\\\bibnamefont {Taniguchi}}, \\\\bibinfo\\n {author} \
{\\\\bibfnamefont {F.}~\\\\bibnamefont {Zhang}}, \\\\bibinfo {author}\\n {\\\
\\bibfnamefont {M.}~\\\\bibnamefont {Bockrath}},\\\\ and\\\\ \\\\bibinfo \
{author}\\n {\\\\bibfnamefont {C.~N.}\\\\ \\\\bibnamefont {Lau}},\\\\ \
}\\\\href\\n {https://doi.org/10.1126/sciadv.aaw9770} {\\\\bibfield \
{journal} {\\\\bibinfo\\n {journal} {Sci. Adv.}\\\\ }\\\\textbf {\\\\bibinfo \
{volume} {5}},\\\\ \\\\bibinfo {pages}\\n {eaaw9770} (\\\\bibinfo {year} \
{2019})}\\\\BibitemShut {NoStop}%\\n\\\\bibitem{Zhang2017SA}%\\n \
\\\\BibitemOpen\\n \\\\bibfield {author} {\\\\bibinfo {author} \
{\\\\bibfnamefont {C.}~\\\\bibnamefont\\n {Zhang}}, \\\\bibinfo {author} {\\\
\\bibfnamefont {C.-P.}\\\\ \\\\bibnamefont {Chuu}},\\n \\\\bibinfo {author} \
{\\\\bibfnamefont {X.}~\\\\bibnamefont {Ren}}, \\\\bibinfo {author}\\n \
{\\\\bibfnamefont {M.-Y.}\\\\ \\\\bibnamefont {Li}}, \\\\bibinfo {author} {\\\
\\bibfnamefont\\n {L.-J.}\\\\ \\\\bibnamefont {Li}}, \\\\bibinfo {author} \
{\\\\bibfnamefont\\n {C.}~\\\\bibnamefont {Jin}}, \\\\bibinfo {author} \
{\\\\bibfnamefont {M.-Y.}\\\\\\n \\\\bibnamefont {Chou}},\\\\ and\\\\ \
\\\\bibinfo {author} {\\\\bibfnamefont {C.-K.}\\\\\\n \\\\bibnamefont \
{Shih}},\\\\ }\\\\href {https://doi.org/10.1126/sciadv.1601459}\\n \
{\\\\bibfield {journal} {\\\\bibinfo {journal} {Sci. Adv.}\\\\ }\\\\textbf \
{\\\\bibinfo\\n {volume} {3}},\\\\ \\\\bibinfo {pages} {e1601459} \
(\\\\bibinfo {year}\\n {2017})}\\\\BibitemShut \
{NoStop}%\\n\\\\bibitem{Liu2020JPDAP}%\\n \\\\BibitemOpen\\n \\\\bibfield \
{author} {\\\\bibinfo {author} {\\\\bibfnamefont {H.}~\\\\bibnamefont\\n \
{Liu}}, \\\\bibinfo {author} {\\\\bibfnamefont {Y.}~\\\\bibnamefont {Zong}}, \
\\\\bibinfo\\n {author} {\\\\bibfnamefont {P.}~\\\\bibnamefont {Wang}}, \
\\\\bibinfo {author}\\n {\\\\bibfnamefont {H.}~\\\\bibnamefont {Wen}}, \
\\\\bibinfo {author} {\\\\bibfnamefont\\n {H.}~\\\\bibnamefont {Wu}}, \
\\\\bibinfo {author} {\\\\bibfnamefont {J.}~\\\\bibnamefont\\n {Xia}},\\\\ \
and\\\\ \\\\bibinfo {author} {\\\\bibfnamefont {Z.}~\\\\bibnamefont {Wei}},\\\
\\\\n }\\\\href {https://doi.org/10.1088/1361-6463/abbf75} {\\\\bibfield \
{journal}\\n {\\\\bibinfo {journal} {J. Phys. D: Appl. Phys.}\\\\ \
}\\\\textbf {\\\\bibinfo {volume}\\n {54}},\\\\ \\\\bibinfo {pages} {053001} \
(\\\\bibinfo {year} {2020})}\\\\BibitemShut\\n {NoStop}%\"\>"], "Output",
CellChangeTimes->{{3.8399186836789927`*^9, 3.83991869217138*^9}, {
3.8399187505181017`*^9, 3.839918777875547*^9}, {3.839918864340536*^9,
3.8399189080734377`*^9}},
CellLabel->
"Out[803]=",ExpressionUUID->"187a47c4-9e3d-449d-809d-75774fc4918b"]
}, Closed]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"StringSplit", "[",
RowBox[{"string22", ",", "\"\<\\\\bibitem\>\""}], "]"}],
RowBox[{"(*",
RowBox[{"//", "Rest"}], "*)"}], ";"}], "\[IndentingNewLine]",
RowBox[{"StringCases", "[",
RowBox[{"%", ",",
RowBox[{
"RegularExpression", "[",
"\"\<(?<=\\\\{)((?!author|journal|volume|year|pages|NoStop|\
thebibliography)[\\\\d\\\\w\\\\.\\\\~ \\\\-\\\\:]+?)(?=\\\\})\>\"", "]"}]}],
"]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"StringTemplate", "[", "\"\<\\\\bibitem{``}\>\"", "]"}], "[",
RowBox[{"First", "[", "#", "]"}], "]"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"Insert", "[",
RowBox[{
RowBox[{"BlockMap", "[",
RowBox[{
RowBox[{"s", "|->",
RowBox[{
RowBox[{"StringTemplate", "[", "\"\< `` ``, \>\"", "]"}], "[",
RowBox[{
RowBox[{
"s", "\[LeftDoubleBracket]", "1", "\[RightDoubleBracket]"}], ",",
RowBox[{
"s", "\[LeftDoubleBracket]", "2", "\[RightDoubleBracket]"}]}],
"]"}]}], ",",
RowBox[{"#", "\[LeftDoubleBracket]",
RowBox[{"2", ";;",
RowBox[{"-", "5"}]}], "\[RightDoubleBracket]"}], ",", "2"}],
"]"}], ",", "\"\<and\>\"", ",",
RowBox[{"-", "2"}]}], "]"}], "//", "StringJoin"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"StringJoin", "[",
RowBox[{"#1", ",",
RowBox[{
RowBox[{"StringTemplate", "[", "\"\< \\\\textbf{``}, \>\"", "]"}],
"[", "#2", "]"}], ",", "#3", ",",
RowBox[{
RowBox[{"StringTemplate", "[", "\"\< (``).\>\"", "]"}], "[", "#4",
"]"}]}], "]"}], "&"}], "@@",
RowBox[{"(",
RowBox[{"#", "\[LeftDoubleBracket]",
RowBox[{
RowBox[{"-", "4"}], ";;"}], "\[RightDoubleBracket]"}], ")"}]}]}],
"}"}], "&"}], "/@", "%"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"StringJoin", "/@", "%"}], "//", "InputForm"}], "//",
"TableForm"}], "\[IndentingNewLine]",
RowBox[{"StringJoin", "[",
RowBox[{"\"\<\\\\begin{thebibliography}{999}\\n\\t\>\"", ",",
RowBox[{"Riffle", "[",
RowBox[{"%", ",", "\"\<\\n\\t\>\""}], "]"}], ",",
"\"\<\\n\\\\end{thebibliography}\>\""}], "]"}], "\[IndentingNewLine]",
RowBox[{"Export", "[",
RowBox[{
RowBox[{
RowBox[{"NotebookDirectory", "[", "]"}], "<>", "\"\<bib.txt\>\""}], ",",
"%", ",", "\"\<TEXT\>\""}], "]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{"StringReplace", "[",
RowBox[{"{",
RowBox[{"(*",
RowBox[{
RowBox[{"\"\<\\\\BibitemOpen\>\"", "->", "\"\<\>\""}], ","}], "*)"}],
RowBox[{
RowBox[{"\"\< \>\"", "->", "\"\<\>\""}], ",",
RowBox[{"\"\<\\n\>\"", "->", "\"\<\>\""}], ",",
RowBox[{"\"\<\\\\bibfield {author}\>\"", "->", "\"\<\>\""}], ",",
RowBox[{"\"\<\\\\bibinfo {author}\>\"", "->", "\"\<\>\""}]}], "}"}],
"]"}], "[", "%", "]"}],
RowBox[{"(*",
RowBox[{"//", "InputForm"}], "*)"}], "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"StringDelete", "[",
RowBox[{"%", ",",
RowBox[{
"RegularExpression", "[", "\"\<\\\\\\\\href.+\\\\{.+?\\\\}\>\"",
"]"}]}], "]"}], "*)"}], "\[IndentingNewLine]",
RowBox[{"StringCases", "[",
RowBox[{"%", ",",
RowBox[{
RowBox[{
"RegularExpression", "[",
"\"\<\\\\~\\\\\\\\bibfnamefont\\\\{(.+?)\\\\}\>\"", "]"}], "->",
"\"\<$1 $2\>\""}]}], "]"}]}], "*)"}]}]}], "Input",
CellChangeTimes->{{3.839913453094797*^9, 3.8399135363507586`*^9}, {
3.839913567806929*^9, 3.8399139556721134`*^9}, 3.8399140234485984`*^9, {
3.839914064065213*^9, 3.8399140944474993`*^9}, {3.83991416239252*^9,
3.8399142881212196`*^9}, 3.839914462784096*^9, {3.8399145266961126`*^9,
3.839914618601169*^9}, 3.839914850512148*^9, 3.8399148880753927`*^9, {
3.8399154371717844`*^9, 3.8399154885121098`*^9}, {3.8399157278406124`*^9,
3.839915827048532*^9}, 3.839915876960495*^9, {3.839915939689283*^9,
3.839915957936446*^9}, {3.8399160959765825`*^9, 3.83991614409626*^9}, {
3.839916211274849*^9, 3.839916329507156*^9}, {3.8399163716892586`*^9,
3.839916560201431*^9}, {3.8399166852023277`*^9, 3.8399166880014095`*^9}, {
3.839916737282428*^9, 3.8399167580334826`*^9}, {3.839916907036582*^9,
3.839917073178567*^9}, {3.8399171157908225`*^9, 3.8399171330982*^9}, {
3.8399171759905405`*^9, 3.8399172004343987`*^9}, {3.8399173171794467`*^9,
3.839917499984167*^9}, {3.8399175372222166`*^9, 3.8399177003785954`*^9}, {
3.8399177665879583`*^9, 3.839917809762639*^9}, {3.8399178489405775`*^9,
3.839917863435947*^9}, {3.8399178993245497`*^9, 3.839917923291359*^9}, {
3.8399179614224787`*^9, 3.839917963582493*^9}, {3.8399189120600767`*^9,
3.839918924898924*^9}},
CellLabel->
"In[810]:=",ExpressionUUID->"6792a393-f82f-4aa3-92ab-00c4bd845bb7"],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"\<\"Po2018PRX\"\>", ",", "\<\"H.~C.\"\>", ",", "\<\"Po\"\>",
",", "\<\"L.\"\>", ",", "\<\"Zou\"\>", ",", "\<\"A.\"\>",
",", "\<\"Vishwanath\"\>", ",", "\<\"T.\"\>", ",", "\<\"Senthil\"\>",
",", "\<\"Phys. Rev. X\"\>", ",", "\<\"8\"\>", ",", "\<\"031089\"\>",
",", "\<\"2018\"\>"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\<\"Codecido2019SA\"\>", ",", "\<\"E.\"\>",
",", "\<\"Codecido\"\>", ",", "\<\"Q.\"\>", ",", "\<\"Wang\"\>",
",", "\<\"R.\"\>", ",", "\<\"Koester\"\>", ",", "\<\"S.\"\>",
",", "\<\"Che\"\>", ",", "\<\"H.\"\>", ",", "\<\"Tian\"\>",
",", "\<\"R.\"\>", ",", "\<\"Lv\"\>", ",", "\<\"S.\"\>",
",", "\<\"Tran\"\>", ",", "\<\"K.\"\>", ",", "\<\"Watanabe\"\>",
",", "\<\"T.\"\>", ",", "\<\"Taniguchi\"\>", ",", "\<\"F.\"\>",
",", "\<\"Zhang\"\>", ",", "\<\"M.\"\>", ",", "\<\"Bockrath\"\>",
",", "\<\"C.~N.\"\>", ",", "\<\"Lau\"\>", ",", "\<\"Sci. Adv.\"\>",
",", "\<\"5\"\>", ",", "\<\"eaaw9770\"\>", ",", "\<\"2019\"\>"}], "}"}],
",",
RowBox[{"{",
RowBox[{"\<\"Zhang2017SA\"\>", ",", "\<\"C.\"\>", ",", "\<\"Zhang\"\>",
",", "\<\"C.-P.\"\>", ",", "\<\"Chuu\"\>", ",", "\<\"X.\"\>",
",", "\<\"Ren\"\>", ",", "\<\"M.-Y.\"\>", ",", "\<\"Li\"\>",
",", "\<\"L.-J.\"\>", ",", "\<\"Li\"\>", ",", "\<\"C.\"\>",
",", "\<\"Jin\"\>", ",", "\<\"M.-Y.\"\>", ",", "\<\"Chou\"\>",
",", "\<\"C.-K.\"\>", ",", "\<\"Shih\"\>", ",", "\<\"Sci. Adv.\"\>",
",", "\<\"3\"\>", ",", "\<\"e1601459\"\>", ",", "\<\"2017\"\>"}], "}"}],
",",
RowBox[{"{",
RowBox[{"\<\"Liu2020JPDAP\"\>", ",", "\<\"H.\"\>", ",", "\<\"Liu\"\>",
",", "\<\"Y.\"\>", ",", "\<\"Zong\"\>", ",", "\<\"P.\"\>",
",", "\<\"Wang\"\>", ",", "\<\"H.\"\>", ",", "\<\"Wen\"\>",
",", "\<\"H.\"\>", ",", "\<\"Wu\"\>", ",", "\<\"J.\"\>",
",", "\<\"Xia\"\>", ",", "\<\"Z.\"\>", ",", "\<\"Wei\"\>",
",", "\<\"J. Phys. D: Appl. Phys.\"\>", ",", "\<\"54\"\>",
",", "\<\"053001\"\>", ",", "\<\"2020\"\>"}], "}"}]}], "}"}]], "Output",
CellChangeTimes->{{3.839913784462103*^9, 3.83991385635592*^9}, {
3.839913914280766*^9, 3.8399139562285967`*^9}, 3.8399140249601283`*^9, {
3.839914065148265*^9, 3.83991409477195*^9}, {3.839914172321305*^9,
3.8399142895842495`*^9}, 3.8399144634322424`*^9, {3.8399145274691424`*^9,
3.8399146192371593`*^9}, 3.839914851118202*^9, 3.839914889192206*^9,
3.839915489314183*^9, {3.839915774606718*^9, 3.8399158275410643`*^9},
3.8399158775384474`*^9, {3.839915944616742*^9, 3.839915958766617*^9},
3.839916109090371*^9, {3.839916195820101*^9, 3.8399162150674133`*^9}, {
3.8399162465289974`*^9, 3.839916286232993*^9}, {3.83991631725074*^9,
3.839916341287511*^9}, 3.8399164241623516`*^9, {3.839916464125113*^9,
3.839916477040574*^9}, {3.8399165323875628`*^9, 3.8399165611655493`*^9},
3.839916688596208*^9, 3.839916758757077*^9, {3.8399169417990885`*^9,
3.839916970955268*^9}, 3.8399170034153056`*^9, {3.8399170408871913`*^9,
3.83991707385555*^9}, 3.8399171338268595`*^9, {3.8399171766207685`*^9,
3.8399172011612806`*^9}, {3.839917440547234*^9, 3.8399175005480676`*^9}, {
3.8399175957218714`*^9, 3.8399176265774527`*^9}, 3.839917701105318*^9, {
3.8399177883481965`*^9, 3.8399178146803145`*^9}, 3.8399178646837816`*^9, {
3.8399179009541483`*^9, 3.839917924098297*^9}, 3.839917969203438*^9, {
3.8399189127049174`*^9, 3.83991892552947*^9}},
CellLabel->
"Out[811]=",ExpressionUUID->"9706d30e-cdb2-416f-874e-883b3d57a082"],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"\<\"\\\\bibitem{Po2018PRX}\"\>",
",", "\<\" H.~C. Po, L. Zou, A. Vishwanath, and T. Senthil, \"\>",
",", "\<\"Phys. Rev. X \\\\textbf{8}, 031089 (2018).\"\>"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\<\"\\\\bibitem{Codecido2019SA}\"\>",
",", "\<\" E. Codecido, Q. Wang, R. Koester, S. Che, H. Tian, R. \
Lv, S. Tran, K. Watanabe, T. Taniguchi, F. Zhang, M. Bockrath, and C.~N. \
Lau, \"\>", ",", "\<\"Sci. Adv. \\\\textbf{5}, eaaw9770 (2019).\"\>"}], "}"}],
",",
RowBox[{"{",
RowBox[{"\<\"\\\\bibitem{Zhang2017SA}\"\>",
",", "\<\" C. Zhang, C.-P. Chuu, X. Ren, M.-Y. Li, L.-J. Li, C. \
Jin, M.-Y. Chou, and C.-K. Shih, \"\>",
",", "\<\"Sci. Adv. \\\\textbf{3}, e1601459 (2017).\"\>"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\<\"\\\\bibitem{Liu2020JPDAP}\"\>",
",", "\<\" H. Liu, Y. Zong, P. Wang, H. Wen, H. Wu, J. Xia, and Z. \
Wei, \"\>",
",", "\<\"J. Phys. D: Appl. Phys. \\\\textbf{54}, 053001 (2020).\"\>"}],
"}"}]}], "}"}]], "Output",
CellChangeTimes->{{3.839913784462103*^9, 3.83991385635592*^9}, {
3.839913914280766*^9, 3.8399139562285967`*^9}, 3.8399140249601283`*^9, {
3.839914065148265*^9, 3.83991409477195*^9}, {3.839914172321305*^9,
3.8399142895842495`*^9}, 3.8399144634322424`*^9, {3.8399145274691424`*^9,
3.8399146192371593`*^9}, 3.839914851118202*^9, 3.839914889192206*^9,
3.839915489314183*^9, {3.839915774606718*^9, 3.8399158275410643`*^9},
3.8399158775384474`*^9, {3.839915944616742*^9, 3.839915958766617*^9},
3.839916109090371*^9, {3.839916195820101*^9, 3.8399162150674133`*^9}, {
3.8399162465289974`*^9, 3.839916286232993*^9}, {3.83991631725074*^9,
3.839916341287511*^9}, 3.8399164241623516`*^9, {3.839916464125113*^9,
3.839916477040574*^9}, {3.8399165323875628`*^9, 3.8399165611655493`*^9},
3.839916688596208*^9, 3.839916758757077*^9, {3.8399169417990885`*^9,
3.839916970955268*^9}, 3.8399170034153056`*^9, {3.8399170408871913`*^9,
3.83991707385555*^9}, 3.8399171338268595`*^9, {3.8399171766207685`*^9,
3.8399172011612806`*^9}, {3.839917440547234*^9, 3.8399175005480676`*^9}, {
3.8399175957218714`*^9, 3.8399176265774527`*^9}, 3.839917701105318*^9, {
3.8399177883481965`*^9, 3.8399178146803145`*^9}, 3.8399178646837816`*^9, {
3.8399179009541483`*^9, 3.839917924098297*^9}, 3.839917969203438*^9, {
3.8399189127049174`*^9, 3.839918925536461*^9}},
CellLabel->
"Out[812]=",ExpressionUUID->"6398dc3b-6049-4ad2-9d1b-9eb24cc3309f"],
Cell[BoxData[
TagBox[
InterpretationBox[
StyleBox[
RowBox[{"{",
RowBox[{
"\"\<\\\\bibitem{Po2018PRX} H.~C. Po, L. Zou, A. Vishwanath, and T. \
Senthil, Phys. Rev. X \\\\textbf{8}, 031089 (2018).\>\"", ",", " ",
"\"\<\\\\bibitem{Codecido2019SA} E. Codecido, Q. Wang, R. Koester, \
S. Che, H. Tian, R. Lv, S. Tran, K. Watanabe, T. Taniguchi, F. Zhang, \
M. Bockrath, and C.~N. Lau, Sci. Adv. \\\\textbf{5}, eaaw9770 (2019).\>\"",
",", " ",
"\"\<\\\\bibitem{Zhang2017SA} C. Zhang, C.-P. Chuu, X. Ren, M.-Y. \
Li, L.-J. Li, C. Jin, M.-Y. Chou, and C.-K. Shih, Sci. Adv. \\\\textbf{3}, \
e1601459 (2017).\>\"", ",", " ",
"\"\<\\\\bibitem{Liu2020JPDAP} H. Liu, Y. Zong, P. Wang, H. Wen, H. \
Wu, J. Xia, and Z. Wei, J. Phys. D: Appl. Phys. \\\\textbf{54}, 053001 \
(2020).\>\""}], "}"}],
ShowStringCharacters->True,
NumberMarks->True],
InputForm[{
"\\bibitem{Po2018PRX} H.~C. Po, L. Zou, A. Vishwanath, and T. Senthil, \
Phys. Rev. X \\textbf{8}, 031089 (2018).",
"\\bibitem{Codecido2019SA} E. Codecido, Q. Wang, R. Koester, S. Che, \
H. Tian, R. Lv, S. Tran, K. Watanabe, T. Taniguchi, F. Zhang, M. \
Bockrath, and C.~N. Lau, Sci. Adv. \\textbf{5}, eaaw9770 (2019).",
"\\bibitem{Zhang2017SA} C. Zhang, C.-P. Chuu, X. Ren, M.-Y. Li, \
L.-J. Li, C. Jin, M.-Y. Chou, and C.-K. Shih, Sci. Adv. \\textbf{3}, \
e1601459 (2017).",
"\\bibitem{Liu2020JPDAP} H. Liu, Y. Zong, P. Wang, H. Wen, H. Wu, \
J. Xia, and Z. Wei, J. Phys. D: Appl. Phys. \\textbf{54}, 053001 (2020)."}],
AutoDelete->True,
Editable->True],
Function[BoxForm`e$,
TableForm[BoxForm`e$]]]], "Output",
CellChangeTimes->{{3.839913784462103*^9, 3.83991385635592*^9}, {
3.839913914280766*^9, 3.8399139562285967`*^9}, 3.8399140249601283`*^9, {
3.839914065148265*^9, 3.83991409477195*^9}, {3.839914172321305*^9,
3.8399142895842495`*^9}, 3.8399144634322424`*^9, {3.8399145274691424`*^9,
3.8399146192371593`*^9}, 3.839914851118202*^9, 3.839914889192206*^9,
3.839915489314183*^9, {3.839915774606718*^9, 3.8399158275410643`*^9},
3.8399158775384474`*^9, {3.839915944616742*^9, 3.839915958766617*^9},
3.839916109090371*^9, {3.839916195820101*^9, 3.8399162150674133`*^9}, {
3.8399162465289974`*^9, 3.839916286232993*^9}, {3.83991631725074*^9,
3.839916341287511*^9}, 3.8399164241623516`*^9, {3.839916464125113*^9,
3.839916477040574*^9}, {3.8399165323875628`*^9, 3.8399165611655493`*^9},
3.839916688596208*^9, 3.839916758757077*^9, {3.8399169417990885`*^9,
3.839916970955268*^9}, 3.8399170034153056`*^9, {3.8399170408871913`*^9,
3.83991707385555*^9}, 3.8399171338268595`*^9, {3.8399171766207685`*^9,
3.8399172011612806`*^9}, {3.839917440547234*^9, 3.8399175005480676`*^9}, {
3.8399175957218714`*^9, 3.8399176265774527`*^9}, 3.839917701105318*^9, {
3.8399177883481965`*^9, 3.8399178146803145`*^9}, 3.8399178646837816`*^9, {
3.8399179009541483`*^9, 3.839917924098297*^9}, 3.839917969203438*^9, {
3.8399189127049174`*^9, 3.8399189255404587`*^9}},
CellLabel->
"Out[813]//TableForm=",ExpressionUUID->"b12985de-55a7-4fd4-92cd-\
62a2f641f1e8"],
Cell[BoxData["\<\"\\\\begin{thebibliography}{999}\\n\\t\\\\bibitem{Po2018PRX} \
H.~C. Po, L. Zou, A. Vishwanath, and T. Senthil, Phys. Rev. X \
\\\\textbf{8}, 031089 (2018).\\n\\t\\\\bibitem{Codecido2019SA} E. Codecido, \
Q. Wang, R. Koester, S. Che, H. Tian, R. Lv, S. Tran, K. Watanabe, T. \
Taniguchi, F. Zhang, M. Bockrath, and C.~N. Lau, Sci. Adv. \\\\textbf{5}, \
eaaw9770 (2019).\\n\\t\\\\bibitem{Zhang2017SA} C. Zhang, C.-P. Chuu, X. \
Ren, M.-Y. Li, L.-J. Li, C. Jin, M.-Y. Chou, and C.-K. Shih, Sci. Adv. \\\
\\textbf{3}, e1601459 (2017).\\n\\t\\\\bibitem{Liu2020JPDAP} H. Liu, Y. \
Zong, P. Wang, H. Wen, H. Wu, J. Xia, and Z. Wei, J. Phys. D: Appl. Phys. \
\\\\textbf{54}, 053001 (2020).\\n\\\\end{thebibliography}\"\>"], "Output",
CellChangeTimes->{{3.839913784462103*^9, 3.83991385635592*^9}, {
3.839913914280766*^9, 3.8399139562285967`*^9}, 3.8399140249601283`*^9, {
3.839914065148265*^9, 3.83991409477195*^9}, {3.839914172321305*^9,
3.8399142895842495`*^9}, 3.8399144634322424`*^9, {3.8399145274691424`*^9,
3.8399146192371593`*^9}, 3.839914851118202*^9, 3.839914889192206*^9,
3.839915489314183*^9, {3.839915774606718*^9, 3.8399158275410643`*^9},
3.8399158775384474`*^9, {3.839915944616742*^9, 3.839915958766617*^9},
3.839916109090371*^9, {3.839916195820101*^9, 3.8399162150674133`*^9}, {
3.8399162465289974`*^9, 3.839916286232993*^9}, {3.83991631725074*^9,
3.839916341287511*^9}, 3.8399164241623516`*^9, {3.839916464125113*^9,
3.839916477040574*^9}, {3.8399165323875628`*^9, 3.8399165611655493`*^9},
3.839916688596208*^9, 3.839916758757077*^9, {3.8399169417990885`*^9,
3.839916970955268*^9}, 3.8399170034153056`*^9, {3.8399170408871913`*^9,
3.83991707385555*^9}, 3.8399171338268595`*^9, {3.8399171766207685`*^9,
3.8399172011612806`*^9}, {3.839917440547234*^9, 3.8399175005480676`*^9}, {
3.8399175957218714`*^9, 3.8399176265774527`*^9}, 3.839917701105318*^9, {
3.8399177883481965`*^9, 3.8399178146803145`*^9}, 3.8399178646837816`*^9, {
3.8399179009541483`*^9, 3.839917924098297*^9}, 3.839917969203438*^9, {
3.8399189127049174`*^9, 3.8399189255444565`*^9}},
CellLabel->
"Out[814]=",ExpressionUUID->"b21582c4-731f-4de3-866d-08ec1afdbfab"],
Cell[BoxData["\<\"C:\\\\Users\\\\Administrator\\\\Downloads\\\\tBLG_ZLM_\
transport\\\\bib.txt\"\>"], "Output",
CellChangeTimes->{{3.839913784462103*^9, 3.83991385635592*^9}, {
3.839913914280766*^9, 3.8399139562285967`*^9}, 3.8399140249601283`*^9, {
3.839914065148265*^9, 3.83991409477195*^9}, {3.839914172321305*^9,
3.8399142895842495`*^9}, 3.8399144634322424`*^9, {3.8399145274691424`*^9,
3.8399146192371593`*^9}, 3.839914851118202*^9, 3.839914889192206*^9,
3.839915489314183*^9, {3.839915774606718*^9, 3.8399158275410643`*^9},
3.8399158775384474`*^9, {3.839915944616742*^9, 3.839915958766617*^9},
3.839916109090371*^9, {3.839916195820101*^9, 3.8399162150674133`*^9}, {
3.8399162465289974`*^9, 3.839916286232993*^9}, {3.83991631725074*^9,
3.839916341287511*^9}, 3.8399164241623516`*^9, {3.839916464125113*^9,
3.839916477040574*^9}, {3.8399165323875628`*^9, 3.8399165611655493`*^9},
3.839916688596208*^9, 3.839916758757077*^9, {3.8399169417990885`*^9,
3.839916970955268*^9}, 3.8399170034153056`*^9, {3.8399170408871913`*^9,
3.83991707385555*^9}, 3.8399171338268595`*^9, {3.8399171766207685`*^9,
3.8399172011612806`*^9}, {3.839917440547234*^9, 3.8399175005480676`*^9}, {
3.8399175957218714`*^9, 3.8399176265774527`*^9}, 3.839917701105318*^9, {
3.8399177883481965`*^9, 3.8399178146803145`*^9}, 3.8399178646837816`*^9, {
3.8399179009541483`*^9, 3.839917924098297*^9}, 3.839917969203438*^9, {
3.8399189127049174`*^9, 3.839918925645214*^9}},
CellLabel->
"Out[815]=",ExpressionUUID->"6813651e-417e-4c40-b9c7-443d670443c9"]
}, Closed]]
}, Closed]],
Cell[CellGroupData[{
Cell[TextData[StyleBox["Synthesis", "Title"]], "Title",
CellChangeTimes->{{3.839918184712407*^9, 3.8399181936794195`*^9}, {
3.8399194317682858`*^9,
3.8399194334783473`*^9}},ExpressionUUID->"99040ae5-1fcc-47d0-a490-\
ce7f8042afd2"],
Cell[CellGroupData[{
Cell["Version I", "Chapter",
CellChangeTimes->{{3.840007000921957*^9,
3.840007017176976*^9}},ExpressionUUID->"29bb7313-2461-46ce-8a3d-\
5f54893ff351"],
Cell[BoxData["\"\<(?<=\\\\{)((?!author|journal|volume|year|pages|NoStop|\
thebibliography|editor|https|a|b)[\\\\d\\\\w\\\\.\\\\~ \
\\\\-\\\\:[:alpha:]\\\\(\\\\)\\\\/]+?)(?=\\\\})\>\""], "Input",ExpressionUUID->\
"b01b1d70-abd6-43ca-8e2a-96e20dd689d4"],
Cell[BoxData[{
RowBox[{"Clear", "[", "bbltotex", "]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"bbltotex", "[",
RowBox[{"bblpath_String", ",",
RowBox[{"outname_String", ":", "\"\<bib.txt\>\""}]}], "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{
"regexes", ",", "strI", ",", "strII", ",", "strIII", ",", "formfunc"}],
"}"}], ",", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"Phase", " ",
RowBox[{"I", ":", " ", "delete"}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"regexes", "=",
RowBox[{"RegularExpression", "/@",
RowBox[{"{",
RowBox[{
"\"\<(?<=%</preamble>\\n)((?s).+)(?=\\n\\\\\\\\end)\>\"", ",",
"\"\< \\\\[(?s).+?\\\\]\>\"", ",",
"\"\<(?<=\\\\{)((?!author|journal|volume|year|pages|NoStop|\
thebibliography|editor|https|title|a|b)[\\\\d\\\\w\\\\.\\\\~ \
\\\\-\\\\:\\\\(\\\\)\\\\/]+?)(?=\\\\})\>\""}], "}"}]}]}], ";",
"\[IndentingNewLine]",
RowBox[{"strI", "=",
RowBox[{
RowBox[{
RowBox[{"StringDelete", "[",
RowBox[{
RowBox[{
RowBox[{"StringCases", "[",
RowBox[{
RowBox[{"Import", "[", "bblpath", "]"}], ",", "#"}], "]"}],
"\[LeftDoubleBracket]", "1", "\[RightDoubleBracket]"}], ",",
"#2"}], "]"}], "&"}], "@@", "regexes"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"Phase", " ",
RowBox[{"II", ":", " ", "divide"}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{"strII", "=",
RowBox[{"StringCases", "[",
RowBox[{
RowBox[{"StringSplit", "[",
RowBox[{"strI", ",", "\"\<\\\\bibitem\>\""}], "]"}], ",",
RowBox[{
"regexes", "\[LeftDoubleBracket]", "3", "\[RightDoubleBracket]"}]}],
"]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"(*",
RowBox[{"Phase", " ",
RowBox[{"III", ":", " ", "combine"}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{"formfunc", "=",
RowBox[{
RowBox[{"If", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StringEndsQ", "[",
RowBox[{
RowBox[{"First", "[", "#", "]"}], ",",
RowBox[{"RegularExpression", "[", "\"\<\\\\w\>\"", "]"}]}], "]"}],
",", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"StringTemplate", "[", "\"\<\\\\bibitem{``} \>\"", "]"}],
"[",
RowBox[{"First", "[", "#", "]"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Insert", "[",
RowBox[{
RowBox[{"BlockMap", "[",
RowBox[{
RowBox[{"s", "|->",
RowBox[{
RowBox[{"StringTemplate", "[", "\"\<`` ``, \>\"", "]"}],
"[",
RowBox[{
RowBox[{
"s", "\[LeftDoubleBracket]", "1",
"\[RightDoubleBracket]"}], ",",
RowBox[{
"s", "\[LeftDoubleBracket]", "2",
"\[RightDoubleBracket]"}]}], "]"}]}], ",",
RowBox[{"#", "\[LeftDoubleBracket]",
RowBox[{"2", ";;",
RowBox[{"-", "5"}]}], "\[RightDoubleBracket]"}], ",", "2"}],
"]"}], ",", "\"\<and \>\"", ",",
RowBox[{"-", "2"}]}], "]"}], "//", "StringJoin"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"StringJoin", "[",
RowBox[{"#1", ",",
RowBox[{
RowBox[{
"StringTemplate", "[", "\"\< \\\\textbf{``}, \>\"", "]"}],
"[", "#2", "]"}], ",", "#3", ",",
RowBox[{
RowBox[{"StringTemplate", "[", "\"\< (``).\>\"", "]"}], "[",
"#4", "]"}]}], "]"}], "&"}], "@@",
RowBox[{"(",
RowBox[{"#", "\[LeftDoubleBracket]",
RowBox[{
RowBox[{"-", "4"}], ";;"}], "\[RightDoubleBracket]"}],
")"}]}]}], "}"}], ",", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"StringTemplate", "[", "\"\<\\\\bibitem{``} \>\"", "]"}],
"[",
RowBox[{"First", "[", "#", "]"}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Insert", "[",
RowBox[{
RowBox[{"BlockMap", "[",
RowBox[{
RowBox[{"s", "|->",
RowBox[{
RowBox[{"StringTemplate", "[", "\"\<`` ``, \>\"", "]"}],
"[",
RowBox[{
RowBox[{
"s", "\[LeftDoubleBracket]", "1",
"\[RightDoubleBracket]"}], ",",
RowBox[{
"s", "\[LeftDoubleBracket]", "2",
"\[RightDoubleBracket]"}]}], "]"}]}], ",",
RowBox[{"#", "\[LeftDoubleBracket]",
RowBox[{"2", ";;",
RowBox[{"-", "6"}]}], "\[RightDoubleBracket]"}], ",", "2"}],
"]"}], ",", "\"\<and \>\"", ",",
RowBox[{"-", "2"}]}], "]"}], "//", "StringJoin"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"StringJoin", "[",
RowBox[{"#1", ",",
RowBox[{
RowBox[{
"StringTemplate", "[", "\"\< \\\\textbf{``}, \>\"", "]"}],
"[", "#2", "]"}], ",", "#3", ",",
RowBox[{
RowBox[{"StringTemplate", "[", "\"\< (``).\>\"", "]"}], "[",
"#4", "]"}]}], "]"}], "&"}], "@@",
RowBox[{"(",
RowBox[{"#", "\[LeftDoubleBracket]",
RowBox[{
RowBox[{"-", "5"}], ";;"}], "\[RightDoubleBracket]"}],
")"}]}]}], "}"}]}], "\[IndentingNewLine]", "]"}], "&"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"strIII", "=",
RowBox[{"StringJoin", "[",
RowBox[{"\"\<\\\\begin{thebibliography}{999}\\n\\t\>\"", ",",
RowBox[{"Riffle", "[",
RowBox[{
RowBox[{"StringJoin", "/@",
RowBox[{"formfunc", "/@", "strII"}]}], ",", "\"\<\\n\\t\>\""}],
"]"}], ",", "\"\<\\n\\\\end{thebibliography}\>\""}], "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"Export", "[",
RowBox[{
RowBox[{"FileNameJoin", "[",
RowBox[{"{",
RowBox[{
RowBox[{"FileNameDrop", "[",
RowBox[{"bblpath", ",",
RowBox[{"-", "1"}]}], "]"}], ",", "outname"}], "}"}], "]"}], ",",
"strIII", ",", "\"\<TEXT\>\""}], "]"}]}]}], "\[IndentingNewLine]",
"]"}]}]}], "Input",
CellChangeTimes->{{3.8399182091876154`*^9, 3.839918456020646*^9}, {
3.839918511185341*^9, 3.839918522258212*^9}, {3.8399185607948933`*^9,
3.8399185794821253`*^9}, {3.839918955882887*^9, 3.8399190729851418`*^9}, {
3.839919110061036*^9, 3.839919361677105*^9}, {3.8399194941727324`*^9,
3.8399194954843287`*^9}, {3.839919690262931*^9, 3.8399197887499094`*^9},
3.8399201603894014`*^9, {3.83992019444119*^9, 3.83992019640269*^9}, {
3.8399206312838416`*^9, 3.8399206349707603`*^9}, {3.839921809790388*^9,
3.839921820506783*^9}, 3.839922018084098*^9, {3.839922248485936*^9,
3.8399222814216566`*^9}, {3.8399224007424593`*^9,
3.8399224557195525`*^9}, {3.8399224859820004`*^9, 3.8399224910360193`*^9},
3.839922627827589*^9, {3.83992471892638*^9, 3.8399247452628555`*^9}, {
3.8399248047761116`*^9, 3.8399248061454945`*^9}, {3.839925097663806*^9,
3.8399250981927257`*^9}, {3.839925441071656*^9, 3.839925442375465*^9}, {
3.839925517729896*^9, 3.839925531286766*^9}, {3.8399257509435697`*^9,
3.8399257613047905`*^9}, {3.8399324298666058`*^9, 3.839932432394309*^9}, {
3.8399325106094704`*^9, 3.8399325109856625`*^9}, 3.8399329591781006`*^9, {
3.839933029954069*^9, 3.839933045345686*^9}, {3.8399330765828886`*^9,
3.839933081081754*^9}, {3.839933114915736*^9, 3.839933115738085*^9}, {
3.839933281293722*^9, 3.8399333656579514`*^9}, {3.839933434681657*^9,
3.839933437929496*^9}, {3.839933566833887*^9, 3.839933571641608*^9}, {
3.8399665382377815`*^9, 3.839966538700328*^9}, {3.8399665865497074`*^9,
3.83996658922558*^9}, {3.8399666315333633`*^9, 3.839966632652753*^9}, {
3.8399934003466063`*^9, 3.8399934367202215`*^9}, {3.8399935359599924`*^9,
3.839993536692408*^9}, {3.8399937216875477`*^9, 3.839993724238625*^9}, {
3.83999390335353*^9, 3.839993926384147*^9}, {3.8399941777284374`*^9,
3.8399941841288233`*^9}, {3.8399943424773054`*^9,
3.8399945381010275`*^9}, {3.839994695886237*^9, 3.839994702986981*^9}},
Background->RGBColor[1, 1, 0.85],
CellLabel->"In[92]:=",ExpressionUUID->"e16b0fe9-58fd-4094-888c-0edae5d6f415"],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"bblpath", "=",
RowBox[{
RowBox[{"NotebookDirectory", "[", "]"}], "<>", "\"\<main.bbl\>\""}]}],
";"}], "\[IndentingNewLine]",
RowBox[{"bbltotex", "[", "bblpath", "]"}]}], "Input",
CellChangeTimes->{{3.839918458931534*^9, 3.8399184666043177`*^9}, {
3.839919405752765*^9, 3.8399194063382735`*^9}},
CellLabel->
"In[997]:=",ExpressionUUID->"b7d83bc4-d591-4a41-ba60-6cac1ee8b2d5"],
Cell[BoxData["\<\"C:\\\\Users\\\\Administrator\\\\Downloads\\\\tBLG_ZLM_\
transport\\\\bib.txt\"\>"], "Output",
CellChangeTimes->{
3.8399184672844167`*^9, {3.83991851450743*^9, 3.8399185249790497`*^9},
3.8399185811506433`*^9, 3.83991904375196*^9, 3.839919115798528*^9,