-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
575 lines (437 loc) · 20.5 KB
/
Makefile
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
# specify thh main file and all the files that you are including
Bibliographies=$(wildcard Bibliographies/*.bib) localbibliography.bib
STYLE-PATH= ${HOME}/Library/texmf/tex/latex/
SOURCE= main.tex $(wildcard local*.tex) $(wildcard chapters/*.tex) $(Bibliographies) \
langscibook.cls langsci-unified.bbx langsci-forest-setup.sty
# MacBook Pro 16" (2019) time make main.pdf 9:40 min 9:14 min 554 sec
# 16:40 min 16:24 min (ohne Turboboost) 984 sec
# MacBook Pro 15" (2016) time make main.pdf 11:23 min 683 sec
# MacBook Pro 16" time biber main 0:39.16/0:39.56 min
# \rm -rf `biber --cache`; time biber main 0:45.65 min
# 0:38.45 0:40.55
# removed 147 non-referenced papers out of 1582
# MacBook Pro 16" 2023 M2 Max 623.851u 71.119s 11:31.19 100.5%
# specify your main target here:
pdf: main.bbl main.pdf #by the time main.pdf, bib assures there is a newer aux file
all: pod cover
complete: index main.pdf
index: main.snd
# the footer needs several biber runs ...
main.pdf: $(SOURCE)
xelatex -shell-escape main
\cp -f main.pdf main-view.pdf
# sed -i.backup 's/{\\itshape Second revised edition}//' collection_tmp.bib
biber main
xelatex -shell-escape main
\cp -f main.pdf main-view.pdf
# sed -i.backup 's/{\\itshape Second revised edition}//' collection_tmp.bib
biber main
sed -i.backup s/.*\\emph.*// main.adx #remove titles which biblatex puts into the name index
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' main.sdx # ordering of references to footnotes
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' main.adx
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' main.ldx
sed -i.backup 's/\\MakeCapital //g' main.adx
python3 fixindex.py lsa
mv mainmod.adx main.adx
mv mainmod.ldx main.ldx
mv mainmod.sdx main.sdx
footnotes-index.pl main.ldx
footnotes-index.pl main.sdx
footnotes-index.pl main.adx
makeindex -o main.and main.adx
makeindex -gs index.format -o main.lnd main.ldx
makeindex -gs index.format -o main.snd main.sdx
xelatex -shell-escape main
\cp -f main.pdf main-view.pdf
handbook.pdf: $(SOURCE)
xelatex handbook
biber handbook
xelatex -shell-escape handbook
sed -i.backup s/.*\\emph.*// handbook.adx #remove titles which biblatex puts into the name index
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.sdx # ordering of references to footnotes
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.adx
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.ldx
sed -i.backup 's/\\MakeCapital //g' handbook.adx
python3 fixindex.py a handbook
mv handbookmod.adx handbook.adx
footnotes-index.pl handbook.ldx
footnotes-index.pl handbook.sdx
footnotes-index.pl handbook.adx
makeindex -o handbook.and handbook.adx
makeindex -gs index.format -o handbook.lnd handbook.ldx
makeindex -gs index.format -o handbook.snd handbook.sdx
xelatex -shell-escape handbook
authorindex-check:
make bib
biber handbook
xelatex -shell-escape handbook
biber handbook
xelatex -shell-escape handbook
sed -i.backup s/.*\\emph.*// handbook.adx #remove titles which biblatex puts into the name index
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.sdx # ordering of references to footnotes
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.adx
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.ldx
sed -i.backup 's/\\MakeCapital //g' handbook.adx
python3 fixindex.py a handbook
mv handbookmod.adx handbook.adx
footnotes-index.pl handbook.ldx
footnotes-index.pl handbook.sdx
footnotes-index.pl handbook.adx
makeindex -gs index.format-plus -o handbook.and handbook.adx
makeindex -gs index.format -o handbook.lnd handbook.ldx
makeindex -gs index.format -o handbook.snd handbook.sdx
xelatex -shell-escape handbook
subjindex-check:
xelatex -shell-escape handbook
sed -i.backup s/.*\\emph.*// handbook.adx #remove titles which biblatex puts into the name index
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.sdx # ordering of references to footnotes
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.adx
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' handbook.ldx
sed -i.backup 's/\\MakeCapital //g' handbook.adx
python3 fixindex.py a handbook
mv handbookmod.adx handbook.adx
footnotes-index.pl handbook.ldx
footnotes-index.pl handbook.sdx
footnotes-index.pl handbook.adx
makeindex -gs index.format-plus -o handbook.and handbook.adx
makeindex -gs index.format -o handbook.lnd handbook.ldx
makeindex -gs index.format -o handbook.snd handbook.sdx
xelatex -shell-escape handbook
languagecandidates:
egrep -oh "[a-z] [A-Z]['a-zA-Z-]+" chapters/*tex| grep -o "[A-Z].*" |sort -u >languagelist.txt
languagesused:
egrep -oh "\\il.*{[A-Z]['a-zA-Z-]+}" chapters/*tex |grep -o "[A-Z].*"
trees: memos
# to eliminate the risk of jumping trees build the complete pdf without
# memozation (main.tex does load nomemoize) and then latex compile-memos-hpsg-handbook.tex
# (which does load memoize, ignores \addlines and does not have the bibliography compiled) and call the extraction script after this.
memos: cleanmemo main.pdf
xelatex -shell-escape compile-memos-hpsg-handbook
python3 memomanager.py split compile-memos-hpsg-handbook.mmz
stable.pdf: main.pdf
cp main.pdf stable.pdf
cp collection_tmp.bib chapters/collection.bib
chop: stable.pdf
egrep "contentsline \{chapter\}" main.toc | egrep -o "[0-9]+\}\{chapter"|egrep -o "[0-9]+" > cuts.txt
egrep -o "\{chapter\}\{Indexes\}\{[0-9]+\}\{section\*\.[0-9]+\}" main.toc| egrep -o ".*\."|egrep -o "[0-9]+" >> cuts.txt
bash chopchapters.sh 13 chapters main
# does not work on mac
# bash chopchapters.sh `grep "mainmatter starts" main.log|egrep -o "[0-9]*"`
# make all (in chapters) on texlive 2019 to create the trees = 32:43
commit-stable: chop
# git commit -m "automatic creation of stable.pdf and chapters" chapters/collection.bib chapters-pdfs/ stable.pdf
# git push -u origin
stable-commit: commit-stable
# prepublish.toc contains roman numbers this means we have to update main.pdf and take the numbers
# from main.toc. Takes a while ...
prepublish-pdfs: prepublish.pdf
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
prepublish-commit: prepublish-pdfs
git commit -m "automatic creation of prepublish.pdf and chapters" prepubs-pdfs/
git push -u origin
memo-commit:
# add all PDFs and all memo|s.
git add -A chapters/hpsg-handbook.memo.dir/*.pdf chapters/hpsg-handbook.memo.dir/*.memo
# -a option deltes files that disappeared
git commit -a -m "momoized figures"
# add this here and push everything that was staged or do it via gui
# git push -u origin
FINALIZED= chapters/evolution.tex chapters/lexicon.tex chapters/case.tex chapters/idioms.tex
prepubs-pdfs/evolution.pdf: chapters/evolution.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/02.pdf prepubs-pdfs/evolution.pdf
prepubs-pdfs/lexicon.pdf: chapters/lexicon.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/04.pdf prepubs-pdfs/lexicon.pdf
prepubs-pdfs/understudied-languages.pdf: chapters/understudied-langauges.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/05.pdf prepubs-pdfs/understudied-languages.pdf
prepubs-pdfs/agreement.pdf: chapters/agreement.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/06.pdf prepubs-pdfs/agreement.pdf
prepubs-pdfs/case.pdf: chapters/case.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/07.pdf prepubs-pdfs/case.pdf
prepubs-pdfs/argument-structure.pdf: chapters/arg-st.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/09.pdf prepubs-pdfs/argument-structure.pdf
prepubs-pdfs/relative-clauses.pdf: chapters/relative-clauses.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/15.pdf prepubs-pdfs/relative-clauses.pdf
prepubs-pdfs/islands.pdf: chapters/islands.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/16.pdf prepubs-pdfs/islands.pdf
prepubs-pdfs/idioms.pdf: chapters/idioms.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/18.pdf prepubs-pdfs/idioms.pdf
prepubs-pdfs/negation.pdf: chapters/negation.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/19.pdf prepubs-pdfs/negation.pdf
prepubs-pdfs/semantics.pdf: chapters/semantics.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/23.pdf prepubs-pdfs/semantics.pdf
prepubs-pdfs/cl.pdf: chapters/cl.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/28.pdf prepubs-pdfs/cl.pdf
prepubs-pdfs/hpsg-minimalism.pdf: chapters/minimalism.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/32.pdf prepubs-pdfs/hpsg-minimalism.pdf
prepubs-pdfs/hpsg-categorial-grammar.pdf: chapters/cg.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/33.pdf prepubs-pdfs/hpsg-categorial-grammar.pdf
prepubs-pdfs/hpsg-dg.pdf: chapters/dg.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/33.pdf prepubs-pdfs/hpsg-dg.pdf
prepubs-pdfs/hpsg-cxg.pdf: chapters/cxg.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -shell-escape prepublish
chopchapters-bookmarks.sh prepublish.pdf prepubs-chop-pdfs
cp prepubs-chop-pdfs/34.pdf prepubs-pdfs/hpsg-cxg.pdf
# the index is irrelevant so I removed index creation here
prepublish.pdf: $(SOURCE) prepublish.tex
xelatex -no-pdf -shell-escape prepublish
biber prepublish
xelatex -no-pdf -shell-escape prepublish
xelatex -shell-escape prepublish
prepubs-latex-cp: prepublish-pdfs
# cp prepubs-chop-pdfs/01.pdf prepubs-pdfs/basic-properties.pdf
# cp prepubs-chop-pdfs/02.pdf prepubs-pdfs/evolution.pdf
# cp prepubs-chop-pdfs/03.pdf prepubs-pdfs/formal-background.pdf
# cp prepubs-chop-pdfs/04.pdf prepubs-pdfs/lexicon.pdf
# cp prepubs-chop-pdfs/05.pdf prepubs-pdfs/understudied-languages.pdf
# cp prepubs-chop-pdfs/06.pdf prepubs-pdfs/agreement.pdf
# cp prepubs-chop-pdfs/07.pdf prepubs-pdfs/case.pdf
# cp prepubs-chop-pdfs/08.pdf prepubs-pdfs/nominal-structures.pdf
# cp prepubs-chop-pdfs/09.pdf prepubs-pdfs/argument-structure.pdf
# cp prepubs-chop-pdfs/10.pdf prepubs-pdfs/order.pdf
## cp prepubs-chop-pdfs/11.pdf prepubs-pdfs/clitics.pdf
# cp prepubs-chop-pdfs/11.pdf prepubs-pdfs/complex-predicates.pdf
cp prepubs-chop-pdfs/12.pdf prepubs-pdfs/control-raising.pdf
# cp prepubs-chop-pdfs/13.pdf prepubs-pdfs/unbounded-dependencies.pdf
# cp prepubs-chop-pdfs/14.pdf prepubs-pdfs/relative-clauses.pdf
# cp prepubs-chop-pdfs/15.pdf prepubs-pdfs/islands.pdf
# cp prepubs-chop-pdfs/16.pdf prepubs-pdfs/coordination.pdf
# cp prepubs-chop-pdfs/17.pdf prepubs-pdfs/idioms.pdf
# cp prepubs-chop-pdfs/18.pdf prepubs-pdfs/negation.pdf
# cp prepubs-chop-pdfs/19.pdf prepubs-pdfs/ellipsis.pdf
# cp prepubs-chop-pdfs/20.pdf prepubs-pdfs/binding.pdf
# cp prepubs-chop-pdfs/21.pdf prepubs-pdfs/morphology.pdf
# cp prepubs-chop-pdfs/22.pdf prepubs-pdfs/semantics.pdf
# cp prepubs-chop-pdfs/23.pdf prepubs-pdfs/information-structure.pdf
# cp prepubs-chop-pdfs/24.pdf prepubs-pdfs/processing.pdf
# cp prepubs-chop-pdfs/25.pdf prepubs-pdfs/cl.pdf
# cp prepubs-chop-pdfs/26.pdf prepubs-pdfs/dialogue.pdf
# cp prepubs-chop-pdfs/27.pdf prepubs-pdfs/sign-languages.pdf
# cp prepubs-chop-pdfs/27.pdf prepubs-pdfs/gesture.pdf
# cp prepubs-chop-pdfs/28.pdf prepubs-pdfs/hpsg-minimalism.pdf
# cp prepubs-chop-pdfs/29.pdf prepubs-pdfs/hpsg-categorial-grammar.pdf
# cp prepubs-chop-pdfs/30.pdf prepubs-pdfs/hpsg-lfg.pdf
# cp prepubs-chop-pdfs/31.pdf prepubs-pdfs/hpsg-dependency-grammar.pdf
# cp prepubs-chop-pdfs/32.pdf prepubs-pdfs/hpsg-cxg.pdf
#
prepublish: prepubs-latex-cp
# prepubs-pdfs/evolution.pdf prepubs-pdfs/lexicon.pdf prepubs-pdfs/agreement.pdf \
# prepubs-pdfs/case.pdf prepubs-pdfs/relative-clauses.pdf prepubs-pdfs/islands.pdf prepubs-pdfs/idioms.pdf \
# prepubs-pdfs/negation.pdf prepubs-pdfs/semantics.pdf prepubs-pdfs/hpsg-minimalism.pdf prepubs-pdfs/hpsg-dg.pdf prepubs-pdfs/hpsg-cxg.pdf
rsync -a -e ssh prepubs-pdfs/ hpsg.hu-berlin.de:/var/www/html/Projects/HPSG-handbook/PDFs
# git commit -m "automatic creation of prepublished chapters" prepubs-pdfs/
# git push -u origin
# scp prepubs-pdfs/32.pdf hpsg.hu-berlin.de:public_html/Pub/hpsg-minimalism.pdf
evolution.pdf: stable.pdf
pdftk stable.pdf cat 19-46 output evolution.pdf
# Stefan's chapter on order
order.pdf: chop
pdftk stable.pdf cat 161-191 output order.pdf
agreement.pdf: agreement.pdf
pdftk stable.pdf cat 93-115 output agreement.pdf
arg-st.pdf: arg-st.pdf
pdftk stable.pdf cat 145-184 output arg-st.pdf
case.pdf: stable.pdf
pdftk stable.pdf cat 117-143 output case.pdf
islands.pdf: stable.pdf
pdftk stable.pdf cat 231-279 output islands.pdf
processing.pdf: stable.pdf
pdftk stable.pdf cat 261-281 output processing.pdf
gesture.pdf: stable.pdf
pdftk stable.pdf cat 345-369 output gesture.pdf
# Stefan's chapter on cxg
cxg.pdf: stable.pdf
pdftk stable.pdf cat 333-364 output cxg.pdf
#sm-public: order.pdf cxg.pdf
sm-public: chop
scp chapters-pdfs/10.pdf hpsg.hu-berlin.de:public_html/Pub/constituent-order-hpsg.pdf
scp chapters-pdfs/32.pdf hpsg.hu-berlin.de:public_html/Pub/hpsg-minimalism.pdf
scp chapters-pdfs/36.pdf hpsg.hu-berlin.de:public_html/Pub/hpsg-cxg.pdf
#main.pdf: main.aux
# xelatex main
main.aux: $(SOURCE)
xelatex -no-pdf main
#create only the book
main.bbl: $(SOURCE)
xelatex -no-pdf main
biber main
main.snd: FORCE
touch main.adx main.sdx main.ldx
sed -i.backup s/.*\\emph.*// main.adx #remove titles which biblatex puts into the name index
sed -i.backup 's/\\MakeCapital //g' main.adx
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' main.sdx # ordering of references to footnotes
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' main.adx
# sed -i.backup 's/hyperindexformat{\\\(infn {[0-9]*\)}/\1/' main.ldx
# python3 fixindex.py
# mv mainmod.adx main.adx
footnotes-index.pl main.ldx
footnotes-index.pl main.sdx
footnotes-index.pl main.adx
makeindex -o main.and main.adx
makeindex -gs index.format -o main.lnd main.ldx
makeindex -gs index.format -o main.snd main.sdx
xelatex main
chapters:
(cd chapters; make all)
#create a png of the cover
cover: FORCE
convert main.pdf\[0\] -quality 100 -background white -alpha remove -bordercolor "#999999" -border 2 cover.png
cp cover.png googlebooks_frontcover.png
convert -geometry 50x50% cover.png covertwitter.png
display cover.png
googlebooks: googlebooks_interior.pdf
googlebooks_interior.pdf: complete
cp main.pdf googlebooks_interior.pdf
pdftk main.pdf cat 1 output googlebooks_frontcover.pdf
openreview: openreview.pdf
openreview.pdf: main.pdf
pdftk main.pdf multistamp orstamp.pdf output openreview.pdf
proofreading: proofreading.pdf
proofreading.pdf: main.pdf
pdftk main.pdf multistamp prstamp.pdf output proofreading.pdf
# extract all bibtex items and then remove irrelevant fields with --tool
hpsg-handbook-bibliography.bib: $(Bibliographies) bib handbook.pdf
biber --output_format=bibtex --output-legacy-date handbook.bcf -O hpsg-handbook-bibliography_tmp.bib
biber --tool --configfile=biber-tool.conf --output-field-replace=location:address,journaltitle:journal,date:year --output-legacy-dates hpsg-handbook-bibliography_tmp.bib -O hpsg-handbook-bibliography.bib
check-bib: hpsg-handbook-bibliography.bib
biber --validate-datamodel references
# biber --tool --configfile=biber-tool.conf -V hpsg-handbook-bibliography_tmp.bib
bib:
(cd Bibliographies; make stmue.bib)
references.pdf: references.tex hpsg-handbook-bibliography.bib
xelatex references
biber references
xelatex references
references: references.pdf
handbook.bcf: $(SOURCE)
xelatex handbook.tex
todo-localbib.unique.txt: handbook.bcf
biber -V handbook | grep -i warn | grep localbib | sort -uf > todo-localbib.unique.txt
bib-public: todo-localbib.unique.txt references.pdf
git commit -m "new version of bib" localbibliography.bib todo-localbib.unique.txt
git push -u origin
(cd ../../Bibliographien/; git commit -m "new version of bib" biblio.bib; git push -u origin)
scp references.pdf hpsg.hu-berlin.de:public_html/Pub/references.pdf
bib-public-git: references.pdf
cp references.pdf hpsg-handbook-bibliography.bib ../HPSG-Handbook-Bib/
(cd ../HPSG-Handbook-Bib/; git commit -m "new version of bib" references.pdf hpsg-handbook-bibliography.bib; git push -u origin)
paperhive:
git branch gh-pages
git checkout gh-pages
git add proofreading.pdf versions.json
git commit -m 'prepare for proofreading' proofreading.pdf versions.json
git push origin gh-pages
git checkout master
echo "langsci.github.io/BOOKID"
firefox https://paperhive.org/documents/new
checked.bib: localbibliography.bib
cat ../../Bibliographien/bib-abbr.bib localbibliography.bib > temp.bib
extract-checked-items temp.bib
blurb: blurb.html blurb.tex biosketch.tex biosketch.html
blurb.tex: blurb.md
pandoc -f markdown -t latex blurb.md>blurb.tex
blurb.html: blurb.md
pandoc -f markdown -t html blurb.md>blurb.html
biosketch.tex: blurb.md
pandoc -f markdown -t latex biosketch.md>biosketch.tex
biosketch.html: blurb.md
pandoc -f markdown -t html biosketch.md>biosketch.html
install: memo-install avm-install
memo-install:
cp -pr ~/Documents/Dienstlich/Projekte/memoize/memoize* .
cp -pr ~/Documents/Dienstlich/Projekte/memoize/nomemoize* .
cp -pr ~/Documents/Dienstlich/Projekte/memoize/xparse-arglist.sty .
cp -pr ~/Documents/Dienstlich/Projekte/memoize/memomanager.py .
avm-install:
cp -fp ~/Documents/Dienstlich/Projekte/LangSci/Git-HUB/langsci-avm/langsci-avm.sty .
stmue-install:
cp -p ${STYLE-PATH}makros.2020.sty styles/
cp -p ${STYLE-PATH}abbrev.sty styles/
cp -p ${STYLE-PATH}eng-date.sty styles/
cp -p ${STYLE-PATH}biblatex-series-number-checks.sty styles/
cp -p ${STYLE-PATH}Ling/article-ex.sty styles/
cp -p ${STYLE-PATH}Ling/merkmalstruktur.sty styles/
#housekeeping
clean:
rm -f *.bak *~ *.backup \
*.adx *.and *.idx *.ind *.ldx *.lnd *.sdx *.snd *.rdx *.rnd *.wdx *.wnd \
*.log *.blg *.bcf *.aux.copy *.auxlock *.ilg \
*.aux *.toc *.cut *.out *.tpm *.bbl *-blx.bib *_tmp.bib \
*.glg *.glo *.gls *.wrd *.wdv *.xdv *.mw *.clr \
*.run.xml \
chapters/*.aux chapters/*.auxlock chapters/*.aux.copy chapters/*.old chapters/*~ chapters/*.bak chapters/*.backup chapters/*.blg\
chapters/*.log chapters/*.out chapters/*.mw chapters/*.ldx chapters/*.bbl chapters/*.bcf chapters/*.run.xml\
chapters/*.blg chapters/*.idx chapters/*.sdx chapters/*.run.xml chapters/*.adx chapters/*.ldx\
langsci/*/*.aux langsci/*/*~ langsci/*/*.bak langsci/*/*.backup \
chapter-pdfs/* cuts.txt
cleanmemo:
rm -f *.mmz chapters/*.mmz chapters/*.memo.dir/*
clean-memos: cleanmemo
# do not use this, we have to keep langsci's ccby.pdf
#realclean: clean
# rm -f *.dvi *.ps *.pdf chapters/*.pdf
brutal-clean: clean cleanmemo
chapterlist:
grep chapter main.toc|sed "s/.*numberline {[0-9]\+}\(.*\).newline.*/\\1/"
FORCE: