Code Monkey home page Code Monkey logo

scripture's People

Contributors

dcpurton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

scripture's Issues

! Undefined control sequence. \__scripture_begin:n ... \hook_gclear_next_code:n

Gentoo linux, up to date as of 10m ago.
lualatex:

This is LuaHBTeX, Version 1.13.0 (TeX Live 2021 Gentoo Linux)

Execute  'luahbtex --credits'  for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

LuaTeX is Copyright 2021 Taco Hoekwater and the LuaTeX Team.

xelatex:

XeTeX 3.141592653-2.6-0.999993 (TeX Live 2021 Gentoo Linux)
kpathsea version 6.3.3
Copyright 2021 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 72.1; using 72.1
Compiled with zlib version 1.2.13; using 1.2.13
Compiled with FreeType2 version 2.12.1; using 2.12.1
Compiled with Graphite2 version 1.3.14; using 1.3.14
Compiled with HarfBuzz version 5.3.0; using 5.3.1
Compiled with libpng version 1.6.38; using 1.6.38
Compiled with pplib version v2.05 less toxic i hope
Compiled with fontconfig version 2.14.0; using 2.14.0

pdflatex:

pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021 Gentoo Linux)
kpathsea version 6.3.3
Copyright 2021 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.38; using libpng 1.6.38
Compiled with zlib 1.2.13; using zlib 1.2.13
Compiled with xpdf version 4.03

error:

! Undefined control sequence.
\__scripture_begin:n ... \hook_gclear_next_code:n
                                                  {para/before}\skip_set:Nn ...

l.9 \begin{scripture}[Amos 3:6--7][version=NRSV]

?

mwe:

% vim: spell spelllang=en ft=tex
\documentclass[14pt,a4paper,english]{extbook}

\usepackage[colorlinks=true,linkcolor=black,urlcolor=black]{hyperref}
\usepackage{scripture}

\begin{document}

\begin{scripture}[Amos 3:6--7][version=NRSV]
	``Is a trumpet is blown in a city, and the people are not afraid? Does
	disaster befall a city, unless the LORD has done it?''

	``Surely the Lord GOD does nothing, without revealing His secret
	to his servants the prophets.''
\end{scripture}

\end{document}

noindent option adds extra space

The noindent option to the scripture environment adds extra vertical space when the following conditions are met:

  • The scripture environment is at the beginning of a minipage environment.
  • The scripture environment begins with one of its inner environments (center, flushright, hanging, narrow or poetry).

Test file

\documentclass[a4paper,twocolumn]{article}
\input{regression-test}
\usepackage{scripture}
\pagestyle{empty}
\begin{document}
\START
\showoutput
\noindent
\begin{minipage}{\linewidth}
  \begin{scripture}
    \begin{poetry}
      \vs{2}Hear me, you heavens! Listen, earth!
      For the \textsc{Lord} has spoken:

      ‘I reared children and brought them up,
      but they have rebelled against me.
    \end{poetry}
  \end{scripture}
\end{minipage}

\newpage

\noindent
\begin{minipage}{\linewidth}
  \begin{scripture}[][noindent]
    \begin{poetry}
      \vs{2}Hear me, you heavens! Listen, earth!
      For the \textsc{Lord} has spoken:

      ‘I reared children and brought them up,
      but they have rebelled against me.
    \end{poetry}
  \end{scripture}
\end{minipage}
\end{document}

Test for blank reference fails

When passing a blank reference to the scripture environment, the test for a blank reference fails.

MWE

The two boxes should look the same, but they don't.

\documentclass{article}
\usepackage{scripture}
\usepackage{framed}
\begin{document}
\noindent
\begin{minipage}{11cm}
  \begin{framed}
    \begin{scripture}[][]
      \vs{16}For God so loved the world that he gave his one and only Son,
      that whoever believes in him shall not perish but have eternal life.
    \end{scripture}
  \end{framed}

  \begin{framed}
    \begin{scripture}
      \vs{16}For God so loved the world that he gave his one and only Son,
      that whoever believes in him shall not perish but have eternal life.
    \end{scripture}
  \end{framed}
\end{minipage}
\end{document}

Hooks missing for poetry and hanging chapters

The scripture/chap/before and scripture/chap/after hooks are missing for the both drop and non-drop chapters in the poetry environment and drop chapters in the hanging environment.

Add option to put the reference at the start of the quote

There should be an option to put the reference at the start of the quotation, rather than the end.

This should deal sanely with the case where there is a chapter or verse number at the start.

Does it make sense to forbid drop chapters in this case?

Add `paraboveskip` and `parbelowskip` options

It would be useful to be able to set a different above and below skip around the `scripture' environment and its internal environments depending on wither they start a new paragraph or not.

Typo in Documentation, v. 1.0, p. 6

On page 6 of the documentation, the word have should be "half" in the first indented line of text.

“Poetry sections of the Bible often have a first have and a parallel second half which is indented a little,” should be: “Poetry sections of the Bible often have a first half and a parallel second half which is indented a little.”
(asterisks added)

Feature request: width settings for scripture blocks.

Occasionally one will include a 'hunk' of scripture within a text. As of right now, my rendering puts 'normal'
paragraphs and scripture 'hunks' at the same width, making it a bit tricky to distinguish where one ends and
the other begins (aside from the scripture ref at the end)

Add language option

It would be nice to have better support for babel. At least include a language. option

Add a chapter/format option

There is a verse/format option to apply simple formatting to a verse, but no chapter/format option.

For consistency, an analogous chapter/format option should be added.

Incorrect \parshape possible for reference

At least when the following conditions are met, the reference is printed in the wrong place because of an incorrect \parshape:

  • Drop chapter
  • Followed by poetry environment
  • Followed by reference

Remove dependency on @currenvir

Using \@currenvir to test which environment we are in can be unreliable if they are ever started directly without using \begin{}.

Use internal variables instead.

Add a verse/sep option

Currently there is no space between a verse and the following text. A little space should be added by default.

The amount of space should be configurable using a verse/sep option analogous to the chapter/sep option.

Hypertext link reference to website

I would like Bible references in the PDF to actively link to Bible Gateway. Here is an example of how to do that using the hyperref package:

\href{https://www.biblegateway.com/passage/?search=Psalm+86%3A10&version=ESV}{Psalm 86:10}

But the following scripture code:

\begin{scripture}[\href{https://www.biblegateway.com/passage/?search=Psalm+86%3A10&version=ESV}{Psalm 86:10}][version=ESV]
\begin{poetry}
For you are great and do wondrous things;
you alone are God.
\end{poetry}
\end{scripture}

results in this error:

Paragraph ended before \\environment scripture was complete.

What am I doing wrong? Or do you have a better suggestion for doing this?

I apologize if this is not the appropriate way to use issues. I didn't know how else to communicate a question to you.

Spacing is wrong with setspace package

Spacing before and after the scripture environment when using the setspace package to change the line spacing.

Consider:

\documentclass{article}
\usepackage{setspace}
\usepackage{scripture}
\scripturesetup{
  font=\doublespacing
}
\pagestyle{empty}
\begin{document}
\begin{scripture}[John 3:16]
  \vs{16}For God so loved the world that he gave his one and only Son, that
  whoever believes in him shall not perish but have eternal life.
\end{scripture}

\noindent
\begin{minipage}{0.6\linewidth}
  \begin{scripture}[John 3:16]
    \vs{16}For God so loved the world that he gave his one and only Son, that
    whoever believes in him shall not perish but have eternal life.
  \end{scripture}
\end{minipage}
\end{document}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.