Changeset 2263 in Sophya for trunk/SophyaPI/PIext/piacmd.cc
- Timestamp:
- Nov 14, 2002, 8:12:02 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.cc
r2241 r2263 1712 1712 } 1713 1713 1714 /* --Methode-- */ 1715 void PIACmd::HelptoLaTex(string const & fname) 1714 /* Les definitions suivantes doivent se trouver ds l'en-tete du fichier LaTeX 1715 \newcommand{\piacommand}[1]{ 1716 \framebox{\bf \Large #1 } \index{#1} % (Command) 1717 } 1718 1719 \newcommand{\piahelpitem}[1]{ 1720 \framebox{\bf \Large #1 } \index{#1} (Help item) 1721 } 1722 1723 \newcommand{\myppageref}[1]{ (p. \pageref{#1} ) } 1724 */ 1725 1726 /* --Methode-- */ 1727 void PIACmd::HelptoLaTeX(string const & fname) 1716 1728 { 1717 1729 FILE *fip; … … 1725 1737 fputs("\\begin{itemize} \n",fip); 1726 1738 CmdHGroup::iterator it; 1727 for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++) 1739 for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++) { 1740 if ((*it).first == "All") continue; 1728 1741 fprintf(fip,"\\item {\\bf %s } (p. \\pageref{%s}) \n", 1729 1742 (*it).first.c_str(), (*it).first.c_str()); 1743 } 1730 1744 1731 1745 fputs("\\end{itemize} \n",fip); 1732 1746 1733 fputs("\\ newpage\n",fip);1747 fputs("\\vspace*{10mm} \n",fip); 1734 1748 1735 1749 CmdExmap::iterator ite; … … 1750 1764 fputs("\\end{tabular} \n", fip); 1751 1765 fputs("\\end{center} \n", fip); 1752 fputs("\n \n \\ vspace{1cm} \n",fip);1766 fputs("\n \n \\newpage \\vspace{1cm} \n",fip); 1753 1767 1754 1768 fputs("\\begin{center} \n ", fip); … … 1777 1791 fprintf(fip,"\\subsection{%s} \\label{%s} \n", 1778 1792 (*it).first.c_str(), (*it).first.c_str()); 1793 fprintf(fip,"\\noindent \n"); 1779 1794 for(ite = helpexmap.begin(); ite != helpexmap.end(); ite++) { 1780 1795 if ((*ite).second.group != gid) continue; 1781 fprintf(fip," { \\Large $ \\star \\star \\star $ } Help item {\\bf \\Large %s} \\label{%s} \n",1796 fprintf(fip,"\\piahelpitem{%s} \\label{%s} \n", 1782 1797 (*ite).first.c_str(), (*ite).first.c_str()); 1783 1798 fputs("\\begin{verbatim} \n",fip); … … 1787 1802 for(ite = cmdexmap.begin(); ite != cmdexmap.end(); ite++) { 1788 1803 if ((*ite).second.group != gid) continue; 1789 fprintf(fip," { \\Large $ \\star \\star \\star $ } Command {\\bf \\Large %s} \\label{%s} \n",1804 fprintf(fip,"\\piacommand{%s} \\label{%s} \n", 1790 1805 (*ite).first.c_str(), (*ite).first.c_str()); 1791 1806 fputs("\\begin{verbatim} \n",fip);
Note:
See TracChangeset
for help on using the changeset viewer.