Debian Codegraph @

texmf-dist/doc/optex/opbible/opbible-doc.tex

raw
1 \load [vlna]
2 \enlang
3 \enquotes \enlang
4 \margins/1 a4 (,,,)mm
5 \fixmnotes\right
6 \fontfam[schola]
7 \def\TODO{{\Red TODO}}
8 \everytt{\typosize[9/]\catcode`<=13 }
9 \everyintt{\catcode`<=13 }
10 \def\`{\bgroup \_setverb \toindex}
11 \def\toindex#1`{\egroup{\tt\Magenta #1}\ea\iindex\ea{\ignoreit#1}}
12 \def\_printii #1&{\noindent{\tt\bslash#1}\quad}
13 \def\watchout{\par\medskip\noindent {\bf What to watch out for:} }
14 \def\recommended{\par\medskip\noindent {\bf Recommended:} }
15
16 \verbchar`
17 \catcode`<=13 \def<#1>{{$\langle$\it#1$\rangle$}}
18 \def\OpBible/{OpBible}
19 % “ ”
20 \hyperlinks\Blue\Blue
21
22 {\nopagenumbers
23
24 \tit \OpBible/
25
26 \centerline{\typosize [16/]\bf Automatic Study Bible Typesetting Using \TeX/}
27 \bigskip
28 \centerline{\bi Version 0.31}
29 \bigskip
30 \centerline{\setfontsize{at15pt}\it Petr Olšák, Šimon Konečný}
31 \bigskip\bigskip
32 \centerline{\it Revised \the\day. \the\month. \the\year}
33 \bigskip
34 %\centerline{https://petr.olsak.net/opbible.html}
35 \centerline{\url{http://opbible.org}}
36 \vfill
37 {\it
38 \rightline{It is too small a thing for you to be my servant}
39 \rightline{to restore the tribes of Jacob}
40 \rightline{and bring back those of Israel I have kept.}
41 \rightline{I will also make you a light for the Gentiles,}
42 \rightline{that my salvation may reach to the ends of the earth.}
43 \smallskip
44 \rightline{Isaiah 49:6} %CEP
45 }\eject
46
47
48 The \OpBible/ macro collection may be freely copied, distributed and used in accordance with GNU
49 General Public License (Version 2, 1991).
50
51 You can port parts of this software into your own macros and/or make them part of other
52 packages, but the package, however different from the original distribution, must not be named \OpBible/.
53
54 Adaptations of specific implementations (e.g.,\ fonts or other Bible versions) are
55 considered additional files and their inclusion does not violate the license.
56
57
58 \vfill\eject
59
60 \nonum\sec[preface] Preface
61
62
63 The verse from Isaiah 49 on the title page is inspiring: It would be a small thing to write and typeset using \TeX/ just one Bible commentary on one Bible version as one's life's work. The \OpBible/ offers the opportunity to write a commentary on any Bible version (up to as many as there are Bible translations in one particular language) to anyone anywhere; once the notes apparatus is complete, the study Bible is typeset.
64
65 Šimon Konečný's long-standing vision of using \TeX/ to automatically typeset study Bibles came to fruition through a collaboration with Petr Olšák. Starting from the realistic assumption that
66 those who will use OpBible the most will also be those who have the least experience with \TeX/, we tried to make the usage as simple as possible.
67
68 However, there is no point in pretending that typesetting a study Bible is something trivial.
69 To claim that it is a little tricky is a bit understatement;
70 it is rather quite a challenge for any programmer.
71
72 Our intention to allow the production of a single commentary apparatus to go with multiple Bible translations simultaneously was
73 further complicated by the fact that different versions of the Bible have different verse numbers in some places, differently broken paragraphs,
74 different structures of poetic passages, different placement of headings added by the translators; that some translations have completely different book titles (and hence abbreviations),
75 that file names cannot contain diacritics but book references can and should, and countless other such oddities.
76
77 All the problems we encountered have been overcome and everything works just fine to our satisfaction. The resulting collection of macros is quite complicated,
78 therefore the definitions usage is irritatingly sensitive to any transgressions against \TeX's syntax.
79
80 That's why \OpBible/ includes tools to make it easier to find where typos, forgotten parentheses, etc. have been left; and in this documentation,
81 wherever we have seen fit, we add paragraphs entitled {\bf What to watch out for} and {\bf Recommended}.
82
83
84
85
86 \vfill
87
88 \rightline{Petr Olšák}
89 \rightline{Šimon Konečný}
90 \eject
91
92
93
94
95
96
97
98
99 %\sec What is the \OpBible/?
100 %
101 %\noindent
102 %\OpBible/ is a set of tools (macros and other support software) for processing biblical texts. The main goal is to link the text of the Bible with the commentary notes.
103 %%according to the required criteria described below.
104 %The result after processing by \TeX/ is a study Bible, i.e., a Bible printed together with annotations and typeset automatically by \TeX/.
105 %%The %%PDF file is also richly hyperlinked.
106
107 %\medskip
108 %%\centerline{\picw=15cm \inspic daniel.png }
109 %\medskip
110
111
112
113 \notoc\nonum\sec Contents
114 \maketoc
115 \vfil\break
116
117 } % end of \nopagenumbers
118
119 %\nonum\notoc
120 \sec What makes the \OpBible/ specific?
121
122 The main advantages of the \OpBible/ over traditional typesetting are:
123
124 \begitems
125 * {\bf Price:} \begitems
126 * The software itself is free as public domain under an Open Source license (see Preface).
127 * More important, however, is the price which you'll save on a typesetter you'd otherwise have
128 to pay for several years to hand-typeset the Study Bible.
129 \enditems
130 * {\bf Time:} Typesetting an entire Study Bible takes minutes, not years.
131 When providing the full text of a~Study Bible that breaks up the pages
132 so that the notes end up on the same pages with the verses they're commenting on,
133 it took about ten minutes on a system with a quad-core Ryzen 3 processor.
134 If you're working on a particular book and only processing one,
135 it's usually a matter of seconds.
136 * {\bf Flexibility:} The result is not just one single version of the Bible in which you cannot
137 make any changes. If you later decide to edit some notes, delete some or add some more, etc.,
138 you have this new revised version immediately typeset and ready for print.
139 * {\bf Variability:} The result may not be
140 just one Bible. The notes can be written in a way that allows as many Bibles as there are
141 different translations in a given language to be typeset with the same note apparatus.
142 For example, consider these six English translations of the Bible:
143 (1)~Bible in Basic English (BBE); (2)~Jubilee2000; (3)~NETfree; (4)~Updated King James Version (UKJV); (5)~Restored Names King James Version (RNKJV); and (6)~Webster.
144 Now let's take a brief look at Daniel, chapter 2, where the animals, countries, and other stuff of Daniel's vision are rendered as follows:
145
146 \begitems
147 * {\it Bear\/} is the same everywhere but
148 * {\it Leopard\/} of most tranlations is {\it Tiger\/} in Jubilee2000;
149 * usual {\it Ram\/} becomes {\it Male sheep,\/} as well as {\it clay\/} changes into {\it potter's earth\/} in BBE;
150 * ordinary {\it brass\/} turns into {\it bronze\/} in NETfree;
151 * {\it Greece\/} of BBE, Jubilee2000, and NETfree is {\it Grecia\/} in UKJV, RNKJV, and Webster; compare all six translations.
152 \enditems
153
154 You can write your commentary in the way that the result would be all six translations at the same time, with no need to modify the notes file, while the notes (or charts, maps, etc.), will display the phrases as they appear in your current Bible. See the sample book of Daniel, chapter two, the chart of Daniel's visions; compare all six translations.
155
156 In English, there are over 450 different translations of the Bible.
157 Most of them are not being used anymore, but still,
158 you can choose from \ulink[https://bibleanswers.study/about-the-bible/types-of-bible-versions]{more than sixty} various English versions.
159 Actually, you can write your notes in a way that sixty (or four hundred and fifty) various translations can be used with them at the same time,
160 without a need to change anything in the notes.
161
162
163 * {\bf Interactive output format}:
164 The result of the processing is a PDF file that is richly interwoven with active links.
165 These make an invaluable aid for proof-reading before submission to the print (see below).
166
167 * {\bf Precision:} \begitems
168 * The average study Bible contains around 20,000 notes and within them around 60 to 80,000
169 references to Bible verses and other notes. The notes are written by humans; it is inevitable that they will contain errors from oversight or typos. It is practically beyond the human power
170 to find and correct all of them. It is, however, within the power of a machine. \OpBible/ prints warning messages if, for example, a note refers to a non-existent note or verse.
171 * You can check for the accurateness of references to verses and notes that do exist (thus they do
172 not trigger an error message), but for some reason they are not the right ones.
173 The control is made possible by the fact that all references are active links that display the immediate context when the cursor hovers over
174 the linked location (if you are viewing the PDF with the correct version of Evince, for example). And when clicked on, it jumps straight there.
175 * The phrase that the note comments on is highlighted with a different font (e.g.,bold).
176 Moreover, OpBible will also search for it in the Bible text inside the verse in question, and the pages will be broken in the way that
177 the note ends up on the same page as the phrase it is commenting on.
178 In case that there are two notes commenting on two different words in the same verse, and that the page break will come between those words, the notes will follow
179 the phrases on their pages. See~\ref[break-verse]
180 * The Bible texts are prepared (for example, by downloading from the internet) in separate files and there is no need for them to be modified in any way (assuming your source left no misprints in them). All notes on them and other typesetting instructions are written in separate files. Then \TeX/ puts everything together.
181 \enditems
182 \enditems
183
184 %{\bf What to watch out for:}
185 \watchout
186 Although the intent of this program is to spread God's Word and the Good news contained therein, the
187 \OpBible/ itself {\it forgives nothing!}
188 (After all, what'd you expect, it's a software. Go to God for forgiveness.) As you'll learn below,
189 the \OpBible/ loads one entire book of the Bible into memory at a time and only then
190 begins to digest your notes and piece them together into pages with their respective verses. If you
191 happen to make a mistake in \TeX/ syntax (e.g., forget a closing bracket, etc.), \TeX/ will see the
192 error somewhere in the middle of this matching procedure, and this in turn will result in a
193 cluttered error message, in which it is highly likely that you will get lost and not find your way
194 around.
195
196 The \OpBible/~ anticipates the occurrence of situations like this and offers useful tools to help
197 you out of similar predicaments, but you'd better be careful and consistent. You won't go wrong with
198 the first written note, to go through all the translations you plan to use to make sure everything
199 works as it should. After that you may only work with one of them, but it is advisable to run
200 \TeX\ every time after you finish each new note, so by its protests you can easily find the one
201 in which you have the mistake.
202
203 \recommended Use the Linux operating system. \OpBible/, as a macro collection for \TeX, will run on any
204 system with the same results, but the Linux installation has
205 several not-to-be-missed advantages. Among the most significant of these is the Evince PDF viewer,
206 whose newer (as of 2023) version can display the immediate context of a hyperlinked
207 reference by simply hovering the cursor over it without having to click on it. This is an invaluable
208 aid for checking the accuracy of links to Bible passages or notes.
209 Other systems do not (yet) offer this facility. While the hyperlinks in these systems do jump to the
210 required location when clicked, they do not hit back to where the jump signal was sent from, which
211 is tedious. In this documentation, we assume a Linux installation.
212
213 And of course, we recommend -- or rather, consider it a prerequisite -- at least basic literacy in
214 \TeX.
215 If you don't have any experience with \TeX, try starting
216 \ulink[https://www.ctan.org/tex-archive/info/gentle]{here}\fnote{This text is, to a degree, obsolete, as it refers to DVI output of \TeX/. Nowadays, modern \TeX/ ouputs directly to the PDF format.}.
217 The time invested in this preliminary education will not be wasted; the more you understand \TeX/,
218 the better (and more joyfully) you will write your notes.
219
220 \sec[Installation] What we need to run \OpBible/
221
222 It is necessary to have some kind of text editor that does not keep any hidden formatting
223 information in the text (designed for editing programs, for example). It is up to the user what kind
224 of editor suits them.
225 The ideal editor is one that recognizes the programming language by its source file's extension and
226 colors words according to its syntax. E.g.,\ Vi, Emacs, ...
227 \ulink[https://en.wikipedia.org/wiki/List_of_text_editors]{choose}, whichever would suit you.
228
229
230 You also need to have a \TeX/ distribution with the \LuaTeX/ program and \OpTeX/ default macros, and
231 finally you need some kind of output (i.e.,\ PDF files) viewer (we recommend the last version of
232 Evince).
233
234 It isn't important on which operating system you will run this, but we recommend
235 \ulink[https://www.hostinger.com/tutorials/best-linux-distro]{Linux}.
236
237 It is also possible to work in online mode without installing anything, see section~\ref[OverLeaf].
238
239 \secc[TeXlive] \TeX/ at the local machine
240
241 We recommend the latest \ulink[https://tug.org/texlive/]{\TeX/live} distribution.
242 It can be installed on any operating system directly from the web. It is also included in common
243 Linux distributions.
244
245 \TeX/live contains the program \LuaTeX/, which will process your input files and produce output
246 PDFs. It also includes the default macro set \ulink[http://petr.olsak.net/optex/]{\OpTeX/} that the
247 \OpBible/ macros need, and extends it with the options described in this manual. The default set of
248 macros (often called format) defines how documents are marked up and controls formatting. The \TeX/
249 distributions include other default macro sets. The best known is probably \LaTeX/, but it is not
250 needed for \OpBible/.
251
252 \secc[OverLeaf] Variant: remote access on Overleaf.com
253
254 Overleaf is a web-based environment for shared preparation of \TeX/ documents, perhaps
255 by multiple users. You do not need to have \TeX/live installed; you can run it online
256 via \ulink[https://www.overleaf.com]{Overleaf}. The \ulink[https://www.overleaf.com/read/wxmzmjnpjsjx]{default project}
257 containing files for processing by \OpBible/ is also available.
258 As an Overleaf user, you can copy (clone) it to your
259 project and continue working there. However, working with the \TeX/ distribution
260 directly on your
261 computer is significantly faster and more convenient.
262
263 \recommended
264 Something to consider is the time limit of Overleaf \TeX/ processing.
265 Free Overleaf registration gives you just twenty seconds,
266 all paid subscriptions 4 minutes.
267 While twenty seconds could be quite OK if you only work on one particular book,
268 it can turn out that even 4 minutes might be not enough for the entire Study Bible
269 when it is completed.
270 This is just an opinion, not tested and verified fact, though.
271 What we know for sure, is that one minute (the free time limit before October 6, 2023)
272 is not sufficient even for a plain Bible with no notes at all.
273 So if you insist on working on Overleaf
274 (for example, when you often work from different locations),
275 before compiling the entire Bible, it may be wise to download the project in your
276 computer and finish it from there.
277
278
279
280 %\secc[evince] Evince
281
282 %`flatpak` : flatpak run org.gnome.Evince
283
284 %The full text of the Bible is available on the Internet in various translations and English
285
286 \sec Running \TeX/
287
288 If you have a \TeX/ distribution installed on your machine (for example, \TeX/live
289 2022 or newer) %; if not, see the \ref~[installation] chapter)
290 and if you have a command line available on your system, then you can run \TeX/ using:
291 \begtt
292 optex main.tex
293 \endtt
294 where `main.tex` is the name of the main file (it can have a different name).
295 The `optex` command runs \LuaTeX/ with the \OpTeX/ macros. The result of the processing is a file
296 `main.pdf` and the processing message is in the `log` file `main.log`.
297
298 You can test if this works for you (without \OpBible/ macros for now). Create a simple `main.tex`
299 file in a text editor with this content:
300
301 \begtt
302 \fontfam[lm]
303 Hello world!
304 \bye
305 \endtt
306 and run `optex main.tex`. View the resulting PDF file `main.pdf` with a PDF viewer.
307
308
309 \sec Structure of files processed by \TeX/
310
311 \secc[main] Main file with information about all other files
312
313 The main file is the file that is submitted to \TeX/ first. For example, it is
314 listed on the command line to start \TeX/. It contains information about what
315 other files to be read by \TeX/. Finally, \TeX/ will create a PDF file of the same
316 name as the main file name but with the extension `.pdf`.
317
318 The main file for running \OpBible/ (for example, `main.tex` or `bible-en.tex`) might look something like this:
319
320 \begtt
321 \load[opbible] % the OpBible macros
322 \enlang % initializing English hyphenation patterns
323
324 % Translation variants:
325 \def\tmark {BBE} % Bible in Basic English
326 %\def\tmark {Jubilee2000} % Jubilee 2000
327 %\def\tmark {NETfree} % New English Tranlation
328 %\def\tmark {UKJV} % Updated King James Version
329 %\def\tmark {RNKJV} % Restored Names King James Version
330 %\def\tmark {Webster} % Webster Bible
331
332 \input {vars.tex} % Phrase declarations for different translation options
333 \input {books.tex} % Book titles and bookmarks \amark
334
335 \def\txsfile {sources/\tmark-\amark.txs} % Location of txs files
336 \def\fmtfile {formats/fmt-\tmark-\amark.tex} % Location of fmt files
337 \def\notesfile {notes/notes-\amark.tex} % Location of notes files
338 \def\introfile {others/intro-\amark.tex} % Location of book introduction files
339 \def\articlefile {others/articles-\amark.tex} % Location of article files
340
341 \def\printedbooks {%
342 Gen Exod Lev Num Deut Josh Judg Ruth 1Sam 2Sam 1Kgs 2Kgs 1Chr 2Chr Ezra Neh Esth Job Ps
343 Prov Eccl Song Isa Jer Lam Ezek Dan Hos Joel Amos Obad Jonah Mic Nah Hab Zeph Hag Zech Mal
344 Matt Mark Luke John Acts Rom 1Cor 2Cor Gal Eph Phil Col 1Thess 2Thess 1Tim 2Tim Titus
345 Phlm Heb Jas 1Pet 2Pet 1John 2John 3John Jude Rev
346 }
347
348 \processbooks % Generates document with books declared in \printedbooks
349 \bye
350 \endtt
351
352 Now, let's see what each of these lines does and which ones will require modification on your part
353 for the specific needs of your project.
354
355 Using `\load[opbible]`, the \TeX/ loads macros of the \OpBible/ package.
356 This set of macros is the most important program that takes care of the
357 typesetting.
358
359 The \`\enlang` command sets the English word division patterns, so it assumes English
360 text. The `en` is an ISO language abbreviation; you can use other languages:
361 `\cslang` for Czech, `\delang` for German, `\eslang` for Spanish
362 etc. All available language options are listed in the \ulink[https://petr.olsak.net/optex/]{\OpTeX/
363 documentation.}
364
365 The command `\def\tmark {<mark>}` defines the macro \`\tmark` as a mark
366 of the translation used {\em Translation mark}. The marks of all available translations are listed
367 in the file `vars.tex`.
368 One of them should be selected as the mark of the currently processed
369 translation. For example, `BBE` is the mark for the Bible in Basic English.
370 In the example, six options for defining a translation mark in the case of English Bibles are
371 given. Only one option (the one actually selected) does not have the `%` comment character in front
372 of it.
373
374
375 If you are currently working on a book in the `BBE` translation, leave the `main.tex` file in the
376 above form.
377 When you want to switch to, say, the UKJV, you will use the percent sign to comment out (i.e., make
378 invisible to \TeX) the line with the BBE, but make visible (uncomment)
379 the line with the UKJV. Then the `\tmark` definition section will look like this:
380
381 \begtt
382 % Translation variants:
383 %\def\tmark {BBE} % Bible in Basic English
384 %\def\tmark {Jubilee2000} % Jubilee 2000
385 %\def\tmark {NETfree} % New English Tranlation
386 \def\tmark {UKJV} % Updated King James Version
387 %\def\tmark {RNKJV} % Restored Names King James Version
388 %\def\tmark {Webster} % Webster Bible
389 \endtt
390
391 One of the translations must always be active, in other words, \`\tmark` has to be defined. If
392 you forget to put a percent sign before the line you want to comment out, the world won't fall
393 apart; the very last definition that \TeX\ loads will apply, which will redefine any previous ones.
394
395 The command \`\input {vars.tex}` reads the configuration concerning the translation variants
396 from the `vars.tex` file.
397 See section~\ref[vars] for details. Do not touch this line, even though you will probably be editing
398 the `vars.tex` file called by this line.
399
400 The \`\input {books.tex}` reads the information about the marks (abbreviations) of the books of the Bible and the book names are assigned here.
401 This information is discussed in more detail in section~\ref[books].
402
403 The macro \`\txsfile` (defined by `\def`) specifies the location of `.txs`
404 files in the directory structure. For each book of the Bible, there has to be
405 one `.txs` file containing the core text for that book. File
406 names vary by book mark, and if there are multiple translations, the file name
407 also includes the translation mark. In the \`\txsfile` macro, you can use
408 \`\tmark` as the translation mark and \`\amark` or \`\bmark` as the book mark.
409 For book marks, see section~\ref[books]; for the format of `.txs` files, see the discussion in the section~\ref[txs].
410 In the example shown above, `.txs` files are located in the `sources/` directory and are named `<translation-mark>-<book-mark>.txs`, so for example `BBE-Gen.txs`.
411 %%To asi potřebujeme doladit. PO: Nebudeme pouzivat predponu Eng, opravil jsem to.
412
413
414 The English translations mentioned above are ready to go, you don't have to create them for yourself.
415 If you need some other existing translation, you need to get it into a format usable for OpBible, in the same form as the `*.txs` files in the `sources/` directory.
416 The `maketxs` script (see~\ref[txs]) will help you prepare individual `.txs` books from an existing source.
417
418 If you are going to create a brand new translation and plan to use it with OpBible, it probably wouldn't hurt to compose files one by one for each book directly in the desired format,
419 or even better: create the file `your-translation.out` for the entire Bible, and run `maketxs your-translation.out` to create all the `.txs` files needed; see also~\ref[txs].
420
421 The \`\fmtfile` macro defines the location of the files specifying the formatting
422 of the core text. Each book of the Bible of each translation uses its own formatting file.
423 This is something that cannot be common to all translations (unlike notes),
424 because the paragraph breaks and added headings can (and do) differ for each translation.
425 Our intent was so-called non-destructive editing, in other words, formatting the biblical text
426 without interfering with the `.txs` files.
427 The formatting files are discussed in section~\ref[fmt].
428
429 The macro \`\notesfile` defines the location of the notes files.
430 That's where you will write your commenting notes printed with the core text.
431
432 Each book of the Bible has its own notes file.
433 The notes refer to a place in the core text, and it is the job of \TeX/ to create pages with both the core text and the notes commenting on it.
434 For more details on how to write notes files, see section~\ref[note].
435 Notice that the note files are common to all translations, i.e., there are no separate files distinguished by \`\tmark`.
436 The note writing rules allow for the possibility to have various translations over
437 one common notation, so long as they are in one language (e.g., English; see section~\ref[translations]). If you want to write
438 notes for a completely different language, it is the best to start a new project (preferably in
439 another main directory) with different `.txs` files, different formatting and note files.
440
441 The macro \`\introfile` specifies the files where the introductions to
442 each book are written. So, it is possible (and advisable) to create an individual introduction text for each Bible book.
443
444 The macro \`\articlefile` specifies the names of files which contain the theological articles.
445 The articles and similar stuff can be placed practically anywhere in the Bible, on any page interleaved with the core text but not within an introduction text.
446
447
448 The macro \`\printedbooks` contains the marks of the books you want to process by \TeX/.
449 The example above calls to process of the entire Bible, i.e., all 66~books of the Protestant canon are printed.
450 If you're only doing test prints, for example, you can process only some of the
451 books of the Bible and have an alternative definition in the main file, for example
452 `\def\printedbooks{Dan}`. Just put it after the definition for the entire Bible, because
453 later definitions of the same macro take precedence over any earlier ones.
454
455
456 The \`\processbooks` command starts processing all the books specified in the macro
457 \`\printedbooks`. For each book, \TeX/ will read the corresponding core text from
458 `.txs` file, formats it using the data from the appropriate formatting
459 file and appends the notes from the appropriate note file. The introduction text for books and the articles are added too.
460 %You don't need to change anything here.
461
462 The \`\bye` command will terminate \TeX/.
463 Anything you type after this farewell to \TeX/ will be ignored.
464
465
466
467
468 You can also add your own macros and settings to the main file before \`\processbooks`, which will affect the entire typesetting.
469
470 For example, you can put a \`\ChapterPre``{<code>}` or \`\ChapterPost``{<code>}` declaration. These codes are then executed before and after each chapter.
471 %For example, \readplan -- we need to finish
472
473
474 \secc[vars] File declaring translation variants
475
476 If we are working with a single translation variant, there is no need to create this file
477 and use it. Then just remove (comment out) the instruction to read it from the main file.
478
479 In the example in section~\ref[main], the file `vars.tex` is read, which
480 should contain the declaration of translation variant marks using \`\variants`:
481 \begtt
482 \variants <number-of-variants> {<mark>} {<mark>} ... {<mark>}
483 \endtt
484 where `<number-of-variants>` is the number of translation variants (into one and
485 the same language, e.g., English), and then all the marks of the variant
486 translations are listed.
487 For example,
488 \begtt
489 \variants 6 {BBE} {Jubilee2000} {NETfree} {UKJV} {RNKJV} {Webster}
490 \endtt
491 declares the abbreviations for the 6 English translation variants:
492 BBE for Bible in Basic English, Jubilee2000 for Jubilee 2000, NETfree for New English Tranlation, UKJV for Updated King James Version, RNKJV for Restored Names King James Version, and Webster for the Webster Bible.
493
494
495 The translation variants thus defined must match the definitions of `\tmark` in the main `main.tex` file, including upper or lower case.
496
497 Consider in advance the number of translations you want to use (changing their number later will be very difficult, though not impossible)
498 and especially the order of the translations: the same order in which they are declared in the definition of \`\variants` will apply to the entire project.
499 In all the notes commenting on a phrase that spells differently in different translations, you will be listing the different phrase versions in that precise order.
500
501
502 If you know that a phrase or word will appear more often than just in a single note,
503 you can define it directly in the `vars.tex` file using the \`\vdef` command.
504 The number of phrases listed after \`\vdef` must be exactly the same as the number of
505 `<number-of-variants>`, each of them enclosed in brackets, and they must correspond to the translation variants in the same order as the variants listed in the declaration of \`\variants`. For example:
506
507 \begtt
508 \vdef {Greece} {Greece} {Greece} {Grecia} {Grecia} {Grecia}
509 \endtt
510 declares that the name of Greece is transcribed differently in different
511 variants of translation: it is {\it Greece\/} in BBE, Jubilee2000, and NETfree, but changes to Grecia in UKJV, RNKJV, and Webster.
512
513 When we write notes concerning this country in the
514 notes file, we will just write `\x/Greece/` (the first translation variant in the definition of `\variants`)
515 and this will be turned into the corresponding phrase used in the currently processed
516 translation that we have declared in the main file using `\def\tmark{...}`.
517
518 So after changing `\def\tmark{...}` in the main file, all occurrences of
519 of `\x/Greece/` in the text of notes will automatically start behaving differently
520 and adapt to the phraseology of that particular translation variant.
521 Then such words can be inflected or added various endings, for example: The entry `\x/Greece/'s` will yield the form `Grecia's` in the note under the UKJV, RNKJV, and Webster translations but will remain `Greece's` with BBE, Jubilee2000, and NETfree.
522 This is discussed in more detail in section~\ref[translations].
523
524 The command \`\variants` declaring the abbreviations of the translation variants is unique (the only one) for the variants file,
525 whereas there can be more \`\vdef` commands defining variant phrases in the file, because there are of course many phrases that are used in different
526 translation variants, not just the country of Greece.
527
528
529 The whole passages of text can be handled differently depending on the translation variant set. The branching command \`\switch` is used for this purpose.
530 It is discussed in more detail in the section~\ref[switch].
531 For example, the names of individual translations (which are then used in the page header) can be declared differently for different translations using `\def\bibname`:
532 \begtt
533
534 \switch {BBE}{\def\bibname{Bible in Basic English}}%
535 {Jubilee2000}{\def\bibname{Jubilee 2000}}%
536 {NETfree}{\def\bibname{New English Tranlation}}%
537 {UKJV}{\def\bibname{Updated King James Version}}%
538 {RNKJV}{\def\bibname{Restored Names King James Version}}%
539 {Webster}{\def\bibname{Webster Bible}}
540
541 \endtt
542 This particular declaration is a part of the already prepared `vars.tex` file.
543 %% zkontrolovat, zda tomu tak opravdu je
544
545 \secc[books] Books names file
546
547 In the main file, there is an instruction to read the books names file. The example
548 above from section~\ref[main] uses `\input {books.tex}`. That file must contain the commands
549 \`\BookTitle` in the format:
550 \begtt
551 \BookTitle <a-mark> <b-mark> {<non-abbreviated book title>}
552 \endtt
553 There must be at least one space between the marks and the book title.
554 The beginning of a file `books.tex` might look like this:
555
556 \begtt
557 \BookTitle Gn Gen {The First Book of Moses (Genesis)}
558 \BookTitle Ex Exod {The Second Book of Moses (Exodus)}
559 \BookTitle Lev Lev {The Third Book of Moses (Levicitus)}
560 \BookTitle Nu Num {The Fourth Book of Moses (Numeri)}
561 \BookTitle Dt Deut {The Fifth Book of Moses (Deuteronomy)}
562 \BookTitle Jos Josh {Joshua}
563 \BookTitle Jdg Judg {Judges}
564 ...
565 \endtt
566 In the first column after \`\BookTitle`, there are `<a-mark>`s, which are further
567 used in the text of the notes and are used to create links to the Bible passages and other notes. The <a-mark>s are visible in printed text when the references are used.
568
569 In the second column, there are `<b-mark>`s, which can be the same as
570 `<a-mark>`s, but may also be different. It is possible, for example, that the names of the `.txs`
571 files were created by exporting from some software and the bookmarks are different than
572 we need to use in the text of our notes. Then it is possible that in the main file
573 declare the location of the `.txs` files using \`\bmark` instead of \`\amark`, i.e.
574 \begtt
575 \def\txsfile {sources/\tmark-\bmark.txs}
576 \endtt
577 and have the files `BBE-Gen.txs`, `BBE-Exod.txs`, while in the text (including the references) we use
578 the marks `Gn`, `Ex`, etc., not `Gen`, `Exod`. The <b-mark>s are never printed in the text.
579
580 The macro \`\amark` contains the `<a-mark>` of the currently processed book and the
581 macro \`\bmark` includes the `<b-mark>` of the currently processed book.
582
583 Note that the macro \`\printedbooks` (in the file `main.tex`) with the marks of all the books we want to
584 process (see section~\ref[main]) contains `<a-mark>`s, not `<b-mark>`s.
585
586 In the third parameter after \`\BookTitle`, the book names are in brackets.
587
588 File with 66 entries of \`\BookTitle` %(Protestant canon) The
589 is generated automatically after extracting
590 the core texts from Sword download using a program `mod2tex` and a python script `maketxs` (see
591 section~\ref[txs]). Feel free to use them, but `<a-mark>`s and book titles will
592 probably need to be manually modified according to the conventions of the translation, as demonstrated in the example above.
593
594 Additional information about individual books can be added to the book title file
595 using the \`\BookException`, \`\BookPre`, \`\BookPost` commands. They have the following syntax:
596 \begtt
597 \BookException <a-mark> {<exception-text>}
598 \BookPre <a-mark> {<text-before-book>}
599 \BookPost <a-mark> {<text-after-book>}
600 \endtt
601
602 The <exception-text> is inserted before reading all files of the book (`.txs`, format, notes, intro, article files)
603 inside the cycle for reading all books with \`\processbooks`. Then
604 the <text-before-book> is inserted after the book files have been read but before
605 the first verse (or introduction text) is processed. Finally, the <text-after-book> is inserted after the last
606 verse of the book.
607
608 Example of using \`\BookException`:
609 Let's assume your language has diacritical marks that happen to be a part of the abbreviations of some Biblical books, and even though you cannot use diacritics in the file names, you still want to use them in your text to refer to those books as they appear in your Bible.
610 What you can do is to modify the value of the macro \`\amark` so that it does not contain
611 diacritics as follows (following example applies for Czech language):
612 \begtt
613 \BookException Ž {\def\amark{Z}}
614 \BookException Př {\def\amark{Pr}}
615 \BookException Pís {\def\amark{Pis}}
616 \BookException Ř {\def\amark{R}}
617 \BookException Žd {\def\amark{Zd}}
618 \endtt
619
620 Then the `notes-\amark.tex` files, for example, are actually named `notes-Z.tex`,
621 `notes-Pr.tex` etc. In the notes text you normally use the marks of usual book abbreviations, e.g.,
622 Ž, Př, Pís, etc.
623
624 There are five books in the Bible that have only one chapter (Obadiah, Philemon, 2 and 3 John and Jude).
625 Because the references to them are not written with the chapter number (`Phlm 1:4`) but only with the verse number (`Phlm 4`),
626 we have to teach \TeX\ which ones they are so that it does not expect the chapter number but knows that it's the number 1 which in turn is not printed anywhere.
627 When you refer to one of such books, the reference is being interpreted in a different way, see section~\ref[vudaj].
628 This is achieved by defining a macro \`\nochapbooks` which must contain the <a-marks> of these books:
629 `\def\nochapbooks {Obad Phlm 2John 3John Jude}`, obviously identical to those already listed in the `\BookTitle` definition (in the `books.tex` file), as well as those listed in `\printedbooks` definition in the `main.tex` file.
630
631
632 \secc[txs] Core text format, called `.txs` files
633
634 The core text of the Bible is assumed to be stored in `.txs` files
635 (text source). Each of the ~66~ books of the Bible is stored in its own `.txs` file.
636 The names of the `.txs` files and their locations must match the `\def\txsfile` declaration
637 in the `main.tex` file (see~section~\ref[main]).
638
639 Each line of the `.txs` file contains one Bible verse started with
640 `#<chapter-num>:<verse-num>`. The verses must be listed in the correct
641 order. For example, the beginning of the `BBE-Dan.txs` file looks like this (parts of the text are omitted in the sample):
642
643 \begtt
644 #1:1 In the third year of the rule of Jehoiakim, king of Judah ... with his forces.
645 #1:2 And the Lord gave into his hands Jehoiakim, king of Judah ... store-house of his god.
646 ...
647 \endtt
648
649
650 The core texts of the Bible can be obtained, for example, from the Sword modules
651 \url{https://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Bibles}.
652 Individual `.txs` files can then be generated using the following procedure (on Linux):
653 %http://www.biblesupport.com/e-sword-downloads/file/2574-english-jubilee-2000-bible-jb2000bblxexe/ %e-Sword module installer for Windoze
654 Unzip the ZIP downloaded from the web page above (the so-called module). You need
655 have the `libsword-dev` package installed on your computer and the program
656 `mod2tex`, which is part of \OpBible/. Use `installmgr -l` to find out
657 list of downloaded modules. If your current directory is the location where you
658 have unzipped the ZIPs and where the `modules` directory was created, then the modules will be found. The modules contain text in binary format and we need
659 to convert them into text format. To do this, just type the following into the command line:
660 \begtt
661 mod2tex module > file
662 \endtt
663 where `module` is the name of the module. In the resulting file
664 you have the complete core text of the translation (module).
665 For example, after
666 \begtt
667 mod2tex KJVA > KJVA.out
668 \endtt
669 the complete translation of the King James Bible (including Apocrypha) is in the file `KJVA.out`.
670 This can now be split into `.txs` files with the command
671 \begtt
672 maketxs KJVA.out
673 \endtt
674 This command will create the `KJVA-books.tex` file in addition to the 66 `.txs` files, in which
675 contains the titles and abbreviations of each book, so there is:
676 \begtt
677 \BookTitle Gen Gen {Genesis}
678 \BookTitle Exod Exod {Exodus}
679 \BookTitle Lev Lev {Leviticus}
680 \BookTitle Num Num {Numbers}
681 \BookTitle Deut Deut {Deuteronomy}
682 \BookTitle Josh Josh {Joshua}
683 \BookTitle Judg Judg {Judges}
684 ...
685 \endtt
686
687 These titles are in English, as the Sword source does not use non-English module names.
688 If your language is a non-English then it is necessary to manually edit this file and insert the titles of your local language instead of English ones.
689 The abbreviations of the books are listed twice as well. The first one `<a-mark>` should be changed according to convention of abbreviations in your language's Bibles and the second column of abbreviations can stay in English as it already is (as these second abbreviations, the <b-marks>, will be part of the `.txs` file names).
690
691 Then the declaration
692 \begtt
693 \def\txsfile {sources/Eng\tmark-\bmark.txs}
694 \endtt
695 in the main file will cause the created `.txs` files to be searched for
696 in the `sources/` directory and their names are assumed
697 `EngKJVA-Gen.txs`, `EngKJVA-Exod.txs`, `EngKJVA-Lev.txs`, etc.
698
699 If the rare case should arise that you were to compile the Bible from several different sources, say the Old Testament you wanted in Dr. Jan Hejčl's translation and the New Testament in František Žilka's translation, you would have to play a bit with the file names so that the resulting definition of `\tmark` would be the same for the whole Bible. The two `*.out` files (e.g., `HEJCL.out` and `ZILKA.out`)\fnote{Their modules aren't on Sword; the `.out` files would have to be created by downloading them from e.g., `https://obohu.cz` and converting them to the desired form with some clever script (or manually?).} would have to be merged into one and then named e.g., `CzeHecjlZilka.out` and only then execute `maketxs CzeHejclZilka.out`. Now you can have a `\def\tmark{HejclZilka}` definition in the main `main.tex` file and
700 the resulting study Bible will have Hejčl's Old Testament and Žilka's New Testament.
701
702
703
704
705 From now on, you no longer need to modify `.txs` files in any way.
706 In the `sources/` directory, you can have a “data” store of all the core Bible texts for all used translation variants at one place. In the case of the six translation variants
707 of the Protestant canon, you have $6 \times 66=396$ files here.
708
709
710
711 If you have something in the `.txs` files that you want to format differently, it is
712 possible to use \`\cnvtext``{<what>}{<how>}` in the main file.
713 \TeX/ will look up all occurrences of `<what>` in each verse of `.txs` file and replace them with `<how>`.
714 For example, if you have sections of text in square brackets in the `.txs` files, i.e.
715 `[something like this]` and you want to print them in italics, write in the main file:
716 \begtt
717 \cnvtext{[}{\bgroup\it} \cnvtext{]}{\/\egroup}
718 \endtt
719
720 It may turn out that the `.txs` file does not use the correct typographical quotation marks (i.e., in English “...”), but instead there are the programmer's quote marks {\tt"}...{\tt"}.
721 Without interfering with the `.txs` file, this can be fixed by adding an instruction to
722 the main file:
723 `\quotationmarks{`“`}{`”`}`.
724 This will automatically replace the programmer's quote marks in the `.txs` file with correct English typographical quotation marks.
725 Similarly, you can declare the replacement of the programmer's quote marks
726 with Czech or any other other quotation marks, for example by declaring
727 `\quotationmarks{`„`}{`“`}`.
728 The programmer's quote mark is then implicitly
729 replaced by the opening typographical quotation mark (the first parameter in the
730 declaration), but if it is followed by a space, end-of-verse, end-of-paragraph, period,
731 or comma, it is is replaced by a closing typographical quotation mark (the second
732 parameter).
733
734 \secc[fmt] Entries specifying the formatting of the core text in `fmt-*.tex` files
735
736 The core text in `.txs` files does not contain any formatting or additional information,
737 such as chapter titles or where to end a paragraph or where to switch from block format
738 to center-justification and back, or how to display poetry.
739
740 %\mnote{\code{\\fmtadd} \code{\fmtpre} \code{\fmtins}}
741
742 Since we don't want to interfere with the core text,\fnote{Think of them as the
743 Holy Scriptures, therefore “untouchable” texts. The only reason that might entitle
744 you to interfere with the core text is the possibility that you might find an
745 error in the source from the Sword (or wherever you've got it from), when compared against the hard copy. Then it is really better to fix such error on the spot; if so, do it in `*.out` file and recompile it with `maketxs` afterwards.
746 Never rely too much on internet sources; always check them out. They can and do contain errors. For example, Sword modules are full of missing spaces, occasionally you'll find a wrong character there, or even a missing part of a verse, etc. See the file `errata-BKR.txt` on the project's \ulink[opbible.org]{homepage}
747 to learn how many such errors can one Sword module contain.}
748 you need to declare this additional information and link it to the corresponding verses using the special commands \`\fmtadd`, \`\fmtpre`, \`\fmtins`, \`\fmtfont`, \`\fmtkeep` and \`\fmtrepl`.
749 These commands are typically in the `fmt-*-*.tex` files,
750 for example, `fmt-BBE-Dan.tex`. It is advisable to maintain these formatting files
751 dependent both on the book (Daniel in the example above) and on the translation (the Bible in Basic English in the example).
752 You can always start with one file for each book and create the files for other translations as copies of this default one. At the end of a day,
753 however, it may turn out to be be necessary to modify the formatting instructions for different variants of the core text according to the translation used.
754
755
756 The syntax for using these commands is as follows:
757 \begtt
758 \fmtpre{<chapter-number>:<verse-number>}{<fmt-command>}
759 \fmtadd{<chapter-number>:<verse-number>}{<fmt-command>}
760 \fmtins{<chapter-number>:<verse-number>}{<phrase>}{<fmt-command>}
761 \fmtfont{<chapter-number>:<verse-number>}{<phrase>}{<fmt-command>}
762 \fmtrepl{<chapter-number>:<verse-number>}{<phrase>}{<replaced phrase>}
763 \fmtkeep{<chapter-number>:<verse-number>}{<phrase>}
764 \endtt
765 where <fmt-command> is the \"command" given to \TeX/ for formatting.
766 %\mnote{\code{\\endgraf} \code{\\begcenter} \code{\\endcenter}}
767 For example, \`\endgraf` marks the end of a paragraph; \`\begcenter` opens a passage with
768 centered text which must be somewhere later closed with \`\endcenter`. Or
769 \`\chaptit{<text>}` inserts <text> as the chapter title, whereas
770 \`\schaptit{<text>}` inserts the pericope title elsewhere, other than before the first verse of the chapter, and makes space above and below that title.
771
772 %\mnote{\code{\\fmtadd} \code{\fmtpre} \code{\fmtins}}
773 The \`\fmtpre` inserts <fmt-command>
774 at the beginning of the specified verse (before the verse number which is printed in a form
775 of a superscript).
776 The \`\fmtadd` inserts <fmt-command> at the end of the specified verse.
777 Finally, \`\fmtins` inserts <fmt-command> inside the verse after the first occurrence of the
778 specified <phrase> that must exist exactly as given in the verse. Otherwise, \TeX/ prints a warning
779 message and inserts no <fmt-command> at all.
780
781 An example of how the `\fmt*` commands can be used can be seen in the file
782 `fmt-BBE-Dan.tex`.
783
784 The command \`\fmtfont``{<chapter-number>:<verse-number>}{<phrase>}{<font>}`
785 is used to highlight the selected phrase with the selected font.
786 For example, the `\fmtfont{1:7}{the name of}{\em}` in the book of Daniel will print the words
787 \"the name of\thinspace " in italics (to indicate the word not in original language), because `\em` is an intelligent italics switch (it automatically adds the italics correction `\/` after the word, which you don't have to worry about, but which you would have to if you switched to italics with an ordinary `\it`).
788 Any other font switch can be used instead of `\em`.
789
790 The command \`\fmtrepl``{<chapter-number>:<verse-number>}{<phrase>}{<replaced phrase>}`
791 replaces first occurrence of <phrase> by <replaced-phrase>.
792
793 Occasionally (although rather rarely) you may run across the situation where something in the core text requires very specific
794 handling. For example, the RNKJV translation attempts to display Hebrew names, especially God's name YHWH, in Hebrew alphabet, even in
795 the midst of surrounding text in Latin alphabet. Hebrew language writes from right to left and you will have to manage to typeset Hebrew words
796 correctly. In case you download the core text containing such Hebrew words (like RNKJV does), you can use the macro \`\fmtrepl` which searches the occurrences of such Hebrew words and does what we want to print.
797 Consult the file `fmt-RNKJV-Dan.tex`.
798
799 The command \`\fmtkeep``{<chapter-number>:<verse-number>}{<phrase>}` makes first occurrence of the <phrase> unsearchable. So you can apply a next `\fmt*` command to the next occurrence of the <phrase>. You will probably not need this too often; if you do, see the section~\ref[dirty].
800
801 In addition to \`\begcenter` and \`\endcenter`, it is also possible to use controlled
802 indentation with \`\ind``<number>` (as indent).
803 At the point of insertion, the line is terminated and the next line begins indented by the
804 `<number>` of paragraph indents. However, inserting such `\ind` commands
805 via `\fmtins` or `\fmtpre` can be quite laborious and
806 cluttered, yet the Bible is rife with poetic passages that require a lot of
807 of differently indented lines. The command \`\fmtpoetry` can be used for this purpose.
808 We will first demonstrate its use in the example of the NETfree translation of
809 Daniel 6:26--27:
810
811 \medskip
812 \centerline{\picw=.7\hsize\inspic{images/NETfree-Dan-crop.pdf} }
813 \vskip-2pt % it's on two sides, so it looks a little smooth
814
815
816 The poetic part of this sample was typeset this way:
817 \begtt
818 \fmtpoetry{6:26}{God;// forever./ destroyed;//}
819 \fmtpoetry{6:27}{/ delivers// wonders/// earth./ Daniel// }
820 \fmtins{6:26}{Daniel.}{\medskip\hglue-2mm}
821 \fmtadd{6:27}{\bigskip}
822 \endtt
823
824 \`\fmtpoetry``{<chapter-number>:<verse-number>}{<formatting-data>}` determines the
825 format of a particular verse. The <formatting-data>
826 contain the word from the end of the line followed by one or more slashes. Number of
827 of slashes indicates how many paragraph indents the next line after
828 that word will be shifted to the right. <formatting-data> must necessarily end with one or more
829 slashes and may (but do not have to) begin with one or more slashes. If
830 it does, then the beginning of the line is indented by the appropriate number of paragraph indents,
831 but the verse number is set off slightly to the left to the space of a paragraph
832 indentation (see the explanation below in the {\bf Recommended} paragraph).
833
834 If you want to insert extra vertical spaces when using \`\fmtpoetry`,
835 you can do that, but only after the \`\fmtpoetry` command, as you can see in the example above where
836 \`\medskip` (half line space) is inserted.
837 The rule is that when you use more formatting commands like \`\fmtins` or \`\fmtpre` in poetry,
838 these multiple formatting instructions will eventually be executed
839 in reverse order, so for example, for the verse 6:26 in the example above,
840 the first `\medskip` is executed at the beginning of the poetic part of the verse
841 26, after the name Daniel, followed by a period: `\fmtins{6:26}{Daniel.}{\medskip\hglue-2mm}`.
842
843 \recommended
844 If the poetry line starts with the left quotation marks, it is a typographical convention to let
845 them sick out to the left of the text block so that only the letters are aligned, and the empty
846 space bellow the quotation marks does not disturb that alignment. (The same reason applies for the verse numbers but you don't have to
847 worry about these, as they are shifted automatically.)
848 Therefore, you can add some negative horizontal space in order to stick the quotation marks out of
849 the poetry block. In the example above, we used `\hglue-2mm`.
850
851
852 %\secc Notes in `notes-*.tex` files
853 %These files (located according to the `\notesfile` declaration in the main file)
854 %contain, among other things, notes on individual verses or parts of verses.
855 % The command \`\Note` will be the most frequent command in the `notes-*.tex` files, designed to type in the particular notes. Since
856 % the commentary apparatus is the main reason why the
857 %the \OpBible/ package was created, an entire section~\ref[note] is devoted to it.
858
859 \sec Notes and other objects linked to the core text
860
861 Notes in `notes-*.tex` files (located according to the `\notesfile` declaration in the main file)
862 contain, among other things, notes on individual verses or parts of verses.
863 The command \`\Note` will be the most frequent command in the `notes-*.tex` files, designed to type in the particular notes. Since
864 the commentary apparatus is the main reason why the the \OpBible/ package was created, the entire section~\ref[note] is devoted to it.
865
866
867
868 \secc[note] Notes linked to core text phrases: The `\Note` command
869
870 The main purpose of the \OpBible/ tool is to create a PDF from the core text not only
871 with the Bible text itself, but with notes linked to their verses.
872 In order to achieve that we use the `notes-*.tex` files (for example, `notes-Gen.tex` for the book of Genesis), which contain notes on individual phrases of the core text according to
873 the following format. Each individual note is prefixed with the command \`\Note` in this required form:
874
875
876
877
878 \begtt
879 \Note <chapter-number>:<verse-number> {<phrase>}
880 <note-text>
881 <blank line>
882 \endtt
883 For example:
884 \begtt
885 \Note 1:2 {the temple of his god}
886 Marduk was the chief god of the Babylonian pantheon (cf. <Jer 50:2>).
887 \endtt
888 The example is from the `notes-Dan.tex` file, i.e., the notes file on the book of Daniel.
889 More precisely, the note refers to chapter one, verse two, and the phrase “the temple of his god.”
890 This phrase, case-sensitive, must necessarily exist in the specified verse
891 of the core text. Then \TeX/ links it to the corresponding place
892 of the core text, ensuring that the phrase and its commenting note occur
893 on the same page. In other words, the pages do not break by verse number and its corresponding note number; they break by the commented phrase.
894 When a page break occurs inside a verse between two phrases that are being commented on, the notes follow their phrases, not just the beginning of the verse.
895 See an example of this in section~\ref[break-verse].
896
897
898 If the <phrase> is not present exactly in the specified verse of the core text,
899 \TeX/ reports a warning to the log and to the terminal during processing and
900 matches the note with the given verse as if the <phrase> were at the beginning of the verse.
901 You will use the notes without specified <phrase> for summarizing comment on a larger portion of the text; see the first two notes in the sample book of Daniel.
902
903 However, if two consecutive notes should both be without a specified <phrase>, they will be printed in the reverse order to the order in which they appear in the `notes-*.tex` file. In the sample book of Daniel you'll see the note on 1:1-21 to go {\it before\/} the note on 1:1-6:28. In the `notes-Dan.tex` you'll find `\Note 1:1-21` typed {\it after\/} `\Note 1:1-6:28`. If you want to change the order of the notes in such rare cases, simply switch their order in the `notes-*.tex` file.
904
905 The printed note (depending on the typographic design) then contains
906 the repeated chapter and verse numbers, followed by the <phrase> that is being commented on (for example, in bold) followed by the actual text of the note.
907
908 Sometimes it is necessary to search for a slightly different phrase in the core text than what
909 we want to have in the printed note (e.g., the word in the core text is in
910 a different case, or it is a slightly differently worded phrase). Then it is possible to type an equal sign immediately after the `{<phrase>}`, which in turn is followed by the `{<phrase-to-be-printed>}`, i.e.,
911
912 \begtt
913 \Note <chapter-number>:<verse-number> {<phrase>}={<phrase-to-be-printed>}
914 <note-text>
915 <blank line>
916 \endtt
917 In this case, <phrase> is searched for in the core text, but in the actual
918 note, <phrase-to-be-printed> is printed as the note entry. For example:
919
920 \begtt
921 \Note 2:32-33 {head}={The head ... gold, its chest and arms ... silver, its belly
922 and thighs ... bronze, its legs ... iron, its feet partly ... iron and partly ... clay}
923 Moving from the head to the feet of the image, there is a decrease not only in the weight
924 of the materials but also in its value. The image was clearly too heavy with fragile feet.
925 It is an illustration of the fate of all human kingdoms and civilizations: at the end,
926 each of them will collapse by its own weight.
927 \endtt
928
929 In this example, the phrase “head” is being searched for but the text “The head ... gold, its chest and arms ... silver, its belly and thighs ...
930 bronze, its legs ... iron, its feet partly ... iron and partly ... clay” will be printed in bold font as the first part of the note.
931 In this particular example, the note (or at least its beginning) will occur on the page where the first occurrence of the word “head” in the verse 2:32 takes place.
932
933 It is possible to have more notes on the same Bible verse. Each of the notes, however, have to be separated by a blank line as always.
934 In case that two or more consequent notes have identical <chapter-number>:<verse-number>, these numbers are printed only in the first instance, not in following notes on the same verse.
935
936 The individual notes in the source notes file are separated by blank
937 lines. This is necessary, otherwise \TeX/ would not know where the text ends when reading them.
938 It also increases the clarity of the source file.
939 %Additional lines of the note can (but need not) be indented. %really needed?
940
941 If the note refers to the whole verse (without a specified phrase), write
942 `{}`, i.e., an empty search phrase. For example:
943 \begtt
944 \Note 1:1-21 {}={Keeping ritual purity}
945 The prophet introduces the context of his book by recounting a personal history
946 (of his and of his friends) in the captivity, education, loyalty to God and service
947 to King Nebuchadnezzar.
948 \endtt
949
950 Moreover, the last two examples also demonstrate the possibility to give a range of verse numbers.
951 The verse range will be printed in the beginning of the note as expected.
952 If the <phrase> for the search is blank (as in this very last example), then the note
953 will be placed on the same page as the beginning of the first verse in the~specified range.
954 If <phrase> is non-empty, it must occur in the first verse of the range of verses.
955 The range symbol “`-`” is the only “minus” character normally available on
956 keyboard. Its ASCII code is~45. It must not be any special character that somehow resembles a horizontal
957 dash.
958
959
960 The order of printed notes on the same verse corresponds to the order of the phrases on which
961 they comment in the core text. That means that the order in which they are written
962 in the source file is irrelevant. Notes that link to an entire verse using the empty parameter `{}` are placed as the first, and if there are more than one of them, then their order is reverse to that in the source file, as stated above.
963
964 The phrases linked to the notes are printed in the \`\notecolor` color. By default it is red, but you can say (for example) `\let\notecolor=\relax` in your main file, if you don't want to colorize these phrases.
965
966
967 \secc[break-verse] Page break inside a verse
968
969 If different notes comment on different phrases within a single verse, and at the same time a page break after all the formatting happens to come between those phrases in the core text, then the notes follow their phrases to their respective pages. In other words, the page break is not determined by the verse number but by the phrase found in the core text and synchronized with the note.
970
971 In the sample Book of Daniel (of the Webster Bible translation), you can see this happen at the verse 10:20
972 (all the searched phrases are highlighted in red color). Look at page 23
973 where you read “will I return to fight with the prince of Persia” and then at page 24 where the same verse continues with the phrase “the prince of Grecia.” The notes follow their respective phrases to correct pages.
974 (You probably do understand that in a real hard copy Bible the page 23 would be the right one, as all odd pages are, and 24 would be its other side after you turn the page, don't you?)
975
976 \filbreak
977 \bigskip
978 \picw=200pt
979 \line{\hskip10pt\inspic{images/Webster-Dan-10-20A-crop.pdf} \hss
980 \inspic{images/Webster-Dan-10-20B-crop.pdf}
981 \hskip10pt}
982
983
984 \secc[articles] Commands to insert other objects
985
986 In addition to the \`\Note` commands, the `notes-*.tex` file can be used to write instructions for
987 inserting additional objects related to a particular verse in the core text. Such an object is
988 placed on the bottom of the page under the two columns of notes.\fnote{According to the implicit
989 page design; this can be redefined. } If the object is a quotation, it is placed on
990 top of the page. We define the link to the location of the text using the
991 `<chapter-number>:<verse-number>`, similar to \`\Note`. The object is placed on the same page where
992 the corresponding verse begins.
993 If the object does not fit on the page below the verse, it is placed at the bottom of the
994 of the following page.
995 %% I guess it would take some examples
996
997 You can insert images using \`\putImage` (section~\ref[putimage]), articles using \`\putArticle`
998 (section~\ref[putarticle]), quotations using \`\putCite` (section~\ref[topcite]), images across two
999 pages in an open book using \`\putSpanImage` or \`\putSpanText` (section~\ref[spanimage]).
1000
1001 The order in which you write the commands to insert these objects in the `notes-*.tex` file has no
1002 effect on the final appearance. You can have all objects of one type concentrated in one place in
1003 the source file, or you can have them placed between `\Notes`, typically by the verse number to
1004 which the objects are bound.
1005
1006
1007
1008
1009
1010 \secc[putimage] Inserting Images
1011
1012 To place images with a link to a specific verse, use the \`\putImage` command:
1013
1014 %\mnote{\code{\\putImage}}
1015 \begtt
1016 \putImage <chapter-number>:<verse-number> {<caption>} [<label>] (<parameters>) {<file>}
1017 \endtt
1018 For example:
1019
1020 \begtt
1021 \putImage 2:1 {Daniel's Visions} [daniels-visions] () {Nabuco.pdf}
1022 \endtt
1023
1024
1025
1026 \begitems
1027 * `<chapter-number>:<verse-number>` indicates the location where the image is placed.
1028 * `<caption>` is the caption to the image.
1029 In the default typographic settings, it is printed in a strip that separates the upper part of the
1030 page from the the image itself.
1031 * `<label>` specifies the image's reference label. You can then refer to it using \hfil\break
1032 \code{...see image \\ref [daniels-visions] on page \\pg}, which,
1033 % ...see image` \`\ref` `[<daniels-visions>]` on page \`\pg`, which,
1034 in the case of our example, prints ... see image {\Blue Daniel's Visions} on page~{\Blue 123}.
1035 In doing so, the text in this link will be hyperlinked to the place where the image occurs.
1036 If you don't want to use `<label>`, type `[]` (an empty label).
1037
1038 * `<parameter>` specifies optional additional instructions for formatting the image. They can be
1039 non-present, as the example suggests.
1040 By default, the image is stretched to the full width of the page. If you want it
1041 smaller, for example, type `<parameters>` in the space for `\picw=9cm` which
1042 will cause the image to be 9\,cm wide and centered.
1043 * `<file>` is the full name of the image file. It can have the extension `pdf` (for
1044 vector images) or `png` or `jpg` (for bitmap images).
1045 Image files must be stored in the `images/` directory. If they
1046 are located elsewhere, the parameter \`\picdir` must be set for that location,
1047 for example `\picdir={BibleImages/}`. It is sensible to have it set in the main file, see
1048 section~\ref[main].
1049 \enditems
1050
1051
1052
1053 \secc[putarticle] Inserting Articles
1054
1055 Articles with text (typically significantly longer than a note) can be placed on a page in a
1056 similar manner as images, i.e., in the default typographic setting at the bottom of the of
1057 the page on which the verse specified by
1058 `<chapter-number>:<verse-number>` happens to occur.
1059 If it does not fit there, it is inserted at the bottom of the next page.
1060 If it does not fit on a single page, its next part is inserted at the bottom of the next page (and
1061 so on until the whole article is complete).
1062
1063
1064
1065 Write the text of articles for each Biblical book in a file called by the macro \`\articlefile`.
1066 For example, the file `articles-Gen.tex` contains all the articles for the book of Genesis.
1067 For how the content of such file has to look like, see below.
1068
1069
1070 In the `notes-*.tex` file, you need to specify the article location request
1071 using \`\putArticle`:
1072
1073
1074 \begtt
1075 \putArticle <chapter-number>:<verse-number> {<title>} [<article-number>] (<parameters>)
1076 \endtt
1077 For example:
1078 \begtt
1079 \putArticle 6:1 {Who Was Darius the Mede?} [6] ()
1080 \endtt
1081
1082 \begitems
1083 * `<chapter-number>:<verse-number>` indicates the location to which the article will be placed.
1084 * `<title>` is the title of the article. It is printed in a similar way as the caption of an image.
1085 * `<article-number>` is a numeric designation of the article that must be unique within each single
1086 Biblical book.
1087 As articles are typically linked to chapters (we don't assume more than one article in a single
1088 chapter), then the
1089 `<article-number>` can (and should but does not necessarily have to) be the number of the
1090 corresponding chapter.
1091 The article is not placed following this number, however, the number is being used for references.
1092 For example, you can type \code{...see <"article" Da 6>a} and it will print
1093 ...see {\Blue article~Da~6}. The format and properties of such links
1094 are described in section~\ref[links]. In addition, the `<article-number>` is used to find
1095 the actual text of the article in the corresponding `atricles-*.tex` file.
1096 The * `<parameters>` are optional parameters that specify the formatting of the article.
1097 If you are satisfied with the default settings (e.g., the width = `\hsize`) then leave the
1098 parentheses `()` empty.
1099 \enditems
1100
1101 The text of the articles to be inserted must be in the `articles-*.tex` file.
1102 This file must contain a line started by \`\Article` as follows:
1103
1104 \begtt
1105 \Article [<article-number>] <text-of-the-article>
1106 \endtt
1107 Then it can continue with the next article given by another command
1108 `\Article` `[<article-number>]` followed by more text, etc.
1109 All the articles for a given book are thus grouped in a singe file.
1110
1111 If you specify the request \`\putArticle` but the corresponding file `article-*.tex`
1112 or the corresponding line \`\Article` `[<article-number>]` does not exist, \TeX/ will end with
1113 an error.
1114
1115
1116
1117
1118
1119 \secc[topcite] Inserting quotations at the top of the page
1120
1121 %\mnote{\code{\\putCite}}
1122 The command \`\putCite` `<chapter-number>:<chapter-number> {<text>}`,
1123 by default, inserts <text> as a quotation at the beginning of
1124 page containing `<chapter-number>:<verse-number>`.
1125
1126 The <text> itself may contain a \`\quotedby {<author>}` at the end. In such a case
1127 <author> is printed on a new line (if the quotation is placed on the right page) or, assuming
1128 there is enough space, it is shifted more to the right on the last line (if the quotations is
1129 placed on the left page).
1130
1131
1132
1133 For a controlled transition to a new line, you can use the \`\nl` (new line) command in <text>.
1134 For example:
1135
1136 \begtt
1137 \putCite 1:8 {You can’t get second things by putting them first. \nl
1138 You get second things only by putting first things first.
1139 \quotedby{C. S. Lewis}}
1140
1141 \endtt
1142
1143
1144
1145 \secc[cite] Inserting quotations in the margin of an article
1146
1147 Article text is formatted in two columns by default.
1148 It is possible to break the outer column and insert a quotation or something similar.
1149 Such text will stick out into the outer margin.
1150
1151 Inside the article (i.e., just after \`\Article` `[<article-number>]`)
1152 you need to insert a declaration of the quoted text using:
1153 \`\Cite` `<letter> {<text>}`. %\mnote{\code{\\Cite}}
1154 Here <letter> is typically `A`. But if you want to insert more than one
1155 quotations in a single article, you need to distinguish between
1156 them with additional letters, i.e., `B`, `C`, etc.,
1157 and all quotations have to be written at the beginning of the article.
1158
1159
1160 %\mnote{\code{\\insertCite}}
1161 The \`\Cite` command only declares the quote. Its actual insertion into the text
1162 is done by \`\insertCite` `<letter>\left` and at the same time \`\insertCite` `<letter>\right`
1163 elsewhere in the text of the article.
1164 If the article is on the left-hand side of a double page, the quotation is placed
1165 only by `\insertCite<letter>\left`, in other words, `\insertCite<letter>\right` is
1166 ignored. If the article is on the right-hand side of an open double page, the placement is
1167 is governed only by `\insertCite <letter>\right`. The quotation will appear
1168 right below the line in which the \`\insertCite` is given. The line itself is
1169 is not split because of this (in other words, the paragraph is not terminated because of the
1170 insertion of the quotation).
1171
1172 The reason why it is necessary to give two locations for \`\insertCite` is following:
1173 We don't know ahead on which page (odd or even) the article with the inserted quotation
1174 will appear. Since the quotation should stick out in the outer margin,
1175 it should be placed in the first column on the left page,
1176 and in the second column on the right page, that is
1177 somewhere slightly different. The location of `\insertCite <letter>\left` should therefore
1178 correspond to a line in the first column and `\insertCite <letter>\right`
1179 to another line in the second column of the article.
1180
1181
1182 It is wise to debug (i.e., test in advance) what the placement of the quote looks like
1183 for both options that may occur (left/right). If you want to
1184 to see how it works for the variant that doesn't match the correct position
1185 of a page, you can use the command \`\swapCites` at the beginning of the article text which will
1186 switch the left/right position of the quotation.
1187 %\mnote{\code{\\swapCites}}
1188 But this should not be left on for the final printing, thus activated
1189 `\swapCites` will cause a warning printed to the terminal and to the log file.
1190
1191 \sec[translations] Different (but similar) versions of the core text
1192
1193 See section~\ref[vars] for an introduction to this issue. This is detailed documentation for
1194 each option.
1195
1196 \secc[cmdx] Declaring translation variants and using the `\x` command
1197
1198 If the variants are not declared with the \`\vdef` command, then
1199 \`\x``/<phrase>/` command used in the text will output the same <phrase>.
1200 However, it is possible to declare translation variants.
1201 The number of variants must be specified with the \`\variants` command
1202 (see section~\ref[vars]).
1203 This is done just once for the whole document (the entire Bible).
1204 Then the \`\vdef` commands can follow, always with exactly as many parameters
1205 and in the same order
1206 as the number of variants specified by the \`\variants` command. For example:
1207
1208 \begtt
1209 \variants 6 {BBE} {Jubilee2000} {NETfree} {UKJV} {RNKJV} {Webster}
1210
1211 \vdef {took the kingdom} % BBE
1212 {possessed the kingdom} % Jubilee2000
1213 {take possession of the kingdom} % NETfree
1214 {possessed the kingdom} % UKJV
1215 {possessed the kingdom} % RNKJV
1216 {possessed the kingdom} % Webster
1217
1218 \vdef {He-goat} % BBE
1219 {Goat} % Jubilee2000
1220 {Male goat} % NETfree
1221 {He goat} % UKJV
1222 {Goat} % RNKJV
1223 {He-goat} % Webster
1224
1225 \endtt
1226
1227 If `\def\tmark {<variant>}` is now declared in the main file,
1228 then the `\x``/<phrase>/` will turn into the <phrase> of the specified <variant>.
1229 In doing so, the <phrase> parameter of the \`\x` command must be identical
1230 to the~first phrase specified in the \`\vdef` command (in the examples above,
1231 it's BBE's `took the kingdom` and `He-goat`).
1232 If, in our case, the main file says `\def\tmark{BBE}`, then
1233 \medskip
1234 \code{\\x/took the kingdom/} yields: took the kingdom
1235
1236 \code{\\x/He-goat/} gives: He-goat
1237
1238 \code{\\x/Whatever/} prints: Whatever
1239
1240 \medskip
1241
1242 But if there is a `\def\tmark{Jubilee2000}` in the main file, then
1243
1244 \medskip
1245 \code{\\x/took the kingdom/} yields: possessed the kingdom
1246
1247 \code{\\x/He-goat/} gives: Goat
1248
1249 \code{\\x/Whatever/} will print Whatever and the terminal will warn
1250 that the phrase `\x/Whatever/` has no declared translation in `\vdef`.
1251 \medskip
1252
1253
1254
1255 Selected parameters of \`\vdef` may be empty (written as ~`{}`),
1256 indicating an undefined phrase for that translation.
1257 If such undefined phrase needs to be used with \`\x/.../`, a warning message
1258 will be printed in the `.log` file.
1259
1260 In addition, the parameter may contain a single `"` character, indicating that the
1261 the same phrase is used as in the previous parameter. So our
1262 example above might also look like this:
1263 \begtt
1264 \vdef {took the kingdom} % BBE
1265 {possessed the kingdom} % Jubilee2000
1266 {take possession of the kingdom} % NETfree
1267 {possessed the kingdom} % UKJV
1268 {"} % RNKJV
1269 {"} % Webster
1270 \endtt
1271
1272 \secc[ww] Variant phrase declarations for matching notes with text
1273
1274 The \`\Note` command may be immediately preceded by a declaration of the search
1275 phrase by variant translations using \`\ww` (this is an abbreviation for watchword).
1276 The \`\ww` command has as many parameters as there are translation variants declared by
1277 \`\variants` command, and these parameters can be simple (in the format
1278 `{<wanted-phrase>}`) or compound (in the format
1279 `{<search-phrase>}={<what-to-print>}`). The immediately following \`\Note`
1280 will then ignore its parameter for the search phrase and use the parameter from \`\ww`
1281 corresponding to the translation variant being processed. For example:
1282
1283 \begtt \typosize[8/11] \catcode`<=12
1284 \ww {if you do not make clear to me the dream and the sense of it} % BBE
1285 {if ye will not make known unto me the dream with its interpretation} % Jubilee2000
1286 {If you do not inform me of both the dream and its interpretation} % NETfree
1287 {if all of you will not make known unto me the dream, with the interpretation thereof} % UKJV
1288 {if ye will not make known unto me the dream, with the interpretation thereof} % RNKJV
1289 {if ye will not make known to me the dream, with the interpretation of it} % Webster
1290 \Note 2:5 {If you do not tell me what my dream was and interpret it.}
1291 Nebuchadnezzar formulated a plan for testing his advisors. If they could not relate the dream back
1292 to him he would have no confidence in their interpretation (see <"v." 9>).
1293 \endtt
1294
1295 The `Note 2:5` given here searches the text in verse 2:5 for \"if you do not make clear to me the
1296 dream and the sense of it" when a variant translation of the BBE is being processed, and looks up
1297 the text \"if ye will not make known unto me the dream with its interpretation" when the Jubilee2000
1298 translation variant is being processed.
1299 The example assumes that six `\variants` have been declared using the
1300 `\variants` command for translation variants in the specified order.
1301
1302 Whenever \`\ww` preceeds a \`\Note`, the brackets for a `{<phrase>}` after the \`\Note` can contain anything and it will not be displayed, as it will be replaced by the content of \`\ww`. However, they always have to be present, even if empty.
1303
1304 You can also specify a different phrase
1305 for searching and for printing in a note, as shown in the following example:
1306
1307 \begtt \typosize[8/11]
1308 \ww {head}={head ... gold, ... breast and arms ... silver, ... middle and sides ... brass, legs ...
1309 iron, ... feet in part of iron and in part of potter's earth} % BBE
1310 {head}={head ... gold, ... breast and arms ... silver, ... belly and thighs... brass, legs ...
1311 iron, ... feet part of iron and part of baked clay} % Jubilee2000
1312 {head}={head ... gold, ... breast and arms ... silver, ... belly and thighs... brass, legs ...
1313 iron, ... feet part of iron and part of clay} % NETfree
1314 {head}={head ... gold, ... breast and arms ... silver, ... belly and thighs... brass, legs ...
1315 iron, ... feet part of iron and part of clay} % UKJV
1316 {head}={head ... gold, ... breast and arms ... silver, ... belly and thighs... brass, legs ...
1317 iron, ... feet part of iron and part of clay} % RNKJV
1318 {head}={head ... gold, ... breast and arms ... silver, ... belly and thighs... brass, legs ...
1319 iron, ... feet part of iron and part of clay} % Webster
1320 \Note 2:32-33 {} Moving from the head to the feet of the image, there is a decrease not only in the
1321 weight of the materials but also in its value. The image was clearly too heavy with fragile feet.
1322 It is an illustration of the fate of all human kingdoms and civilizations: at the end, each
1323 of them will collapse by its own weight.
1324 \endtt
1325
1326 The \`\ww` also accepts the parameters in the form `{"}` like the \`\vdef` does. The value of previous parameter is used instead of `{"}`.
1327
1328 The search and replace phrases are used exactly as they are written in
1329 parameters of the \`\ww` command. This does not apply to \`\Note` notes, which are not preceeded by
1330 \`\ww`. Then when using
1331
1332 \begtt
1333 \Note <chapter:verse> {<search-phrase>} <text> <blank line>
1334 \endtt
1335 or
1336 \begtt
1337 \Note <chapter:verse> {<search-phrase>}={<what-to-print>} <text> <blank line>
1338 \endtt
1339 the <search-phrase> is first transformed by the data from `\vdef`. Only if
1340 such data do not exist for the search phrase, <search-phrase> is being used as it is.
1341
1342 \watchout
1343 Keep in mind that formatting a phrase (see~\ref[fmt])
1344 prevents it from being found, as the formatting sticks its own commands to it.
1345 So if your note is commenting on a phrase that already underwent
1346 some formatting
1347 (e.g., a line break within a poetry passage, or a font change, etc.)
1348 pick the closest word that is not influenced by this formatting as the search
1349 phrase, and use the complete phrase that you want to display as the replacement
1350 (`<what-to-print>`) one.
1351
1352 For example, you want to comment on the phrase {\em How great are his signs!}
1353 in Daniel 4:3. Writing directly
1354 `\Note 4:3 {How great are his signs!}` would yield a warning message and the
1355 phrase would not be found. That is because in some translations (e.g., NETfree,
1356 see the file `fmt-NETfree-Dan.tex`), the word {\em sign!} at the end of the
1357 sentence is part of formatting, while in some others
1358 (e.g., Jubilee2000 or Webster) the core
1359 text contains extra characters `[]` around some words that are being
1360 converted into font change command using `\cnvtext` (see~\ref[txs]) .
1361
1362 Therefore, you have to work around by using replacement (`<what-to-print>`)
1363 phrase:
1364
1365 \begtt
1366 \Note 4:3 {How great}={How great are his signs!}
1367 \endtt
1368
1369
1370 \recommended
1371 For clarity, it is worthwhile to have each translation on a new line, and to label it after
1372 the commenting percentage sign, so that we know what belongs where without groping.
1373 The last line of the `notes-*.tex` file for a particular book that \TeX\ loads should contain a
1374 single `\endinput` command.
1375 Whatever follows below this instruction on subsequent lines will not be seen by \TeX. (But don't
1376 confuse it with `\end` or `\bye` so that \TeX\ doesn't stop running at this point but continues
1377 reading
1378 other files.)
1379
1380 Then, below `\endinput`, you can have a few lines prepared, e.g., in this form:
1381
1382 \begtt
1383 \ww {}={} % BBE
1384 {}={} % Jubilee2000
1385 {}={} % NETfree
1386 {}={} % UKJV
1387 {}={} % RNKJV
1388 {}={} % Webster
1389 \Note 1:1 {}={}
1390 \endtt
1391 and then just copy these lines in place of the new note, edit the chapter and verse number after
1392 `\Note`, or delete `={}` where they are not needed. This way you don't lose track of
1393 which phrases belong where, whether you write them out manually or paste them from a Bible program
1394 or online resources.
1395
1396
1397 \secc[switch] Text processing branching by translation variants
1398
1399 %\mnote{\code{\\switch}}
1400 You can use the \`\switch` command to branch the text processing,
1401 depending on the set value of the \`\tmark` parameter, i.e., depending on
1402 the translation variant currently being processed. The command has the following syntax:
1403 \begtt
1404 \switch {<list of variants>} {<what to do>}%
1405 {<list of variants>} {<what to do>}% ... etc.
1406 {<list of variants>} {<what to do>}
1407 \endtt
1408 The pairs `{<list of variants>} {<what to do>}` can be given as many times as you like.
1409 After each pair `{<list of variants>}{<what to do>}` (except for the very last pair) must be
1410 followed immediately and without spaces by another such pair.
1411 Therefore, when moving to the next line, write a percent sign after the closing parenthesis to cover
1412 the space from the end of the line. Spaces at the beginning of the next line do not matter.
1413 You can understand the percent sign after the pair as “next pair continues”.
1414
1415 The `<list of variants>` is a single translation variant mark or a list of translation variant marks separated by a comma and no spaces. \TeX/ then works as follows:
1416 If a variant defined by the \`\tmark` parameter occurs in the `<variant list>`, then
1417 the following `<what to do>` is executed. If there is no such variant,
1418 the following `<what to do>` is skipped. Example:
1419 \begtt
1420 \switch {BBE} {water-door of the Ulai}% BBE
1421 {NETfree} {Ulai Canal}% NETfree
1422 {Webster} {river Ulai}% Webster
1423 {Jubilee2000,UKJV,RNKJV} {river of Ulai} % UKJV, RNKJV, Jubilee2000
1424 \endtt
1425 The example shows how to print the name of Ulai river, depending on
1426 the translation variant being processed.
1427
1428 Once \TeX/ finds a match and does `<what to do>`, then the possible following
1429 entries within the same `\switch` command are skipped. Furthermore, the rule is that
1430 if `<list of variants>` is empty, then `<what to do>` is always executed, if
1431 not skipped according to the previous rule. So an empty `<list of variants>`
1432 at the end of the `\switch` parameter pairs is evaluated as “all other
1433 cases”. The example above can also be written as follows:
1434 \begtt
1435 \switch {BBE} {water-door of the Ulai}% BBE
1436 {NETfree} {Ulai Canal}% NETfree
1437 {Webster} {river Ulai}% Webster
1438 {} {river of Ulai} % UKJV, RNKJV, Jubilee2000
1439 \endtt
1440
1441 The `\switch` command can be used not only for single phrases within notes
1442 `\Note`, but also to entire sections of input text containing, for example, `\Note`,
1443 several `\Note` notes, several definitions, etc.
1444
1445 The `\switch` command cannot be used in the parameters of other macros. On the other hand, the
1446 command `\x/<phrase>/` works inside `\switch`.
1447
1448
1449
1450
1451 \secc[renum] Renumbering verses according to translation variants
1452
1453 %\mnote{\code{\\renum}}
1454 Some translation variants have different verse numbering. In such cases, the
1455 \`\renum` command can be used as follows:
1456
1457 \begtt
1458 \renum <book-abbreviation> <default-chapter-number>:<default-verse-number> = <translation>
1459 <chapter-number>:<verse-number-from>-<verse-number-to>
1460 \endtt
1461 where `<translation>` is the mark of a particular translation. If the `\tmark` is declared as `<translation>` using `\def\tmark{<translation>}` then
1462 the `<default-chapter-number>:<default-verse-number>` is replaced with
1463 <chapter-number>:<verse-number-from>-<verse-number-to>.
1464 Such renumbering applies to the entire range of verses defined by `<verse-number-from>-<verse-number-to>`.
1465
1466 For example, let's suppose that
1467 in the book of Daniel, in verses 10:20 and 10:21 we want to comment on several phrases, such as
1468 “angel of Persia” and “true writings”. For some reason (not entirely clear) BBE has these phrases in
1469 opposing verses then the rest of the translations.
1470
1471 We number the notes according to the translation given as the first parameter of the definition of
1472 `\variants` in the `vars.tex` file, (in our example `BBE`) including references like “See note on
1473 10:20.”
1474 Renumbered translations change the note number according to the actual verse number that the note
1475 comments on, including the reference, which is then printed as “See note on 10:21.”
1476
1477 If the renumbering refers to a single verse only, then the identical
1478 `<verse-number-from>` and `<verse-number-to>` should be given, as in the example below:
1479
1480 \begtt
1481 \renum Dan 10:20 = Jubilee2000 10:21-21
1482 \renum Dan 10:20 = NETfree 10:21-21
1483 \renum Dan 10:20 = UKJV 10:21-21
1484 \renum Dan 10:20 = RNKJV 10:21-21
1485 \renum Dan 10:20 = Webster 10:21-21
1486 \endtt
1487
1488
1489
1490 %After such a declaration, the final remark
1491 %\begtt \catcode`\<=12
1492 %\Note 5:31 {Darius}={\x/Darius/Median} Some schools claim that this and other
1493 % (<6:1>, <6:6>, <6:9>, <6:25>, <6:28>; <9:1>; <11:1>)
1494 % The references to \x/Darius/ Medes in the book of \x/Daniel/ are historical errors.
1495 %\endtt
1496 %prints as follows:
1497 %
1498 %{\medskip\leftskip=\parindent\noindent
1499 %{\bf 6:1 Darius the Mede} \ Some schools claim that this and other
1500 %(6:2, 6:7, 6:10, 6:26, 6:29; 9:1; 11:1)
1501 %references to Darius the Mede in the book of Daniel are historical errors.
1502 %\medskip}
1503
1504 The macro `\renum` can handle even such tidbits as shifting a number of a mere part of a verse.
1505 This example comes from the Czech SNC translation where the phrase \uv{jen Bůh, který je v nebesích, odhaluje tajemství} (\"there is a God in heaven
1506 who reveals secret things"), is for no clear reason a part of the verse 2:27 while all other Bibles have it in the verse 2:28.
1507 But the fun does not end here; if you want to comment also on the phrase \uv{posledních dnů} (\"the latter days") you'll now find it in the verse 2:28
1508 where the rest of the Bibles have it as well. What are you going to do? How can you renumber just half of the verse?
1509
1510 Well, you can do it by applying `\renum` on the same verse twice: the first time {\em before} the `\Note` on the first phrase, and the second time {\em after} it.
1511 So you type:
1512 \begtt
1513 \renum Da 2:28 = SNC 2:27-27
1514 \ww {jest Bůh na nebi, kterýž zjevuje tajné věci} %BKR
1515 {v nebesích je Bůh, zjevující tajemství} %PSP
1516 {jest Bůh na nebesích, zjevující tajemství} %CSP
1517 {je Bůh v nebesích, který odhaluje tajemství} %CEP
1518 {Na nebi je však Bůh, který zjevuje tajemství} %B21
1519 {jen Bůh, který je v nebesích, odhaluje tajemství} %SNC
1520 \Note 2:28 {} Podobně jako Josef v Egyptě (<Gn 40:8>; <Gn 41:16>) si ani \x/Daniel/
1521 nepřisvojuje poznání a výklad snu, nýbrž připisuje je Bohu.
1522
1523 \renum Da 2:28 = SNC 2:28-28
1524 \ww {v potomních dnech} %BKR
1525 {v posledku dní} %PSP
1526 {v budoucích dnech} %CSP
1527 {v posledních dnech} %CEP
1528 {v posledních dnech} %B21
1529 {posledních dnů} %SNC
1530 \Note 2:28 {} Dosl. \uv{v posledních dnech}, čemuž sz lidé rozuměli jako době obnovy národa
1531 po návratu z exilu (viz <Dt 4:30>). Tatáž fráze může označovat jakoukoliv budoucnost
1532 (<Gn 49:1>). V NZ je použita celkem pětkrát, z čehož dvakrát odkazuje na věk, započatý
1533 o Letnicích (<Sk 2:17>; <Žd 1:2>), a třikrát na závěr dějin
1534 před Kristovým druhým příchodem (<2Tm 3:1>; <Jk 5:3> a <2Pt 3:3>).
1535
1536 \endtt
1537
1538 Now everything works as it should: Where the numbering diverges, it renumbers; where it it matches, it stays the same. All Bibles except SNC have the first `\Note` numbered 2:28 but SNC has it as 2:27; then all of them have the second `\Note` as 2:28.
1539
1540 \recommended
1541 You may want to use `\renum` also in other files, e.g., intro or fmt, not just
1542 notes. In such cases, if would be advisable to use `\renum` inside the
1543 `vars.tex` file, so that it applies everywhere without the need to retype
1544 the same instruction more times (for example, both in Introduction and Notes
1545 files).
1546
1547
1548
1549 \sec[links] Methods of creating hyperlinks
1550
1551 A reference is a part of the text by which the reader, even after printing it, can tell to what other place in the text (or in the~internet) one can look at. Thus, it typically contains a numerical indication of page or the number of a chapter, section, etc. In addition, if the reader is working with a PDF viewer, then this part of the text can be {\em active}, i.e., when the mouse hovers over
1552 this text you can click on it and the PDF viewer will go to the specified place in the document (or to the Internet).
1553
1554 The Bible is invariably
1555 structured text. It contains (in the Protestant canon) 66 books with established markers for those books,
1556 each book has its chapters numbered from one and each chapter has verses
1557 numbered from one. So there is no need to have \TeX/ generate these numbers
1558 automatically (as it does when typesetting, say, a technical text that is divided into
1559 chapters and sections), and thus there is no need to use labels in the source
1560 document (which \TeX/ would assigns to the numbers generated during processing) and to refer by these labels in the source file,
1561 as described in section \ulink[http://petr.olsak.net/ftp/olsak/optex/optex-doc.pdf]{1.4.3} of the
1562 \ulink[http://petr.olsak.net/optex/]{\OpTeX/} documentation.
1563 It is much more efficient to refer directly to a specific place in the Bible that already has
1564 for many centuries now, fixed chapter and verse numbers.\fnote{%
1565 The Archbishop of Canterbury, Stephen Langton, in the early 13th century, when he was teaching at the University of Paris (and has not yet become an
1566 archbishop) divided the Bible into chapters.
1567 Then, in the mid-16th century, the French books printer Robert Estienne divided the New Testament into verses and added the Old Testament,
1568 which Jewish scribes had centuries earlier divided into verses (but not into chapters).
1569 Since 1553, when Estienne published the first French Bible thus numbered, we have used this system to this day.}
1570
1571
1572
1573
1574 The references to a specific place in the Bible are written between \code{<} and \code{>} in the source file.
1575 The text between these characters is printed as written (with the exceptions mentioned below).
1576 Nevertheless, \TeX/ has to be able to interpret the reference correctly in order to
1577 make it active with a clicking capability to the correct place in the Bible. This is done by
1578 rather large amount of rules, therefore this section is dedicated to them.
1579
1580
1581 \secc[uudaj] Basic rule with complete data
1582
1583 The reference between \code{<} and \code{>} is of the form
1584 \begtt\catcode`<=12
1585 <"text" data>
1586 \endtt
1587 \ or just \code{<}`data`\code{>}.
1588 The complete `<data>` is of the form `<book> <chapter>:<verse>`. Here `<book>` is the abbreviation of the book (it must be followed by
1589 space), `<chapter>` is the chapter number, and `<verse>` is the verse number.
1590 Example:
1591
1592 \begtt \catcode`<=12
1593 ... see also verse <Jer 8:13>
1594 ... see also <"verse" Jer 8:13>
1595 \endtt
1596 In the first case it prints ... see also verse {\Blue Jer 8:13} and in the second case
1597 ... see also {\Blue verse Jer 8:13}.
1598 In both cases the area marked in blue will be active (clickable) and will lead to Jer 8:13.
1599
1600
1601 \secc Link specifier
1602
1603 The link's closing character `>` may be immediately (i.e., without a space) followed by a link
1604 specifier, which is one of the letters:
1605 \begitems
1606 * `n` ... refers to a note,
1607 * `a` ... refers to an article,
1608 * `i` ... refers to an introduction,
1609 * `g` ... refers to a gloss (which will hopefully come into play in one of the future versions of \OpBible/ with the core text typeset in two columns).
1610 \enditems
1611 The link specifier is not printed in PDF, it is just internal information where
1612 the active link should click. If the closing character `>`
1613 is not followed by any of these specifiers, it is a link to the verse
1614 (probably the most common case).
1615 Example of a note reference:
1616
1617 \begtt \catcode`\<=12
1618 ... see <"note on" Jer 7:4>n for more information.
1619 \endtt
1620 prints ... see {\Blue note on Jer 7:4} for more information.
1621 The click leads to the first note on Jer~7:4, not to the verse itself.
1622
1623 In the case of a reference to an article (specifier `a`), the full entry has the format
1624 `<book> <chapter>`, i.e., the verse information is missing because the articles can be understood as introductions to chapters. In the case of a reference to the introduction to a book (specifier `i`), the full entry is in the format `<book>` (lacking both chapter and verse information) because these
1625 are book introductions. In~other cases, the full entry has the format as
1626 described in section~\ref[uudaj], with the exception described in~section~\ref[vudaj].
1627
1628 \secc[tochapter] References to whole chapters
1629
1630 You can omit `:` and verse number in your reference text. Then the reference points to the first verse of the given chapter. Examples:
1631 \begtt \catcode`<=12
1632 ... see <"chapter" Dan 7>
1633 ... Joseph's story (<Gn 39-41>)
1634 \endtt
1635 In the second example, the range of chapters is given and \TeX/ creates an internal link to
1636 the first verse of chapter 39. Compare also with the section~\ref[verse range].
1637
1638
1639 \secc[vudaj] Exception for the format of the full entry for some books
1640
1641 Books Obad, Phlm, 2John, 3John, and Jude are not divided into chapters.
1642 In a reference to a verse, note to a verse or a gloss to one of these books,
1643 the chapter information is missing and the format of a complete reference looks like this:
1644 `<book> <verse>`. In order to teach \TeX/ to apply this exception, the list of abbreviations for these books needs to be defined in macro \`\nochapbooks`. For example, the `books.tex` file says
1645 \begtt
1646 \def\nochapbooks{Obad Phlm 2John 3John Jude}
1647 \endtt
1648 Since there are different book abbreviations for different languages, this macro needs to be defined
1649 according to the language used. In any case, the abbreviations have to be exactly the same as the ones declared by the `\printedbooks` macro in the main file.
1650
1651 Example: \code{see <Phlm 3>} prints
1652 see {\Blue Phlm 3} and it refers to verse 3 of the Philemon, not to chapter~3. On the other hand, \code{see <Gen 3>} prints see {\Blue Gen 3} and refers to the beginning of the chapter 3 of Genesis. It is the reference to the whole chapter, as described in the section~\ref[tochapter].
1653
1654 \secc[bored] Incomplete data
1655
1656 Sometimes the reader can determine the location of a verse from the context, therefore `<data>` does not need to be complete. In the {{\em incomplete data}}, there may be a `<book>` missing, or
1657 `<book> <chapter>:` or even everything. For example:
1658
1659 \begtt \catcode`<=12
1660 ... we also see an analogy in <"verses" Jer 8:13>, <9:7> and <11:3>
1661 ... see verses <Jer 8:13>, <15>, <17>
1662 ... see all of the <"verses" Jr 8:13>--<22>,
1663 ... (cf. <Jr 8:13> and <"its note">n).
1664 \endtt
1665 This yields:
1666 ... we also see an analogy in {\Blue verses Jer 8:13}, {\Blue 9:7} and {\Blue 11:3}
1667 ... see verses {\Blue Jer 8:13}, {\Blue 15}, {\Blue 17}
1668 ... see all of the {\Blue verses Jer 8:13}--{\Blue 22}.
1669 ... (cf. {\Blue Jer 8:13} and {\Blue its note}).
1670
1671 The entries `9:7`, `11:3`, `15`, `17`, `22` and the last blank one
1672 in these examples are incomplete data. The reader knows that they refer to
1673 the book of Jeremiah and where no chapter is given, they refer to chapter 8 of
1674 Jeremiah. In the last example with a blank, the reader knows that it is a note
1675 on~Jer~8:13.
1676 \TeX/ knows that too, and it assigns correct links (to be clicked on) to the incomplete entries
1677 because incomplete entries take the unspecified information from the previous last entry.
1678 This rule applies locally to a single text object: note, article, introduction, etc. If the very
1679 first entry in a given text object is incomplete, the unspecified information is replaced with by
1680 the abbreviation of the book currently being processed, or by the number of the current chapter,
1681 or verse, respectively.
1682
1683 If an incomplete entry is prefixed with `\`, the unspecified information is taken from
1684 the book or chapter or verse currently being processed, regardless of which entry
1685 precedes. For example:
1686 \begtt \catcode`<=12
1687 \Note 4.5 {} The idea is repeated in <Jer 4:5>. Also, compare to \<8:3>.
1688 \endtt
1689 Here the reference {\Blue 8:3} leads to verse 3 of chapter 8 of the actual current book. If
1690 the backslash sign `\` were not there, then this reference would click to 8:3 of Jeremiah.
1691
1692 An incomplete entry is printed as is, as incomplete. The above rules
1693 only apply internally so that the active link will work properly after a mouse click.
1694
1695
1696
1697 \secc[verse range] Format for the verse range and for the section in the verse
1698
1699 In each entry, it is possible to have a range of verses in the format `<from>-<to>`
1700 instead of just `<verse>` or `<chapter>:<verse>`.
1701 The \TeX/ will create an internal link to the first verse of the range only and
1702 turns the hyphen sign (character `-`, ASCII 45) in the range into an en-dash.
1703
1704 Examples:
1705
1706 \begtt \catcode`<=12
1707 <Jer 8:3-7>,
1708 <Jer 8:3-9:5>,
1709 <3-7>,
1710 <8:3-7>.
1711 \endtt
1712 For example, the first link in this example prints as {\Blue Jer 8:3--7}
1713 and offers a link only to Jer~8:3.
1714
1715 The same can be applied to the chapter range, as shown in the example in the section~\ref[tochapter].
1716
1717 \secc References to subverses
1718
1719 Sometimes we need to refer to a part of a verse, not the whole verse. This is done
1720 by appending a letter immediately after the verse number. For example,
1721 \begtt \catcode`<=12
1722 ... see <Dan 9:11b>
1723 \endtt
1724 You can append such a letter to both complete and incomplete references. For the purpose of
1725 hyperlink, these letters are ignored but printed in PDF. Thus, the example given
1726 prints ... see {\Blue Dan~9:11b}, but the link leads to Dan~9:11.
1727
1728 \secc Hidden data
1729
1730 When none of the rules are sufficient to create an internal link from a link
1731 listed above, you can enclose everything in the link to be printed in the programmer's
1732 quotation marks `"..."` and hide the subsequent entry to create the internal link.
1733 To do this, just append underscore `_` followed by the data right after the closing programmers' quotation mark `"` Such entry is not printed. For example,
1734 \begtt \catcode`<=12
1735 <"First Book of Samuel"_1Sam 1:1>
1736 \endtt
1737 prints only the text {\Blue First Book of Samuel}, which internally refers (the click jumps) to the first verse of this book.
1738
1739
1740
1741 \secc[Renum] Renumbering the reference
1742
1743 If a link points to a verse that has a different number than the default translation
1744 (the first translation among the parameters of \`\variants` declaration), then
1745 enter the reference according to the default numbering and \TeX/ will recalculate it itself according to the data specified by `\renum`.
1746 It prints the recalculated data and uses it for the internal reference.
1747 Cf.~\ref[renum].
1748
1749 \secc Data reduction when printing
1750
1751 You may find it helpful to be able to write the complete data in parentheses for the reference and expect it to be automatically reduced to incomplete if they refer to the current book.
1752 If they do not refer to the current book, the entry will remain complete. You can do this by
1753 by adding a \`\re` before the opening parenthesis of the entry (the eventual reduction rule
1754 applies only to this single entry) or by using the \`\reduceref` command. If you
1755 you use it in a note (or inside a \TeX group), the reduction rule is applied
1756 for all subsequent complete entries of that note (or of that \TeX/ group).
1757 When used in a document declaration, the eventual reduction rule is applied to all complete data in the document.
1758
1759 Example:
1760
1761 \begtt \catcode`<=12
1762 \re<"verse" Dan 7:3>
1763 \endtt
1764 is printed as {\Blue verse Dan~7:3} if this reference is given outside the book
1765 Daniel. However, when this reference is given inside the book of Daniel, it is printed
1766 only as {\Blue verse~7:3}, which internally refers to Dan~7:3.
1767
1768 The reference reduction rule set by \`\reduceref` can be turned off
1769 with the \`\noreduceref` command. From there to the end of the note (\TeX/ group)
1770 links behave as if \`\reduceref` were not turned on.
1771
1772
1773
1774
1775 \secc[knihajinak] The book's abbreviation (a-mark) can be printed differently
1776
1777 If the mark for a book is declared differently in different translations following
1778 \`\vdef`, then use only the <book> entry in the references according to the first (default)
1779 variant. However, if you currently use an alternative translation via \`\tmark`,
1780 the link will be printed according to the \`\vdef` entry of that alternative translation variant.
1781 Internally, nevertheless, references are linked according to the default variant.
1782
1783 You'll find this feature is useful when you run across two different translations
1784 which name the same book differently.
1785 In English it is rarely the case but let's suppose that (hypothetically) there exists an English
1786 translation that prefers “Paralipomenon” over “Chronicles”. Let's call this hypothetical
1787 translation “Greek.”
1788 Your default translation (the first translation in the \`\variants` declaration)
1789 uses “Chronicles” as all English translations usually do.
1790
1791 Now you can declare `\vdef` for marks `1Chr` and `2Chr` (Chronicles) for most of English
1792 translations, especially the first one, and an alternative text for `1Par` and `2Par`
1793 (Paralipomenon) for the “Greek” translation.
1794 Then you can type the reference \code{<"see" 1Chr 2:3>}, you get {\Blue see 1Chr~2:3} in the usual
1795 translation variants, but it will print {\Blue see 1Par~2:3} if you use
1796 translation variant~“Greek”.
1797
1798 Non-English languages may use it more often, though.
1799 For example, in the Czech language, most translations
1800 use “Paralipomenon” where English Bibles use “Chronicles” but there is one translation (B21) that uses
1801 the title “Letopisů” instead of “Paralipomenon”.
1802 Then \code{<"viz" 1Pa 2:3>} yields {\Blue viz 1Pa~2:3} in most of Czech translations, except in B21 where it gives {\Blue viz 1Let~2:3}.
1803
1804 \secc[fudaj] Bad links, i.e., links to a non-existent spot
1805
1806 If a reference is made to a non-existent verse or a non-existent note, then
1807 there are two possibilities. If it is a reference to a book that is intentionally not being printed
1808 (because, for example, you are working on a test books selection,
1809 see also \`\printedbooks` in section~\ref[main]), then the link is colored
1810 as if it were active, but it is not, and \TeX/ gives
1811 no warning. However, if the link points to a non-existent verse or
1812 note within the printed books, then the link is active, the click goes to
1813 the last page of the PDF file, and a warning appears in the log, saying that the link
1814 is incorrect. Be aware, though, that when\TeX/ runs for the first time, all
1815 links lead to nowhere (as they are being created for the first time),
1816 thus there is a large number of warnings about incorrect links in the log.
1817 Only after you run \TeX/ the second time,
1818 the links pointing to existing places are correctly interlinked.
1819
1820
1821 \secc Link Tracing
1822
1823 By default, detailed link tracing is enabled in the log file.
1824 You can turn this off by saying \`\notracinglinks` and back on with \`\tracinglinks`.
1825 In addition, you can use \`\tracingouterlinks` to disable the suppression of link warnings on
1826 non-existent books, allowing the log to find any non-existent links resulting from
1827 a typo in the reference text.
1828
1829 \secc Links to books and chapters
1830
1831 If you want a reference to a book that would click to the beginning of that book,
1832 write \`\cref``[<book>]`. For example, `\cref[Gen]` will print {\Blue Gen} with a link to
1833 the beginning of the book of Genesis. Similarly, `\cref[Gen 2]` will print {\Blue Gen~2} with a click
1834 leading to Gen 2:1. If you want to print something else, then
1835 `[...]` must be closely followed by `{<text>}`, where `<text>` is the text
1836 to be printed and to become the active link. So, for example
1837 `\cref[Gen 2]{The Day of Rest}` will print {\Blue The Day of Rest} with a~link to the beginning of
1838 the corresponding chapter (Gen 2:1).
1839
1840 \secc Links to pages
1841
1842 You can place an invisible page link target in your text using \`\pglabel``[<label>]` and
1843 then you can link to that page using \`\pgref``[<label>]`; this
1844 will print the clickable number of that target page.
1845 Similar to `\cref`, you can use `\pgref[<label>]{<text>}`
1846 to print a `<text>` other than the page number; the text now clicks to the place where
1847 where the `\pglabel[<label>]` is located.
1848
1849 \sec[maps] Maps, images and their legends
1850
1851 The images (maps etc.) can be inserted to the bottom of the page by the \`\insertBot` or \`\putBot` command:
1852
1853 \begtt
1854 \insertBot {<title>} [<label>] (<params>) {<data>}
1855 or
1856 \putBot <chapter>:<verse> {<title>} [<label>] (<params>) {<data>}
1857 \endtt
1858
1859 The first one can be used in introductions, the image is inserted at the bottom of the current or the next page. The second one can be used in note files, the image is inserted at the bottom of the page where the given verse is (or at the bottom of the next page). The `<title>` is a caption of the image, the `<label>` can be used for references, the `<params>` can include more typesetting parameters and `<data>` includes commands for inserting the image itself. A comprehensive example will follow in section~\ref[map-variants].
1860
1861 \secc[map-variants] Translation variants
1862
1863 Just as you can change the wording of a search phrase in a note to match the current core text,
1864 you can also create map legends (and similar graphical objects showing expressions that vary in different translations) to always match the current version of the Bible.
1865
1866 Suppose that we insert a separate blank map and text for the legend. Any text can be placed over an image using \`\puttext` command:
1867 \begtt
1868 \puttext <x-dimen> <y-dimen> {<text>}
1869 \endtt
1870 where <x-dimen> determines the horizontal offset on the x-axis, <y-dimen> the vertical offset on the y-axis, with the coordinates `0mm 0mm` being the bottom left corner of the image. The <text> is printed text.
1871 For example:
1872 \begtt
1873 \puttext 5mm 62mm {Mediterranean sea}
1874 \endtt
1875
1876 You can insert a text over the map with a white semitransparent shadow as a background of the text. Use \`\putstext` instead \`\puttext` in this case. The parameters are the same with the same meaning. See section~\ref[bkgrnd] for more information about it.
1877
1878 \medskip
1879 \centerline{\picw=200pt \inspic{images/BBE.png} \hss\inspic{images/NETfree.png} }
1880 \medskip
1881 \leftline{Map from the Introduction to Daniel: BBE \hss NETfree}
1882 \medskip
1883 For example, you can notice how in the sample above not only that the biblical references are active hyperlinks, but also that the name of the city of Susan (just above the Persian Gulf) changes from the BBE's Shushan into Susa of NETfree.
1884
1885 The image must be loaded before the description can start, and everything in it must be inside the definition of \`\insertBot`.
1886 The above sample has been written as
1887
1888 \begtt \catcode`<=12
1889 \insertBot {Daniel's Remote Visions Empires}[map](){
1890 \inspic{fertile-crescent-crop.pdf}% blind map
1891 \Heros \cond \setfontsize{at 9pt}\rm %font
1892 \vskip-1mm
1893 \putstext 2mm 108mm {\vtop{\hsize6.5cm %box width
1894 \baselineskip10pt %line spacing inside the box
1895 \noindent %space saving, no need to indent
1896 \leftskip=3pt \rightskip=3pt %how much the semi-transparent shadow will overlap the text
1897 Soon after Alexander's death ... was conquered by Rome.}%end\vtop
1898 }%end \putstext
1899 \LMfonts\sans \setfontsize{at9pt}\rm
1900 \puttext 145mm 29mm {<"Acts 2:9"_Acts 2:9>}
1901 \puttext 145mm 32.5mm {<"Ez 32:16"_Ez 32:16>}
1902 .
1903 .
1904 .
1905 \puttext 2mm 5mm{{{{Heros \setfontsize{at 7pt}\it Satellite Bible Atlas,\rm W.Schlegel}}
1906 \puttext 2mm 2mm{\Heros \setfontsize{at 7pt}\rm Used with permission.}
1907 }%end \insertBot
1908 \endtt
1909
1910
1911 {\bf What to watch out for:}
1912 There must not be a blank line inside `\insertBot`.
1913
1914
1915
1916 \secc[town] Macro `\town` for the town symbol on the map
1917
1918
1919 The towns of Jerusalem, Babylon, Tolul Dura, Susan and Ur are visible on the map as tiny circles
1920 with a red center and black perimeter.
1921 The properties of this circle can be set with the macro \`\townparams`, whose default values are
1922 as follows:
1923
1924 \begtt
1925 \def\townparams{
1926 \hhkern=.8pt % radius of the circle
1927 \lwidth=.5pt % contour line thickness
1928 \fcolor=\Red % circle color
1929 \lcolor=\Black % contour line color
1930 }
1931 \endtt
1932
1933 The macro \`\town` itself places this circle with coordinates, similar to the macro `\puttext`,
1934 but without additional text, e.g.,
1935
1936 \begtt
1937 \town 101.5mm 53mm %the city Babylon
1938 \endtt
1939
1940
1941
1942 \secc[maptitles] Inscriptions along the curve
1943
1944 Some of the inscriptions on the map require “bending” according to the terrain, especially the
1945 names of large areas, as in our case “The Ptolemies” and “The Seleucids,” or the “Persian
1946 Gulf,” or perhaps even the tiny names of rivers (“Euphrates,” “Tigris,” “Nile”).
1947 In order to do this we can use the \`\c` command inside the \`\puttext` parameter.
1948 \begtt
1949 \c[<first-angle>/<kern and rotate parameters>]{<text>}
1950 \endtt
1951 For example:
1952 \begtt
1953 \puttext 62mm 70mm {\c[10/\kern7pt\pdfrotate{-1}]{THE SELEUCIDS}}
1954 \puttext 2mm 37mm {\c[0/\kern4pt\pdfrotate{2.5}]{THE PTOLEMIES}}
1955 \endtt
1956
1957 The first number (before `/`) denotes the angle of the first letter of the text.
1958 The \`\kern` command determines the spacing between letters; the number in the \`\pdfrotate``{<number>}`
1959 determines the strength of the curvature (the angle change between two successive letters). A negative value bends the text concavely
1960 (like a rainbow), a positive value convexly (like a bowl).
1961
1962 If we need a sign that waves in the shape of the letter S (is concave and convex at
1963 the same time), we would have to assemble it from two or more `\puttext` statements, glued
1964 together to look like one continuous text.
1965
1966
1967 In the example above we have the name of the city of Jerusalem printed at an oblique angle but along a straight line so that it
1968 does not clash with “king of the South” and can be seen clearly.
1969 This can be achieved by using the \`\c` command without `\pdfrotate` parameter:
1970
1971 \begtt
1972 \puttext 48mm 55mm {\c[-40/\kern1pt]{Jerusalem}}
1973 \endtt
1974 The number `-40` was used to tilt the inscription.
1975
1976
1977 \secc[bkgrnd] Partially transparent background of continuous text
1978
1979 In the sample above, the continuous blocks of text have slightly lighter background
1980 through which the map from beneath is still visible.
1981 This can be achieved by typing \`\putstext` (think of Put-Shadowed-Text) in the place of
1982 \`\puttext`. This way you don't need any pre-prepared lighter spots on the blind map (see the
1983 image bellow), having to “hit” it with the text.
1984
1985
1986 \medskip
1987 \centerline{\picw=150pt\inspic{images/fertile-crescent-crop-old.pdf} }
1988 %\hss \inspic{images/Da-map-shadowed-text.png}%
1989
1990 \smallskip
1991
1992 Before using \`\putstext` for the first time, the level of transparency of the white shadow can be set. The default value is `\def\shadowparameter{.1}`.
1993 If you set `\def\shadowparameter{1}` you get a solid opaque white background; the smaller the number the more transparency.
1994
1995 However, this value is then stored in the page-resources of the output PDF and is used
1996 the same on all subsequent pages, so you cannot change it and have it different in
1997 different places of the same document.
1998 If perhaps there should be an unexpectedly excessive
1999 demand for the ability to change the transparency level on the fly, this may be an incentive for
2000 implementation in a possible future version of \OpBible/.
2001 For the time being, we did not find it necessary to complicate the macros by creating more and more
2002 page-resources, so the user should be satisfied with the option to set the transparency of the
2003 shadow under the text on maps uniformly for the entire Bible.
2004
2005
2006 %\medskip
2007 %\centerline{\picw=150pt \hss\inspic{images/Da-map-shaded-text.png} }
2008 %\medskip
2009
2010 \sec Timeline inclusion tools
2011
2012 \secc[spanimage] Image or text over two pages
2013
2014 If we want to insert an image or text across two pages in an open double page, we can
2015 use
2016 \begitems
2017 * \`\insertSpanImage`: inserts a prepared PDF image, can be used in the book introduction,
2018 * \`\insertSpanText`: insert text (for example a timeline), can be used in the book introduction,
2019 * \`\putSpanImage`: insert a prepared PDF image, anchored relative to the number
2020 chapter and verse, can be used in the notes file,
2021 * \`\putSpanText`: like \`\putSpanImage`, but inserts text instead of an image.
2022 \enditems
2023 The \`\insertSpanImage` and \`\insertSpanText` commands place the image or text
2024 at the bottom of two pages according to the following rule. Suppose that
2025 the command itself is executed when \TeX/ creates the current page of
2026 the number $c$. Then
2027 \begitems
2028 * if $c$ is even and the image's (or text's) height allows it to fit on the current page,
2029 it will be placed on pages $c$ and $c+1$,
2030 * if $c$ is even and the image or text does not fit on the current page,
2031 it will be placed on pages $c+2$ and $c+3$,
2032 * if $c$ is odd, the image or text will be placed on pages $c+1$, $c+2$.
2033 \enditems
2034 This ensures that the image or text will always be visible on the double page
2035 of an open book.
2036
2037 The \`\putSpanImage` or \`\putSpanText` commands work according to the same rule,
2038 only the number $c$ in this case corresponds to the page number on which the
2039 the beginning of the verse specified in the command parameter.
2040
2041 These commands have the following parameters:
2042 \medskip
2043 \`\insertSpanImage` `{Title} [<label>] (<parameters>) {<filename>}`
2044 \medskip\noindent
2045 The <Title> is used in the header of the image and <label> can be set,
2046 to refer to the image (and thus create an active link) using `\ref[<label>]` at another place.
2047 If unused, you can leave the parameter empty: `[]`.
2048 Furthermore, <parameters> can specify how the image is placed, typically this
2049 parameter is empty: `()`. Finally, <filename> is the name of the image file
2050 including the extension. Typically this is a PDF file, i.e., it has the extension `.pdf`.
2051 \medskip
2052 \`\insertSpanText` `{Title} [<column>] (<parameters>) {<text>}`
2053 \medskip\noindent
2054 The parameters are the same as \`\insertSpanImage`, only the last parameter is different.
2055 It contains the text to be printed across two pages. Typically there might be
2056 a set of `\timeline`, `\timelinewidth`, `\arrowtext`, `\tlput`, `\tline`, `\tlines` commands to create a timeline, see the section~\ref[timeline].
2057 \medskip
2058 \`\putSpanImage` `<chapter>:<string> {Title} [<column>] (<parameters>) {<filename>}`
2059 \medskip\noindent
2060 In addition, there is a <chapter>:<verse> specifying the verse whose beginning is on page $c$
2061 and the image is positioned according to the rules mentioned above. The other parameters are the same as
2062 for \`\insertSpanImage`.
2063 \medskip
2064 \`\putSpanText` `<chapter>:<verse> {Title} [<image>] (<parameters>) {<text>}`
2065 \medskip\noindent
2066 It behaves the same as \`\insertSpanText`, but with the addition of the <chapter>:<string> parameter
2067 has the same meaning as in the \`\putSpanImage` command.
2068
2069
2070 \secc[timeline] Commands to create a timeline
2071
2072 These commands can be used in the <text> parameter of the \`\insertSpanText` or \`\putSpanText` commands.
2073
2074 First, you need to specify the number of years (or other units) for the full width of the timeline.
2075 All other data will be entered in these units. In the following text
2076 we will refer to these units as years.
2077 Set the timeline parameters using \`\timeline` and \`\timelinewidth`:
2078 \begtt \catcode`\<=13
2079 \timeline <number of years>
2080 \timelinewidth <width of the timeline>
2081 \endtt
2082 For example, after
2083 \begtt
2084 \timeline 500
2085 \timelinewidth 25cm
2086 \endtt
2087 the timeline will be 25cm wide and 500 years will be included in that width, so one year
2088 will represent a width of 0.5 millimeters. However, it is more usual to specify the width of the timeline
2089 as some fraction of the total width of the page (or double-sided image, if using
2090 timeline in \`\insertSpanText` or \`\putSpanText`). For example:
2091 `\timelinewidth=.95\hsize`.
2092
2093 The timeline is built line by line. Commands for text or line segments that
2094 are on the same line are written below each other in any order.
2095 \`\vskip` `<dimension>` command moves to the next line, where the dimension can be specified
2096 in multiples of the line height using the unit \`\l`, i.e., `\vskip 1.5\l`
2097 means a shift of one and a half lines down.
2098
2099 Text is inserted via \`\tlput` `<symbol> <position> <flag> (<setting>) {<text>}`.
2100 The <symbol> parameter can be \"`a`" if we want the text to be above the current
2101 rate position, or \"`b`" if we want the text to be below the current rate position.
2102 When the <symbol> is \"`a`", multiline text extends upwards, and when \"`b`", it extends downwards.
2103
2104 The <position> parameter is the location on the timeline (in years) to which the text should be attached.
2105 From this point, the text will flow to the right if <flag> is specified by the \`\rlap` instruction,
2106 and it will flow to the left if the <flag> is specified by the \`\llap`. Finally, if <flag> is empty, the text will have centered lines and
2107 <position> then corresponds to this line center. The `<setting>` parameter can be be empty, i.e., `()`,
2108 or it may contain font settings, font color, etc., for following <text>.
2109 A <text> contains the text to be printed. In the case of multi-line text, separate the lines with \`\cr`
2110 (remember what carriage return meant in the era of typewriters?), for example:
2111 \begtt
2112 \tlput b 25 (\it) {Abraham is\cr 100 years old}
2113 \endtt
2114 The text has two lines, their common center is below point 25 of the timeline.
2115
2116 \`\tline` `<from>..<to>` creates a horizontal line starting at <from> and
2117 ending at <to>. The data is in years.
2118
2119 \`\tlines` `<w1>|<w2>|<w3>|` (and possibly more) inserts short vertical lines on the timeline.
2120 The number of `<w>|` parameters can be arbitrary, each representing one
2121 vertical line, and the numbers between them indicate the distance between adjacent lines in years. For example
2122 \begtt
2123 \tline 0..100
2124 \tlines 20|20|20|20|20|
2125 \endtt
2126 creates a 100 horizontal line and vertical lines on top of it to denote 20,
2127 40, 60 and 80 years.
2128
2129 \`\arrowtext` `<from>..<to> (<setting>) {<text>}`
2130 prints a horizontal line from <from> to <to> (data in years)
2131 and the middle of the line is broken to give space for the <text> which written at that point.
2132 Arrows pointing outwards from the line are at the edges of the line.
2133
2134 This timeline has been shrinked from a double-page size:
2135 \medskip
2136 \picw=1.1\hsize
2137 \inspic{images/timeline-crop.pdf}
2138
2139 and was typeset as follows:
2140
2141 \begtt \typosize[8/11]
2142 \def\small{\typosize[8/10]}
2143 \putSpanText 12:40 {How long have been the Israelites in Egypt?} [] () {%we are in Exodus
2144 \timeline 430 % total number of years (or other units) in the timeline
2145 \timelinewidth 36cm % the width of timeline (here: 430 years = 36 cm)
2146 \arrowtext 0..430 (\bf) {\hskip20mm 430 years \hskip1cm (Exod 12:40; Gal 3:16--17)}
2147 % prints arrow from..to, (format) {text} in the middle;
2148 %\hskip controls the spaces in the middle where two pages meet
2149 \vskip 2\l % \vskip 2\baseineskip; \l is only shortcut for \baselineskip
2150 \tlput a 0 \rlap(\bf) {Abraham received\cr promise (Gen 12:3-5,7; 15:5--6)} % print text
2151 \tlput a 430 \llap(\bf) {Moses received \cr the Law (Exod 24:12)} % see \_doc above
2152 % for more details
2153 \vskip 1.5\l % \vskip 1.5\baselineskip
2154 \tlput a 0 \rlap() {Entered do Canaan (Gen 12:4)} % print text
2155 \tlput a 430 \llap() {Left Egypt (Exod 12:41)} % print text
2156 \tlput a 215 (\bf) {\hskip-6mm Entire \hskip8mm Israel\cr
2157 \hskip 8mm arrived to
2158 \hskip7mm Egypt (Gen 47:9)} % print text
2159 % all \tlput's between \vskip's is printed in the single line
2160 \vskip 1\l
2161 \tlput a 25 (\small) {Isaac born (Gen 21:5)} % text
2162 \tlput a 85 (\small) {Jacob born (Gen 25:26)} % text
2163 \vskip1.1\l
2164 \tline 0..430 % the horizontal line from..to
2165 \tlines {0|25|60|130|215|0} % the vertical short lines, numbers mean distance between them
2166 \vskip.2\l
2167 \tlput b 12.5 (\small) {25 years} % text printed below
2168 \tlput b 55 (\small) {60 years} % i.e the current position is at the top of the text
2169 \vskip.7\l
2170 \tlput b 0 (\small) {Abraham\cr 75 years}
2171 \tlput b 25 (\small) {Abraham\cr 100 years}
2172 \tlput b 85 (\small) {Isaac\cr 60 years}
2173 \tlput b 215 (\small) {\hskip1cm Jacob\cr\hskip1cm 130 years}
2174 \vskip2.5\l
2175 \tlines {|215|215|} % the vertical short lines
2176 \arrowtext 0..215 (\bf) {215 years in Canaan} % arrows and text
2177 \arrowtext 215..430 (\bf) {215 years in Egypt}
2178 \vskip2\l
2179 \tlines {|30|400|} % the vertical short lines
2180 \arrowtext 30..430 (\bf) {Abraham's seed afflicted in a land not theirs for 400 years (Gen 15:13)}
2181 \tlput b 15 (\small) {25$+$5$=$30\cr Isaac weaned\cr in 5 years}
2182 \vskip.5\l
2183 \tlput b 65 (\small) {Ishmael bullied Isaac in Canaan \cr since the day Isaac was weaned (Gen 21:8--9)}
2184 \tlput b 385 (\small) {Israel afflicted in Egypt (Exod 1:11)}
2185 \tlput b 215 () {\hskip2.5cm 430$-$30$=$400}
2186 }%end of \putSpanText
2187 \endtt
2188
2189 \filbreak
2190
2191 \sec Page formatting variants
2192
2193 By default, a single-column design is set for the main text of the Bible
2194 and for book introductions and annotations. Two-column type is set for
2195 notes on verses.
2196
2197 By default, chapter numbers are capitalized and in the outer margin.
2198 In the outer margin there are also enlarged quotation marks attached to quotations.
2199 The command \`\normalchapnumbers` changes this setting: chapter numbers are then inserted in the left
2200 upper corner of the first paragraph and the enlarged quotation marks are removed.
2201 The outer margin is then shrunk because there is no more printed material in it.
2202
2203
2204
2205 By default, each \`\Note` occupies a new paragraph in a double column print.
2206 The command \`\mergednotes` makes sure that all notes on a single verse are always
2207 combined into a common paragraph.
2208 However, this comes at a cost of loosing the ability for the phrase in the note
2209 to follow its original in the Biblical verse on the same page.
2210 In other words, the entire paragraph (compound of several notes on the same verse)
2211 links only to the beginning of the verse, i.e., the beginning of the verse
2212 and the beginning of the note to that verse are on the same page,
2213 but the phrases themselves are not being searched for.
2214
2215 Other page formatting options are still in the planning stages and are not implemented in this version of \OpBible/.
2216
2217
2218 \sec Error search options
2219
2220 It may happen that you make a typo in the `notes-*`, `intro-*`,
2221 `articles-*` files. If you had included the file with a typo to the whole Bible processing,
2222 \TeX/ would report an error at a completely different point in time than when it had read the file.
2223 Unfortunately, tracing back such an error is then very difficult. Moreover, typically the error
2224 occurs at a different stage of processing and thus it is often reported in a very
2225 incomprehensible and misleading message.
2226
2227 However, it is possible to process the newly written files directly first,
2228 but with no connection to the core text.
2229 In this mode, potential errors are reported more directly.
2230 To search for errors directly, use \`\checksyntax` <file list> `{}`
2231 Here the file list are the names of the files to be checked (without the `.tex` extension).
2232 You can have, for example, at the end of the main file, line like this:
2233
2234 \begtt
2235 \checksyntax intro-Dan articles-Dan notes-Dan {}
2236 \endtt
2237
2238 This will perform a direct check of the listed files. The output is the text of these
2239 files without any formatting. Syntax errors in the files
2240 will show up in significantly more straightforward manner.
2241
2242 Note: using \`\checksyntax` disables the \`\processbooks` command, which in turn
2243 does nothing, so the core text of the Bible is not loaded at all.
2244
2245
2246 \sec Generating default files `notes`, `fmt`, `intro`
2247
2248 If the files `notes`, `fmt`, `intro` do not exist, \OpBible/ does not complain and
2249 behaves as if they were empty. But you might want to have these
2250 files for all the books of the Bible already prepared in the appropriate directories and
2251 with a short introduction. Templates for such files can be
2252 written in a separate file (e.g.,`templates.tex`) and then
2253 run such file using the `optex templates` command. This will generate the default files
2254 according to the specified templates for all the books of the Bible.
2255 If a file with the specified name already exists, it is retained (i.e., it is not
2256 overwritten by the default file) and a warning about it will appear on the terminal and
2257 in the `log` file.
2258
2259 First you need the `books.tex` file with the names and abbreviations for all the books of the Bible,
2260 as mentioned in the~\ref[books] section. This can be generated, for example
2261 from Sword using the `mod2tex` script, see section~\ref[txs].
2262
2263 In the `templates.tex` file, the packagge `opbible.opm` must first be loaded using `\input`,
2264 then the `books.tex` file,
2265 and then you can specify file templates with the \`\filegen` command as follows:
2266
2267 \begtt
2268 \filegen {<file-name>}
2269 <file-content>
2270 \endfile
2271 \endtt
2272 %
2273 The <filename> must (and <file-content> can) contain the double character `@@`,
2274 which is automatically replaced by the book abbreviation <b-mark> specified in `books.tex`.
2275 As many default files as there are book titles declared in `books.tex` are then automatically generated.
2276 For example, `templates.tex` might look like this:
2277
2278 \begtt
2279 \input opbible.opm
2280 \input books.tex
2281
2282 \filegen {intro-@@.tex}
2283 % Introduction to the book @@
2284 \endfile
2285
2286 \filegen {notes-@@.tex}
2287
2288 % Notes on the book @@
2289
2290 \endinput
2291 \ww
2292 {}={} % BBE
2293 {}={} % Jubilee2000
2294 {}={} % NETfree
2295 {}={} % UKJV
2296 {}={} % RNKJV
2297 {}={} % Webster
2298 \Note 1:1 {}={} %text terminated with a blank line
2299 \endfile
2300 \endtt
2301 %
2302 The `optex templates` command will generate 66 files in this case
2303 `intro-1John.tex`, `intro-1Cor.tex`, etc. with the specified single line
2304 and 66 `notes` files (`notes-1John.tex`, etc.) with the content of the specified nine lines.
2305
2306 You can also use the triple character `@@@` in the <file-content>, which is then converted into
2307 the full title of the book. So after specifying
2308 `% Introduction to @@@` in the `templates.tex` file
2309 you will get the file with the text `% Introduction to The First Book of Moses (Genesis)`,
2310 another with `% Introduction to The Second Book of Moses (Exodus)` etc.
2311
2312 In the example, the file names are chosen so that they are generated in the current
2313 directory. If you have prepared subdirectories in this directory corresponding to
2314 names, it is possible to generate files directly into them, for example, write
2315 \`\filegen {intros/intro-@@.tex}`.
2316
2317 To generate a list of files with the names other than the <b-mark> list in the `books.tex` file,
2318 after reading in `books.tex`, define macro \`\genbooks` with your chosen set of abbreviations.
2319 For example, after
2320 \begtt
2321 \def\genbooks {Gn Ex Lv Nu Dt}
2322 \endtt
2323 %
2324 the \`\filegen` command will only generate templates for the five books with the specified
2325 abbreviations. You can also define \`\genbooks` before each \`\filegen`, in which case
2326 you'll be able to have different book abbreviations for different file types (e.g., `intro-Gen.tex` and `notes-Gn.tex`).
2327
2328 \watchout
2329 If you work online on Overleaf, you must not forget that Overleaf does not keep the files that have been generated during \TeX/ run. This makes generating the templates a bit clumsy: after generating them (but before quitting Overleaf) you would have to download the file(s) and manually upload it (them) again. The files that you manually upload do not get deleted when you leave the project.
2330
2331 \sec[tricks] Tricks and Stunts
2332
2333 This sections offers some inspiration for demanding users, eager to perform even greater miracles
2334 than what average \OpBible/ users might be satisfied with.
2335
2336 \secc Chiasm
2337
2338 Serious students of the Bible probably know that some parts of it are written in form of chiasm; for example, a single verse:
2339 \medskip
2340 \leftline{\hskip 2em{\bf A} Many that are first}
2341 \leftline{\hskip 3em{\bf B} shall be last;}
2342 \leftline{\hskip 3em{\bf B'} and the last}
2343 \leftline{\hskip 2em{\bf A'} shall be first.}
2344 \leftline{\hskip 4em{(Matthew 19:30) } }
2345 \medskip
2346
2347 \noindent or a larger portion of text:
2348
2349 \medskip
2350 Life of Abraham in Genesis:
2351
2352 \leftline{\hskip 2em{\bf A} Background and Early Experiences (11:10--12:9)}
2353 \leftline{\hskip 3em{\bf B} Earlier Contacts with Others (12:10--14:24)}
2354 \leftline{\hskip 4em{\bf C} Covenant with God (15:1--17:27)}
2355 \leftline{\hskip 3em{\bf B'} Later Contacts with Others (18:1--21:34)}
2356 \leftline{\hskip 2em{\bf A'} Progeny and Death (22:1--25:18)}
2357 \medskip
2358
2359 \noindent or, for that matter, an entire book:
2360
2361 \medskip
2362 Leviticus:
2363
2364 \leftline{\hskip 2em{\bf A} Ritual (1--7)}
2365 \leftline{\hskip 3em{\bf B} Priesthood (8--10)}
2366 \leftline{\hskip 4em{\bf C} Purity (11--15)}
2367 \leftline{\hskip 5em{\bf D} Day of Atonement (16)}
2368 \leftline{\hskip 4em{\bf C'} Purity (17--20)}
2369 \leftline{\hskip 3em{\bf B'} Priesthood (21--22)}
2370 \leftline{\hskip 2em{\bf A'} Ritual (23--27)}
2371 \medskip
2372
2373 The way to type such structures is rather easy.
2374 Entire chiasm has to be enclosed inside `\begChiasm` and `\endChiasm` pair; then number of asterixes at the beginning of each new line determines the indentation.
2375 You only have to type:
2376
2377 \medskip
2378 \begtt
2379 \begChiasm
2380 * Many that are first
2381 ** shall be last;
2382 ** and the last
2383 * shall be first.
2384 \endChiasm
2385 \medskip
2386 \endtt
2387 %
2388 and \OpBible/ will take care of the rest. If you don't want to have the boldfaced {\bf A, B, C... B',
2389 A'} at the beginning of the lines, type `\style q` right after `\begChiasm`.
2390 If you then want them back, start the new chiasm with `\begChiasm \style Q`.
2391
2392 %...
2393
2394 \secc[dirty] Formatting Tricks
2395
2396 This section follows the section~\ref[fmt].
2397 We are formatting the text of the book of Daniel, in the BBE translation,
2398 therefore we work inside the `fmt-BBE-Dan.tex` file.
2399 Let's suppose you want to let the reader know which words have been added by the
2400 translators that are not in the original language.
2401
2402 In BBE, Daniel 1:7, we read:
2403
2404 \medskip
2405 \moveright 1in\vbox{\advance\hsize by -2in
2406 \noindent
2407 And the captain of the unsexed servants gave them names;
2408 to Daniel he gave the name of Belteshazzar,
2409 to Hananiah the name of Shadrach,
2410 to Mishael the name of Meshach,
2411 and to Azariah the name of Abed-nego.}
2412 \medskip
2413
2414 The phrase {\em the name of} was added by the BBE translators, it is not in the
2415 original Hebrew Bible and you want to indicate that by a font change.
2416 Typing `\fmtfont{1:7}{the name of}{\em}` would do the job just fine, but only
2417 for the very first occurrence of the phrase. In this particular case, however,
2418 we run into a problem because the exactly same phrase is there four times in the
2419 same verse, and all in the need of the font change. The phrase that have been
2420 already searched for and found cannot be searched for again.
2421
2422 There is a way around, as mentioned in \ref[fmt].
2423
2424 The macro \`\fmtkeep``{<chapter-number>:<verse-number>}{<phrase>}` will help us here because it will make the first occurrence of the `<phrase>` unsearchable by hiding it inside the brackets `{}`.
2425 We use it repeatedly because we also need to exclude from search the second and the third occurrences of the phrase. The second time it will disable the next first visible phrase, which is now the second one, and so forth.
2426 \medskip
2427 Typing
2428
2429 \begtt
2430 \fmtfont{1:7}{the name of}{\em}
2431 \fmtkeep{1:7}{the name of}
2432 \fmtfont{1:7}{the name of}{\em}
2433 \fmtkeep{1:7}{the name of}
2434 \fmtfont{1:7}{the name of}{\em}
2435 \fmtkeep{1:7}{the name of}
2436 \fmtfont{1:7}{the name of}{\em}
2437 \endtt
2438
2439
2440 solves the problem neatly and to everybody's satisfaction, resulting in:
2441
2442 \medskip
2443 \moveright 1in\vbox{\advance\hsize by -2in
2444 \noindent
2445 And the captain of the unsexed servants gave them names;
2446 to Daniel he gave {\em the name of} Belteshazzar,
2447 to Hananiah {\em the name of} Shadrach,
2448 to Mishael {\em the name of} Meshach,
2449 and to Azariah {\em the name of} Abed-nego.}
2450 \medskip
2451
2452 See the sample file of Daniel in BBE translation, verse 1:7.
2453
2454
2455 \watchout
2456 If you want to insert vertical space (e.g., `\medskip`) after the verse in which you have
2457 applied the font change on a word, then `\fmtins` containing `\medskip` must precede `\fmtfont`
2458 command. Otherwise \TeX/ will crash and you end up with the mysterious message
2459 `You can't use \/ in vertical mode.`
2460 In other words, use
2461
2462 \begtt
2463 \fmtins{1:7}{Abed-nego.}{\medskip}
2464 \fmtfont{1:7}{the name of}{\em}
2465 \endtt
2466 %
2467 and do not switch the order of these two lines.
2468
2469 %???
2470
2471
2472
2473
2474
2475 %
2476 \sec[sum] Summary of basic commands and definitions
2477
2478 This section lists the files necessary to run OpBible, and their typical content.
2479 \recommended
2480 Compare the instructions below with the sample files that come as a part of the bundle.
2481
2482
2483 %I would put everything the user might need to set up in
2484 %Sem. If this could fit on two pages, we might recommend printing it as a cheat-sheet.
2485
2486 \secc Typically in the `main.tex` file
2487
2488 \begitems
2489 * \`\load`: Macro package to be loaded:`\load [<macro package>]`. Example: `\load [opbible]`.
2490 * \`\tmark`: `\def\tmark{<t-abbreviation>}`: declaration of the t-abbreviation of a Bible
2491 translation, e.g., BBE, RNKJV, etc.
2492 Example: `\def\tmark{BBE}`.
2493 * \`\txsfile`: `\def\txsfile {<filename mask>}`: `.txs` location declaration.
2494 You can use \`\amark` or \`\bmark` in the filename mask.
2495 Example: `\def\txsfile {./txs/\tmark-\bmark.txs}`.
2496 * \`\notesfile`: `\def\notesfile {<filename mask>}`: notes files location declaration.
2497 Example:
2498 `\def\notesfile {./notes/notes-\amark.tex}`.
2499 * \`\introfile`: `\def\introfile {<filename mask>}`: book introductions location
2500 declaration.
2501 Example: `\def\introfile {./intros/intro-\amark.tex}`.
2502 * \`\articlefile`: `\def\articlefile {<filename mask>}`: article files location declaration.
2503 Example: `\def\articlefile {./articles/articles-\amark.tex}`.
2504 * \`\fmtfile`: `\def\fmtfile {<filename mask>}`: formatting data files location declaration.
2505 Example: `\def\fmtfile {./fmt/fmt-\tmark-\amark.tex}`.
2506 * \`\input`: File to be read in: `\input {<file-name>}`. Example: `\input vars.tex`.
2507 * \`\printedbooks`: `\def\printedbooks {<list of a-marks>}` declares a list of the books,
2508 separated by a space: the listed books are processed then by `\processbooks`.
2509 Example:\nl `\def\printedbooks {Gen Exod Lev Num Deut}`
2510 * \`\processbooks`: instruction to process the Bible, or to be more specific, to process the books
2511 listed in `\printedbooks`.
2512 \enditems
2513 You need to define the commands above in the main file, then
2514 read in the files `books.tex`, `vars.tex` and finally start processing with the command
2515 \`\processbooks`.
2516
2517 \secc Typically in the `books.tex` file
2518
2519 \begitems
2520 * \`\BookTitle` `<a-mark> <b-mark> {<title>}`: declares a-mark, b-mark and title for each book.
2521 As each individual book is processed, the `\def\amark{<a-mark>}` and `\def\bmark{b-mark}` is
2522 executed.
2523 The a-mark is used in references within the Bible text, while b-mark may be used in file names.
2524 Example: `\BookTitle 2Sa 2Sam {II Samuel}`.
2525 * \`\BookException` `<a-mark> {<code>}`: before processing a book, the
2526 <code> is executed.
2527 * \`\BookPre` `<a-mark> {<code>}`: after printing the introduction, before the main text of
2528 the declared book, <code> is executed.
2529 * \`\BookPost` `<a-mark> {<code>}`: after printing the main text of the declared book, <code> is
2530 executed.
2531 Perhaps could be found useful for printing a reading plan but such example of this feature is not
2532 implemented in this version of OpBible.
2533 Nevertheless, feel free to create your own.
2534 * \`\nochapbooks`: `\def\nochapbooks{<list>}`: list of the a-marks of the books that
2535 are not divided into chapters (only have one chapter). Example:\nl `\def\nochabooks {Obad Phlm 2John 3John Jude}`.
2536 \enditems
2537
2538 \secc Typically in the `vars.tex` file
2539
2540 This file declares variant phrases for different versions of the Bible translation.
2541
2542 \begitems
2543 * \`\variants` `<number>` `<list of t-abbreviations of translation variants>`: declares the number of
2544 translation variants and a list of \hbox{t-abbreviations}. The `<number>` must match the number of
2545 t-abbreviations as well as the number of parameters of the \`\vdef` and \`\ww` commands.
2546 Example:
2547 `\variants 6 {BBE} {Jubilee2000} {NETfree} {UKJV} {RNKJV} {Webster}`.
2548
2549 * \`\vdef` `<phrase variants>`; declares the variants of the phrase, the first of which is
2550 the reference one. The phrase variants are placed in brackets `{<like this>}`.
2551 Example:
2552 \begtt
2553 \vdef {He-goat} % BBE
2554 {Goat} % Jubilee2000
2555 {Male goat} % NETfree
2556 {He goat} % UKJV
2557 {Goat} % RNKJV
2558 {He-goat} % Webster
2559 \endtt
2560 \enditems
2561
2562 \secc Typically in the `notes-*.tex` file
2563
2564 \begitems
2565 * \`\Note` `<chap-num>:<verse-num> {<commented phrase>} <note text terminated by a blank line>`:
2566 declares a note. Example: \code{\\Note 5:12 {Belteshazzar} See <"note on" 1:7>n.}
2567 * \`\ww` `<variants of phrase>`: must precede \`\Note`. In
2568 each translation variant, the following note will be bound to the phrase
2569 of a particular phrase according to the currently defined t-mark.
2570 Example:
2571 \begtt \catcode`<=12
2572 \ww {by the order of Belshazzar} % BBE
2573 {Belshazzar commanded} % Jubilee2000
2574 {on Belshazzar's orders} % NETfree
2575 {commanded Belshazzar} % UKJV
2576 {commanded Belshazzar} % RNKJV
2577 {commanded Belshazzar} % Webster
2578 \Note 5:29 {} Belshazzar honored Daniel like Nebuchadnezzar (<2:48>),
2579 but unlike Nebuchadnezzar he did not honor Daniel's God (<2:46-47>).
2580 \endtt
2581 * \`\x``/<phrase>/`: prints the phrase according to the current t-mark and according to \`\vdef`
2582 declaration.
2583 The <phrase> parameter is the reference phrase, i.e., it must be exactly the same as the first
2584 parameter of \`\vdef`.
2585 If no t-mark is defined or if the first t-mark from the \`\variants` list is defined, then
2586 <phrase> is printed as is. In any other case (t-mark other than the very first one of the
2587 \`\variants` list is defined), <phrase> is printed as whatever is declared by \`\vdef` for that
2588 particular t-mark.
2589 Example: `\x/He-goat/`.
2590 * \`\putBot` `<verse number> {<title>} [<label>] (<commands>) {<code>}`:
2591 sets up an image/diagram at the bottom of the page containing the <verse number>.
2592 Example:\nl
2593 `\putBot 2:1 {Daniel's Visions of the Four Kingdoms} [danielsvisions] () {...}`.
2594
2595 * \`\putArticle`: Inserts an article, declared in the `articles-*.tex` file.
2596 Example:\nl `\putArticle 5:20 {Who was Darius the Mede?} [6] ()`
2597
2598 * \`\putCite`: Inserts a quotation on the top of a page above the Biblical text.
2599 Example: `\putCite 5:4 {Power corrupts; and absolute power corrupts absolutely.`\nl\null\qquad
2600 `\quotedby {Lord Acton}}`
2601
2602
2603
2604
2605 \enditems
2606
2607 \secc Typically in a `intro-*.tex` introduction file
2608
2609 %\begtt
2610
2611 \begitems
2612 * \`\title`:
2613 After you define `\title` as something like this:
2614 \nl
2615 `\def\title#1{\medskip\noindent{\bf#1}\par\nobreak}`
2616 then you can begin some paragraphs with it.
2617 Example:
2618 `\title{Overview:}`, `\title{Author:}`, etc.
2619
2620 * \`\insertBot` `{<MapTitle>}[<label>](<params>){<data>}` inserts `<data>` at the bottom of the current page. Example
2621 \begtt
2622 \insertBot {Map title} [label] () {
2623 \inspic{map-crop.pdf}
2624 \putstext 10mm 25mm {Text on the map}
2625 }
2626 \endtt
2627
2628
2629 *\`\Outline` starts the last part of the introduction text. It enables nested lists declared by `\begitems`, `\enditems` and the text is printed only to the left column of the page. The command \`\rightnote {<comment>}` can be used here; the <comment> is printed to the right column.
2630 Example: see the end of the file `intro-Dan.tex`.
2631
2632 %... \TODO, add
2633 \enditems
2634
2635 \secc Typically in an `articles-*.tex` file
2636
2637 \begitems
2638
2639 *\`\Article` `[<chapter-number>]` `<text of the article>`:
2640 Declares <text of the article> for the given <chapter-number>. The <text of the article> ends at the end of the file or by another `\Article` declaration.
2641 The `<chapter-number>` could be any label, unique for that particular article, but
2642 as we suppose that there will most likely not be more than one article per chapter,
2643 it sounds logical to assign the number of the chapter where we want the article to occur.
2644 This also ensures that you will easily remember the article's label when you call it to appear
2645 from the `notes-*.tex` file (see above).
2646
2647 * \`\Cite` `<capital-letter>` `{<text of the quotation>` `\quotedby{<author of the quotation>}}`.
2648 %`\swapCites
2649 This is the way to declare a quotation within an article, as described in the section~\ref[cite].
2650 Capital letter that identifies the article can be <A> if it is the first quotation in that article,
2651 then <B> if it is already the second one, etc.
2652 After such declaration, you will probably want to make it visible somewhere.
2653 You have to decide where in the article it would be best to insert it, and there you type
2654
2655 * \`\insertCite` `A\left ` or \`\insertCite` `A\right`.
2656 See section~\ref[cite] for more information.
2657
2658 \enditems
2659
2660 %... \TODO, complete
2661
2662 \secc Typically in a `fmt-*-*.tex` file
2663
2664 Data formatting file (named, for example, `fmt-BBE-Gen.tex`) can contain any of the following
2665 commands:
2666
2667 \begitems
2668 * \`\fmtpre` `{<chapter-number>:<verse-number>}{<commands>}` inserts <commands> before specified verse.
2669 * \`\fmtadd` `{<chapter-number>:<verse-number>}{<commands>}` inserts <commands> after specified verse.
2670 * \`\fmtins` `{<chapter-number>:<verse-number>}{<phrase>}{<commands>}` inserts commands just after the
2671 <phrase> that has to exist in the specified verse.
2672 * \`\chaptit` `{<chapter-title>}` specifies the title to go before the first verse of a chapter, to
2673 be used inside `\fmtpre` as its parameter, for example, `\fmtpre{1:1}{\chaptit{CHAPTER TITLE}}`.
2674 * \`\subtit` `{<pericope title>}` is similar to `\chaptit` except that it comes inside chapter as a
2675 title of just part of a chapter. However, it could be used even before the first verse of a chapter,
2676 usually in situations where the chapter title is to be immediately followed by a pericope title. Example:
2677 `\fmtpre{1:1}{\chaptit{CHAPTER TITLE}\subtit{Pericope Title}}`.
2678
2679 \enditems
2680 %... \TODO, complete
2681
2682 \secc When creating maps
2683
2684 A map or any sort of similar images will be always placed within some text,
2685 thus its commands will be called from either Introduction file or Notes file.
2686 OpBible allows you to place text on the top of such image. The text over a map has not only the
2687 advantages of the notes text (like hyperlinked references, variations according to the translation,
2688 or renumbering verses) but also few other as well, like placement by coordinates, text along
2689 curved path, partially transparent background under the text, etc., see the section~\ref[maps].
2690 It makes sense to use these features if the image you use is a blank map with no characters in it.
2691
2692 \begitems
2693
2694 * \`\insertBot` `{<Map's title>}[<label>](<optional parameters>){<data>}`
2695 Map's title will show up in a horizontal bar above the image;
2696 <label> serves for reference purposes as usually.
2697 Optional parameters can modify the dimensions of the image (e.g., `\picw=3in`) but if you are happy
2698 with the default setting
2699 (which is `\picw=\hsize`), type in empty parentheses `()`.
2700 The last parameter <data> includes \`\inspic` `{image-file}` command followed by an optional map legend.
2701 The map legend is everything that will show over the image as text of any kind.
2702 In can include definitions like
2703 * `\Heros \cond \setfontsize{at 9pt}\rm` to set the font;
2704 * \`\putstext` `2mm 108mm {\vtop{\hsize6.5cm \baselineskip9pt \noindent`
2705
2706 `\leftskip=3pt \rightskip=3pt Soon after Alexander' death...}}` to type a text with partially
2707 transparent background over a map.
2708 * \`\puttext` {\everyintt={}`55mm 53mm
2709 {<"Dan 11:5 (`“`king of the south`”`)"_Dan 11:5>}`} to place a text that is an
2710 active hyperlink at the same time;
2711 * `\puttext` `48mm 55mm {`\`\c``[-40/\kern1pt]{Jerusalem}}` to place a text rotated 40°;
2712 * `\puttext` `130mm 50mm {`\`\c``[-40/\kern4pt\pdfrotate{-1}]{ELAM}}` to place a concave or convex text.
2713
2714 \enditems
2715
2716 %... \TODO, complete
2717
2718 \secc When creating timelines
2719 \begitems
2720 *\`\putSpanText` `12:40 {<title>} [<label>] (<parameters>)`
2721 `{<the timeline itself>}` --
2722 you can use an pre-prepared image for a timeline, in which case you would call it by
2723 \`\putSpanImage` instead of `\putSpanText`. Remember, however, that this will rob you of the
2724 possibility to have references as active hyperlinks and variations of phrases following different
2725 Bible versions. If you insist on having these features, it is preferable to stick with `\putSpanText`.
2726
2727 \noindent The timeline itself can be created by:
2728 * \`\timeline` `430` -- sets the total number of years (or other units) in the timeline.
2729 * \`\timelinewidth` `36cm` -- the width of timeline (here: 430 years = 36 cm).
2730 * \`\arrowtext` `0..430 (\bf)` `{430 years (Exod 12:40; Gal 3:16--17)}` --
2731 prints arrow between from..to units with the text in the middle.
2732 * \`\vskip` `2\l` is equal to `\vskip 2\baselineskip`; `\l` is only shortcut for `\baselineskip`
2733 * \`\tlput` `a 0 \rlap(\bf)` `{Abraham received\cr promise (Gen 12:3-5,7; 15:5--6)}` --
2734 prints text;
2735 * \`\tline` `0..430` -- prints horizontal line from..to units;
2736 * \`\tlines` `{0|25|60|130|215|0}` -- prints vertical short lines, numbers mean distance between them.
2737
2738 \enditems
2739
2740 %... \TODO, complete
2741
2742 %\recommended
2743 %Compare these instructions with the files that come as a part of the bundle.
2744
2745 \sec Generating technical documentation of \OpBible/
2746
2747 The detailed technical documentation is prepared. The text of this documentation is part of the file `opbible.opm` itself. You can generate a PDF from this text by the command:
2748 \begtt
2749 optex -jobname opbible-techdoc '\docgen opbible'
2750 \endtt
2751 The `opbible-techdoc.pdf` is created.
2752 Use this command three times because the references must be correctly linked and the created Index and Table of contents need data from previous \TeX/ run.
2753
2754 \sec After you're done
2755
2756 After you finish writing your commentary, you have all the formatting done,
2757 you have checked all the references to make sure they are correct,
2758 there are no more warning messages in the log file,
2759 and you are quite happy about how your Study Bible looks like, you can now
2760 disable blue color of the
2761 links by typing (somewhere in the `main.tex` file) `\hyperlinks\relax\relax`.
2762 (They will still function as hyperlinks, though, only now in `\Black` color,
2763 thus indistinguishable from the surrounding text.)
2764
2765
2766 The printing house to which you would submit your resulting PDF should be able to add their own
2767 crop marks. If for some reason you want to do it yourself, you can use the macro `cropmarks.tex` which is part of \ulink[https://ctan.org/tex-archive/macros/generic/olsak-misc]{olsak-miscs} macro collection.
2768
2769 \vfill
2770 \eject
2771
2772 \sec Index
2773
2774 \def\_sortinglang{en}
2775 \begmulti 3
2776 \typosize[9/]
2777 \makeindex
2778 \endmulti
2779
2780 \bye
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 % what's below should be in the same Overleaf project with the corresponding 00-README in the individual directories.
2858
2859 \secc[summa-main] Main file `main.tex`
2860
2861 \begtt
2862 \load[opbible] % macros OpBible
2863 \cslang
2864
2865 %\checksyntax notes-Da intro-Da articles-Da fmt-BKR-Da {} % Error tracer; when active, \processbooks is disabled (does nothing)
2866 %\normalchapnumbers % smaller chapter number (just over first 2 lines); no big quote marks next to the quotations
2867 %\mergednotes % more than one note to a single verse make one paragraph but at the expanse of ignoring the search phrases
2868 %\let\notecolor=\relax % disables \Red search phrases
2869 \def\shadowparameter{.1}%text background transparency; {1}=solid white
2870 %\def\townparams{
2871 % \hhkern=.8pt % radius of the sphere
2872 % \lwidth=.5pt % contour line thickness
2873 % \fcolor=\Red % ring color
2874 % \lcolor=\Black % contour line colour
2875 %}
2876
2877
2878 %\input hebrew % Hebrew phrases are declared here
2879 %\input greek % Greek - "-
2880
2881 % Variants of translation:
2882 \def\tmark {BKR} % Bible Royal
2883 %\def\tmark {PSP} % Pavlik's study translation
2884 %\def\tmark {CSP} % Czech study translation
2885 %\def\tmark {CEP} % Czech Ecumenical Translation
2886 %\def\tmark {B21} % Bible for the 21st century
2887 %\def\tmark {SNC} % Word for the Journey
2888
2889 \input {Cze-vars.tex} % Variants of translation
2890 \input {Cze-books.tex} % Book titles and marks
2891
2892 \def\txsfile {sources/Cze\tmark-\bmark.txs} % Location of .txs files
2893 \def\fmtfile {formats/fmt-Cze\tmark-\amark.tex} % Location of fmts
2894 \def\notesfile {notes/notes-\amark.tex} % Location of notes
2895 \def\introfile {others/intro-\amark.tex} % Location of introductions
2896 \def\articlefile {others/articles-\amark.tex} % Location of articles
2897
2898 \def\printedbooks {%
2899 Gn Ex Lv Nu Dt Joz Sd Rt 1Sa 2Sa 1Kr 2Kr 1Pa 2Pa Ezd Neh
2900 Est Jb Ž Př Kaz Pís Iz Jr Pl Ez Da Oz Jl Am Abd Jon Mi
2901 Na Abk Sf Ag Za Mal
2902 Mt Mk Lk Jn Sk Ř 1K 2K Ga Ef Fp Ko 1Te 2Te 1Tm 2Tm
2903 Tt Fm Žd Jk 1Pt 2Pt 1Jn 2Jn 3Jn Ju Zj
2904 }
2905
2906 \def\printedbooks{Da}
2907 \processbooks % Generates books declared in \printedbooks
2908 \bye
2909 \endtt
2910
2911
2912
2913 \secc[summa-intro] File `intro-*.tex`
2914
2915 \secc[summa-notes] File `notes-*.tex`
2916
2917 \begtt
2918 %\ww {}%searched phrase of each translation
2919 % ={}printed phrase % BKR
2920 % {}={} % PSP
2921 % {}={} % CSP
2922 % {}={} % CEP
2923 % {}={} % B21
2924 % {}={} % SNC
2925 \Note 1:1 {} %phrase common to all translations, e.g.,wisdom, otherwise empty group{}
2926 %={}%a phrase not in the Bible but printed, e.g., Vision of the four \x/selem/
2927 Text notes.
2928 \endtt
2929
2930
2931
2932
2933 \secc[summa-article] File `article-*.tex`
2934
2935 \secc[summa-quote] Command `\putCite`
2936
2937 \secc[summa-maps] Map description
2938
2939 \secc[summa-fmt] Format files `fmt-*-*-*.tex`
2940
2941 \secc[summa-vars] Translation variants file `Cze-vars.tex`
2942
2943
2944
2945
2946
2947
2948 \vfill\eject
2949
2950 \sec Index
2951
2952 \def\_sortinglang{en}
2953 \begmulti 3
2954 \typosize[9/]
2955 \makeindex
2956 \endmulti
2957
2958 \bye