• No results found

Typesetting Bible texts with the bible package

N/A
N/A
Protected

Academic year: 2021

Share "Typesetting Bible texts with the bible package"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Typesetting Bible texts with the bible package

Camil Staps

Version 0.1.2

2017-09-01

1

Introduction

This package allows you to add Bible texts by specifying references, rather than copying the text into the document.

Under the hood, this uses the bible command, for which you need to install bible-kjv. This means that by default you will have the KJV translation. Because of the need for this package and other implementation details, this package won’t work on Windows.

Because this package uses a binary program under the hood (which is a poten-tial security vulnerability), you need to add the -shell-escape option to the command line arguments of your TeX processor.

2

Installation and source code

The bible package is available from CTAN: https://ctan.org/pkg/bibletext. The source code is on GitHub: https://github.com/camilstaps/bibletext.

3

Examples

\bibletext{Jn 1:1-2}

In the beginning was the Word, and the Word was with God, and the Word was God. The same was in the beginning with God.

\bibletext[ref=true]{Jn 1:1-2}

1:1 In the beginning was the Word, and the Word was with God, and the Word was God. 1:2 The same was in the beginning with God.

info@camilstaps.nl

(2)

\bibletext[ref=true,omitrepeatedchapter=true]{Jn 1:1-2}

1:1 In the beginning was the Word, and the Word was with God, and the Word was God. 2 The same was in the beginning with God.

\bibletext[ref=true,omitchapter=true]{Jn 1:1-2}

1 In the beginning was the Word, and the Word was with God, and the Word was God. 2 The same was in the beginning with God.

4

Future work

• When omitrepeatedchapter=true, the chapter should again be out-putted when a new chapter has begun.

• The verse indications should be parsed and a \versefont command should be defined.

• Implement the translation option to allow the writer to select a specific translation.

5

Incompatibilities

The bible package needs to pipe shell commands, for which it needs to do \DeleteShortVerb{\|}. This means that you cannot use |foo| as shorthand for \verb|foo|1.

1Credits go to egreg on TeX.SE, http://tex.stackexchange.com/q/294732/23992.

Referenties

GERELATEERDE DOCUMENTEN

If the list of default values is shorter than the list of test tokens, the special -NoValue- marker will be returned (as for the e-type argument).. Thus

Expands tokens following the hfunctioni, removing any token with catcode 10 (space), then sets \g_primargs_token (globally) equal to the first non-space token and calls the

The \tab and \untab commands are defined to have no effect while outside a program environ- ment, hence a single-line program can be typeset in maths mode without the

are defined: The current level, the number of children the current node has, the maximum level specified, also, the current branchmult, and whether the current node should be

However, remember that texsurgery is a python project whose main focus is on evaluating code inside a jupyter kernel, and this is only achieved by installing the python package

BHS and HUB, a so-called diplomatic edition: one particular Tiberian MS, namely Codex L, will be printed as base text, together with a textcritical apparatus.. Let me explain some

As we have mentioned above this version of the greek option of the babel package supports the use of Greek numerals. The commands \greeknumeral and \Greeknumeral produce the

The fortextbook option provides a number of features of value to textbook authors: (1) For the instructor edition, answers can be placed in a wide mar- gin, or inline; (2) short or