diff options
author | Norbert Preining <norbert@preining.info> | 2018-08-03 16:23:39 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2018-08-03 16:23:39 +0900 |
commit | f0e513312532c34b0e0612c5bc48ee6a3c780021 (patch) | |
tree | 4155b3a55e33cbe55794c2abd4e99be29a92593a /texmf-dist/doc/latex/fetchbibpes/examples | |
parent | 4bfec05b346a9a279593713cf39354c295311cf3 (diff) |
fetchbibpes (3Aug)
Diffstat (limited to 'texmf-dist/doc/latex/fetchbibpes/examples')
-rw-r--r-- | texmf-dist/doc/latex/fetchbibpes/examples/bibpes_replace.tex | 2 | ||||
-rw-r--r-- | texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.pdf | bin | 209610 -> 73912 bytes | |||
-rw-r--r-- | texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.tex | 2 | ||||
-rw-r--r-- | texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt.tex | 69 | ||||
-rw-r--r-- | texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt_cobble.tex | 48 |
5 files changed, 117 insertions, 4 deletions
diff --git a/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_replace.tex b/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_replace.tex index 7fd9f1d4..64a363f6 100644 --- a/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_replace.tex +++ b/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_replace.tex @@ -29,7 +29,7 @@ in the days of Herod the king, behold, there came wise men from the east to Jerusalem,\null \end{declareBVs} \end{verbatim} -Its used to define a Bible passage as seen in the DEF file. It is useful +It's used to define a Bible passage as seen in the DEF file. It is useful declaring a passage or two under discussion. The syntax for the argument of \cs{BV} is explained in the reference manual of \pkg{fetchbibpes}. Once declared, we can use it. diff --git a/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.pdf b/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.pdf Binary files differindex 8a63154d..c6ecb54b 100644 --- a/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.pdf +++ b/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.pdf diff --git a/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.tex b/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.tex index 1f8304ee..8b906f0d 100644 --- a/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.tex +++ b/texmf-dist/doc/latex/fetchbibpes/examples/bibpes_tst.tex @@ -28,7 +28,7 @@ This package defines two fetching commands, the syntax for these are, \begin{quote}\ttfamily \string\fetchverse[\ameta{opts}]\marg{\meta{book}\symbol{32}\meta{ch}:\meta{vrs}}\\[3pt] \string\fetchverses*[\ameta{opts}]\marg{\meta{book}\symbol{32}\meta{ch}:\meta{vrs}} or\\[3pt] - \string\fetchverses*[\ameta{opts}]\marg{\meta{book}\symbol{32}\meta{ch}:\meta{vrs\ensuremath{{}_1}}-\meta{vrs\ensuremath{{}_2}}} + \string\fetchverses*[\ameta{opts}]\marg{\meta{book}\symbol{32}\meta{ch}:\meta{vrs\ensuremath{{}_1}}-\upshape[\meta{vrs\ensuremath{{}_2}}\upshape]} \end{quote} The \texttt{*} parameter is optional, when present the book and verse references are shown, otherwise they are not. diff --git a/texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt.tex b/texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt.tex index ce99f0b3..d7c08a6a 100644 --- a/texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt.tex +++ b/texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt.tex @@ -1,10 +1,13 @@ \documentclass{article} \usepackage{pdfcomment} +\hypersetup{bookmarks=false} \usepackage[% useverses=none % useverses=verses ]{fetchbibpes} +\hypersetup{pdfpagemode=UseNone} + \def\cs#1{\texttt{\char`\\#1}} \let\pkg\textsf \let\env\texttt @@ -68,8 +71,22 @@ that is typeset. In the latter case, the \texttt{typeset} option is used as well as some fancy uses of the \texttt{replace} replace option to get the naughty single quotes and apostrophes to look right. +\showTranslAlways +\translTxtFmt{ (#1)} + +Before\fetchversestxt[showfirst]{1Co 1:1-2}\pdfmargincomment[author={\versetxt}]{\passagetxt} continuing the discussion of the \texttt{typeset} option, let us pause +to illustrate the \cs{showTranslAlways} and \cs{translTxtFmt}. Notice that +when quoting the default Bible (KJV) in the first sticky note above, the +transition note does not appear in the title heading of the sticky note, this +is because the \texttt{transl} key was not used. We expand +\cs{showTranslAlways} to always show the translation note (refer to all the +remaining sticky notes in this document). We also change the formatting for the transition notes +in the title bar of the sticky notes by executing \verb|\translTxtFmt{ (#1)}|. All subsequent comment notes +will reflect this change. We conclude this paragraph by inserting a sticky note in the margin that uses the default Bible (KJV). + + The rest of this article discusses the \texttt{typeset} option using\fetchversestxt[abbr=none,from=ISV]{1Ki 1:5} -\versetxt\space(ISV).\pdfmargincomment[author={\versetxt}]{\passagetxt} +\versetxt.\pdfmargincomment[author={\versetxt}]{\passagetxt} This passage contains double quotes (\texttt{"}) and apostrophes (\texttt{\char13}). \medskip\noindent @@ -81,7 +98,6 @@ as \cs{fetchverses}. \medskip\goodbreak\noindent \verb~\fetchversestxt[typeset,abbr=none,from*=ISV]{1Ki 1:5}\passagetxt~\\[3pt] \bDQ\eSQ\fetchversestxt[typeset,abbr=none,from*=ISV]{1Ki 1:5}\passagetxt -%\makeatletter\expandafter\@gobble\passagetxt\makeatother \medskip\noindent \verb~\fetchverses[abbr=none,from*=ISV]{1Ki 1:5}~\\[3pt] @@ -116,4 +132,53 @@ both forms yield the same results, but now let's take away the field.\fetchversestxt[abbr=none,from*=ISV]{1Ki 1:5} \pdfmargincomment[author={\versetxt}]{\passagetxt} + +\medskip\noindent +\textbf{The \texttt{typeset} and \texttt{typeset*} options with a value.} The +rest of this article discusses the \texttt{typeset} and \texttt{typeset*} +options. As a rule, if \cs{passagetxt} is to be passed to an annotation, the +\texttt{typeset*} option should be used if it has a value; if it does not +have a value, then there is no reason to use \texttt{typeset} or +\texttt{typeset*}, under normal circumstances. Here we use \texttt{typeset*} +for both \cs{fetchverses} and \cs{fetchversestxt}. We +use\fetchversestxt[typeset*={replace={ad-n-ahy-juh}{ad-n-\textbf{ahy}-j\textit{uh}}},abbr=none,from*=ISV,replace={Adonijah}{Adonijah +(ad-n-ahy-juh)}]{1Ki 1:5} \versetxt\space as our sample verse, and manipulate it +with the \texttt{replace} +option.\pdfmargincomment[author={\versetxt}]{\passagetxt} This passage +contains double quotes (\texttt{"}) and apostrophes (\texttt{\char13}). The ``raw'' passage is, +\begin{quote} +\verb~\fetchverses[abbr=none,from*=ISV]{1Ki 1:5}~\\[3pt] +\fetchverses[abbr=none,from*=ISV]{1Ki 1:5} +\end{quote} +Our goal with this passage is to correct the first apostrophe (Haggith`s son +should be Haggith's son), and to insert a phonetic spelling of Adonijah. This passage +will be typeset as well as inserted into a PDF annotation, so we must be sure not to +include any {\LaTeX} formatting commands. After hours of meditation, the following options +were taken: +\begin{fpquote}[rightmargin=0pt]\small +\verb~[typeset*={replace={ad-n-ahy-juh}{ad-n-\textbf{ahy}-j\textit{uh}}},~\\ +\verb~abbr=none,from*=ISV,replace={Adonijah}{Adonijah (ad-n-ahy-juh)}]~ +\end{fpquote} +When these options are for \cs{fetchversestxt}, the value of +\texttt{typeset*} is ignored; as a result, Adonijah is replaced by Adonijah +(ad-n-ahy-juh), see the comment note below. When these options are applied to +\cs{fetchverses}, the \texttt{replace} value is automatically modified to +read, +\begin{fpquote}[rightmargin=0pt] +\verb~replace={Adonijah}{Adonijah (ad-n-ahy-juh)}~\\ +\qquad\verb~{ad-n-ahy-juh}{ad-n-\textbf{ahy}-j\textit{uh}}}~ +\end{fpquote} +As a result, both versions of the passage a phonetic spelling of Adonijah, but the typeset version include changes of +font styles. + +\medskip +The final results of this set of argument is given below. +\begin{quote} +\bDQ\eSQ\fetchverses[typeset*= + {replace={ad-n-ahy-juh}{ad-n-\textbf{ahy}-j\textit{uh}}{decided,}{decided, ``I'm going to be king!'' So\gobbletoSo}}, + replace={Adonijah}{Adonijah (ad-n-ahy-juh)},abbr=none,from*=ISV]{1Ki 1:5}\fetchversestxt[typeset*= + {replace={ad-n-ahy-juh}{ad-n-\textbf{ahy}-j\textit{uh}}{decided,}{decided, ``I'm going to be king!'' So\gobbletoSo}}, + replace={Adonijah}{Adonijah (ad-n-ahy-juh)},abbr=none,from*=ISV]{1Ki 1:5}\pdfmargincomment[author={\versetxt}]{\passagetxt} +\end{quote} +Note the typeset version and the annotation version are exactly as designated! \end{document} diff --git a/texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt_cobble.tex b/texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt_cobble.tex new file mode 100644 index 00000000..09ba70ce --- /dev/null +++ b/texmf-dist/doc/latex/fetchbibpes/examples/fetchversestxt_cobble.tex @@ -0,0 +1,48 @@ +\documentclass{article} +\usepackage[ignorecfg, + useverses=none +]{fetchbibpes} + +\addtoBibles{YLT,ISV,NKJV} + + +\title{Cobbling together several passages} +\author{D. P. Story} + +\reversemarginpar + +\begin{declareBVs} +\BV(1Co 1:1 KJV) Paul, called to be an apostle of Jesus Christ through the will of God, and Sosthenes our brother,\null +\BV(1Co 1:2 KJV) Unto the church of God which is at Corinth, to them that are sanctified in Christ Jesus, + called to be saints, with all that in every place call upon the name of Jesus Christ our Lord, both theirs and ours:\null +\BV(1Co 1:3 KJV) Grace be unto you, and peace, from God our Father, and from the Lord Jesus Christ.\null +\BV(1Co 1:4 KJV) I thank my God always on your behalf, for the grace of God which is given you by Jesus Christ;\null +\BV(1Co 1:5 KJV) That in every thing ye are enriched by him, in all utterance, and in all knowledge;\null +% +\BV(1Ki 1:5 ISV) Meanwhile, about this time Haggith's son Adonijah began to seek a reputation for himself and decided, + "I'm going to be king!" So he prepared chariots, cavalry, and 50 soldiers to serve as a security detail to guard him.\null +% +\BV(Gen 1:1 YLT) In the beginning of God's preparing the heavens and the earth--\null +\BV(Gen 1:2 YLT) the earth hath existed waste and void, and darkness is on the face of the deep, + and the Spirit of God fluttering on the face of the waters,\null +\BV(Gen 1:3 YLT) and God saith, `Let light be;' and light is.\null +% +\BV(Joh 15:4 NKJV) Abide in Me, and I in you. As the branch cannot bear fruit of itself, + unless it abides in the vine, neither can you, unless you abide in Me.\null +\BV(Joh 15:5 NKJV) "I am the vine, you are the branches. He who abides in Me, + and I in him, bears much fruit; for without Me you can do nothing.\null +\end{declareBVs} + +\parindent0pt \parskip6pt + +\begin{document} + +\maketitle + +\fetchversestxt[typeset,abbr=none,from=ISV,showfirst]{1Ki 1:5}\cobblevrs\holdverses{(\versetxt)\space\passagetxt} +\fetchversestxt[typeset,showfirst]{1Co 1:1-2}\cobblevrs\holdverses{ (\versetxt)\space\passagetxt} +\fetchversestxt[typeset,abbr=none,from=ISV]{1Ki 1:5}\cobblevrs\holdverses{ (\versetxt)\space\passagetxt} +\fetchversestxt[typeset,abbr=none,from=NKJV,replace={"I am the}{I am the}]{Joh 15:4-5}\cobblevrs\holdverses{ (\versetxt)\space\passagetxt''} +\holdverses + +\end{document} |