From 03a5d28c42ce400b06eeb03c76998bc354a213d8 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Fri, 10 May 2024 12:48:58 +0800 Subject: [PATCH] Modernise splitjs --- docsplits/javascriptsplits/c09.tex | 24 ++++++++++++------------ docsplits/splitjs | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docsplits/javascriptsplits/c09.tex b/docsplits/javascriptsplits/c09.tex index b76f7b4..b09ec7b 100644 --- a/docsplits/javascriptsplits/c09.tex +++ b/docsplits/javascriptsplits/c09.tex @@ -35,40 +35,40 @@ of 'under'. function combinePages(under, over) {} /** Times Roman */ -var timesRoman = 0; +var timesRoman = 'Times-Roman'; /** Times Bold */ -var timesBold = 1; +var timesBold = 'Times-Bold'; /** Times Italic */ -var timesItalic = 2; +var timesItalic = 'Times-Italic'; /** Times Bold Italic */ -var timesBoldItalic = 3; +var timesBoldItalic = 'Times-BoldItalic'; /** Helvetica */ -var helvetica = 4; +var helvetica = 'Helvetica'; /** Helvetica Bold */ -var helveticaBold = 5; +var helveticaBold = 'Helvetica-Bold'; /** Helvetica Oblique */ -var helveticaOblique = 6; +var helveticaOblique = 'Helvetica-Oblique'; /** Helvetica Bold Oblique */ -var helveticaBoldOblique = 7; +var helveticaBoldOblique = 'Helvetica-BoldOblique'; /** Courier */ -var courier = 8; +var courier = 'Courier'; /** Courier Bold */ -var courierBold = 9; +var courierBold = 'Courier-Bold'; /** Courier Oblique */ -var courierOblique = 10; +var courierOblique = 'Courier-Oblique'; /** Courier Bold Oblique */ -var courierBoldOblique = 11; +var courierBoldOblique = 'Courier-BoldOblique'; /** Left justify */ var leftJustify = 0; diff --git a/docsplits/splitjs b/docsplits/splitjs index 655421f..adfc66c 100755 --- a/docsplits/splitjs +++ b/docsplits/splitjs @@ -1,5 +1,5 @@ #!/bin/bash -csplit -k -f javascriptsplits/c ../coherentpdf.js/cpdfdocs.js '/CHAPTER/' {18} +csplit -k -f javascriptsplits/c ../../coherentpdf.js/cpdfdocs.js '/CHAPTER/' {18} mv javascriptsplits/c00 javascriptsplits/c00.tex mv javascriptsplits/c01 javascriptsplits/c01.tex mv javascriptsplits/c02 javascriptsplits/c02.tex