mailr17520 - /trunk/docs/latex/fetch_docstrings.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 19, 2012 - 22:29:
Author: bugman
Date: Wed Sep 19 22:29:43 2012
New Revision: 17520

URL: http://svn.gna.org/viewcvs/relax?rev=17520&view=rev
Log:
Fixes for the user function icons in the HTML version of the user manual.

These icons are now placed on the correct HTML page.


Modified:
    trunk/docs/latex/fetch_docstrings.py

Modified: trunk/docs/latex/fetch_docstrings.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/docs/latex/fetch_docstrings.py?rev=17520&r1=17519&r2=17520&view=diff
==============================================================================
--- trunk/docs/latex/fetch_docstrings.py (original)
+++ trunk/docs/latex/fetch_docstrings.py Wed Sep 19 22:29:43 2012
@@ -220,13 +220,24 @@
         # Some whitespace.
         self.file.write("\n\n")
 
-        # Add a spaced out rule.
+        # Start a new column for each user function and add a rule to the 
top.
         self.file.write("\\pagebreak[4]\n")
-        self.file.write("\\rule{\columnwidth}{2pt}\n")
-        self.file.write("\\vspace{10pt}\n")
-
-        # Minipage start.
-        self.file.write("\\begin{minipage}[h]{\\linewidth}\n")
+        self.file.write("\\rule{\columnwidth}{1pt}\n")
+
+        # The title (with less spacing).
+        self.file.write("\\vspace{-20pt}\n")
+        self.uf_name_latex = self.uf_name
+
+        # LaTeX formatting.
+        self.uf_name_latex = self.latex_special_chars(self.uf_name_latex)
+        self.uf_name_latex = self.word_formatting(self.uf_name_latex, 
bold=True)
+
+        # Allow for hyphenation.
+        self.uf_name_latex = replace(self.uf_name_latex, '.', '\-.')
+        self.uf_name_latex = replace(self.uf_name_latex, '\_', '\-\_')
+
+        # Write out the title (with label).
+        self.file.write("\subsection{%s} \label{uf: %s}\n" % 
(self.uf_name_latex, self.uf_name))
 
         # Add the user function class icon.
         if self.uf_class:
@@ -243,23 +254,8 @@
         else:
             self.file.write("\n")
 
-        # Minipage end.
-        self.file.write("\\end{minipage}\n\n")
-
-        # The title.
-        self.file.write("\\vspace{-20pt}\n")
-        self.uf_name_latex = self.uf_name
-
-        # LaTeX formatting.
-        self.uf_name_latex = self.latex_special_chars(self.uf_name_latex)
-        self.uf_name_latex = self.word_formatting(self.uf_name_latex, 
bold=True)
-
-        # Allow for hyphenation.
-        self.uf_name_latex = replace(self.uf_name_latex, '.', '\-.')
-        self.uf_name_latex = replace(self.uf_name_latex, '\_', '\-\_')
-
-        # Write out the title (with label).
-        self.file.write("\subsection{%s} \label{uf: %s}\n" % 
(self.uf_name_latex, self.uf_name))
+        # End.
+        self.file.write("\n")
 
 
     def indexing(self, index, bold=False):




Related Messages


Powered by MHonArc, Updated Wed Sep 19 22:40:01 2012