| 1 |
\documentclass[a4paper]{ltxguide} |
| 2 |
|
| 3 |
\usepackage[hidelinks]{hyperref} |
| 4 |
|
| 5 |
\title{Typesetting Bible texts with the \textsf{bible} package} |
| 6 |
\author{Camil Staps\footnote{[email protected]}} |
| 7 |
\date{Version 0.1.2\\2017-09-01} |
| 8 |
|
| 9 |
\usepackage{bibletext} |
| 10 |
|
| 11 |
\usepackage{framed} |
| 12 |
\usepackage{minted} |
| 13 |
\newenvironment{example} |
| 14 |
{\VerbatimOut{\jobname.tmp}} |
| 15 |
{\endVerbatimOut% |
| 16 |
\begin{framed} |
| 17 |
\setlength{\parskip}{-10pt} |
| 18 |
\inputminted[gobble=8]{latex}{\jobname.tmp} |
| 19 |
\medskip |
| 20 |
\input{\jobname.tmp} |
| 21 |
\end{framed}} |
| 22 |
|
| 23 |
\begin{document} |
| 24 |
|
| 25 |
\maketitle |
| 26 |
|
| 27 |
\section{Introduction} |
| 28 |
This package allows you to add Bible texts by specifying references, |
| 29 |
rather than copying the text into the document. |
| 30 |
|
| 31 |
Under the hood, this uses the \texttt{bible} command, |
| 32 |
for which you need to install \texttt{bible-kjv}. |
| 33 |
This means that by default you will have the KJV translation. |
| 34 |
Because of the need for this package and other implementation details, |
| 35 |
this package won't work on Windows. |
| 36 |
|
| 37 |
Because this package uses a binary program under the hood |
| 38 |
(which is a potential security vulnerability), |
| 39 |
you need to add the \texttt{-shell-escape} option to the command line arguments of your TeX processor. |
| 40 |
|
| 41 |
\section{Installation and source code} |
| 42 |
The \textsf{bible} package is available from CTAN: \url{https://ctan.org/pkg/bibletext}. |
| 43 |
The source code is on GitHub: \url{https://github.com/camilstaps/bibletext}. |
| 44 |
|
| 45 |
\section{Examples} |
| 46 |
\begin{example} |
| 47 |
\bibletext{Jn 1:1-2} |
| 48 |
\end{example} |
| 49 |
|
| 50 |
\begin{example} |
| 51 |
\bibletext[ref=true]{Jn 1:1-2} |
| 52 |
\end{example} |
| 53 |
|
| 54 |
\begin{example} |
| 55 |
\bibletext[ref=true,omitrepeatedchapter=true]{Jn 1:1-2} |
| 56 |
\end{example} |
| 57 |
|
| 58 |
\begin{example} |
| 59 |
\bibletext[ref=true,omitchapter=true]{Jn 1:1-2} |
| 60 |
\end{example} |
| 61 |
|
| 62 |
\section{Future work} |
| 63 |
\begin{itemize} |
| 64 |
\item When \verb$omitrepeatedchapter=true$, |
| 65 |
the chapter should again be outputted when a new chapter has begun. |
| 66 |
\item The verse indications should be parsed and a \verb$\versefont$ command should be defined. |
| 67 |
\item Implement the \verb$translation$ option to allow the writer to select a specific translation. |
| 68 |
\end{itemize} |
| 69 |
|
| 70 |
\section{Incompatibilities} |
| 71 |
The \textsf{bible} package needs to pipe shell commands, |
| 72 |
for which it needs to do \verb$\DeleteShortVerb{\|}$. |
| 73 |
This means that you cannot use \verb$|foo|$ as shorthand for \verb$\verb|foo|$% |
| 74 |
\footnote{Credits go to egreg on TeX.SE, \url{http://tex.stackexchange.com/q/294732/23992}.}. |
| 75 |
|
| 76 |
\end{document} |