summaryrefslogtreecommitdiff
path: root/support/shlatex/en/test
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/shlatex/en/test
Initial commit
Diffstat (limited to 'support/shlatex/en/test')
-rw-r--r--support/shlatex/en/test/biblio.bib7
-rw-r--r--support/shlatex/en/test/externe.tex3
-rw-r--r--support/shlatex/en/test/test15
-rw-r--r--support/shlatex/en/test/test.tex68
4 files changed, 93 insertions, 0 deletions
diff --git a/support/shlatex/en/test/biblio.bib b/support/shlatex/en/test/biblio.bib
new file mode 100644
index 0000000000..0d1b214207
--- /dev/null
+++ b/support/shlatex/en/test/biblio.bib
@@ -0,0 +1,7 @@
+@MANUAL{bib:manuel,
+ title= {User manual\index{U!User manual}},
+ author= {Mael Hilléreau},
+ month= {March},
+ year= {2003},
+ note= {Linux man page (type \texttt{man shlatex} to access it)},
+}
diff --git a/support/shlatex/en/test/externe.tex b/support/shlatex/en/test/externe.tex
new file mode 100644
index 0000000000..21a0631f2d
--- /dev/null
+++ b/support/shlatex/en/test/externe.tex
@@ -0,0 +1,3 @@
+\par It is possible to compile documents wich use the \verb|\input| and
+\verb|\include| commands to make references to some external files, and that in
+a transparent way by compiling only the main source file.
diff --git a/support/shlatex/en/test/test b/support/shlatex/en/test/test
new file mode 100644
index 0000000000..450336daf0
--- /dev/null
+++ b/support/shlatex/en/test/test
@@ -0,0 +1,15 @@
+#!/bin/bash
+# A small test for the ShLaTeX script
+
+version="1.2b-en";
+lignecom="ShLaTeX-$version -bib biblio.bib -toc -idx -dvips -z -2 -sep -no-tmp -no-m -8 -view -v-ps gv test.tex";
+
+$lignecom
+if [ $? -ne 0 ]
+then
+ echo -ne "> Error during the test!\n";
+else
+ echo -ne "> Test OK.\n";
+fi
+
+echo -ne "> Command used :\n$lignecom\n";
diff --git a/support/shlatex/en/test/test.tex b/support/shlatex/en/test/test.tex
new file mode 100644
index 0000000000..17aad94b4a
--- /dev/null
+++ b/support/shlatex/en/test/test.tex
@@ -0,0 +1,68 @@
+% Un petit test pour ShLaTeX
+\documentclass[a4paper,11pt]{article}
+
+\usepackage[frenchb]{babel}
+\usepackage{makeidx}
+\usepackage{graphicx}
+
+\newcommand{\shlatex}{\raisebox{0.05em}{\rotatebox{-6}{\scalebox{1.1}{S}}}\kern-0.2em\raisebox{-0.115em}{\rotatebox{14}{\scalebox{0.8}{$h$}}}\kern0.05em\LaTeX\xspace}
+
+\makeindex
+
+\title{\shlatex\footnote{A complete and up to date description is available in \cite{bib:manuel}.
+ }\ -- \LaTeX\ compilation script for Linux.}
+\author{Mael Hilléreau}
+\date{12$^{\textrm{\small th}}$ March, 2003}
+
+
+\begin{document}
+\maketitle
+\tableofcontents
+
+\section{Name}
+\par
+ \shlatex\index{S!\shlatex}\ -- \LaTeX\index{L!\LaTeX}\ compilation script for Linux.
+
+\section{Synopsis\index{S!Synopsis}}
+\par
+ \texttt{ShLaTeX [}\textit{options}\texttt{]} \texttt{sourceFile.tex}
+
+\section{Description}
+
+\subsection{A begining}
+
+\par This script allows to centralize the many program calls necessary to completely
+compile a \LaTeX\ document. In particular, the multiple calls to the \texttt{latex}
+command necessary in order to create a \index{T!table of contents}, a
+\textsc{Bib}\TeX\index{B!\textsc{Bib}\TeX} \index{B!bibliography} or an
+index\index{I!Index} are carried out automatically. Are also managed the calls to
+the programs \texttt{bibtex\index{B!bibtex}} and \texttt{makeindex\index{M!makeindex}}
+as well as the vizualisation of the resulting file (in DVI, PostScript or PDF format)
+by calling an external program.
+
+\input{externe.tex}
+
+\subsection{A continuation} \par Once compilation done, the temporary files are
+erased (option \textbf{-no-tmp}) or preserved (option \texttt{-tmp}). The DVI file
+generated by \LaTeX\ can then directly be converted\index{C!Conversion} to the
+PostScript or PDF formats. [\dots]
+
+\subsection{The continuation of a continuation}
+
+\par This script also provides the stressing of the French characters by the
+intermediary of an external C program (named \texttt{tex8to7}) and provided with the
+script. It also manages the C cedilla as well as the replacement of the quotation marks
+by the \verb|\og| and \verb|\fg| commands (supposing that the quotation marks are
+coupled). The quotation marks can be imbricated by using accodances for distinguishing
+the different quotation mark couples.
+
+\subsection{The continuation of the continuation of a continuation}
+
+\par Well, now I don't want to say anymore\dots
+
+\newpage
+ \bibliographystyle{alpha}
+ \bibliography{biblio.bib}
+
+\printindex
+\end{document}