From 8c78f72263390222b0d893bd0eb7befe3961209e Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 15 Mar 2023 21:51:20 +0300 Subject: [PATCH] refactoring... Signed-off-by: Alex A. Naanou --- scripts/README.md | 13 ++++++++++++- scripts/make-spreads.sh | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/README.md b/scripts/README.md index 7ff304d..3e09c0c 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -198,7 +198,18 @@ If only one image/text file is provided then `make-spreads.sh` will set it on the right page of the spread using the appropriate page template and leave the left page blank. - +A black page uses `blankpage.tex` template if available, otherwise a +trivial blank page is used: +```latex +\null +\newpage +``` + + #### Manual template selection diff --git a/scripts/make-spreads.sh b/scripts/make-spreads.sh index 438ef61..e55ce90 100644 --- a/scripts/make-spreads.sh +++ b/scripts/make-spreads.sh @@ -278,6 +278,7 @@ readCaption(){ # usage: # getTemplate SPREAD TYPE # +# XXX REVISE... getTemplate(){ local SPREAD=$1 local TYPE=$2 @@ -285,6 +286,10 @@ getTemplate(){ if [ -z $TEMPLATE ] ; then TEMPLATE=($SPREAD/*-$TYPE.tpl) if ! [ -z $TEMPLATE ] ; then + #TEMPLATE=${TEMPLATE_DIR}/$(echo "${TEMPLATE[0]}" \ + # | sed -e "s/$SPREAD\///" \ + # -e 's/^[0-9]\+-//' \ + # -e "s/-${TYPE}.*$//") TEMPLATE=${TEMPLATE/$SPREAD\//} TEMPLATE=${TEMPLATE/[0-9]-/} TEMPLATE="$TEMPLATE_DIR/${TEMPLATE[0]%-${TYPE}.*}.tex"