parameters: (idict, standalone=True)
return_statement: return rstr
docstring: Function to generate a LaTeX formatted file.
  
     Args:
        idict: Either property_dict or traj_dict, to be used to
           generate the help file.
        standalone: A boolean giving whether the latex file produced will be a
           stand-alone document, or will be intended as a section of a larger
           document with cross-references between the different sections.
  
     Returns:
        A LaTeX formatted string.
docstring_summary: Function to generate a LaTeX formatted file.
docstring_tokens: Function to generate a LaTeX formatted file .
function: def help_latex(idict, standalone=True):
     """Function to generate a LaTeX formatted file.
  
     Args:
        idict: Either property_dict or traj_dict, to be used to
           generate the help file.
        standalone: A boolean giving whether the latex file produced will be a
           stand-alone document, or will be intended as a section of a larger
           document with cross-references between the different sections.
  
     Returns:
        A LaTeX formatted string.
     """
  
     rstr = ""
     if standalone:
        #assumes that it is a stand-alone document, so must have document
        #options.
        rstr += r"\documentclass[12pt,fleqn]{report}"
        rstr += r"""
  \usepackage{etoolbox}
  \usepackage{suffix}
  
  \newcommand{\ipiitem}[3]{%
  \ifblank{#1}{}{\ifstrequal{#1}{\underline{}}{}{
  {\noindent\textbf{#1}:\rule{0.0pt}{1.05\baselineskip}\quad}}}% uses a strut to add a bit of vertical space
  {#2}\parskip=0pt\par
  \ifblank{#3}{}%
  { {\hfill\raggedleft\textit{\small #3}\par} }
  }
  """
        rstr += "\n\\begin{document}\n"
        rstr += "The following are the different allowable outputs:\n\\par"
  
     for out in sorted(idict):
        rstr += "\\ipiitem{" + out + "}"
        if "longhelp" in idict[out]:
           rstr += "{" + idict[out]['longhelp'] +"}"
        else:
           rstr += "{" + idict[out]['help'] +"}"
  
        #see if there are additional attributes to print out
        xstr = ""
        if "dimension" in idict[out] and  idict[out]['dimension'] != "undefined": #doesn't print out dimension if not necessary.
           xstr += "dimension: " + idict[out]['dimension'] + '; '
        if "size" in idict[out]:
           xstr += "size: " + str(idict[out]['size']) +"; "
        rstr += "{" + xstr + "}"
  
     if standalone:
        #ends the created document if it is not part of a larger document
        rstr += "\\end{document}"
  
     # Some escape characters are necessary for the proper latex formatting
     rstr = rstr.replace('_', '\\_')
     rstr = rstr.replace('\\\\_', '\\_')
     rstr = rstr.replace('...', '\\ldots ')
     rstr = rstr.replace('<', '$<$')
     rstr = rstr.replace('>', '$>$')
     rstr = rstr.replace('[', '$[$')
     rstr = rstr.replace(']', '$]$')
  
     return rstr
function_tokens: def help_latex ( idict , standalone = True ) : rstr = "" if standalone : #assumes that it is a stand-alone document, so must have document #options. rstr += r"\documentclass[12pt,fleqn]{report}" rstr += r"""
  \usepackage{etoolbox}
  \usepackage{suffix}
  
  \newcommand{\ipiitem}[3]{%
  \ifblank{#1}{}{\ifstrequal{#1}{\underline{}}{}{
  {\noindent\textbf{#1}:\rule{0.0pt}{1.05\baselineskip}\quad}}}% uses a strut to add a bit of vertical space
  {#2}\parskip=0pt\par
  \ifblank{#3}{}%
  { {\hfill\raggedleft\textit{\small #3}\par} }
  }
  """ rstr += "\n\\begin{document}\n" rstr += "The following are the different allowable outputs:\n\\par" for out in sorted ( idict ) : rstr += "\\ipiitem{" + out + "}" if "longhelp" in idict [ out ] : rstr += "{" + idict [ out ] [ 'longhelp' ] + "}" else : rstr += "{" + idict [ out ] [ 'help' ] + "}" #see if there are additional attributes to print out xstr = "" if "dimension" in idict [ out ] and idict [ out ] [ 'dimension' ] != "undefined" : #doesn't print out dimension if not necessary. xstr += "dimension: " + idict [ out ] [ 'dimension' ] + '; ' if "size" in idict [ out ] : xstr += "size: " + str ( idict [ out ] [ 'size' ] ) + "; " rstr += "{" + xstr + "}" if standalone : #ends the created document if it is not part of a larger document rstr += "\\end{document}" # Some escape characters are necessary for the proper latex formatting rstr = rstr . replace ( '_' , '\\_' ) rstr = rstr . replace ( '\\\\_' , '\\_' ) rstr = rstr . replace ( '...' , '\\ldots ' ) rstr = rstr . replace ( '<' , '$<$' ) rstr = rstr . replace ( '>' , '$>$' ) rstr = rstr . replace ( '[' , '$[$' ) rstr = rstr . replace ( ']' , '$]$' ) return rstr