summaryrefslogtreecommitdiff
path: root/latex
diff options
context:
space:
mode:
authorSashi202019-08-26 16:26:08 +0530
committerSashi202019-08-26 16:26:08 +0530
commitc4b7c243bf045dab16e62fc5d5990430c0ade608 (patch)
tree5e7d5b1d9a8a73ca35b45a6457055d30f834e658 /latex
parent100027ecf8a36eb12052b2772edf16f9bd3f8eed (diff)
downloadr_textbook_companion-c4b7c243bf045dab16e62fc5d5990430c0ade608.tar.gz
r_textbook_companion-c4b7c243bf045dab16e62fc5d5990430c0ade608.tar.bz2
r_textbook_companion-c4b7c243bf045dab16e62fc5d5990430c0ade608.zip
Add fields to edit main and subcategories for completed books and Download pdf option
Diffstat (limited to 'latex')
-rwxr-xr-xlatex/Initial_body10
-rwxr-xr-xlatex/latex_test.sh13
2 files changed, 11 insertions, 12 deletions
diff --git a/latex/Initial_body b/latex/Initial_body
index c0a6b63..571a3af 100755
--- a/latex/Initial_body
+++ b/latex/Initial_body
@@ -7,7 +7,7 @@
\bibliographystyle{plain}
-\lstset{ %configuring the display of scilab codes
+\lstset{ %configuring the display of R codes
tabsize=4,
language=R,
basicstyle=\ttfamily,
@@ -25,7 +25,7 @@
% code environment
-{\theorembodyfont{\rmfamily} \newtheorem{codemass}{Scilab code}[chapter]}
+{\theorembodyfont{\rmfamily} \newtheorem{codemass}{R code}[chapter]}
\newenvironment{code}%
{\begin{codemass}}{\hrule \end{codemass}}
@@ -39,10 +39,10 @@
\newcommand\tcaption[1]
{\addcontentsline{cod}{section}{\protect\numberline {\thecodemass}#1}}
\makeatletter \newcommand\listofcode
- {\chapter*{List of Scilab Codes\markboth%
- {\bf List of Scilab Codes}{}}%
+ {\chapter*{List of R Codes\markboth%
+ {\bf List of R Codes}{}}%
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{5em}}%
-\addcontentsline{toc}{chapter}{\protect\numberline{List of Scilab Codes}}
+\addcontentsline{toc}{chapter}{\protect\numberline{List of R Codes}}
\@starttoc{cod}}
\newcommand\l@matlab[3]
{#1 \par\noindent#2, #3 \par}
diff --git a/latex/latex_test.sh b/latex/latex_test.sh
index ebd71eb..4e88d63 100755
--- a/latex/latex_test.sh
+++ b/latex/latex_test.sh
@@ -41,7 +41,7 @@ colB4=${colB4/&/\\&};
colB5=${colB5/&/\\&};
colB6=${colB6/&/\\&};
colB7=${colB7/&/\\&};
-echo \\title\{Scilab Textbook Companion \for "\\\\"$colB1"\\\\"by $colB2"\\footnote{Funded by a grant from the National Mission on Education through ICT, http://spoken-tutorial.org/NMEICT-Intro. This Textbook Companion and Scilab codes written in it can be downloaded from the \"Textbook Companion Project\" section at the website http://scilab.in}}" >>$CURDIR/TEX
+echo \\title\{R Textbook Companion \for "\\\\"$colB1"\\\\"by $colB2"\\footnote{Funded by a grant from the National Mission on Education through ICT, http://spoken-tutorial.org/NMEICT-Intro. This Textbook Companion and R codes written in it can be downloaded from the \"Textbook Companion Project\" section at the website http://R.in}}" >>$CURDIR/TEX
echo \\author\{ Created by \\\\$col1\\\\$col2\\\\$col3\\\\$col4\\\\ College Teacher\\\\$col5\\\\Cross\-Checked by \\\\$col6\\\\$col8}>>$CURDIR/TEX
@@ -66,13 +66,13 @@ echo >> $CURDIR/TEX
echo \\newpage >> $CURDIR/TEX
echo \\vspace*{3cm}>>$CURDIR/TEX
-echo Scilab numbering policy used in this document and the relation to the above book.>>$CURDIR/TEX
+echo R numbering policy used in this document and the relation to the above book.>>$CURDIR/TEX
echo \\begin{description}>>$CURDIR/TEX
echo \\item[Exa] Example \(Solved example\)>>$CURDIR/TEX
echo \\item[Eqn] Equation \(Particular equation of the above book\)>>$CURDIR/TEX
-echo \\item[AP] Appendix to Example\(Scilab Code that is an Appednix to a particular Example of the above book\)>>$CURDIR/TEX
+echo \\item[AP] Appendix to Example\(R Code that is an Appednix to a particular Example of the above book\)>>$CURDIR/TEX
echo \\end{description}>>$CURDIR/TEX
-echo "For example, Exa~3.51 means solved example 3.51 of this book. Sec~2.3 means a scilab code whose theory is explained in Section 2.3 of the book.">>$CURDIR/TEX
+echo "For example, Exa~3.51 means solved example 3.51 of this book. Sec~2.3 means a R code whose theory is explained in Section 2.3 of the book.">>$CURDIR/TEX
echo>>$CURDIR/TEX
echo \\tableofcontents >>$CURDIR/TEX
@@ -132,7 +132,7 @@ fi
if [ $col7 = X ]
then
-echo This code can be downloaded from the website wwww.scilab.in >> $CURDIR/TEX
+echo This code can be downloaded from the website wwww.R.in >> $CURDIR/TEX
fi
if [ $col7 = R ]
@@ -154,7 +154,6 @@ j=$col1
done < database_sort
#rm Figure_files
-
if [ -s $Dep_dat ]
then
@@ -173,7 +172,7 @@ echo >> $CURDIR/TEX
let "i+=1"
done < $Dep_dat
-fi
+fi
cat Initial_body TEX > TEX_final.tex
echo \\end{document} >> $CURDIR/TEX_final.tex