Changeset 1231


Ignore:
Timestamp:
Jul 20, 2011, 10:04:26 PM (6 years ago)
Author:
stefan
Message:

complete all commands

Location:
trunk
Files:
4 added
1 deleted
19 edited
9 moved

Legend:

Unmodified
Added
Removed
  • trunk/data/codehelper/commands.xml

    r1160 r1231  
    2626]>
    2727<commandList>
    28   <command name="\ " hint="force ordinary space"/>
    29   <command name="\@" hint="following period ends sentence"/>
    30   <command name="\\" hint="new line"/>
    31   <command name="\," hint="thin space"/>
    32   <command name="\;" hint="thick space, math mode"/>
    33   <command name="\:" hint="medium space, math mode"/>
    34   <command name="\!" hint="negative thin space, math mode"/>
    35   <command name="\-" hint="hyphenation, see tabbing"/>
    36   <command name="\=" hint="set tab, see tabbing"/>
    37   <command name="\&gt;" hint="tab, see tabbing"/>
    38   <command name="\&lt;" hint="back tab, see tabbing"/>
    39   <command name="\+" hint="see tabbing"/>
    40   <command name="\'" hint="accent or tabbing"/>
    41   <command name="\`" hint="accent or tabbing"/>
    42   <command name="\|" hint="double vertical lines, math mode"/>
    43   <command name="\(" hint="define math environment"/>
    44   <command name="\)" hint="define math environment"/>
    45   <command name="\[" hint="define displaymath environment"/>
    46   <command name="\]" hint="define displaymath environment"/>
    47 
    48   <command name="\documentclass" usage="\documentclass[@opt@]{@style@}"
     28  <command name=" " hint="force ordinary space"/>
     29  <command name="@" hint="following period ends sentence"/>
     30  <command name="\" hint="new line"/>
     31  <command name="," hint="thin space"/>
     32  <command name=";" hint="thick space, math mode"/>
     33  <command name=":" hint="medium space, math mode"/>
     34  <command name="!" hint="negative thin space, math mode"/>
     35  <command name="-" hint="hyphenation, see tabbing"/>
     36  <command name="=" hint="set tab, see tabbing"/>
     37  <command name="&gt;" hint="tab, see tabbing"/>
     38  <command name="&lt;" hint="back tab, see tabbing"/>
     39  <command name="+" hint="see tabbing"/>
     40  <command name="'" hint="accent or tabbing"/>
     41  <command name="`" hint="accent or tabbing"/>
     42  <command name="|" hint="double vertical lines, math mode"/>
     43  <command name="(" hint="define math environment"/>
     44  <command name=")" hint="define math environment"/>
     45  <command name="[" hint="define displaymath environment"/>
     46  <command name="]" hint="define displaymath environment"/>
     47
     48  <command name="documentclass" usage="documentclass[@opt@]{@style@}"
    4949           hint="declares a document to be of the specified style">
    5050    <argument name="opt"/>
     
    5252  </command>
    5353
    54   <command name="\DeclareRobustCommand" usage="\DeclareRobustCommand{@cmd@}[@args@]{@def@}" hint="used to define a robust command">
     54  <command name="DeclareRobustCommand" usage="DeclareRobustCommand{@cmd@}[@args@]{@def@}" hint="used to define a robust command">
    5555    <argument name="cmd" hint="the name of the new command"/>
    5656    <argument name="args" hint="1 to 9 denoting the number of arguments"/>
     
    5959 
    6060
    61   <command name="\addcontentsline" usage="\addcontentsline{@file@}{@sec_unit@}{@entry@}"
     61  <command name="addcontentsline" usage="addcontentsline{@file@}{@sec_unit@}{@entry@}"
    6262           hint="adds an entry to the specified list or table">
    6363    <argument name="file" hint="extension of the file on which information is to be written">
     
    7070  </command>
    7171
    72   <command name="\addtocontents" usage="\addtocontents{@file@}{@text@}">
     72  <command name="addtocontents" usage="addtocontents{@file@}{@text@}">
    7373    <argument name="file" hint="adds text directly to the file that generates the table of contents or list of figures">
    7474      <argumentValue value="toc" hint="table of contents"/>
     
    7979  </command>
    8080
    81   <command name="\addtocounter" usage="\addtocounter{@counter@}{@value@}"
     81  <command name="addtocounter" usage="addtocounter{@counter@}{@value@}"
    8282           hint="increments the counter by the amount specified by the value argument">
    8383    <argument name="counter"/>
     
    8585  </command>
    8686
    87   <command name="\address" usage="\address{@return address@}"
     87  <command name="address" usage="address{@return address@}"
    8888           hint="return address, as it should appear on the letter and the envelope">
    8989    <argument name="return address"/>
    9090  </command>
    9191
    92   <command name="\addtolength" usage="\addtolength{@len-cmd@}{@len@}" hint="increments a length command (len-cmd)">
     92  <command name="addtolength" usage="addtolength{@len-cmd@}{@len@}" hint="increments a length command (len-cmd)">
    9393    <argument name="len-cmd" hint="length command"/>
    9494    <argument name="len" hint="amount"/>
    9595  </command>
    9696
    97   <command name="\addvspace" usage="\addvspace{@length@}" hint="adds a vertical space of height length">
     97  <command name="addvspace" usage="addvspace{@length@}" hint="adds a vertical space of height length">
    9898    <argument name="length"/>
    9999  </command>
    100100
    101   <command name="\alph" usage="\alph{@counter@}"
     101  <command name="alph" usage="alph{@counter@}"
    102102           hint="causes the current value of counter to be printed in alphabetic characters">
    103103    <argument name="counter"/>
    104104  </command>
    105105
    106   <command name="\appendix" hint="changes the way sectional units are numbered">
    107   </command>
    108 
    109   <command name="\arabic" usage="\arabic{@counter@}"
     106  <command name="appendix" hint="changes the way sectional units are numbered">
     107  </command>
     108
     109  <command name="arabic" usage="arabic{@counter@}"
    110110           hint="causes the current value of counter to be printed in Arabic numbers">
    111111    <argument name="counter"/>
    112112  </command>
    113113
    114   <command name="\author" usage="\author{@names@}" hint="declares the author(s)">
     114  <command name="author" usage="author{@names@}" hint="declares the author(s)">
    115115    <argument name="names" hint="list of authors separated by \and commands"/>
    116116  </command>
    117117
    118   <command name="\baselineskip"
     118  <command name="baselineskip"
    119119           hint="a length command which specifies the minimum space between the botton of two successive lines in a paragraph">
    120120  </command>
    121121
    122   <command name="\baselinestretch" hint="scales the value of \baselineskip">
    123   </command>
    124 
    125   <command name="\bf" usage="{\bf @|@}" hint="boldface typeface">
    126   </command>
    127 
    128   <command name="\bibitem" usage="\bibitem[@label@]{@cite_key@}" hint="generates an entry labeled by label">
     122  <command name="baselinestretch" hint="scales the value of \baselineskip">
     123  </command>
     124
     125  <command name="bf" usage="{\bf @|@}" hint="boldface typeface">
     126  </command>
     127
     128  <command name="bibitem" usage="bibitem[@label@]{@cite_key@}" hint="generates an entry labeled by label">
    129129    <argument name="label"/>
    130130    <argument name="cite_key"
     
    132132  </command>
    133133
    134   <command name="\bibliography" usage="\bibliography{@file@}" hint="set bibliography file">
     134  <command name="bibliography" usage="bibliography{@file@}" hint="set bibliography file">
    135135    <argument name="file" type="file|defaultExtension=bib" value="" completion="true" hint="filename of the bibliography file"/>
    136136  </command>
    137137
    138   <command name="\bibliographystyle" usage="\bibliographystyle{@style@}" hint="sets the bibliography style">
     138  <command name="bibliographystyle" usage="bibliographystyle{@style@}" hint="sets the bibliography style">
    139139    <argument name="style" value="" values="alpha|abbrv|plain|unsrt" hint="bibliography style"/>
    140140  </command>
    141141
    142   <command name="\bigskip" hint="equivalent to \vspace{\bigskipamount}">
    143   </command>
    144 
    145   <command name="\boldmath" hint="switches to a bold math italic font">
    146   </command>
    147 
    148   <command name="\cal" usage="{\cal @|@}"
     142  <command name="bigskip" hint="equivalent to \vspace{\bigskipamount}">
     143  </command>
     144
     145  <command name="boldmath" hint="switches to a bold math italic font">
     146  </command>
     147
     148  <command name="cal" usage="{\cal @|@}"
    149149           hint="twenty-six calligraphic letters are provided, these can only be used in math mode">
    150150  </command>
    151151
    152   <command name="\caption" usage="\caption[@lst-entry@]{@text of table caption@}"
     152  <command name="caption" usage="caption[@lst-entry@]{@text of table caption@}"
    153153           hint="used to generate a caption for a figure or a table">
    154154    <argument name="lst-entry" hint="may be used to generate an entry for a list of figures or tables"/>
     
    156156  </command>
    157157
    158   <command name="\cdots"
     158  <command name="cdots"
    159159           hint="produces a horizontal ellipsis where the dots are raised to the center of the line (math mode)">
    160160  </command>
    161161
    162   <command name="\centering" hint="corresponds to the center environment">
    163   </command>
    164 
    165   <command name="\chapter" usage="\chapter{@title@}" hint="starts a new chapter in the document structure">
     162  <command name="centering" hint="corresponds to the center environment">
     163  </command>
     164
     165  <command name="chapter" usage="chapter{@title@}" hint="starts a new chapter in the document structure">
    166166    <argument name="title" type="title"/>
    167167  </command>
    168168
    169   <command name="\circle" usage="\circle[@*@]{@diameter@}" hint="produces a circle of the specified diameter">
     169  <command name="circle" usage="circle[@*@]{@diameter@}" hint="produces a circle of the specified diameter">
    170170    <argument name="*" hint="solid circle"/>
    171171    <argument name="diameter"/>
    172172  </command>
    173173
    174   <command name="\cite" usage="\cite[@text@]{@key_list@}" style="important_command"
     174  <command name="cite" usage="cite[@text@]{@key_list@}" style="important_command"
    175175           hint="in-text citation to the references associated with the keys in key_list">
    176176    <argument name="text"/>
     
    178178  </command>
    179179
    180   <command name="\cleardoublepage" hint="ends the current page and causes all figures and tables to be printed">
    181   </command>
    182 
    183   <command name="\clearpage" hint="ends the current page and causes all figures and tables to be printed">
    184   </command>
    185 
    186   <command name="\cline" usage="\cline{@i@-@j@}" hint="draws horizontal lines across the columns specified">
     180  <command name="cleardoublepage" hint="ends the current page and causes all figures and tables to be printed">
     181  </command>
     182
     183  <command name="clearpage" hint="ends the current page and causes all figures and tables to be printed">
     184  </command>
     185
     186  <command name="cline" usage="cline{@i@-@j@}" hint="draws horizontal lines across the columns specified">
    187187    <argument name="i" hint="beginning column"/>
    188188    <argument name="j" hint="ending column"/>
    189189  </command>
    190190
    191   <command name="\closing" usage="\closing{@text@}" hint="letter closes with a \closing command">
     191  <command name="closing" usage="closing{@text@}" hint="letter closes with a \closing command">
    192192    <argument name="text" hint="mandatory argument, text is the desired text"/>
    193193  </command>
    194194
    195   <command name="\dashbox" usage="\dashbox{@dash length@}(@width@,@height@)[@pos@]{ @|@ }"
     195  <command name="dashbox" usage="dashbox{@dash length@}(@width@,@height@)[@pos@]{ @|@ }"
    196196           hint="like \framebox but has an extra argument which specifies the width of each dash">
    197197    <argument name="dash length"/>
     
    201201  </command>
    202202
    203   <command name="\date" usage="\date{@text@}" hint="declares text to be the document's date">
     203  <command name="date" usage="date{@text@}" hint="declares text to be the document's date">
    204204    <argument name="text"/>
    205205  </command>
    206206
    207   <command name="\ddots" hint="produces a diagonal ellipsis (math mode)">
    208   </command>
    209 
    210   <command name="\dotfill" hint="produces a rubber length that produces dots instead of just spaces">
    211   </command>
    212 
    213   <command name="\em" hint="emphasis (toggles between \it and \rm)">
    214   </command>
    215 
    216   <command name="\emph" usage="\emph{@text@}" hint="emphasis the given text">
     207  <command name="ddots" hint="produces a diagonal ellipsis (math mode)">
     208  </command>
     209
     210  <command name="dotfill" hint="produces a rubber length that produces dots instead of just spaces">
     211  </command>
     212
     213  <command name="em" hint="emphasis (toggles between \it and \rm)">
     214  </command>
     215
     216  <command name="emph" usage="emph{@text@}" hint="emphasis the given text">
    217217    <argument name="text" type="italic"/>
    218218  </command>
    219219
    220   <command name="\ensuremath" usage="\ensuremath{@text set in math mode@}"
     220  <command name="ensuremath" usage="ensuremath{@text set in math mode@}"
    221221           hint="the argument is always set in math mode, regardless of the current mode (LaTeX2e)">
    222222    <argument name="text set in math mode"/>
    223223  </command>
    224224
    225   <command name="\fbox" usage="\fbox{@text@}"
     225  <command name="fbox" usage="fbox{@text@}"
    226226           hint="same as the \mbox command, except that it puts a rectangular frame around the box ">
    227227    <argument name="text"/>
    228228  </command>
    229229
    230   <command name="\flushbottom" hint="makes all text pages the same height">
    231   </command>
    232 
    233   <command name="\fnsymbol" usage="\fnsymbol{@counter@}"
     230  <command name="flushbottom" hint="makes all text pages the same height">
     231  </command>
     232
     233  <command name="fnsymbol" usage="fnsymbol{@counter@}"
    234234           hint="causes the current value of counter to be printed for numbering footnotes (math mode)">
    235235    <argument name="counter"/>
    236236  </command>
    237237
    238   <command name="\footnote" usage="\footnote[@num@]{@text@}"
     238  <command name="footnote" usage="footnote[@num@]{@text@}"
    239239           hint="places a numbered footnote at the bottom of the current page">
    240240    <argument name="num"/>
     
    242242  </command>
    243243
    244   <command name="\footnotemark" usage="\footnotemark[@num@]" hint="puts the footnote number in the text">
     244  <command name="footnotemark" usage="footnotemark[@num@]" hint="puts the footnote number in the text">
    245245    <argument name="num"/>
    246246  </command>
    247247
    248   <command name="\footnotesize" hint="third smallest of 10 typefaces available">
    249   </command>
    250 
    251   <command name="\footnotetext" usage="\footnotetext[@num@]{@text@}"
     248  <command name="footnotesize" hint="third smallest of 10 typefaces available">
     249  </command>
     250
     251  <command name="footnotetext" usage="footnotetext[@num@]{@text@}"
    252252           hint="places the text in the argument at the bottom of the page">
    253253    <argument name="num"/>
     
    255255  </command>
    256256
    257   <command name="\frac" usage="\frac{@num@}{@den@}" hint="produces the fraction num divided by den">
     257  <command name="frac" usage="frac{@num@}{@den@}" hint="produces the fraction num divided by den">
    258258    <argument name="num"/>
    259259    <argument name="den"/>
    260260  </command>
    261261
    262   <command name="\frame" usage="\frame{ @|@ }"
     262  <command name="frame" usage="frame{ @|@ }"
    263263           hint="puts a rectangular frame around the object specified in the argument">
    264264  </command>
    265265
    266   <command name="\framebox" usage="\framebox[@width@][@position@]{@text@}"
     266  <command name="framebox" usage="framebox[@width@][@position@]{@text@}"
    267267           hint="same as the \makebox command, except that it puts a frame around the box">
    268268    <argument name="width"/>
     
    272272  </command>
    273273
    274   <command name="\frenchspacing" hint="tells LaTeX not to insert extra space at the end of sentences">
    275   </command>
    276 
    277   <command name="\hfill" hint="produces a rubber length which will be filled with spaces">
    278   </command>
    279 
    280   <command name="\hline" hint="draw a horizontal line">
    281   </command>
    282 
    283   <command name="\hrulefill" usage="" hint="produces a rubber length which will be filled with a horizontal rule">
    284   </command>
    285 
    286   <command name="\hspace" usage="\hspace[@*@]{@len@}" hint="adds horizontal space">
     274  <command name="frenchspacing" hint="tells LaTeX not to insert extra space at the end of sentences">
     275  </command>
     276
     277  <command name="hfill" hint="produces a rubber length which will be filled with spaces">
     278  </command>
     279
     280  <command name="hline" hint="draw a horizontal line">
     281  </command>
     282
     283  <command name="hrulefill" usage="" hint="produces a rubber length which will be filled with a horizontal rule">
     284  </command>
     285
     286  <command name="hspace" usage="hspace[@*@]{@len@}" hint="adds horizontal space">
    287287    <argument name="*"/>
    288288    <argument name="len"/>
    289289  </command>
    290290
    291   <command name="\huge" usage="{\huge @|@}" hint="aecond largest of 10 typefaces available">
    292   </command>
    293 
    294   <command name="\Huge" usage="{\Huge @|@}" hint="largest of 10 typefaces available">
    295   </command>
    296 
    297   <command name="\hyphenation" usage="\hyphenation{@words@}" hint="declares allowed hyphenation points">
     291  <command name="huge" usage="{\huge @|@}" hint="aecond largest of 10 typefaces available">
     292  </command>
     293
     294  <command name="Huge" usage="{\Huge @|@}" hint="largest of 10 typefaces available">
     295  </command>
     296
     297  <command name="hyphenation" usage="hyphenation{@words@}" hint="declares allowed hyphenation points">
    298298    <argument name="words"
    299299              hint="list of words, separated by spaces, in which each hyphenation point is indicated by a - character"/>
    300300  </command>
    301301
    302   <command name="\include" usage="\include{@file@}" hint="selective inclusion of files">
     302  <command name="include" usage="include{@file@}" hint="selective inclusion of files">
    303303    <argument name="file" type="file|defaultExtension=tex" value="" completion="true"/>
    304304  </command>
    305305
    306   <command name="\includeonly" usage="\includeonly{@file_list@}"
     306  <command name="includeonly" usage="includeonly{@file_list@}"
    307307           hint="controls which files will be read in by an \include command">
    308308    <argument name="file_list"/>
    309309  </command>
    310310
    311   <command name="\includegraphics" usage="\includegraphics[@opt@]{@file@}" hint="includes a graphic; requires package 'graphicx'">
     311  <command name="includegraphics" usage="includegraphics[@opt@]{@file@}" hint="includes a graphic; requires package 'graphicx'">
    312312    <argument name="opt"/>
    313313    <argument name="file" type="file|defaultExtension=png" value="" completion="true"/>
    314314  </command>
    315315
    316   <command name="\indent" hint="produces a horizontal space whose width equals the width of the paragraph indentation">
    317   </command>
    318 
    319   <command name="\input" usage="\input{@file@}" hint="causes the indicated file to be read and processed">
     316  <command name="indent" hint="produces a horizontal space whose width equals the width of the paragraph indentation">
     317  </command>
     318
     319  <command name="input" usage="input{@file@}" hint="causes the indicated file to be read and processed">
    320320    <argument name="file" type="file|defaultExtension=tex" value="" completion="true"/>
    321321  </command>
    322322
    323   <command name="\it" usage="{\it @|@}" hint="italics typeface">
    324   </command>
    325 
    326   <command name="\item" usage="\item[@label@] @|@" hint="starts a new item in a List Environment">
     323  <command name="it" usage="{\it @|@}" hint="italics typeface">
     324  </command>
     325
     326  <command name="item" usage="item[@label@] @|@" hint="starts a new item in a List Environment">
    327327    <argument name="label"/>
    328328  </command>
    329329
    330   <command name="\kill" hint="set tab stops without producing text">
    331   </command>
    332 
    333   <command name="\label" usage="\label{@key@}" hint="assigns to the key the number of the current sectional unit" style="important_command">
     330  <command name="kill" hint="set tab stops without producing text">
     331  </command>
     332
     333  <command name="label" usage="label{@key@}" hint="assigns to the key the number of the current sectional unit" style="important_command">
    334334    <argument name="key" type="label_def"/>
    335335  </command>
    336336
    337   <command name="\large" usage="{\large @|@}" hint="slightly larger than default typeface size">
    338   </command>
    339 
    340   <command name="\LARGE" usage="{\LARGE @|@}" hint="third largest of typefaces available">
    341   </command>
    342 
    343   <command name="\Large" usage="{\Large @|@}" hint="fourth largest of typefaces available">
    344   </command>
    345 
    346   <command name="\ldots" hint="produces an ellipsis">
    347   </command>
    348 
    349   <command name="\left" hint="'(' (math mode)">
    350   </command>
    351 
    352   <command name="\lefteqn" usage="\lefteqn{@eqn@}" hint="prints eqn in display math style">
     337  <command name="large" usage="{\large @|@}" hint="slightly larger than default typeface size">
     338  </command>
     339
     340  <command name="LARGE" usage="{\LARGE @|@}" hint="third largest of typefaces available">
     341  </command>
     342
     343  <command name="Large" usage="{\Large @|@}" hint="fourth largest of typefaces available">
     344  </command>
     345
     346  <command name="ldots" hint="produces an ellipsis">
     347  </command>
     348
     349  <command name="left" hint="'(' (math mode)">
     350  </command>
     351
     352  <command name="lefteqn" usage="lefteqn{@eqn@}" hint="prints eqn in display math style">
    353353    <argument name="eqn">
    354354    </argument>
    355355  </command>
    356356
    357   <command name="\linebreak" usage="\linebreak[@number@]" hint="break the current line">
     357  <command name="linebreak" usage="linebreak[@number@]" hint="break the current line">
    358358    <argument name="number" hint="0 to 4, the higher the number, the more insistent the request is">
    359359    </argument>
    360360  </command>
    361361
    362   <command name="\linewidth" hint="the width of lines in the current environment">
    363   </command>
    364 
    365   <command name="\location" usage="\location{@address@}" hint="modifies your organization's standard address">
     362  <command name="linewidth" hint="the width of lines in the current environment">
     363  </command>
     364
     365  <command name="location" usage="location{@address@}" hint="modifies your organization's standard address">
    366366    <argument name="address">
    367367    </argument>
    368368  </command>
    369369
    370   <command name="\makebox" usage="\makebox[@width@][@position@]{@text@}"
     370  <command name="makebox" usage="makebox[@width@][@position@]{@text@}"
    371371           hint="creates a box to contain the specified text">
    372372    <argument name="width" hint="the width of the box">
     
    381381  </command>
    382382
    383   <command name="\maketitle" hint="generates a title on a separate title page">
    384   </command>
    385 
    386   <command name="\markboth" usage="\markboth{@left head@}{@right head@}"
     383  <command name="maketitle" hint="generates a title on a separate title page">
     384  </command>
     385
     386  <command name="markboth" usage="markboth{@left head@}{@right head@}"
    387387           hint="conjunction with the page style myheadings">
    388388    <argument name="left head">
     
    392392  </command>
    393393
    394   <command name="\markright" usage="\markright{@right head@}" hint="conjunction with the page style myheadings">
     394  <command name="markright" usage="markright{@right head@}" hint="conjunction with the page style myheadings">
    395395    <argument name="right head">
    396396    </argument>
    397397  </command>
    398398
    399   <command name="\mbox" usage="\mbox{@text@}" hint="creates a box just wide enough to hold the text in its argument">
     399  <command name="mbox" usage="mbox{@text@}" hint="creates a box just wide enough to hold the text in its argument">
    400400    <argument name="text" hint="the text in the box">
    401401    </argument>
    402402  </command>
    403403
    404   <command name="\medskip" hint="adds vertical space specified by \medskipamount">
    405   </command>
    406 
    407   <command name="\newcommand" usage="\newcommand{@cmd@}[@args@][@opt@]{@def@}" hint="used to define a command">
     404  <command name="medskip" hint="adds vertical space specified by \medskipamount">
     405  </command>
     406
     407  <command name="newcommand" usage="newcommand{@cmd@}[@args@][@opt@]{@def@}" hint="used to define a command">
    408408    <argument name="cmd" hint="the name of the new command">
    409409    </argument>
     
    416416  </command>
    417417
    418   <command name="\newcounter" usage="\newcounter{@newname@}[@oldcounter@]" hint="defines a new counter">
     418  <command name="newcounter" usage="newcounter{@newname@}[@oldcounter@]" hint="defines a new counter">
    419419    <argument name="newname" hint="the name of the new counter">
    420420    </argument>
     
    423423  </command>
    424424
    425   <command name="\newenvironment" usage="\newenvironment{@name@}[@args@][@opt@]{@begdef@}{@enddef@}"
     425  <command name="newenvironment" usage="newenvironment{@name@}[@args@][@opt@]{@begdef@}{@enddef@}"
    426426           hint="define an environment">
    427427    <argument name="name" hint="the name of the environment">
     
    437437  </command>
    438438
    439   <command name="\newfont" usage="\newfont{@cmd@}{@font_name@}"
     439  <command name="newfont" usage="newfont{@cmd@}{@font_name@}"
    440440           hint="defines a command, which must not be currently defined, to be a declaration that selects the font named font_name to be the current font">
    441441    <argument name="cmd" hint="the command name">
     
    445445  </command>
    446446
    447   <command name="\newlength" usage="\newlength{\@gnat@}"
     447  <command name="newlength" usage="newlength{\@gnat@}"
    448448           hint="defines the mandatory argument as a length command with a value of 0in">
    449449    <argument name="gnat" hint="the name of the length command">
     
    451451  </command>
    452452
    453   <command name="\newpage" hint="ends the current page">
    454   </command>
    455 
    456   <command name="\newsavebox" usage="\newsavebox{@cmd@}" hint="declares cmd to be a bin for saving boxes">
     453  <command name="newpage" hint="ends the current page">
     454  </command>
     455
     456  <command name="newsavebox" usage="newsavebox{@cmd@}" hint="declares cmd to be a bin for saving boxes">
    457457    <argument name="cmd" hint="the command name">
    458458    </argument>
    459459  </command>
    460460
    461   <command name="\newtheorem" usage="\newtheorem{@env_name@}{@caption@}[@within@]"
     461  <command name="newtheorem" usage="newtheorem{@env_name@}{@caption@}[@within@]"
    462462           hint="defines a theorem-like environment">
    463463    <argument name="env_name" hint="the name of the environment ">
     
    469469  </command>
    470470
    471   <command name="\nocite" usage="\nocite{@key_list@}" hint="produces no text, but writes a key list on the aux file">
     471  <command name="nocite" usage="nocite{@key_list@}" hint="produces no text, but writes a key list on the aux file">
    472472    <argument name="key_list" type="cite_key_list" value="" completion="true" hint="the key list">
    473473    </argument>
    474474  </command>
    475475
    476   <command name="\noindent" hint="to suppress the paragraph indentation">
    477   </command>
    478 
    479   <command name="\nolinebreak" usage="\nolinebreak[@number@]"
     476  <command name="noindent" hint="to suppress the paragraph indentation">
     477  </command>
     478
     479  <command name="nolinebreak" usage="nolinebreak[@number@]"
    480480           hint="prevents LaTeX from breaking the current line at the point of the command">
    481481    <argument name="number" hint="0 to 4, the higher the number, the more insistent the request is">
     
    483483  </command>
    484484
    485   <command name="\normalsize" hint="is the default type size">
    486   </command>
    487 
    488   <command name="\nopagebreak" usage="\nopagebreak[@number@]"
     485  <command name="normalsize" hint="is the default type size">
     486  </command>
     487
     488  <command name="nopagebreak" usage="nopagebreak[@number@]"
    489489           hint="prevents LaTeX form breaking the current page at the point of the command">
    490490    <argument name="number" hint="0 to 4, the higher the number, the more insistent the request is">
     
    492492  </command>
    493493
    494   <command name="\onecolumn" hint="starts a new page and produces single-column output">
    495   </command>
    496 
    497   <command name="\opening" usage="\opening{@text@}" hint="the letter begins with the \opening command">
     494  <command name="onecolumn" hint="starts a new page and produces single-column output">
     495  </command>
     496
     497  <command name="opening" usage="opening{@text@}" hint="the letter begins with the \opening command">
    498498    <argument name="text" hint="what ever text you wish to start your letter">
    499499    </argument>
    500500  </command>
    501501
    502   <command name="\oval" usage="\oval(@width@,@height@)[@portion@]" hint="produces a rectangle with rounded corners">
     502  <command name="oval" usage="oval(@width@,@height@)[@portion@]" hint="produces a rectangle with rounded corners">
    503503    <argument name="width">
    504504    </argument>
     
    513513  </command>
    514514
    515   <command name="\overline" usage="\overline{@equation@}" hint="causes the argument to be overlined">
     515  <command name="overline" usage="overline{@equation@}" hint="causes the argument to be overlined">
    516516    <argument name="equation">
    517517    </argument>
    518518  </command>
    519519
    520   <command name="\pagebreak" usage="\pagebreak[@number@]" hint="break the current page at the point of the command">
     520  <command name="pagebreak" usage="pagebreak[@number@]" hint="break the current page at the point of the command">
    521521    <argument name="number" hint="0 to 4, the higher the number, the more insistent the request is">
    522522    </argument>
    523523  </command>
    524524
    525   <command name="\pagenumbering" usage="\pagenumbering{@num_style@}" hint="specifies the style of page numbers">
     525  <command name="pagenumbering" usage="pagenumbering{@num_style@}" hint="specifies the style of page numbers">
    526526    <argument name="num_style" hint="the style of page numbers">
    527527      <argumentValue value="arabic" hint="Arabic numerals"/>
     
    533533  </command>
    534534
    535   <command name="\pageref" usage="\pageref{@key@}" hint="produces the page number refering to the label">
     535  <command name="pageref" usage="pageref{@key@}" hint="produces the page number refering to the label">
    536536    <argument name="key" hint="the label in the text">
    537537    </argument>
    538538  </command>
    539539
    540   <command name="\pagestyle" usage="\pagestyle{@option@}"
     540  <command name="pagestyle" usage="pagestyle{@option@}"
    541541           hint="changes the style from the current page on throughout the remainder of your document">
    542542    <argument name="option">
     
    548548  </command>
    549549
    550   <command name="\par" hint="equivalent to a blank line">
    551   </command>
    552 
    553   <command name="\paragraph" usage="\paragraph{@title@}" hint="starts a new paragraph in the document structure" style="section">
     550  <command name="par" hint="equivalent to a blank line">
     551  </command>
     552
     553  <command name="paragraph" usage="paragraph{@title@}" hint="starts a new paragraph in the document structure" style="section">
    554554    <argument name="title">
    555555    </argument>
    556556  </command>
    557557
    558   <command name="\part" usage="\part{@title@}" hint="starts a new part in the document structure">
     558  <command name="part" usage="part{@title@}" hint="starts a new part in the document structure">
    559559    <argument name="title">
    560560    </argument>
    561561  </command>
    562562
    563   <command name="\parbox" usage="\parbox[@position@]{@width@}{@text@}"
     563  <command name="parbox" usage="parbox[@position@]{@width@}{@text@}"
    564564           hint="creates a box whose contents are created in paragraph mode">
    565565    <argument name="position">
     
    573573  </command>
    574574
    575   <command name="\parindent" hint="normal paragraph indentation">
    576   </command>
    577 
    578   <command name="\parskip" hint="is the extra vertical space inserted before a paragraph">
    579   </command>
    580 
    581   <command name="\protect" hint="applies only to the immediately following command">
    582   </command>
    583 
    584   <command name="\providecommand" usage="\providecommand{@cmd@}[@args@][@opt@]{@def@}"
     575  <command name="parindent" hint="normal paragraph indentation">
     576  </command>
     577
     578  <command name="parskip" hint="is the extra vertical space inserted before a paragraph">
     579  </command>
     580
     581  <command name="protect" hint="applies only to the immediately following command">
     582  </command>
     583
     584  <command name="providecommand" usage="providecommand{@cmd@}[@args@][@opt@]{@def@}"
    585585           hint="define (or redefine) a command">
    586586    <argument name="cmd" hint="the name of the new command">
     
    594594  </command>
    595595
    596   <command name="\put" usage="\put(@x-coord@,@y-coord@){@object@}" hint="places an object at the given coordinates">
     596  <command name="put" usage="put(@x-coord@,@y-coord@){@object@}" hint="places an object at the given coordinates">
    597597    <argument name="x-coord">
    598598    </argument>
     
    603603  </command>
    604604
    605   <command name="\raggedbottom" hint="makes all pages the height of the text on that page">
    606   </command>
    607 
    608   <command name="\raggedright" hint="corresponds to the flushleft environment">
    609   </command>
    610 
    611   <command name="\raisebox" usage="\raisebox{@distance@}[@extend-above@][@extend-below@]{@|@}"
     605  <command name="raggedbottom" hint="makes all pages the height of the text on that page">
     606  </command>
     607
     608  <command name="raggedright" hint="corresponds to the flushleft environment">
     609  </command>
     610
     611  <command name="raisebox" usage="raisebox{@distance@}[@extend-above@][@extend-below@]{@|@}"
    612612           hint="creates a LR box containing text; it is used to raise or lower text">
    613613    <argument name="distance" hint="specifies how high the text is to be raised">
     
    619619  </command>
    620620
    621   <command name="\ref" usage="\ref{@key@}" style="important_command"
     621  <command name="ref" usage="ref{@key@}" style="important_command"
    622622           hint="produces the number of the sectional unit, equation number, ... of the corresponding \label command">
    623623    <argument name="key" type="label_ref" value="" completion="true" hint="corresponding label"/>
    624624  </command>
    625625
    626   <command name="\eqref" usage="\eqref{@key@}" style="important_command"
     626  <command name="eqref" usage="eqref{@key@}" style="important_command"
    627627           hint="produces the number of the sectional unit, equation number, ... of the corresponding \label command">
    628628    <argument name="key" type="label_ref" value="" completion="true" hint="corresponding label"/>
    629629  </command>
    630630
    631   <command name="\right" hint="')' (math mode)">
    632   </command>
    633 
    634   <command name="\rm" hint="Roman typeface (default)">
    635   </command>
    636 
    637   <command name="\roman" usage="\roman{@counter@}"
     631  <command name="right" hint="')' (math mode)">
     632  </command>
     633
     634  <command name="rm" hint="Roman typeface (default)">
     635  </command>
     636
     637  <command name="roman" usage="roman{@counter@}"
    638638           hint="causes the current value of counter to be printed in roman numerals">
    639639    <argument name="counter">
     
    641641  </command>
    642642
    643   <command name="\rule" usage="\rule[@raise-height@]{@width@}{@height@}"
     643  <command name="rule" usage="rule[@raise-height@]{@width@}{@height@}"
    644644           hint="generates a rectangular 'blob of ink.', it can be used to produce horizontal or vertical lines">
    645645    <argument name="raise-height" hint="specifies how high to raise the rule">
     
    651651  </command>
    652652
    653   <command name="\savebox" usage="\savebox{@cmd@}[@width@][@pos@]{@text@}" hint="typeset text in a box">
     653  <command name="savebox" usage="savebox{@cmd@}[@width@][@pos@]{@text@}" hint="typeset text in a box">
    654654    <argument name="cmd">
    655655    </argument>
     
    662662  </command>
    663663
    664   <command name="\sbox" usage="\sbox{@cmd@}{@text@}" hint="typeset text in a box">
     664  <command name="sbox" usage="sbox{@cmd@}{@text@}" hint="typeset text in a box">
    665665    <argument name="cmd">
    666666    </argument>
     
    669669  </command>
    670670
    671   <command name="\sc" hint="small caps typeface">
    672   </command>
    673 
    674   <command name="\scriptsize" hint="second smallest of 10 typefaces available">
    675   </command>
    676 
    677   <command name="\section" usage="\section{@title@}" hint="starts a new section in the document structure" style="section">
     671  <command name="sc" hint="small caps typeface">
     672  </command>
     673
     674  <command name="scriptsize" hint="second smallest of 10 typefaces available">
     675  </command>
     676
     677  <command name="section" usage="section{@title@}" hint="starts a new section in the document structure" style="section">
    678678    <argument name="title" type="title"/>
    679679  </command>
    680680
    681   <command name="\setcounter" usage="\setcounter{@counter@}{@value@}" hint="sets the value of the specified counter">
     681  <command name="setcounter" usage="setcounter{@counter@}{@value@}" hint="sets the value of the specified counter">
    682682    <argument name="counter">
    683683    </argument>
     
    686686  </command>
    687687
    688   <command name="\setlength" usage="\setlength{@len-cmd@}{@len@}" hint="used to set the value of a length command">
     688  <command name="setlength" usage="setlength{@len-cmd@}{@len@}" hint="used to set the value of a length command">
    689689    <argument name="len-cmd">
    690690    </argument>
     
    693693  </command>
    694694
    695   <command name="\settowidth" usage="\settowidth{@len-cmd@}{@text@}" hint="">
     695  <command name="settowidth" usage="settowidth{@len-cmd@}{@text@}" hint="">
    696696    <argument name="len-cmd">
    697697    </argument>
     
    700700  </command>
    701701
    702   <command name="\sf" hint="sans serif typeface">
    703   </command>
    704 
    705   <command name="\shortstack" usage="\shortstack[@position@]{@ ... \\ ... \\ ... @}" hint="produces a stack of objects">
     702  <command name="sf" hint="sans serif typeface">
     703  </command>
     704
     705  <command name="shortstack" usage="shortstack[@position@]{@ ... \\ ... \\ ... @}" hint="produces a stack of objects">
    706706    <argument name="position">
    707707      <argumentValue value="r" hint="moves the objects to the right of the stack"/>
     
    713713  </command>
    714714
    715   <command name="\signature" usage="\signature{@your name@}"
     715  <command name="signature" usage="signature{@your name@}"
    716716           hint="your name, as it should appear at the end of the letter underneath the space for your signature">
    717717    <argument name="your name">
     
    719719  </command>
    720720
    721   <command name="\sl" hint="slanted typeface">
    722   </command>
    723 
    724   <command name="\small" hint="slightly smaller than default typeface size">
    725   </command>
    726 
    727   <command name="\smallskip" hint="equivalent to \vspace{\smallskipamount}">
    728   </command>
    729 
    730   <command name="\renewcommand" usage="\renewcommand{@cmd@}[@args@][@opt@]{@def@}" hint="used to define a command">
     721  <command name="sl" hint="slanted typeface">
     722  </command>
     723
     724  <command name="small" hint="slightly smaller than default typeface size">
     725  </command>
     726
     727  <command name="smallskip" hint="equivalent to \vspace{\smallskipamount}">
     728  </command>
     729
     730  <command name="renewcommand" usage="renewcommand{@cmd@}[@args@][@opt@]{@def@}" hint="used to define a command">
    731731    <argument name="cmd" hint="the name of the new command">
    732732    </argument>
     
    739739  </command>
    740740
    741   <command name="\sqrt" usage="\sqrt[@root@]{@arg@}"
     741  <command name="sqrt" usage="sqrt[@root@]{@arg@}"
    742742           hint="produces the square root (radical) symbol with the argument as radicand">
    743743    <argument name="root">
     
    747747  </command>
    748748
    749   <command name="\stackrel" usage="\stackrel{@top@}{@bot@}"
     749  <command name="stackrel" usage="stackrel{@top@}{@bot@}"
    750750           hint="can be used to stack something above something else; used in math mode">
    751751    <argument name="top">
     
    755755  </command>
    756756
    757   <command name="\subparagraph" usage="\subparagraph{@title@}" hint="starts a new subparagraph in the document structure" style="section">
     757  <command name="subparagraph" usage="subparagraph{@title@}" hint="starts a new subparagraph in the document structure" style="section">
    758758    <argument name="title" type="title">
    759759    </argument>
    760760  </command>
    761761
    762   <command name="\subsection" usage="\subsection{@title@}" hint="starts a new subsection in the document structure" style="section">
     762  <command name="subsection" usage="subsection{@title@}" hint="starts a new subsection in the document structure" style="section">
    763763    <argument name="title" type="title"/>
    764764  </command>
    765765
    766   <command name="\subsubsection" usage="\subsubsection{@title@}" hint="starts a new subsubsection in the document structure" style="section">
     766  <command name="subsubsection" usage="subsubsection{@title@}" hint="starts a new subsubsection in the document structure" style="section">
    767767    <argument name="title" type="title">
    768768    </argument>
    769769  </command>
    770770
    771   <command name="\tableofcontents" hint="produces a table of contents">
    772   </command>
    773 
    774   <command name="\telephone" usage="\telephone{@number@}" hint="this is your telephone number">
     771  <command name="tableofcontents" hint="produces a table of contents">
     772  </command>
     773
     774  <command name="telephone" usage="telephone{@number@}" hint="this is your telephone number">
    775775    <argument name="number">
    776776    </argument>
    777777  </command>
    778778
    779   <command name="\text" usage="\text{@text@}" hint="include normal text in math environments">
     779  <command name="text" usage="text{@text@}" hint="include normal text in math environments">
    780780    <argument name="text"/>
    781781  </command>
    782782
    783   <command name="\textit" usage="\textit{@text@}" hint="italic font">
     783  <command name="textit" usage="textit{@text@}" hint="italic font">
    784784    <argument name="text" type="italic"/>
    785785  </command>
    786786
    787   <command name="\textbf" usage="\textbf{@text@}" hint="bold font">
     787  <command name="textbf" usage="textbf{@text@}" hint="bold font">
    788788    <argument name="text" type="bold"/>
    789789  </command>
    790790
    791   <command name="\textrm" usage="\textrm{@text@}" hint="roman font">
     791  <command name="textrm" usage="textrm{@text@}" hint="roman font">
    792792    <argument name="text"/>
    793793  </command>
    794794
    795   <command name="\textsc" usage="\textsc{@text@}" hint="small caps">
     795  <command name="textsc" usage="textsc{@text@}" hint="small caps">
    796796    <argument name="text"/>
    797797  </command>
    798798
    799   <command name="\textsf" usage="\textsf{@text@}" hint="sans serif font">
     799  <command name="textsf" usage="textsf{@text@}" hint="sans serif font">
    800800    <argument name="text"/>
    801801  </command>
    802802
    803   <command name="\textsl" usage="\textsl{@text@}" hint="slanted font">
     803  <command name="textsl" usage="textsl{@text@}" hint="slanted font">
    804804    <argument name="text" type="italic"/>
    805805  </command>
    806806
    807   <command name="\texttt" usage="\texttt{@text@}" hint="type writer font">
     807  <command name="texttt" usage="texttt{@text@}" hint="type writer font">
    808808    <argument name="text"/>
    809809  </command>
    810810
    811   <command name="\textwidth" hint="is the normal width of the text on a page">
    812   </command>
    813 
    814   <command name="\textheight" hint="the height of text on the page">
    815   </command>
    816 
    817   <command name="\thanks" usage="\thanks{@text@}" hint="produces a footnote to the title">
     811  <command name="textwidth" hint="is the normal width of the text on a page">
     812  </command>
     813
     814  <command name="textheight" hint="the height of text on the page">
     815  </command>
     816
     817  <command name="thanks" usage="thanks{@text@}" hint="produces a footnote to the title">
    818818    <argument name="text">
    819819    </argument>
    820820  </command>
    821821
    822   <command name="\thispagestyle" usage="\thispagestyle{@option@}" hint="changes the style for the current page">
     822  <command name="thispagestyle" usage="thispagestyle{@option@}" hint="changes the style for the current page">
    823823    <argument name="option">
    824824    </argument>
    825825  </command>
    826826
    827   <command name="\tiny" hint="smallest of 10 typefaces available">
    828   </command>
    829 
    830   <command name="\title" usage="\title{@text@}" hint="declares text to be the title">
     827  <command name="tiny" hint="smallest of 10 typefaces available">
     828  </command>
     829
     830  <command name="title" usage="title{@text@}" hint="declares text to be the title">
    831831    <argument name="text">
    832832    </argument>
    833833  </command>
    834834
    835   <command name="\today" hint="generates the current date in the format Month dd, year">
    836   </command>
    837 
    838   <command name="\tt" hint="Typewriter typeface">
    839   </command>
    840 
    841   <command name="\twocolumn" hint="declaration starts a new page and produces two-column output">
    842   </command>
    843 
    844   <command name="\typeout" usage="\typeout{@msg@}" hint="prints msg on the terminal and in the log file">
     835  <command name="today" hint="generates the current date in the format Month dd, year">
     836  </command>
     837
     838  <command name="tt" hint="Typewriter typeface">
     839  </command>
     840
     841  <command name="twocolumn" hint="declaration starts a new page and produces two-column output">
     842  </command>
     843
     844  <command name="typeout" usage="typeout{@msg@}" hint="prints msg on the terminal and in the log file">
    845845    <argument name="msg">
    846846    </argument>
    847847  </command>
    848848
    849   <command name="\typein" usage="\typein[@cmd@]{@msg@}"
     849  <command name="typein" usage="typein[@cmd@]{@msg@}"
    850850           hint="prints msg on the terminal and causes LaTeX to stop and wait for you to type a line of input, ending with return">
    851851    <argument name="cmd" hint="command name">
     
    855855  </command>
    856856
    857   <command name="\underbrace" usage="\underbrace{@formula@} "
     857  <command name="underbrace" usage="underbrace{@formula@} "
    858858           hint="generates a brace underneath the formula (math mode)">
    859859    <argument name="formula">
     
    861861  </command>
    862862
    863   <command name="\underline" usage="\underline{@text@}" hint="causes the argument text to be underlined">
     863  <command name="underline" usage="underline{@text@}" hint="causes the argument text to be underlined">
    864864    <argument name="text">
    865865    </argument>
    866866  </command>
    867867
    868   <command name="\unitlength" hint="defines the units used in the Picture Environment">
    869   </command>
    870 
    871   <command name="\usebox" usage="\usebox{@cmd@}"
     868  <command name="unitlength" hint="defines the units used in the Picture Environment">
     869  </command>
     870
     871  <command name="usebox" usage="usebox{@cmd@}"
    872872           hint="prints the box most recently saved in cmd by a \savebox or \sbox command">
    873873    <argument name="cmd">
     
    875875  </command>
    876876
    877   <command name="\usecounter" usage="\usecounter{@counter@}"
     877  <command name="usecounter" usage="usecounter{@counter@}"
    878878           hint="used in the second argument of the list environment to allow the counter specified to be used to number the list items">
    879879    <argument name="counter"/>
    880880  </command>
    881881
    882   <command name="\usepackage" usage="\usepackage[@options@]{@packages@}"
     882  <command name="usepackage" usage="usepackage[@options@]{@packages@}"
    883883           hint="loads the given LaTeX packages">
    884884    <argument name="options"/>
     
    886886  </command>
    887887
    888   <command name="\value" usage="\value{@counter@}"
     888  <command name="value" usage="value{@counter@}"
    889889           hint="produces the value of the counter named in the mandatory argument">
    890890    <argument name="counter">
     
    892892  </command>
    893893
    894   <command name="\vdots" hint="command produces a vertical ellipsis">
    895   </command>
    896 
    897   <command name="\vector" usage="\vector(@x-slope@,@y-slope@){@length@}"
     894  <command name="vdots" hint="command produces a vertical ellipsis">
     895  </command>
     896
     897  <command name="vector" usage="vector(@x-slope@,@y-slope@){@length@}"
    898898           hint="draws an arrow of the specified length and slope (picture environment)">
    899899    <argument name="x-slope">
     
    905905  </command>
    906906
    907   <command name="\verb" usage="\verb=@|@=" hint="verbatim text">
    908   </command>
    909 
    910   <command name="\vfill" hint="produces a rubber length which can stretch or shrink vertically">
    911   </command>
    912 
    913   <command name="\vline" hint="will draw a vertical line extending the full height and depth of its row">
    914   </command>
    915 
    916   <command name="\vphantom" usage="\vphantom{@construct@}"
     907  <command name="verb" usage="verb=@|@=" hint="verbatim text">
     908  </command>
     909
     910  <command name="vfill" hint="produces a rubber length which can stretch or shrink vertically">
     911  </command>
     912
     913  <command name="vline" hint="will draw a vertical line extending the full height and depth of its row">
     914  </command>
     915
     916  <command name="vphantom" usage="vphantom{@construct@}"
    917917           hint="creates a zero-width object with the height of construct">
    918918    <argument name="construct">
     
    920920  </command>
    921921
    922   <command name="\vspace" usage="\vspace[@*@]{@length@}" hint="adds vertical space">
     922  <command name="vspace" usage="vspace[@*@]{@length@}" hint="adds vertical space">
    923923    <argument name="*">
    924924    </argument>
     
    927927  </command>
    928928
    929   <command name="\begin" usage="\begin{@environment@}@|@&nl;\end{@environment@}" hint="paragraph-making environments" style="begin">
     929  <command name="begin" usage="begin{@environment@}@|@&nl;\end{@environment@}" hint="paragraph-making environments" style="begin">
    930930    <argument name="environment" type="opening_env">
    931931      <argumentValue value="abstract"/>
     
    959959  </command>
    960960
    961   <command name="\end" usage="\end{@environment@}" hint="closing environment" style="begin">
     961  <command name="end" usage="end{@environment@}" hint="closing environment" style="begin">
    962962    <argument name="environment" type="closing_env"/>
    963963  </command>
    964964
    965965  <environment name="picture">
    966     <command name="\line" usage="\line(@x-slope@,@y-slope@){@length@}"
     966    <command name="line" usage="line(@x-slope@,@y-slope@){@length@}"
    967967             hint="draws a line of the specified length and slope">
    968968      <argument name="x-slope" hint="the x-coordinate of the slope">
     
    974974    </command>
    975975
    976     <command name="\linethickness" usage="\linethickness{@dimension@}"
     976    <command name="linethickness" usage="linethickness{@dimension@}"
    977977             hint="declares the thickness of horizontal and vertical lines in a picture environment ">
    978978      <argument name="dimension" hint="must be a positive length">
     
    980980    </command>
    981981
    982     <command name="\makebox" usage="\makebox(@width@,@height@)[@position@]{@text@}"
     982    <command name="makebox" usage="makebox(@width@,@height@)[@position@]{@text@}"
    983983             hint="creates a box with a specified with and height">
    984984      <argument name="width" hint="the width of the box">
     
    996996    </command>
    997997
    998     <command name="\multiput" usage="\multiput(@x coord@,@y coord@)(@delta x@,@delta y@){@number of copies@}{@object@}"
     998    <command name="multiput" usage="multiput(@x coord@,@y coord@)(@delta x@,@delta y@){@number of copies@}{@object@}"
    999999             hint="used to put the same object in a regular pattern across a picture">
    10001000      <argument name="x coord">
     
    10141014
    10151015  <environment name="math">
    1016     <command name="\mathcal" usage="\mathcal{@cal@}" hint="calligraphic letter (LaTeX2e)">
     1016    <command name="mathcal" usage="mathcal{@cal@}" hint="calligraphic letter (LaTeX2e)">
    10171017      <argument name="cal" hint="the letter">
    10181018      </argument>
    10191019    </command>
    10201020
    1021     <command name="\mathop" usage="\mathop{@|@}"
     1021    <command name="mathop" usage="mathop{@|@}"
    10221022             hint="argument is considered to be a single variable sized math symbol">
    10231023    </command>
    10241024
    1025     <command name="\not" hint="a slash is placed through the next symbol (or letter)">
     1025    <command name="not" hint="a slash is placed through the next symbol (or letter)">
    10261026    </command>
    10271027
    1028     <command name="\overbrace" usage="\overbrace{@equation@}" hint="generates a brace over equation">
     1028    <command name="overbrace" usage="overbrace{@equation@}" hint="generates a brace over equation">
    10291029      <argument name="equation">
    10301030      </argument>
     
    10331033
    10341034  <environment name="array &amp; table">
    1035     <command name="\multicolumn" usage="\multicolumn{@cols@}{@pos@}{@text@}"
     1035    <command name="multicolumn" usage="multicolumn{@cols@}{@pos@}{@text@}"
    10361036             hint="used to make an entry that spans several columns">
    10371037      <argument name="cols" hint="the number of columns to span">
     
    10481048
    10491049  <environment name="paragraph">
    1050     <command name="\newline" hint="breaks the line right where it is">
     1050    <command name="newline" hint="breaks the line right where it is">
    10511051    </command>
    10521052  </environment>
  • trunk/src/de/endrullis/utils/BetterProperties2.java

    r967 r1231  
    11package de.endrullis.utils;
     2
     3import de.endrullis.utils.collections.CollectionUtils;
    24
    35import javax.swing.*;
  • trunk/src/de/endrullis/utils/collections/CollectionUtils.java

    r1230 r1231  
    1 package de.endrullis.utils;
     1package de.endrullis.utils.collections;
    22
    33import util.Function1;
  • trunk/src/de/endrullis/utils/collections/ExtIterable.java

    r1230 r1231  
    1 package de.endrullis.utils;
     1package de.endrullis.utils.collections;
    22
    3 import com.sun.org.apache.xpath.internal.functions.Function;
    43import util.Function1;
    54
     
    3635  }
    3736
     37  public ExtIterable<T> distinct() {
     38    return new DistinctIterable<T>(this);
     39  }
     40
    3841  @Override
    3942  public abstract ExtIterator<T> iterator();
  • trunk/src/de/endrullis/utils/collections/ExtIterator.java

    r1230 r1231  
    1 package de.endrullis.utils;
     1package de.endrullis.utils.collections;
    22
    33import util.Function1;
  • trunk/src/de/endrullis/utils/collections/FilterIterable.java

    r1230 r1231  
    1 package de.endrullis.utils;
     1package de.endrullis.utils.collections;
    22
    33import util.Function1;
  • trunk/src/de/endrullis/utils/collections/FilterIterator.java

    r1230 r1231  
    1 package de.endrullis.utils;
     1package de.endrullis.utils.collections;
    22
    33import util.Function1;
  • trunk/src/de/endrullis/utils/collections/MapIterable.java

    r1230 r1231  
    1 package de.endrullis.utils;
     1package de.endrullis.utils.collections;
    22
    33import util.Function1;
  • trunk/src/de/endrullis/utils/collections/MapIterator.java

    r1230 r1231  
    1 package de.endrullis.utils;
     1package de.endrullis.utils.collections;
    22
    33import util.Function1;
  • trunk/src/de/endrullis/utils/collections/MergeSortIterable.java

    r1230 r1231  
    1 package util;
    2 
    3 import de.endrullis.utils.ExtIterable;
    4 import de.endrullis.utils.ExtIterator;
     1package de.endrullis.utils.collections;
    52
    63import java.util.Comparator;
     
    85
    96/**
     7 * Merge sort iterable.
     8 *
    109 * @author Stefan Endrullis &lt;stefan@endrullis.de&gt;
    1110 */
     
    2524      iterators[i] = iterables[i].iterator();
    2625    }
    27     return new SortedMergeIterator<T>(comparator, iterators);
     26    return new MergeSortIterator<T>(comparator, iterators);
    2827  }
    2928}
  • trunk/src/de/endrullis/utils/collections/MergeSortIterator.java

    r1230 r1231  
    1 package util;
     1package de.endrullis.utils.collections;
    22
    3 import de.endrullis.utils.ExtIterator;
     3import de.endrullis.utils.collections.ExtIterator;
    44
    55import java.util.Comparator;
  • trunk/src/jlatexeditor/addon/ExtractCommand.java

    r1183 r1231  
    11package jlatexeditor.addon;
    22
    3 import de.endrullis.utils.ExtIterable;
     3import de.endrullis.utils.collections.ExtIterable;
    44import jlatexeditor.Doc;
    55import jlatexeditor.JLatexEditorJFrame;
     
    88import jlatexeditor.codehelper.Command;
    99import sce.component.*;
    10 import sun.security.provider.ParameterCache;
    1110
    1211import javax.swing.*;
  • trunk/src/jlatexeditor/codehelper/BeamerCodeHelper.java

    r1220 r1231  
    11package jlatexeditor.codehelper;
    22
    3 import de.endrullis.utils.CollectionUtils;
     3import de.endrullis.utils.collections.CollectionUtils;
    44import jlatexeditor.PackagesExtractor;
    5 import jlatexeditor.gproperties.GPropertiesCodeHelper;
    65import sce.codehelper.CHCommand;
    76import sce.codehelper.PatternPair;
  • trunk/src/jlatexeditor/codehelper/Command.java

    r990 r1231  
    4949
    5050  public CHCommand toCHCommand() {
    51     CHCommand chCommand = new CHCommand("\\" + name);
    52     String template = "\\" + name;
     51    CHCommand chCommand = new CHCommand("<html><body><b>" + name + "</b>");
     52    String template = name;
    5353    if (optional != null) {
    5454      template += "[@opt@]";
  • trunk/src/jlatexeditor/codehelper/CommandsCodeHelper.java

    r1229 r1231  
    11package jlatexeditor.codehelper;
    22
    3 import de.endrullis.utils.ExtIterable;
    4 import de.endrullis.utils.ExtIterator;
     3import de.endrullis.utils.collections.ExtIterable;
    54import jlatexeditor.PackagesExtractor;
    65import jlatexeditor.SCEManager;
    76import sce.codehelper.CHCommand;
    8 import sce.codehelper.StaticCommandsCodeHelper;
     7import sce.codehelper.PatternPair;
     8import sce.codehelper.WordWithPos;
    99import util.Function1;
    10 import util.MergeSortIterable;
     10import de.endrullis.utils.collections.MergeSortIterable;
    1111import util.Trie;
    12 
    13 import java.util.ArrayList;
    14 import java.util.Iterator;
    15 import java.util.List;
     12import util.TrieSet;
    1613
    1714/**
     
    2017 * @author Stefan Endrullis &lt;stefan@endrullis.de&gt;
    2118 */
    22 public class CommandsCodeHelper extends StaticCommandsCodeHelper {
     19public class CommandsCodeHelper extends ExtPatternHelper {
     20  protected static final Function1<TrieSet<PackagesExtractor.Command>,String> TRIE_SET_2_STRING_FUNCTION = new Function1<TrieSet<PackagesExtractor.Command>, String>() {
     21    @Override
     22    public String apply(TrieSet<PackagesExtractor.Command> trieSet) {
     23      return trieSet.getObjects().iterator().next().getName();
     24    }
     25  };
     26  protected static final Function1<Command,String> COMMAND_2_STRING_FUNCTION = new Function1<Command, String>() {
     27    public String apply(Command env) {
     28      return env.getName();
     29    }
     30  };
     31
     32  protected WordWithPos word;
     33
    2334  public CommandsCodeHelper() {
    24     super("(\\\\\\p{L}*)", SCEManager.getLatexCommands());
     35    pattern = new PatternPair("\\\\(\\p{L}*)");
     36  }
     37
     38  @Override
     39  public boolean matches() {
     40    if (super.matches()) {
     41      word = params.get(0);
     42      return true;
     43    }
     44    return false;
     45  }
     46
     47  @Override
     48  public WordWithPos getWordToReplace() {
     49    return word;
     50  }
     51
     52  @Override
     53  public Iterable<? extends CHCommand> getCompletions() {
     54    return getCompletions(word.word);
     55  }
     56
     57  @Override
     58  public String getMaxCommonPrefix() {
     59    return getMaxCommonPrefix(word.word);
     60  }
     61
     62  public Iterable<CHCommand> getCompletions(String search) {
     63    final Trie<Command> userCommands = SCEManager.getBackgroundParser().getCommands();
     64    final Trie<CHCommand> standardCommands = SCEManager.getLatexCommands().getCommands();
     65    ExtIterable<String> userIter = userCommands.getObjectsIterable(search).map(COMMAND_2_STRING_FUNCTION);
     66    standardCommands.getObjectsIterable(search).map(new Function1<CHCommand, Object>() {
     67      public Object apply(CHCommand a1) {
     68        return a1.getName();
     69      }
     70    });
     71    int minUsageCount = 0;
     72    ExtIterable<String> packEnvIter = PackagesExtractor.getPackageParser().getCommands().getTrieSetIterator(search).filter(minUsage(minUsageCount)).map(TRIE_SET_2_STRING_FUNCTION);
     73    ExtIterable<String> dcEnvIter = PackagesExtractor.getDocClassesParser().getCommands().getTrieSetIterator(search).filter(minUsage(minUsageCount)).map(TRIE_SET_2_STRING_FUNCTION);
     74
     75    ExtIterable<CHCommand> mergedIter = new MergeSortIterable<String>(STRING_COMPARATOR, userIter, packEnvIter, dcEnvIter).distinct().map(new Function1<String, CHCommand>() {
     76      @Override
     77      public CHCommand apply(String cmd) {
     78        Command command = userCommands.get(cmd);
     79        if (command != null) {
     80          return command.toCHCommand();
     81        }
     82        CHCommand chCommand = standardCommands.get(cmd);
     83        if (chCommand != null) {
     84          return chCommand;
     85        }
     86        return new ValueCompletion(cmd);
     87      }
     88    });
     89
     90    return mergedIter.toList(20);
     91
     92    /*
     93    List<String> envNames = PackagesExtractor.getPackageParser().getEnvironments().getStrings(search, 20);
     94    if (envNames == null) envNames = new ArrayList<String>();
     95
     96    return CollectionUtils.map(envNames, STRING_2_CHCOMMAND);
     97    */
     98  }
     99
     100  protected Function1<TrieSet<PackagesExtractor.Command>, Boolean> minUsage(final int minUsageCount) {
     101    return new Function1<TrieSet<PackagesExtractor.Command>, Boolean>() {
     102      @Override
     103      public Boolean apply(TrieSet<PackagesExtractor.Command> trieSet) {
     104        return trieSet.getObjects().iterator().next().getUsageCount() >= minUsageCount;
     105      }
     106    };
     107  }
     108
     109  public String getMaxCommonPrefix(String search) {
     110    // TODO
     111    return search;
     112  }
     113
     114  /*
     115  public CommandsCodeHelper() {
     116    super("\\\\(\\p{L}*)", SCEManager.getLatexCommands());
    25117  }
    26118
    27119  @Override
    28120  public Iterable<CHCommand> getCompletions(String prefix) {
    29     /*
    30     ExtIterable<String> userIter = SCEManager.getBackgroundParser().getCommands().getObjectsIterable(search).map(COMMAND_2_STRING_FUNCTION);
    31     int minUsageCount = 0;
    32     ExtIterable<String> packEnvIter = PackagesExtractor.getPackageParser().getEnvironments().getTrieSetIterator(search).filter(minUsage(minUsageCount)).map(TRIE_SET_2_STRING_FUNCTION);
    33     ExtIterable<String> dcEnvIter = PackagesExtractor.getDocClassesParser().getEnvironments().getTrieSetIterator(search).filter(minUsage(minUsageCount)).map(TRIE_SET_2_STRING_FUNCTION);
    34 
    35     ExtIterable<CHCommand> mergedIter = new MergeSortIterable<String>(STRING_COMPARATOR, userIter, packEnvIter, dcEnvIter).map(STRING_2_CHCOMMAND);
    36 
    37     return mergedIter.toList(20);
    38     */
    39 
    40121    ArrayList<CHCommand> dynamicCommands = new ArrayList<CHCommand>();
    41122    BackgroundParser backgroundParser = SCEManager.getBackgroundParser();
     
    89170    return list;
    90171  }
     172    */
    91173
    92174  /**
     
    96178   * @return the completion suggestion (without the prefix)
    97179   */
     180  /*
    98181  @Override
    99182  public String getMaxCommonPrefix(String prefix) {
     
    129212    return maxCommonPrefix;
    130213  }
     214  */
    131215}
  • trunk/src/jlatexeditor/codehelper/DocumentClassCodeHelper.java

    r1220 r1231  
    11package jlatexeditor.codehelper;
    22
    3 import de.endrullis.utils.CollectionUtils;
     3import de.endrullis.utils.collections.CollectionUtils;
    44import jlatexeditor.PackagesExtractor;
    5 import jlatexeditor.gproperties.GPropertiesCodeHelper;
    65import sce.codehelper.CHCommand;
    76import sce.codehelper.PatternPair;
  • trunk/src/jlatexeditor/codehelper/EnvironmentCodeHelper.java

    r1229 r1231  
    11package jlatexeditor.codehelper;
    22
    3 import de.endrullis.utils.CollectionUtils;
    4 import de.endrullis.utils.ExtIterable;
     3import de.endrullis.utils.collections.ExtIterable;
     4import de.endrullis.utils.collections.MergeSortIterable;
    55import jlatexeditor.PackagesExtractor;
    66import jlatexeditor.SCEManager;
     
    99import sce.codehelper.WordWithPos;
    1010import util.Function1;
    11 import util.MergeSortIterable;
    1211import util.TrieSet;
    13 
    14 import java.util.Comparator;
    1512
    1613/**
     
    2017 */
    2118public class EnvironmentCodeHelper extends ExtPatternHelper {
     19  protected static final Function1<TrieSet<PackagesExtractor.Environment>,String> TRIE_SET_2_STRING_FUNCTION = new Function1<TrieSet<PackagesExtractor.Environment>, String>() {
     20    @Override
     21    public String apply(TrieSet<PackagesExtractor.Environment> trieSet) {
     22      return trieSet.getObjects().iterator().next().getName();
     23    }
     24  };
     25  protected  static final Function1<Environment,String> ENVIRONMENT_2_STRING_FUNCTION = new Function1<Environment, String>() {
     26    public String apply(Environment env) {
     27      return env.getName();
     28    }
     29  };
     30
    2231  protected WordWithPos word;
    2332
  • trunk/src/jlatexeditor/codehelper/ExtPatternHelper.java

    r1229 r1231  
    1818    }
    1919  };
    20   protected static final Function1<TrieSet<PackagesExtractor.Environment>,String> TRIE_SET_2_STRING_FUNCTION = new Function1<TrieSet<PackagesExtractor.Environment>, String>() {
    21     @Override
    22     public String apply(TrieSet<PackagesExtractor.Environment> trieSet) {
    23       return trieSet.getObjects().iterator().next().getName();
    24     }
    25   };
    2620  protected  static final Function1<String,CHCommand> STRING_2_CHCOMMAND = new Function1<String, CHCommand>() {
    2721    public CHCommand apply(String packageName) {
     
    2923    }
    3024  };
    31   protected  static final Function1<Environment,String> ENVIRONMENT_2_STRING_FUNCTION = new Function1<Environment, String>() {
    32     public String apply(Environment env) {
    33       return env.getName();
    34     }
    35   };
    36   private static final Function1<Command,String> COMMAND_2_STRING_FUNCTION = new Function1<Command, String>() {
    37     public String apply(Command env) {
    38       return env.getName();
    39     }
    40   };
    4125}
  • trunk/src/jlatexeditor/codehelper/UsePackageCodeHelper.java

    r1220 r1231  
    11package jlatexeditor.codehelper;
    22
    3 import de.endrullis.utils.CollectionUtils;
     3import de.endrullis.utils.collections.CollectionUtils;
    44import jlatexeditor.PackagesExtractor;
    5 import jlatexeditor.gproperties.GPropertiesCodeHelper;
    65import sce.codehelper.CHCommand;
    76import sce.codehelper.PatternPair;
     
    5352
    5453    return CollectionUtils.map(packageNames, new Function1<String, CHCommand>() {
    55       public CHCommand apply(String packageName) { return new ValueCompletion(packageName); }
     54      public CHCommand apply(String packageName) {
     55        return new ValueCompletion(packageName);
     56      }
    5657    });
    5758  }
  • trunk/src/jlatexeditor/quickhelp/HelpUrlHandler.java

    r1154 r1231  
    11package jlatexeditor.quickhelp;
    22
    3 import de.endrullis.utils.CollectionUtils;
     3import de.endrullis.utils.collections.CollectionUtils;
    44import jlatexeditor.PackagesExtractor;
    55import util.ConfigurableStreamHandlerFactory;
  • trunk/src/jlatexeditor/syntaxhighlighting/LatexSyntaxHighlighting.java

    r1154 r1231  
    219219            String command = getWord(row, char_nr + 1, true);
    220220
    221             CHCommand chCommand = commands.get("\\" + command);
     221            CHCommand chCommand = commands.get(command);
    222222            if (chCommand != null) {
    223223              argumentsIterator = chCommand.getArguments().iterator();
  • trunk/src/sce/codehelper/CodeHelperPane.java

    r1227 r1231  
    1010import java.awt.event.MouseEvent;
    1111import java.awt.event.MouseListener;
     12import java.awt.font.TextAttribute;
    1213import java.util.ArrayList;
     14import java.util.Map;
    1315import java.util.regex.Matcher;
    1416import java.util.regex.Pattern;
     
    6264    list.setSelectionBackground(new Color(0, 82, 164));
    6365    list.setSelectionForeground(Color.WHITE);
     66    //list.setFont(pane.getFont().deriveFont(pane.getFont().getStyle() | Font.BOLD));
     67    list.setFont(pane.getFont());
    6468
    6569    // put us first in the listner list
  • trunk/src/util/Trie.java

    r1196 r1231  
    11package util;
    22
    3 import de.endrullis.utils.ExtIterable;
    4 import de.endrullis.utils.ExtIterator;
     3import de.endrullis.utils.collections.ExtIterable;
     4import de.endrullis.utils.collections.ExtIterator;
    55
    66import java.util.*;
  • trunk/src/util/TrieSet.java

    r1220 r1231  
    11package util;
    22
    3 import de.endrullis.utils.ExtIterable;
    4 import de.endrullis.utils.ExtIterator;
     3import de.endrullis.utils.collections.ExtIterable;
     4import de.endrullis.utils.collections.ExtIterator;
    55
    66import java.util.*;
  • trunk/test/src/util/MergeSortIterableTest.java

    r1220 r1231  
    11package util;
    22
     3import de.endrullis.utils.collections.MergeSortIterable;
    34import junit.framework.TestCase;
    45
  • trunk/test/src/util/TrieTest.java

    r988 r1231  
    11package util;
    22
    3 import de.endrullis.utils.CollectionUtils;
     3import de.endrullis.utils.collections.CollectionUtils;
    44import junit.framework.TestCase;
    55
  • trunk/tools/src/jlatexeditor/tools/GoogleCodeSearch.scala

    r1213 r1231  
    44import com.google.gdata.data.codesearch.CodeSearchFeed
    55import com.google.gdata.client.codesearch.CodeSearchService
     6import sun.management.snmp.jvminstr.JvmThreadInstanceEntryImpl.ThreadStateMap
    67
    78/**
     
    1415  val codeSearchService = new CodeSearchService("gdata-sample-codesearch")
    1516
    16   def determineUsageCountForLatexCode(code: String) = {
     17  def determineUsageCountForLatexCode(code: String): Int = {
    1718    val query: String = "lang:tex$%20" + code;
    1819    val url = new URL(CODE_SEARCH_FEEDS_URL + "q=" + query)
    19     val feed: CodeSearchFeed = codeSearchService.getFeed(url, classOf[CodeSearchFeed])
    2020
    21     feed.getTotalResults
     21    var trials = 0
     22    while (true) {
     23      trials += 1
     24      try {
     25        val feed: CodeSearchFeed = codeSearchService.getFeed(url, classOf[CodeSearchFeed])
     26        return feed.getTotalResults
     27      } catch {
     28        case e =>
     29          if (trials > 1) {
     30            println("Failed to retrieve " + url)
     31            //throw e
     32            return -1
     33          } else {
     34            println("  waiting 10s")
     35            Thread.sleep(10000)
     36          }
     37      }
     38    }
     39    -1
    2240  }
    2341}
  • trunk/tools/src/jlatexeditor/tools/UsageCounter.scala

    r1230 r1231  
    77
    88/**
     9 * Usage counter for commands, environments, ...
     10 *
    911 * @author Stefan Endrullis &lt;stefan@endrullis.de&gt;
    1012 */
Note: See TracChangeset for help on using the changeset viewer.