From 5273be039e7686d6ef0367d685412dd4e5cf0c92 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 10 Jan 2011 16:03:17 +0000 Subject: [PATCH] * ./stratus: - Bug: In doc/stratus, correct rendering of images under LaTeX & HTML. Latex2HTML requires the file extension (.png) to be present while latex don't want them. Build alternate sources with the \latexhtml macro so both are happy. --- stratus1/doc/stratus/man_example.tex | 18 ++++++++++++------ stratus1/doc/stratus/man_library.tex | 3 ++- stratus1/doc/stratus/man_resize_ab.tex | 3 ++- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/stratus1/doc/stratus/man_example.tex b/stratus1/doc/stratus/man_example.tex index ee4aa2d7..53505f06 100644 --- a/stratus1/doc/stratus/man_example.tex +++ b/stratus1/doc/stratus/man_example.tex @@ -2,7 +2,8 @@ \begin{figure}[h!] \centering -\includegraphics[width=.9\textwidth]{./images/add1} +\latexhtml{\includegraphics[width=.9\textwidth]{./images/add1}} + {\includegraphics[width=.9\textwidth]{./images/add1.png}} \end{figure} \newpage @@ -10,7 +11,8 @@ \begin{figure}[h!] \centering -\includegraphics[width=.9\textwidth]{./images/add2} +\latexhtml{\includegraphics[width=.9\textwidth]{./images/add2}} + {\includegraphics[width=.9\textwidth]{./images/add2.png}} \end{figure} \newpage @@ -18,12 +20,14 @@ \begin{figure}[h!] \centering -\includegraphics[width=1.4\textwidth]{./images/addaccu1} +\latexhtml{\includegraphics[width=1.4\textwidth]{./images/addaccu1}} + {\includegraphics[width=1.4\textwidth]{./images/addaccu1.png}} \end{figure} \begin{figure}[h!] \centering -\includegraphics[width=1.4\textwidth]{./images/addaccu2} +\latexhtml{\includegraphics[width=1.4\textwidth]{./images/addaccu2}} + {\includegraphics[width=1.4\textwidth]{./images/addaccu2.png}} \end{figure} \newpage @@ -31,7 +35,8 @@ \begin{figure}[h!] \centering -\includegraphics[width=1.4\textwidth]{./images/test} +\latexhtml{\includegraphics[width=1.4\textwidth]{./images/test}} + {\includegraphics[width=1.4\textwidth]{./images/test.png}} \end{figure} \subsubsection{How to execute the file} @@ -50,7 +55,8 @@ chmod u+x test.py The method \verb-View- permits to open an editor in which one can see the cell being created as shown in the picture below. \begin{figure}[h!] \centering -\includegraphics[width=.8\textwidth]{./images/editor} +\latexhtml{\includegraphics[width=.8\textwidth]{./images/editor}} + {\includegraphics[width=.8\textwidth]{./images/editor.png}} \end{figure} \newpage diff --git a/stratus1/doc/stratus/man_library.tex b/stratus1/doc/stratus/man_library.tex index 7ce9f864..7335f0fe 100644 --- a/stratus1/doc/stratus/man_library.tex +++ b/stratus1/doc/stratus/man_library.tex @@ -44,7 +44,8 @@ The virtual library is mapped to the sxlib library. A piece of the corresponding \begin{figure}[hbtp] \centering -\includegraphics[width=\textwidth]{images/xml} +\latexhtml{\includegraphics[width=\textwidth]{images/xml}} + {\includegraphics[width=\textwidth]{images/xml.png}} \end{figure} \subsubsection{Generators} diff --git a/stratus1/doc/stratus/man_resize_ab.tex b/stratus1/doc/stratus/man_resize_ab.tex index d0c39ed7..38242132 100644 --- a/stratus1/doc/stratus/man_resize_ab.tex +++ b/stratus1/doc/stratus/man_resize_ab.tex @@ -25,7 +25,8 @@ This function modifies the abutment box of the current cell.\\ \indent The Values are used as follow : \begin{figure}[h!] \centering -\includegraphics[width=.3\textwidth]{./images/resizeAb} +\latexhtml{\includegraphics[width=.3\textwidth]{./images/resizeAb}} + {\includegraphics[width=.3\textwidth]{./images/resizeAb.png}} \end{figure} \subsubsection{Example}