LaTeX glimmerout latex %2 2>&1 %term% xdvi %3 %term% dvips -Pwww %3.dvi; ggv %3.ps tex sty cls comment % \n include \\\(input\|include\|includeonly\) keywords00 \\\(\\%\|noindent\)\b keywords01 \\\(AA\|SS\|aa\|cr\|dp\|em\|fi\|ht\|if\|or\|wd\|Box\|TeX\|and\|box\|day\|def\|end\|exa\|exb\|exc\|fam\|flq\|frq\|glq\|grq\|hss\|ifx\|let\|lhd\|mag\|mho\|par\|put\)\b keywords02 \\\(ref\|rhd\|the\|toc\|vss\|Alph\|HUGE\|Huge\|Join\|alph\|atop\|char\|cite\|copy\|crcr\|date\|dots\|else\|emph\|eqno\|fbox\|fill\|font\|frac\|gdef\|glqq\|grqq\)\b keywords03 \\\(hbox\|hfil\|huge\|item\|kern\|kill\|left\|list\|long\|mark\|math\|mbox\|ull\|omit\|oval\|over\|part\|plus\|quad\|read\|rule\|sbox\|show\|skip\|span\|stop\)\b keywords04 \\\(time\|tiny\|toks\|vbox\|verb\|vfil\|vtop\|xdef\|year\|LARGE\|LaTeX\|Large\|Roman\|above\|addto\|array\|begin\|cline\|count\|ddots\|depth\|dimen\|frame\)\b keywords05 \\\(fussy\|hfill\|hfuzz\|hline\|hrule\|hsize\|hskip\|ifcat\|ifdim\|ifeof\|ifnum\|ifodd\|index\|input\|label\|large\|ldots\|leqno\|lower\|lrbox\|minus\|mkern\)\b keywords06 \\\(month\|mskip\|ewif\|outer\|qquad\|raise\|relax\|right\|roman\|small\|smash\|space\|title\|today\|unlhd\|unrhd\|value\|vfill\|vfuzz\|vline\|vrule\|vsize\)\b keywords07 \\\(vskip\|width\|write\|LaTeXe\|accent\|arabic\|author\|bezier\|center\|circle\|csname\|divide\|family\|forall\|global\|halign\|height\|hspace\|ifcase\|ifhbox\)\b keywords08 \\\(iftrue\|ifvbox\|ifvoid\|indent\|insert\|lccode\|limits\|mathbf\|mathit\|mathop\|mathrm\|mathsf\|mathtt\|muskip\|ocite\|ocorr\|umber\|obeycr\|openin\|output\)\b keywords09 \\\(parbox\|parsep\|pounds\|secdef\|setbox\|sfcode\|sloppy\|string\|symbol\|textbf\|textit\|textmd\|textrm\|textsc\|textsf\|textsl\|texttt\|textup\)\b keywords10 \\\(thanks\|topsep\|typein\|uccode\|uchyph\|unhbox\|unkern\|unskip\|unvbox\|usebox\|valign\|vector\|vspace\|vsplit\|Diamond\|advance\|badness\|bibcite\)\b keywords11 \\\(bibdata\|bibitem\|bibname\|bigskip\|botmark\|caption\|catcode\|chapter\|chardef\|closein\|dashbox\|delcode\|dotfill\|endgraf\|endlist\|endmath\|errhelp\|everycr\)\b keywords12 \\\(fboxsep\|footins\|headsep\|hfilneg\|hoffset\|iffalse\|ifhmode\|ifinner\|ifmmode\|ifvmode\|include\|itemize\|itemsep\|iterate\|itshape\|jobname\|lastbox\|leaders\)\b keywords13 \\\(leadsto\|lefteqn\|makebox\|mathbin\|mathcal\|mathord\|mathrel\|meaning\|medskip\|message\|ewfont\|ewhelp\|ewline\|ewpage\|oalign\|ofiles\|openout\|pageref\)\b keywords14 \\\(parskip\|pausing\|penalty\|picture\|poptabs\|protect\|qbezier\|radical\|refname\|rootbox\|savebox\|scshape\|section\|shipout\|showbox\|showthe\|skipdef\|slshape\)\b keywords15 \\\(special\|stretch\|subitem\|tabbing\|tabskip\|tabular\|textbar\|thempfn\|thepage\|thepart\|toksdef\|topmark\|topskip\|typeout\|unhcopy\|unvcopy\|upshape\|usefont\)\b keywords16 \\\(vadjust\|vcenter\|vfilneg\|voffset\|appendix\|bfseries\|bibstyle\|boldmath\|citation\|cleaders\|closeout\|countdef\|dimendef\|document\|endarray\|endgroup\)\b keywords17 \\\(endinput\|endlrbox\|eqnarray\|equation\|everyjob\|everypar\|fboxrule\|floatsep\|fnsymbol\|fontname\|fontsize\|footnote\|footskip\|framebox\|glossary\|hbadness\)\b keywords18 \\\(labelsep\|language\|lastkern\|lastskip\|leftmark\|leftskip\|lineskip\|markboth\|mathchar\|mathcode\|mathopen\|maxdepth\|mdseries\|minipage\|moveleft\|multiply\)\b keywords19 \\\(multiput\|ewcount\|ewdimen\|ewlabel\|oexpand\|oindent\|olimits\|onumber\|ullfont\|overline\|pagegoal\|pagename\|parshape\|partname\|patterns\|prevgraf\|proclaim\)\b keywords20 \\\(pushtabs\|raisebox\|rmfamily\|samepage\|sffamily\|skewchar\|sqsubset\|sqsupset\|stackrel\|textfont\|textless\|theenumi\|thehours\|thetable\|trivlist\|ttfamily\)\b keywords21 \\\(underbar\|vbadness\|verbatim\|vpageref\|vphantom\|xleaders\|Leftarrow\|LoadClass\|addvspace\|backslash\|batchmode\|bibindent\|centering\|clearpage\|columnsep\)\b keywords22 \\\(delimiter\|endcenter\|endcsname\|enumerate\|everyhbox\|everymath\|everyvbox\|firstmark\|flushleft\|fontdimen\|fontshape\|futurelet\|hangafter\|hlinefill\)\b keywords23 \\\(hrulefill\|immediate\|indexname\|intextsep\|leftarrow\|linebreak\|linewidth\|listfiles\|looseness\|lowercase\|makeindex\|makelabel\|maketitle\|marginpar\)\b keywords24 \\\(markright\|mathclose\|mathgroup\|mathinner\|mathpunct\|medmuskip\|moveright\|muskipdef\|ewlength\|onscript\|onecolumn\|pagebreak\|pagedepth\|pagestyle\)\b keywords25 \\\(pagetotal\|paragraph\|parindent\|partopsep\|prevdepth\|quotation\|restorecr\|rightmark\|rightskip\|setlength\|showlists\|sloppypar\|smallskip\|spaceskip\)\b keywords26 \\\(tabcolsep\|tablename\|textstyle\|textwidth\|theenumiv\|thefigure\|thinlines\|tolerance\|topmargin\|twocolumn\|underline\|unpenalty\|uppercase\|Rightarrow\)\b keywords27 \\\(addpenalty\|aftergroup\|begingroup\|botfigrule\|dblfigrule\|deadcycles\|enditemize\|endpicture\|endtabbing\|endtabular\|ensuremath\|errmessage\)\b keywords28 \\\(escapechar\|figurename\|flushright\|fontfamily\|fontseries\|globaldefs\|hangindent\|headheight\|hyphenchar\|indexspace\|itemindent\|labelenumi\)\b keywords29 \\\(labelitemi\|labelwidth\|leavevmode\|leftmargin\|linespread\|mathaccent\|mathchoice\|mathnormal\|ewcommand\|ewcounter\|ewsavebox\|ewtheorem\|oboundary\)\b keywords30 \\\(ocorrlist\|ormalfont\|ormalsize\|umberline\|pageshrink\|paperwidth\|qbeziermax\|raggedleft\|relpenalty\|rightarrow\|scriptfont\|scriptsize\|scrollmode\)\b keywords31 \\\(selectfont\|setcounter\|settodepth\|settowidth\|shortstack\|showoutput\|subsection\|subsubitem\|tabbingsep\|textbullet\|textdagger\|textdollar\)\b keywords32 \\\(textemdash\|textendash\|textheight\|textnormal\|thechapter\|theminutes\|thesection\|thicklines\|thinmuskip\|topfigrule\|unboldmath\|unitlength\)\b keywords33 \\\(usecounter\|usepackage\|varepsilon\|xspaceskip\|PackageInfo\|addtolength\|adjdemerits\|arraycolsep\|boxmaxdepth\|chaptermark\|chaptername\|clubpenalty\)\b keywords34 \\\(columnwidth\|dblfloatsep\|deffootnote\|displaymath\|enddocument\|endeqnarray\|endequation\|endlinechar\|endminipage\|endtrivlist\|endverbatim\|expandafter\)\b keywords35 \\\(extracolsep\|flushbottom\|fontsubfuzz\|footnotesep\|hyphenation\|includeonly\|inputlineno\|labelitemii\|labelitemiv\|lastpenalty\|leftmargini\|leftmarginv\)\b keywords36 \\\(linepenalty\|makeatother\|mathchardef\|mathversion\|multicolumn\|ewlinechar\|olinebreak\|onstopmode\|opagebreak\|ormalcolor\|ouppercase\|pagestretch\)\b keywords37 \\\(paperheight\|parfillskip\|raggedright\|rightmargin\|scriptfont0\|scriptspace\|scriptstyle\|sectionmark\|setlanguage\|settoheight\|spacefactor\|stepcounter\)\b keywords38 \\\(textcircled\|textgreater\|textsection\|theequation\|thefootnote\|thickmuskip\|topfraction\|totalheight\|CheckCommand\|IfFileExists\|MessageBreak\|PackageError\)\b keywords39 \\\(ProvidesFile\|abstractname\|addtocounter\|addtoversion\|appendixname\|arraystretch\|baselineskip\|bibliography\|binoppenalty\|contentsline\|contentsname\|displaystyle\)\b keywords40 \\\(displaywidth\|endenumerate\|endflushleft\|endquotation\|endsloppypar\|endtitlepage\|everydisplay\|filecontents\)\b keywords41 \\\(fontencoding\|footnotemark\|footnoterule\|footnotesize\|footnotetext\|ignorespaces\|labelitemiii\|leftmarginii\|leftmarginiv\|leftmarginvi\|listoftables\|makeatletter\|makeglossary\)\b keywords42 \\\(marginparsep\|mathellipsis\|mathsterling\|mathsurround\|egthinspace\|obreakspace\|oldstylenums\|overfullrule\|pretolerance\|raggedbottom\|renewcommand\|romannumeral\)\b keywords43 \\\(setpapersize\|showboxdepth\|showoverfull\|splitbotmark\|splittopskip\|subparagraph\|textellipsis\|textfloatsep\|textfraction\|textsterling\|theparagraph\|tracingfonts\|tracingpages\)\b keywords44 \\\(tracingstats\|widowpenalty\|CurrentOption\|DeclareOption\|MakeLowercase\|MakeUppercase\|OptionNotUsed\|ProvidesClass\|addtocontents\|brokenpenalty\|columnseprule\|discretionary\)\b keywords45 \\\(displayindent\|displaylimits\|documentclass\|documentstyle\|doublerulesep\|endflushright\|errorstopmode\|frenchspacing\|hyphenpenalty\|lefthyphenmin\)\b keywords46 \\\(leftmarginiii\|linethickness\|listoffigures\|listparindent\|listtablename\|marginparpush\|maxdeadcycles\|medskipamount\|oddsidemargin\|outputpenalty\|pagenumbering\|paragraphmark\)\b keywords47 \\\(splitmaxdepth\|subsubsection\|textbackslash\|textbraceleft\|textdaggerdbl\|textparagraph\|textquoteleft\|texttrademark\)\b keywords48 \\\(thempfootnote\|thesubsection\|thispagestyle\|tracingmacros\|tracingonline\|tracingoutput\|AtEndOfPackage\|ExecuteOptions\|Leftrightarrow\|NeedsTeXFormat\|PackageWarning\|ProcessOptions\)\b keywords49 \\\(RequirePackage\|arrayrulewidth\|atopwithdelims\|bottomfraction\|dbltopfraction\|enddisplaymath\|evensidemargin\|holdinginserts\|leftrightarrow\|lineskiplimits\|listfigurename\|marginparwidth\)\b keywords50 \\\(mathunderscore\|newenvironment\|overwithdelims\|pagefilstretch\|predisplaysize\|refstepcounter\|righthyphenmin\|showboxbreadth\|splitfirstmark\|subsectionmark\|suppressfloats\)\b keywords51 \\\(tabularnewline\|textasciitilde\|textbraceright\|textexclamdown\|textquoteright\|textregistered\|textunderscore\|AtBeginDocument\|ProvidesPackage\|abovewithdelims\)\b keywords52 \\\(addcontentsline\|afterassignment\|baselinestretch\|cleardoublepage\|dbltextfloatsep\|defaultskewchar\|delimiterfactor\|enlargethispage\)\b keywords53 \\\(exhyphenpenalty\|floatingpenalty\|includegraphics\|insertpenalties\|newmathalphabet\|normalmarginpar\|pagefillstretch\|tableofcontents\)\b keywords54 \\\(textasciicircum\|textsuperscript\|thefootnotemark\|thesubparagraph\|tracingcommands\|tracingrestores\|abovecaptionskip\|abovedisplayskip\)\b keywords55 \\\(belowcaptionskip\|belowdisplayskip\|descriptionlabel\|emergencystretch\|interlinepenalty\|nonfrenchspacing\|pagefilllstretch\|renewenvironment\)\b keywords56 \\\(reversemarginpar\|scriptscriptfont\|subparagraphmark\|textcompwordmark\|textquestiondown\|textquotedblleft\|textvisiblespace\|thesubsubsection\)\b keywords57 \\\(tracinglostchars\|InputIfFileExists\|bibliographystyle\|defaulthyphenchar\|errorcontextlines\|floatpagefraction\|predisplaypenalty\|scriptscriptstyle\)\b keywords58 \\\(subsubsectionmark\|textquotedblright\|tracingparagraphs\|PassOptionsToClass\|defaultscriptratio\|delimitershortfall\|finalhypendemerits\|nulldelimiterspace\)\b keywords59 \\\(postdisplaypenalty\|textperiodcentered\|displaywidowpenalty\|DeclareRobustCommand\|PackageWarningNoLine\|PassOptionsToPackage\|dblfloatpagefraction\)\b keywords60 \\\(doublehyphendemerits\|textasteriskcentered\|DeclareOldFontCommand\|abovedisplayshortskip\|belowdisplayshortskip\|defaultscriptscriptratio\)\b keywords61 \\\(newcommand\|newpage\)\b function \\\([A-Z,a-z]\)*\b options \b\(10pt\|11pt\|12pt\|onecolumn\|twocolumn\|a4paper\|article\|book\|hangul\|graphicx\)\b operators \(&\) def insert_latex_part(): glimmer.insert("\part { }") glimmer.move(-2) def insert_latex_chapter(): glimmer.insert("\chapter { }") glimmer.move(-2) def insert_latex_section(): glimmer.insert("\section { }") glimmer.move(-2) def insert_latex_subsection(): glimmer.insert("\subsection { }") glimmer.move(-2) def insert_latex_subsubsection(): glimmer.insert("\subsubsection { }") glimmer.move(-2) def insert_latex_paragraph(): glimmer.insert("\paragraph { }") glimmer.move(-2) def insert_latex_subparagraph(): glimmer.insert("\subparagraph { }") glimmer.move(-2) def insert_latex_appendix(): glimmer.insert("\appendix") def insert_latex_table(rows,cols): glimmer.insert("\\begin{tabular}{") # FIX-ME: support different table styles for i in range(0,cols): glimmer.insert("l") glimmer.insert("}\n") for i in range(0,rows): for j in range(1,cols): glimmer.insert (" & ") glimmer.insert("\\\\ \n") glimmer.insert("\end{tabular}\n") def latex_table_wizard(): window = GnomeDialog("LaTeX Table",STOCK_BUTTON_OK, STOCK_BUTTON_CANCEL) rows_frame = GtkFrame("Rows") window.vbox.pack_start(rows_frame,expand=TRUE,fill=TRUE) rows_adjustment= GtkAdjustment(1,1,99,1,5) rows_spin=GtkSpinButton(rows_adjustment,1,0) rows_frame.add(rows_spin) cols_frame = GtkFrame("Columns") window.vbox.pack_start(cols_frame,expand=TRUE,fill=TRUE) cols_adjustment= GtkAdjustment(1,1,99,1,5) cols_spin=GtkSpinButton(cols_adjustment,1,0) cols_frame.add(cols_spin) rows_spin.show() rows_frame.show() cols_spin.show() cols_frame.show() window.vbox.show() window.show() reply = window.run() if reply == OK: rows = rows_spin.get_value() cols = cols_spin.get_value() insert_latex_table(rows,cols) window.destroy() glimmer.add_sub_to_menu("_Insert/", "LaTeX Environments", -1) glimmer.add_item_to_menu("_Insert/LaTeX Environments/", "tabular", "tabular", "", -1, latex_table_wizard) glimmer.add_sub_to_menu("_Insert/", "LaTeX Sectioning",-1) glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "part", "part", "", -1, insert_latex_part) glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "chapter", "chapter", "", -1,insert_latex_chapter); glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "section", "section", "", -1,insert_latex_section); glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "subsection", "subsection", "", -1,insert_latex_subsection); glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "subsubsection", "subsubsection", "", -1,insert_latex_subsubsection); glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "paragraph", "paragraph", "", -1,insert_latex_paragraph); glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "subparagraph", "subparagraph", "", -1,insert_latex_subparagraph); glimmer.add_item_to_menu("_Insert/LaTeX Sectioning/", "appendix", "appendix", "", -1,insert_latex_appendix);