#!/bin/sh
#] 
#] *********************
#] $ bash "$d_bin""Lucas txtDoc augment.sh"  - for project "Lucas - Universal Force, chapter 4"
# www.BillHowell.ca  ~05Oct2019 initial
# 23Oct2019 I need to use make!!  - auto-generated based on skeletons


#**********************************
# headers

# MUST DO! :  see "$d_bin""standard header.sh" for command-line exports of variables : 
#		d_meda, d_bin, d_images, d_Lucas
source  "$d_bin""standard header.sh"

# txtDoc scripts : not just for the Lucas project, these are generally useful ...
source  "$d_bin""txtDoc cmd.sh"
source  "$d_bin""txtDoc insert indexes.sh"
source  "$d_bin""txtDoc extract formulae.sh"


#**********************************

d_Lucas="$d_meda""PROJECTS/Lucas - Universal Force/"
d_inn="$d_Lucas"
d_augmented="$d_Lucas""documents/"
d_images="$d_Lucas""images/"

# math[L,H] - generation of the full document
# uses "Howell - math of Lucas skeleton.txt"

#] txtDoc_augment()  - 

	txtDoc_augment()
{
txtDoc_cmd
insert_indexes
#txtDoc_save
}


#**********************************
#  full mathL document output, with or without cos - 1 expression

#] mathL_with_cos_minus_one()  - 

	mathL_with_cos_minus_one()
{  
echo "processing mathL_with_cos_minus_one ..."
f_inn="math skeleton Lucas.txt"
d_augment="$d_inn""math Lucas/"
cos_inclusion="yes"
f_augmented="$date_ymdhm math Lucas, cos - 1 $cos_inclusion.txt"
txtDoc_augment
}  


#] mathL_no_cos_minus_one()  - 

	mathL_no_cos_minus_one()
{  
echo "processing mathL_no_cos_minus_one ..."
f_inn="math skeleton Lucas.txt"
d_augment="$d_inn""math Lucas/"
cos_inclusion="noo"
f_augmented="$date_ymdhm math Lucas, cos - 1 $cos_inclusion.txt"
txtDoc_augment
}  


#************************
# look at effects of different treatments of cos - 1
# 4_32_to_37 - checks only those equations plus cos - 1

#] 4_32_to_37_with_cos_minus_one()  - 

	4_32_to_37_with_cos_minus_one()
{  
echo "processing 4_32_to_37_with_cos_minus_one ..."
f_inn="math skeleton Lucas 4-32-37 yes-no cos - 1.txt"
d_augment="$d_inn""math Lucas/"
cos_inclusion="yes"
f_augmented="$date_ymdhm math Lucas, 4-32-37, cos - 1 $cos_inclusion.txt"
txtDoc_augment
}  


#] 4_32_to_37_no_cos_minus_one()  - 

	4_32_to_37_no_cos_minus_one()
{  
echo "processing 4_32_to_37_no_cos_minus_one ..."
f_inn="math skeleton Lucas 4-32-37 yes-no cos - 1.txt"
d_augment="$d_inn""math Lucas/"
cos_inclusion="noo"
f_augmented="$date_ymdhm math Lucas, 4-32-37, cos - 1 $cos_inclusion.txt"
txtDoc_augment
}  


#*****************
# Other

# full mathH document
#] mathH()  - 

	mathH()
{  
echo "processing mathH ..."
f_inn="math skeleton Howell.txt"
d_augment="$d_inn""math Howell/"
f_augmented="$date_ymdhm math Howell.txt"
txtDoc_augment
}  


#] nomenclature()  - 

	nomenclature()
{  
echo "processing nomenclature ..."
f_inn="math skeleton nomenclature.txt"
d_augment="$d_inn""math nomenclature/"
f_augmented="$date_ymdhm math nomenclature.txt"
txtDoc_augment
}



#********************
# Make selections before running  (of course, one may run them all if desired)
# 23Oct2019 I need to use make!!  - auto-generated based on skeletons

	mathL_with_cos_minus_one
	mathL_no_cos_minus_one
	4_32_to_37_no_cos_minus_one
	4_32_to_37_with_cos_minus_one
	mathH
	nomenclature

#extract_formulae
#extract_formulae


# $ bash "$d_bin""Lucas txtDoc augment.sh"




# enddoc
