home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / semtex / Extras / TeX (.txt) < prev   
LaTeX Document  |  1994-12-20  |  3KB  |  72 lines

  1. # StrongEd mode for TeX/LaTeX files
  2. # Features:
  3. F2      lists LaTeX sections
  4. #   F10      saves the file and runs it through LaTeX
  5. #   ^G       searches for the definition of a command
  6. ^G      searches for the definition of a label
  7. #   ^H       loads the include'd file under the cursor
  8. #   ^K       wraps (removes linefeeds) until the end of the current paragraph
  9. #   ^K^K     unwraps (formats lines) until the end of the current paragraph
  10. #   ^Return  indents new line including LaTeX tabs ('\>' commands)
  11. # plus shortcuts for LaTeX environments (listed at the end of this file)
  12. Search
  13.     _MarkWord    (["\\"] {AlphaNum}+) | {Punct}+
  14. #    _MoveWord    _MarkWord
  15.     CmdDef        ("\\def" CW @0) | ("\\renewcommand{" CW "}" @0) | ("\\newcommand{" CW "}" @0) | ("\\renewenvironment{" CW "}" @0) | ("\\newenvironment{" CW "}" @0)
  16.     _Indent2    {" "} [ {"\\>" {" "}} ]
  17.     Sect        "\\chapter" | "\\section" | "\\subsection" | "\\subsubsection"
  18.     Label        "\\label{" @0 { Any ~ "}" } Any @9 "}" 
  19.     LabelDef    "\\label{" CW  "}"
  20.     _Wrap        ~NL Any @1 {" "} NL ~ NL|"\t"|" "
  21.     TeXpar        NL ( NL | "\\begin" | "\\end" | "\\item" | "%" | "\\[" )
  22. Replace
  23.     _rwrap        @01 " "
  24. KeyList
  25.     ^Return        NewLine(indent,_Indent2)
  26. Functions
  27.     Key    
  28.     Menu    List sections  
  29.     Icon    LoF
  30.     Select    ListOfFound (Sect,Text,Align,Line,Case)
  31.     Help    Click Select to generate list of \\chapters, \\sections, etc.|MClick Adjust for a list of \\labels.
  32.     Adjust    ListOfFound (Label,Text,Whole,NoLine,Case)
  33.     Key    ^H
  34.     Icon    save
  35.     Select    LoadOne ("<tmp$path>.^.<tmp$word>.tex","<tmp$path>.^.<tmp$word>.sty","TexInputs:<tmp$word>")
  36.     Help    Click Select to load the include-file under the cursor.|MClick Adjust to load the log file.
  37.     Adjust    LoadOne ("<tmp$path>.log")
  38.     Key    F10
  39.     Menu    Save & Run  F10
  40.     Icon    Run
  41.     Select    Run("Dir <tmp$path>.^") SaveRun("TaskWindow |\"<TeX$Dir>.Bin.LaTeX <tmp$path>.<tmp$leaf>|\" -wimpslot 896k -name LaTeX -display -quit")
  42.     Help    Click to save text and run it through LaTeX.|MAdjust does same and opens the directory.
  43.     Adjust    Run("Dir <tmp$path>.^") SaveRun("TaskWindow |\"<TeX$Dir>.Bin.LaTeX <tmp$path>.<tmp$leaf>|\" -wimpslot 896k -name LaTeX -display -quit") Run("Filer_OpenDir <tmp$path>")
  44.     Key    ^G
  45.     Menu    Goto def.  ^G
  46.     Icon    goto
  47.     Select    Push ListOfFound (CmdDef,All,Whole,Line,Case,GotoFound)
  48.     Help    Select: Goto definition of command.|MAdjust: Goto Label.|MWith Shift: Go back where you came from.
  49.     Key    ^
  50.     Adjust    Push ListOfFound (LabelDef,All,Whole,Line,Case,GotoFound)
  51.     Key    ^G 2
  52. Select    Pop
  53.     Key    ^
  54. Adjust    Pop
  55.     Menu    Wrap  ^K
  56.     Key    ^K
  57.     Help    Join lines together
  58.     Select    Push StartOfWLine BlockMark_Standard ListOfFound(TeXpar,Text,Whole,NoLine,Case,GotoNext) BlockMark_Standard Pop Replace (_wrap,_rwrap,Block,Noline) BlockClear
  59.     Menu    Format  ^K^K
  60.     Key    ^K 2
  61.     Help    Format paragraph
  62.     Select    Push StartOfWLine BlockMark_Standard ListOfFound(TeXpar,Text,Whole,NoLine,Case,GotoNext) BlockMark_Standard Pop Unwrap BlockClear
  63. Shortcuts
  64.     \bi.    \\begin{itemize}\n\\item \@\n\i\\end{itemize}
  65.     \bd.    \\begin{description}\n\\item[\@]\n\i\\end{description}
  66.     \be.    \\begin{enumerate}\n\\item \@\n\i\\end{enumerate}
  67.     \bl.    \\begin{lemma}\n\@\n\i\\end{lemma}
  68.     \bp.    \\begin{proof}\n\@\n\i\\end{proof}
  69.     \bt.    \\begin{theorem}\n\@\n\i\\end{theorem}
  70.     \em.    {\\em \@}
  71.     \[.    \\[\n\@\n\\]
  72.