Changeset 2263 in Sophya for trunk/SophyaPI/PIext/piacmd.cc


Ignore:
Timestamp:
Nov 14, 2002, 8:12:02 PM (23 years ago)
Author:
ansari
Message:
  • Ajout commande de trace d'elements graphiques (addpoly addctext ...)
  • Ajout de commandes de lecture ascii matrices/vecteurs
  • Trace de vecteur vx vs vy pour tout type de vecteurs

Reza 14/11/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.cc

    r2241 r2263  
    17121712}
    17131713
    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-- */
     1727void PIACmd::HelptoLaTeX(string const & fname)
    17161728{
    17171729FILE *fip;
     
    17251737fputs("\\begin{itemize} \n",fip);
    17261738CmdHGroup::iterator it;
    1727 for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++)
     1739for(it = cmdhgrp.begin(); it != cmdhgrp.end(); it++) {
     1740  if ((*it).first == "All") continue;
    17281741  fprintf(fip,"\\item {\\bf %s }  (p. \\pageref{%s}) \n",
    17291742         (*it).first.c_str(), (*it).first.c_str());
     1743}
    17301744
    17311745fputs("\\end{itemize} \n",fip);
    17321746
    1733 fputs("\\newpage \n",fip);
     1747fputs("\\vspace*{10mm} \n",fip);
    17341748
    17351749CmdExmap::iterator ite;
     
    17501764fputs("\\end{tabular} \n", fip);
    17511765fputs("\\end{center} \n", fip);
    1752 fputs("\n \n \\vspace{1cm} \n",fip);
     1766fputs("\n \n \\newpage  \\vspace{1cm} \n",fip);
    17531767
    17541768fputs("\\begin{center} \n ", fip);
     
    17771791  fprintf(fip,"\\subsection{%s} \\label{%s} \n",
    17781792          (*it).first.c_str(), (*it).first.c_str());
     1793  fprintf(fip,"\\noindent \n");
    17791794  for(ite = helpexmap.begin(); ite != helpexmap.end(); ite++) {
    17801795    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",
    17821797            (*ite).first.c_str(), (*ite).first.c_str());
    17831798    fputs("\\begin{verbatim} \n",fip);
     
    17871802  for(ite = cmdexmap.begin(); ite != cmdexmap.end(); ite++) {
    17881803    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",
    17901805            (*ite).first.c_str(), (*ite).first.c_str());
    17911806    fputs("\\begin{verbatim} \n",fip);
Note: See TracChangeset for help on using the changeset viewer.