ALDT (Arnulf's LaTeX Documentation Tool)

Check-in [b040be3522]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fixes and new code
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b040be3522a446e2278f4fbd77f3c89c3f2fecd5
User & Date: arnulf 2012-09-01 18:46:29
Context
2012-09-01
19:03
removed unused code Leaf check-in: 71697a16e2 user: arnulf tags: trunk
18:46
fixes and new code check-in: b040be3522 user: arnulf tags: trunk
16:20
fixes for parsing check-in: eaf5e42fca user: arnulf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to CommandInfo.tcl.

103
104
105
106
107
108
109




110
111
112
113
114
115
116
...
300
301
302
303
304
305
306

307
308
309
310
311
312
313
...
397
398
399
400
401
402
403




404
405
406
407
408
409
410
...
594
595
596
597
598
599
600

601
602
603
604
605
606
607
  set cmd_args(\\dotfill) [list]
  set cmd_args(\\doublerulesep) [list m]

  set cmd_args(\\em) [list]
  set cmd_args(\\emph) [list m]
  set cmd_args(\\encl) [list m]
  set cmd_args(\\end) [list m]




  set cmd_args(\\evensidemargin) [list m]
  set cmd_args(\\extracolsep) [list m]

  set cmd_args(\\fbox) [list m]
  set cmd_args(\\fboxrule) [list m]
  set cmd_args(\\fboxsep) [list m]
  set cmd_args(\\fill) [list]
................................................................................
  set cmd_args(\\typeout) [list m]

  set cmd_args(\\unboldmath) [list]
  set cmd_args(\\underbrace) [list m]
  set cmd_args(\\underline) [list m]
  set cmd_args(\\unitlength) [list m]
  set cmd_args(\\usebox) [list m]


  set cmd_args(\\value) [list m]
  set cmd_args(\\vec) [list m]
  set cmd_args(\\vector) [list p2 m]
  set cmd_args(\\verb) [list m]
  set cmd_args(\\verb*) [list m]
  set cmd_args(\\vfill) [list]
................................................................................
  set cmd_package(\\dotfill) [list]
  set cmd_package(\\doublerulesep) [list]

  set cmd_package(\\em) [list]
  set cmd_package(\\emph) latex
  set cmd_package(\\encl) [list]
  set cmd_package(\\end) [list]




  set cmd_package(\\evensidemargin) [list]
  set cmd_package(\\extracolsep) [list]

  set cmd_package(\\fbox) [list]
  set cmd_package(\\fboxrule) [list]
  set cmd_package(\\fboxsep) [list]
  set cmd_package(\\fill) [list]
................................................................................
  set cmd_package(\\typeout) [list]

  set cmd_package(\\unboldmath) [list]
  set cmd_package(\\underbrace) [list]
  set cmd_package(\\underline) [list]
  set cmd_package(\\unitlength) [list]
  set cmd_package(\\usebox) [list]


  set cmd_package(\\value) [list]
  set cmd_package(\\vec) [list]
  set cmd_package(\\vector) [list]
  set cmd_package(\\verb) [list]
  set cmd_package(\\verb*) [list]
  set cmd_package(\\vfill) [list]







>
>
>
>







 







>







 







>
>
>
>







 







>







103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
...
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
...
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
...
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
  set cmd_args(\\dotfill) [list]
  set cmd_args(\\doublerulesep) [list m]

  set cmd_args(\\em) [list]
  set cmd_args(\\emph) [list m]
  set cmd_args(\\encl) [list m]
  set cmd_args(\\end) [list m]
  set cmd_args(\\endfirsthead) [list]
  set cmd_args(\\endfoot) [list]
  set cmd_args(\\endhead) [list]
  set cmd_args(\\endlastfoot) [list]
  set cmd_args(\\evensidemargin) [list m]
  set cmd_args(\\extracolsep) [list m]

  set cmd_args(\\fbox) [list m]
  set cmd_args(\\fboxrule) [list m]
  set cmd_args(\\fboxsep) [list m]
  set cmd_args(\\fill) [list]
................................................................................
  set cmd_args(\\typeout) [list m]

  set cmd_args(\\unboldmath) [list]
  set cmd_args(\\underbrace) [list m]
  set cmd_args(\\underline) [list m]
  set cmd_args(\\unitlength) [list m]
  set cmd_args(\\usebox) [list m]
  set cmd_args(\\usepackage) [list o m]

  set cmd_args(\\value) [list m]
  set cmd_args(\\vec) [list m]
  set cmd_args(\\vector) [list p2 m]
  set cmd_args(\\verb) [list m]
  set cmd_args(\\verb*) [list m]
  set cmd_args(\\vfill) [list]
................................................................................
  set cmd_package(\\dotfill) [list]
  set cmd_package(\\doublerulesep) [list]

  set cmd_package(\\em) [list]
  set cmd_package(\\emph) latex
  set cmd_package(\\encl) [list]
  set cmd_package(\\end) [list]
  set cmd_package(\\endfirsthead) [list]
  set cmd_package(\\endfoot) [list]
  set cmd_package(\\endhead) [list]
  set cmd_package(\\endlastfoot) [list]
  set cmd_package(\\evensidemargin) [list]
  set cmd_package(\\extracolsep) [list]

  set cmd_package(\\fbox) [list]
  set cmd_package(\\fboxrule) [list]
  set cmd_package(\\fboxsep) [list]
  set cmd_package(\\fill) [list]
................................................................................
  set cmd_package(\\typeout) [list]

  set cmd_package(\\unboldmath) [list]
  set cmd_package(\\underbrace) [list]
  set cmd_package(\\underline) [list]
  set cmd_package(\\unitlength) [list]
  set cmd_package(\\usebox) [list]
  set cmd_package(\\usepackage) [list]

  set cmd_package(\\value) [list]
  set cmd_package(\\vec) [list]
  set cmd_package(\\vector) [list]
  set cmd_package(\\verb) [list]
  set cmd_package(\\verb*) [list]
  set cmd_package(\\vfill) [list]

Changes to EvalStatement.tcl.

351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441






442



443

444
445
446
447
448

449
450
451
452
453
454
455
456
457
458
459
460
461


























































































462
463
464
465
466
467
468
...
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
...
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
    incr eval_level
if {$eval_stmt_debug > 0} {
puts "EVALOBJ 1a level!$eval_level![$script_obj_ptr toDebugString]!"
if {$eval_stmt_debug > 1} {
puts "EVALOBJ 1b level!$eval_level![$script_obj_ptr mySelf]!"
}
}
#puts "EVALOBJ2"
    set ::Interp::error_flag false

    # If the object is of type "list", with no string rep we can call
    # a specialized version of evalObj()
    if {[$script_obj_ptr isListObj] && [$script_obj_ptr getBytes] eq ""} {
      set retcode [evalObjList $script_obj_ptr $::Interp::empty_string_obj 1]
      if {$macro_cmd_level == $eval_level} {
        set had_macro_cmd false
      }
      incr eval_level -1
      return $retcode;
    }
#puts "EVALOBJ3"
    $script_obj_ptr incrRefCount "I_EVAL_STATEMENT_4";     # Make sure it's shared.
    set script [$::Interp::script_obj_type getScript $script_obj_ptr]
#puts "Evalobj3a!$script!"
    if {$script eq ""} {
      ::Interp setResultString "error in parsing script: \"$script_obj_ptr\""
      if {$macro_cmd_level == $eval_level} {
        set had_macro_cmd false
      }
      incr eval_level -1
      return [::Interp::string2ReturnCode ERROR]
    }
#puts "EVALOBJ4"
    # Reset the interpreter result. This is useful to
    # return the empty result in the case of empty program.
    ::Interp setEmptyResult

    # Check for one of the following common scripts used by for, while
    #
    #   {}
    #   incr a
    if {[[$script getScriptObject] getLen] == 0} {
      $script_obj_ptr decrRefCount "D_EVAL_STATEMENT_4"
      if {$macro_cmd_level == $eval_level} {
        set had_macro_cmd false
      }
      incr eval_level -1
      return true
    }
puts "EVALOBJ5"
    if {[[$script getScriptObject] getLen] == 3
        && [[[lindex [[$script getScriptObject] getTokens] 1] getObjptr] getObjType] == [::Interp::string2ObjType OBJ_TYPE_COMMAND]
	    && [[[[[[lindex [$script getScriptObject] getTokens] 1] getObjPtr] cmdValue_GetResolvedCmdNamePtr] getCmdPtr] getIsProc] == false
        && [[[[[[lindex [$script getScriptobject] getTokens] 1] getObjPtr] cmdValue_GetResolvedCmdNamePtr] getCmdPtr] getName] eq "incr"
        && [[[[lindex [$script getScriptObject] getTokens] 2] getObjPtr] getObjType] == [::Interp::string2ObjType OBJ_TYPE_VARIABLE]} {

      set obj_ptr [::Interp::variable_obj_type getVariable(script.script_object.tokens.get(2).obj_ptr, FUNCTION_FLAGS_NONE, var_ptr]

      if {$obj_ptr != [list] && ![$obj_ptr isShared] && [$obj_ptr getObjType] == [::Interp::string2ObjType OBJ_TYPE_INT]} {
#FIXME!!        JimWideValue(obj_ptr)++;
        $obj_ptr invalidateStringRep
        $script_obj_ptr decrRefCount "D_EVAL_STATEMENT_5"
        ::Interp::setResult $obj_ptr
        if {$macro_cmd_level == $eval_level} {
          set ad_macro_cmd false
        }
        # can only uncomment, if JimWideValue above is fixed!!
#        eval_level--;
#        return OK;
      }
    }
puts "EVALOBJ6"
    # Now we have to make sure the internal repr will not be
    # freed on shimmering.
    #
    # Think for example to this:
    #
    # set x {llength $x; ... some more code ...}; eval $x
    #
    # In order to preserve the internal rep, we increment the
    # inUse field of the script internal rep structure. 
    [$script getScriptObject] setRefCount [expr {[[$script getScriptObject] getRefCount] + 1}]
    set token [[$script getScriptObject] getTokens]
    # Execute every command sequentially until the end of the script
    # or an error occurs.
puts "EVALOBJ7"

    set i 0
    while {$i < [[$script getScriptObject] getLen] && $retcode == [::Interp::string2ReturnCode OK]} {
      set num_comments 0







      # First token of the line is always TOKEN_LINE 



puts "I0!$i!"

      set argc [[[lindex $token $i] getObjPtr] scriptLineValue_GetArgc]
puts "I!$i!$argc![::Parser::Token::token2String [[lindex $token $i] getToken]]![[[lindex $token $i] getObjPtr] toDebugString]!"
      set line_no [[[lindex $token $i] getObjPtr] scriptLineValue_GetLine]
      # Skip the TOKEN_LINE token 
      incr i

      # Populate the arguments objects.
      # If an error occurs, retcode will be set and
      # 'j' will be set to the number of args expanded
      
      set had_comment false
      set j 0
while {$j < $argc} {
if {$eval_stmt_debug > -2} {
puts "all J!$j![::Parser::Token::token2String [lindex $token [expr {$j + $i}]] getToken]![lindex $token [expr {$j + $i}] getObjPtr]!"
}              
incr j
}
      set j 0


























































































      while {$j < $argc} {
puts "J!$j!$argc!$argv!"
        set word_tokens 1
        set expand false
        set word_obj_ptr [list]

if {$eval_stmt_debug > -2} {
................................................................................
            }
          TOKEN_BRACE {
            set word_obj_ptr [[lindex $token $i] getObjPtr]
puts "BRACE reached![$word_obj_ptr toDebugString]!"
            }
          TOKEN_TAG_NAME {
            set word_obj_ptr [[lindex $token $i] getObjPtr]
puts "TAG_NAME reached![$word_obj_ptr toDebugString]!"
            }
          default {
            ::Interp::panic true "default token type reached in evalObj(): [::Parser::Token::token2String [[lindex $token $i] getToken]]"
            }
          }
        } else {
          # For interpolation we call a helper
................................................................................
            }
            break
          }
          $word_obj_ptr incrRefCount "I_EVAL_STATEMENT_6"
          if {!$expand} {
            if {!$had_comment} {
              lappend argv $word_obj_ptr
puts "lappend argv![$word_obj_ptr toDebugString]!"
            }
          } else {
            # Need to expand word_obj_ptr into multiple args from argv[j] ... 
            set len [$::Interp::list_obj_type listLength $word_obj_ptr]
            int k;
  
//print(">>>EXPAND!"+argc+"!"+len+"!"+newargc+"!"+word_obj_ptr.toDebugString()+"!");







<


<
<
<
<
<
<
<
<
<
<
<


|


<
<
<



<




<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<













|





>
>
>
>
>
>

>
>
>

>
|
|
|
|
|
>








|




>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







 







|







351
352
353
354
355
356
357

358
359











360
361
362
363
364



365
366
367

368
369
370
371












372






















373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
...
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
...
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
    incr eval_level
if {$eval_stmt_debug > 0} {
puts "EVALOBJ 1a level!$eval_level![$script_obj_ptr toDebugString]!"
if {$eval_stmt_debug > 1} {
puts "EVALOBJ 1b level!$eval_level![$script_obj_ptr mySelf]!"
}
}

    set ::Interp::error_flag false












    $script_obj_ptr incrRefCount "I_EVAL_STATEMENT_4";     # Make sure it's shared.
    set script [$::Interp::script_obj_type getScript $script_obj_ptr]
#puts "Evalobj2!$script!"
    if {$script eq ""} {
      ::Interp setResultString "error in parsing script: \"$script_obj_ptr\""



      incr eval_level -1
      return [::Interp::string2ReturnCode ERROR]
    }

    # Reset the interpreter result. This is useful to
    # return the empty result in the case of empty program.
    ::Interp setEmptyResult













puts "EVALOBJ3"






















    # Now we have to make sure the internal repr will not be
    # freed on shimmering.
    #
    # Think for example to this:
    #
    # set x {llength $x; ... some more code ...}; eval $x
    #
    # In order to preserve the internal rep, we increment the
    # inUse field of the script internal rep structure. 
    [$script getScriptObject] setRefCount [expr {[[$script getScriptObject] getRefCount] + 1}]
    set token [[$script getScriptObject] getTokens]
    # Execute every command sequentially until the end of the script
    # or an error occurs.
puts "EVALOBJ4"

    set i 0
    while {$i < [[$script getScriptObject] getLen] && $retcode == [::Interp::string2ReturnCode OK]} {
      set num_comments 0

      set next_token [[lindex $token $i] getToken]
puts "TOK![::Parser::Token::token2String $next_token]!"
      if {$next_token == [::Parser::Token::string2Token "TOKEN_COMMENT"]} {
        incr i
	continue
      }
      # First token of the line is always TOKEN_LINE 
      if {$next_token != [::Parser::Token::string2Token "TOKEN_LINE"]} {
puts stderr "unexpected token in evalObj at begin of loop!"
      }
puts "I0!$i!"
      if {$next_token == [::Parser::Token::string2Token "TOKEN_LINE"]} {
        set argc [[[lindex $token $i] getObjPtr] scriptLineValue_GetArgc]
#puts "I!$i!$argc![::Parser::Token::token2String [[lindex $token $i] getToken]]![[[lindex $token $i] getObjPtr] toDebugString]!"
        set line_no [[[lindex $token $i] getObjPtr] scriptLineValue_GetLine]
        # Skip the TOKEN_LINE token 
        incr i
      }
      # Populate the arguments objects.
      # If an error occurs, retcode will be set and
      # 'j' will be set to the number of args expanded
      
      set had_comment false
      set j 0
while {$j < $argc} {
if {$eval_stmt_debug > -2} {
puts "all J!$j![::Parser::Token::token2String [[lindex $token [expr {$j + $i}]] getToken]]![lindex $token [expr {$j + $i}] getObjPtr]!"
}              
incr j
}
      set j 0
      set next_token [[lindex $token [expr {$j + $i}]] getToken]
puts "TOK![::Parser::Token::token2String $next_token]!"
      if {$next_token == [::Parser::Token::string2Token "TOKEN_COMMENT"]} {
        incr i
	continue
      }
      if {$next_token == [::Parser::Token::string2Token "TOKEN_TAG_NAME"]} {
        # check if it is a valid command and if yes check for the correct arguments
        set my_obj_ptr [[lindex $token [expr {$j + $i}]] getObjPtr]
	set tag_name [$my_obj_ptr getString]
puts "TAG!$tag_name![::LaTeX::CommandInfo::isCommand $tag_name]![::LaTeX::CommandInfo::getCommandArgsInfo $tag_name]!"
        if {[::LaTeX::CommandInfo::isCommand $tag_name]} {
          set args_info [::LaTeX::CommandInfo::getCommandArgsInfo $tag_name]
	  switch $tag_name {
          "\\begin" {
            # special handling
            lappend argv [[lindex $token [expr {$j + $i}]] getObjPtr]
            incr j
            while {true} {
                set arg_token [[lindex $token [expr {$j + $i}]] getToken]
		if {$arg_token != [::Parser::Token::string2Token "TOKEN_BRACE"] && $arg_token != [::Parser::Token::string2Token "TOKEN_BRACKET"]} {
                  set returncode [uplevel #0 [list $tag_name] [lrange $argv 1 end]]
	          set argv [list]
                  incr i $j
                  break
                }
                lappend argv [[lindex $token [expr {$j + $i}]] getObjPtr]
                incr j
            }
	    continue
            }
          default {
puts "argc!$tag_name!$argc![llength $args_info]!"
            lappend argv [[lindex $token [expr {$j + $i}]] getObjPtr]
            incr j
            foreach arg_type $args_info {
              switch -glob $arg_type {
              m {
                # mandatory argument
                set arg_token [[lindex $token [expr {$j + $i}]] getToken]
                if {$arg_token eq [::Parser::Token::string2Token "TOKEN_BRACE"]} {
                  if {$j > $argc} {
puts stderr "$tag_name: parsing $argc tokens, need $j tokens!"
                  }
                  lappend argv [[lindex $token [expr {$j + $i}]] getObjPtr]
                  incr j
                } else {
puts stderr "missing mandatory token for $tag_name!"
                }
                }
              o {
                # optional argument
                set arg_token [[lindex $token [expr {$j + $i}]] getToken]
                if {$arg_token == [::Parser::Token::string2Token "TOKEN_BRACKET"]} {
                  if {$j > $argc} {
                  }
                  lappend argv [[lindex $token [expr {$j + $i}]] getObjPtr]
                  incr j
                } else {
                  lappend argv [list]
                }
                }
              p* {
                }
              x {
                puts stderr "unexpected arg type: $arg_type in evalObj for none \\end command!"
                }
              default {
                puts stderr "funny arg type: $arg_type in evalObj!"
                }
              }
	    }
#puts "command!$tag_name!$argv!"
            set returncode [uplevel #0 [list $tag_name] [lrange $argv 1 end]]
	    set argv [list]
            incr i $j
	    continue
            }
          }
	} else {
puts "no such latex command!$tag_name!"
          incr i
          continue
        }
      } else {
        # no tag_name
puts "additional token![::Parser::Token::token2String $next_token]!"
        incr i
	continue
      }
      while {$j < $argc} {
puts "J!$j!$argc!$argv!"
        set word_tokens 1
        set expand false
        set word_obj_ptr [list]

if {$eval_stmt_debug > -2} {
................................................................................
            }
          TOKEN_BRACE {
            set word_obj_ptr [[lindex $token $i] getObjPtr]
puts "BRACE reached![$word_obj_ptr toDebugString]!"
            }
          TOKEN_TAG_NAME {
            set word_obj_ptr [[lindex $token $i] getObjPtr]
#puts "TAG_NAME reached![$word_obj_ptr toDebugString]!"
            }
          default {
            ::Interp::panic true "default token type reached in evalObj(): [::Parser::Token::token2String [[lindex $token $i] getToken]]"
            }
          }
        } else {
          # For interpolation we call a helper
................................................................................
            }
            break
          }
          $word_obj_ptr incrRefCount "I_EVAL_STATEMENT_6"
          if {!$expand} {
            if {!$had_comment} {
              lappend argv $word_obj_ptr
# puts "lappend argv![$word_obj_ptr toDebugString]!"
            }
          } else {
            # Need to expand word_obj_ptr into multiple args from argv[j] ... 
            set len [$::Interp::list_obj_type listLength $word_obj_ptr]
            int k;
  
//print(">>>EXPAND!"+argc+"!"+len+"!"+newargc+"!"+word_obj_ptr.toDebugString()+"!");

Changes to StringObjType.tcl.

122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
    $obj_ptr strValue_SetCharLength $len
    $obj_ptr strValue_SetMaxLength $len
    if {$len == 0} {
      $obj_ptr setLen 0
      $obj_ptr setBytes ""
    } else {
      $obj_ptr setBytes ""
      $obj_ptr setBytes "[$obj_ptr getBytes][string range $str 0 $len]"
      $obj_ptr setLen $len
    }

    # No obj_type field for the vanilla string object. 
    $obj_ptr setObjType [::Interp::string2ObjType OBJ_TYPE_STRING]
    $obj_ptr setAllocated $where
    $obj_ptr setFreed ""







|







122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
    $obj_ptr strValue_SetCharLength $len
    $obj_ptr strValue_SetMaxLength $len
    if {$len == 0} {
      $obj_ptr setLen 0
      $obj_ptr setBytes ""
    } else {
      $obj_ptr setBytes ""
      $obj_ptr setBytes "[$obj_ptr getBytes][string range $str 0 [expr {$len - 1}]]"
      $obj_ptr setLen $len
    }

    # No obj_type field for the vanilla string object. 
    $obj_ptr setObjType [::Interp::string2ObjType OBJ_TYPE_STRING]
    $obj_ptr setAllocated $where
    $obj_ptr setFreed ""

Changes to latex_cmds.tcl.

8
9
10
11
12
13
14

15
16
17
18
19
20
21
...
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
...
317
318
319
320
321
322
323
324
# *
# * Released under same BSD license as Tcl.
# * (Tcl BSD license found at <http://www.tcl.tk/software/tcltk/license.html>)
# *
# * Copyright 2012 Arnulf P. Wiedemann
#=====================================================


set latex_cmds_info [list \
  [list \\+ [list] [list latex]] \
  [list \\= [list] [list latex]] \
  [list \\| [list] [list latex]] \
  [list \\< [list] [list latex]] \
  [list \\> [list] [list latex]] \
  [list "\\\(" [list] [list latex]] \
................................................................................
  [list \\vfill [list] [list]] \
  [list \\vline [list] [list]] \
  [list \\voffset [list m] [list]] \
  [list \\vspace [list m] [list]] \
  [list \\vspace* [list m] [list]] \
  [list \\widehat [list m] [list]] \
  [list \\widetilde [list m] [list]] \
\
  [list \\x [list m] [list]] \
]

set latex_environment_cmds_info [list \
  [list \\abstract [list] [list]] \
  [list \\appendix [list] [list]] \
  [list \\array [list] [list]] \
  [list \\center [list] [list]] \
................................................................................
  [list \\tabular [list] [list]] \
  [list \\thebibliography [list] [list]] \
  [list \\titlepage [list] [list]] \
  [list \\verbatim [list] [list]] \
  [list \\verbatim* [list] [list]] \
  [list \\verse [list] [list]] \
]








>







 







<
<







 







|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
...
281
282
283
284
285
286
287


288
289
290
291
292
293
294
...
316
317
318
319
320
321
322
323
# *
# * Released under same BSD license as Tcl.
# * (Tcl BSD license found at <http://www.tcl.tk/software/tcltk/license.html>)
# *
# * Copyright 2012 Arnulf P. Wiedemann
#=====================================================

if {0} {
set latex_cmds_info [list \
  [list \\+ [list] [list latex]] \
  [list \\= [list] [list latex]] \
  [list \\| [list] [list latex]] \
  [list \\< [list] [list latex]] \
  [list \\> [list] [list latex]] \
  [list "\\\(" [list] [list latex]] \
................................................................................
  [list \\vfill [list] [list]] \
  [list \\vline [list] [list]] \
  [list \\voffset [list m] [list]] \
  [list \\vspace [list m] [list]] \
  [list \\vspace* [list m] [list]] \
  [list \\widehat [list m] [list]] \
  [list \\widetilde [list m] [list]] \


]

set latex_environment_cmds_info [list \
  [list \\abstract [list] [list]] \
  [list \\appendix [list] [list]] \
  [list \\array [list] [list]] \
  [list \\center [list] [list]] \
................................................................................
  [list \\tabular [list] [list]] \
  [list \\thebibliography [list] [list]] \
  [list \\titlepage [list] [list]] \
  [list \\verbatim [list] [list]] \
  [list \\verbatim* [list] [list]] \
  [list \\verse [list] [list]] \
]
}

Changes to latex_parse.tcl.

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
...
240
241
242
243
244
245
246

247
248
249
250
251
252
253
...
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354

global gState
global gCmds
global gPackages
global gCurr


proc buildCmdList {lst} {
  global gCmds gPackages

  foreach entry $lst {
    set cmdName [lindex $entry 0]
    set myArgs [lindex $entry 1]
    set packageNames [lindex $entry 2]
    set gCmds($cmdName) $myArgs
    set gPackages($cmdName) $packageNames
  }
}

proc parseMandatoryArg {} {
  global gCurr gState

  set argStr ""
  set LC "{"
  set RC "}"
  set hadLC false
................................................................................
      incr gCurr(idx)
      }
    }
  }
  # not reached
  return true
}


proc parseLine {line} {
  global gState gCmds gCurr

#puts "parseLine!$line!"
  if {!$gState(inCommand)} {
    set curr_buffer [list]
................................................................................
    set gCurr(idx) 0
    set gCurr(lst) [split $line ""]
    set gCurr(lgth) [llength $gCurr(lst)]
  }
  return true
}

buildCmdList $latex_cmds_info

::Parser::Token::Init
::Interp::Init
::LaTeX::CommandInfo::Init
set fname [lindex $argv 0]
set fd [open $fname r]
set str [read $fd]
close $fd







|
<
<
<
<
<
<
<
<
<
<
<







 







>







 







<
<







37
38
39
40
41
42
43
44











45
46
47
48
49
50
51
...
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
...
329
330
331
332
333
334
335


336
337
338
339
340
341
342

global gState
global gCmds
global gPackages
global gCurr


if {0} {











proc parseMandatoryArg {} {
  global gCurr gState

  set argStr ""
  set LC "{"
  set RC "}"
  set hadLC false
................................................................................
      incr gCurr(idx)
      }
    }
  }
  # not reached
  return true
}
}

proc parseLine {line} {
  global gState gCmds gCurr

#puts "parseLine!$line!"
  if {!$gState(inCommand)} {
    set curr_buffer [list]
................................................................................
    set gCurr(idx) 0
    set gCurr(lst) [split $line ""]
    set gCurr(lgth) [llength $gCurr(lst)]
  }
  return true
}



::Parser::Token::Init
::Interp::Init
::LaTeX::CommandInfo::Init
set fname [lindex $argv 0]
set fd [open $fname r]
set str [read $fd]
close $fd

Changes to latex_parse_fcn.tcl.

7
8
9
10
11
12
13
14












15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248





249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
















277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080




1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
# * Implementation of the latex commands in tcl
# *
# * Released under same BSD license as Tcl.
# * (Tcl BSD license found at <http://www.tcl.tk/software/tcltk/license.html>)
# *
# * Copyright 2012 Arnulf P. Wiedemann
#=====================================================













proc \\abovedisplayskip {args} {
puts "\\abovedisplayskip called!$args!"
}

proc \\abovedisplayshortskip {args} {
puts "\\abovedisplayshortskip called!$args!"
}

proc \\acute {args} {
puts "\\acute called!$args!"
}

proc \\addcontentsline {args} {
puts "\\addcontentsline called!$args!"
}

proc \\addcounter {args} {
puts "\\addcounter called!$args!"
}

proc \\address {args} {
puts "\\address called!$args!"
}

proc \\addtocontents {args} {
puts "\\addtocontents called!$args!"
}

proc \\addtocounter {args} {
puts "\\addtocounter called!$args!"
}

proc \\addtolength {args} {
puts "\\addtolength called!$args!"
}

proc \\addvspace {args} {
puts "\\addvspace called!$args!"
}

proc \\Alph {args} {
puts "\\Alph called!$args!"
}

proc \\alph {args} {
puts "\\alph called!$args!"
}

proc \\and {args} {
puts "\\and called!$args!"
}

proc \\arabic {args} {
puts "\\arabic called!$args!"
}

proc \\arraycolsep {args} {
puts "\\arraycolsep called!$args!"
}

proc \\arrayrulewidth {args} {
puts "\\arrayrulewidth called!$args!"
}

proc \\arraystretch {args} {
puts "\\arraystretch called!$args!"
}

proc \\author {args} {
puts "\\author called!$args!"
}

proc \\bar {args} {
puts "\\bar called!$args!"
}

proc \\baselineskip {args} {
puts "\\baselineskip called!$args!"
}

proc \\begin {args} {
puts "\\begin called!$args!"
}

proc \\baselinestretch {args} {
puts "\\baselinestretch called!$args!"
}

proc \\belowdisplayskip {args} {
puts "\\belowdisplayskip called!$args!"
}

proc \\bf {args} {
puts "\\bf called!$args!"
}

proc \\bibitem {args} {
puts "\\bibitem called!$args!"
}

proc \\bigskip {args} {
puts "\\bigskip called!$args!"
}

proc \\bigskipamount {args} {
puts "\\bigskipamount called!$args!"
}

proc \\boldmath {args} {
puts "\\boldmath called!$args!"
}

proc \\bottomfraction {args} {
puts "\\bottomfraction called!$args!"
}

proc \\breve {args} {
puts "\\breve called!$args!"
}

proc \\cal {args} {
puts "\\cal called!$args!"
}

proc \\caption {args} {
puts "\\caption called!$args!"
}

proc \\cc {args} {
puts "\\cc called!$args!"
}

proc \\centering {args} {
puts "\\centering called!$args!"
}

proc \\centerline {args} {
puts "\\centerline called!$args!"
}

proc \\chapter {args} {
puts "\\chapter called!$args!"
}

proc \\chapter* {args} {
puts "\\chapter called!$args!"
}

proc \\check {args} {
puts "\\check called!$args!"
}

proc \\circle {args} {
puts "\\circle called!$args!"
}

proc \\cite {args} {
puts "\\cite called!$args!"
}

proc \\cleardoublepage {args} {
puts "\\cleardoublepage called!$args!"
}

proc \\clearpage {args} {
puts "\\clearpage called!$args!"
}

proc \\cline {args} {
puts "\\cline called!$args!"
}

proc \\closing {args} {
puts "\\closing called!$args!"
}

proc \\columnsep {args} {
puts "\\columnsep called!$args!"
}

proc \\columnseprule {args} {
puts "\\columnseprule called!$args!"
}

proc \\dashbox {args} {
puts "\\dashbox called!$args!"
}

proc \\date {args} {
puts "\\date called!$args!"
}

proc \\dblfloatpagefraction {args} {
puts "\\dblfloatpagefraction called!$args!"
}

proc \\dblfloatsep {args} {
puts "\\dblfloatsep called!$args!"
}

proc \\dbltextfloatsep {args} {
puts "\\dbltextfloatsep called!$args!"
}

proc \\dbltopfraction {args} {
puts "\\dbltopfraction called!$args!"
}

proc \\dbltopnumber {args} {
puts "\\dbltopnumber called!$args!"
}

proc \\ddot {args} {
puts "\\ddot called!$args!"
}

proc \\description {args} {
puts "\\description called!$args!"
}

proc \\discretionary {args} {
puts "\\discretionary called!$args!"
}

proc \\displaymath {args} {
puts "\\displaymath called!$args!"
}

proc \\displaystyle {args} {
puts "\\displaystyle called!$args!"
}

proc \\document {args} {
puts "\\document called!$args!"





}

proc \\documentstyle {args} {
puts "\\documentstyle called!$args!"
}

proc \\dot {args} {
puts "\\dot called!$args!"
}

proc \\dotfill {args} {
puts "\\dotfill called!$args!"
}

proc \\doublerulesep {args} {
puts "\\doublerulesep called!$args!"
}

proc \\em {args} {
puts "\\em called!$args!"
}

proc \\encl {args} {
puts "\\encl called!$args!"
}

proc \\end {args} {
puts "\\end called!$args!"
















}

proc \\enumerate {args} {
puts "\\enumerate called!$args!"
}

proc \\eqnarray {args} {
puts "\\eqnarray called!$args!"
}

proc \\equation {args} {
puts "\\equation called!$args!"
}

proc \\evensidemargin {args} {
puts "\\evensidemargin called!$args!"
}

proc \\extracolsep {args} {
puts "\\extracolsep called!$args!"
}

proc \\fbox {args} {
puts "\\fbox called!$args!"
}

proc \\fboxrule {args} {
puts "\\fboxrule called!$args!"
}

proc \\fboxsep {args} {
puts "\\fboxsep called!$args!"
}

proc \\figure {args} {
puts "\\figure called!$args!"
}

proc \\fill {args} {
puts "\\fill called!$args!"
}

proc \\floatpagefraction {args} {
puts "\\floatpagefraction called!$args!"
}

proc \\floatsep {args} {
puts "\\floatsep called!$args!"
}

proc \\flushbottom {args} {
puts "\\flushbottom called!$args!"
}

proc \\flushleft {args} {
puts "\\flushleft called!$args!"
}

proc \\flushright {args} {
puts "\\flushright called!$args!"
}

proc \\fnsymbol {args} {
puts "\\fnsymbol called!$args!"
}

proc \\footheight {args} {
puts "\\footheight called!$args!"
}

proc \\footnote {args} {
puts "\\footnote called!$args!"
}

proc \\footnotemark {args} {
puts "\\footnotemark called!$args!"
}

proc \\footnotesep {args} {
puts "\\footnotesep called!$args!"
}

proc \\footnotesize {args} {
puts "\\footnotesize called!$args!"
}

proc \\footnotetext {args} {
puts "\\footnotetext called!$args!"
}

proc \\footskip {args} {
puts "\\footskip called!$args!"
}

proc \\frac {args} {
puts "\\frac called!$args!"
}

proc \\frame {args} {
puts "\\frame called!$args!"
}

proc \\framebox {args} {
puts "\\framebox called!$args!"
}

proc \\frenchspacing {args} {
puts "\\frenchspacing called!$args!"
}

proc \\fussy {args} {
puts "\\fussy called!$args!"
}

proc \\fussypar {args} {
puts "\\fussypar called!$args!"
}

proc \\grave {args} {
puts "\\grave called!$args!"
}

proc \\hat {args} {
puts "\\hat called!$args!"
}

proc \\headheight {args} {
puts "\\headheight called!$args!"
}

proc \\headsep {args} {
puts "\\headsep called!$args!"
}

proc \\hfill {args} {
puts "\\hfill called!$args!"
}

proc \\hline {args} {
puts "\\hline called!$args!"
}

proc \\hoffset {args} {
puts "\\hoffset called!$args!"
}

proc \\hrulefill {args} {
puts "\\hrulefill called!$args!"
}

proc \\hspace {args} {
puts "\\hspace called!$args!"
}

proc \\Huge {args} {
puts "\\Huge called!$args!"
}

proc \\huge {args} {
puts "\\huge called!$args!"
}

proc \\imath {args} {
puts "\\imath called!$args!"
}

proc \\include {args} {
puts "\\include called!$args!"
}

proc \\includeonly {args} {
puts "\\includeonly called!$args!"
}

proc \\indent {args} {
puts "\\indent called!$args!"
}

proc \\input {args} {
puts "\\input called!$args!"
}

proc \\intextsep {args} {
puts "\\intextsep called!$args!"
}

proc \\it {args} {
puts "\\it called!$args!"
}

proc \\item {args} {
puts "\\item called!$args!"
}

proc \\itemize {args} {
puts "\\itemize called!$args!"
}

proc \\itemsep {args} {
puts "\\itemsep called!$args!"
}

proc \\jmath {args} {
puts "\\jmath called!$args!"
}

proc \\jot {args} {
puts "\\jot called!$args!"
}

proc \\kill {args} {
puts "\\kill called!$args!"
}

proc \\label {args} {
puts "\\label called!$args!"
}

proc \\LARGE {args} {
puts "\\LARGE called!$args!"
}

proc \\Large {args} {
puts "\\Large called!$args!"
}

proc \\large {args} {
puts "\\large called!$args!"
}

proc \\LaTeX {args} {
puts "\\LaTeX called!$args!"
}

proc \\letter {args} {
puts "\\letter called!$args!"
}

proc \\line {args} {
puts "\\line called!$args!"
}

proc \\linebreak {args} {
puts "\\linebreak called!$args!"
}

proc \\linethickness {args} {
puts "\\linethickness called!$args!"
}

proc \\listoffigures {args} {
puts "\\listoffigures called!$args!"
}

proc \\listoftables {args} {
puts "\\listoftables called!$args!"
}

proc \\makebox {args} {
puts "\\makebox called!$args!"
}

proc \\maketitle {args} {
puts "\\maketitle called!$args!"
}

proc \\marginpar {args} {
puts "\\marginpar called!$args!"
}

proc \\marginparpush {args} {
puts "\\marginparpush called!$args!"
}

proc \\marginparsep {args} {
puts "\\marginparsep called!$args!"
}

proc \\marginparwidth {args} {
puts "\\marginparwidth called!$args!"
}

proc \\markboth {args} {
puts "\\markboth called!$args!"
}

proc \\markright {args} {
puts "\\markright called!$args!"
}

proc \\math {args} {
puts "\\math called!$args!"
}

proc \\mathindent {args} {
puts "\\mathindent called!$args!"
}

proc \\mbox {args} {
puts "\\mbox called!$args!"
}

proc \\medskip {args} {
puts "\\medskip called!$args!"
}

proc \\medskipamount {args} {
puts "\\medskipamount called!$args!"
}

proc \\minipage {args} {
puts "\\minipage called!$args!"
}

proc \\multicolumn {args} {
puts "\\multicolumn called!$args!"
}

proc \\multiput {args} {
puts "\\multiput called!$args!"
}

proc \\name {args} {
puts "\\name called!$args!"
}

proc \\newcommand {args} {
puts "\\newcommand called!$args!"
}

proc \\newcounter {args} {
puts "\\newcounter called!$args!"
}

proc \\newenvironment {args} {
puts "\\newenvironment called!$args!"
}

proc \\newfont {args} {
puts "\\newfont called!$args!"
}

proc \\newlength {args} {
puts "\\newlength called!$args!"
}

proc \\newline {args} {
puts "\\newline called!$args!"
}

proc \\newpage {args} {
puts "\\newpage called!$args!"
}

proc \\newsavebox {args} {
puts "\\newsavebox called!$args!"
}

proc \\newtheorem {args} {
puts "\\newtheorem called!$args!"
}

proc \\noindent {args} {
puts "\\noindent called!$args!"
}

proc \\nolinebreak {args} {
puts "\\nolinebreak called!$args!"
}

proc \\nonfrenchspacing {args} {
puts "\\nonfrenchspacing called!$args!"
}

proc \\nonumber {args} {
puts "\\nonumber called!$args!"
}

proc \\nopagebreak {args} {
puts "\\nopagebreak called!$args!"
}

proc \\normalmarginpar {args} {
puts "\\normalmarginpar called!$args!"
}

proc \\normalsize {args} {
puts "\\normalsize called!$args!"
}

proc \\numberline {args} {
puts "\\numberline called!$args!"
}

proc \\oddsidemargin {args} {
puts "\\oddsidemargin called!$args!"
}

proc \\onecolumn {args} {
puts "\\onecolumn called!$args!"
}

proc \\opening {args} {
puts "\\opening called!$args!"
}

proc \\oval {args} {
puts "\\oval called!$args!"
}

proc \\overbrace {args} {
puts "\\overbrace called!$args!"
}

proc \\overline {args} {
puts "\\overline called!$args!"
}

proc \\pagebreak {args} {
puts "\\pagebreak called!$args!"
}

proc \\pagenumbering {args} {
puts "\\pagenumbering called!$args!"
}

proc \\pageref {args} {
puts "\\pageref called!$args!"
}

proc \\pagestyle {args} {
puts "\\pagestyle called!$args!"
}

proc \\par {args} {
puts "\\par called!$args!"
}

proc \\paragraph {args} {
puts "\\paragraph called!$args!"
}

proc \\parbox {args} {
puts "\\parbox called!$args!"
}

proc \\parindent {args} {
puts "\\parindent called!$args!"
}

proc \\parsep {args} {
puts "\\parsep called!$args!"
}

proc \\parskip {args} {
puts "\\parskip called!$args!"
}

proc \\part {args} {
puts "\\part called!$args!"
}

proc \\picture {args} {
puts "\\picture called!$args!"
}

proc \\poptabs {args} {
puts "\\poptabs called!$args!"
}

proc \\protect {args} {
puts "\\protect called!$args!"
}

proc \\ps {args} {
puts "\\ps called!$args!"
}

proc \\pushtabs {args} {
puts "\\pushtabs called!$args!"
}

proc \\put {args} {
puts "\\put called!$args!"
}

proc \\quotation {args} {
puts "\\quotation called!$args!"
}

proc \\quote {args} {
puts "\\quote called!$args!"
}

proc \\raggedbottom {args} {
puts "\\raggedbottom called!$args!"
}

proc \\raggedleft {args} {
puts "\\raggedleft called!$args!"
}

proc \\raggedright {args} {
puts "\\raggedright called!$args!"
}

proc \\raisebox {args} {
puts "\\raisebox called!$args!"
}

proc \\ref {args} {
puts "\\ref called!$args!"
}

proc \\refstepcounter {args} {
puts "\\refstepcounter called!$args!"
}

proc \\renewcommand {args} {
puts "\\renewcommand called!$args!"
}

proc \\renewenvironment {args} {
puts "\\renewenvironment called!$args!"
}

proc \\reversemarginpar {args} {
puts "\\reversemarginpar called!$args!"
}

proc \\rm {args} {
puts "\\rm called!$args!"
}

proc \\Roman {args} {
puts "\\Roman called!$args!"
}

proc \\roman {args} {
puts "\\roman called!$args!"
}

proc \\rule {args} {
puts "\\rule called!$args!"
}

proc \\samepage {args} {
puts "\\samepage called!$args!"
}

proc \\savebox {args} {
puts "\\savebox called!$args!"
}

proc \\sbox {args} {
puts "\\sbox called!$args!"
}

proc \\sc {args} {
puts "\\sc called!$args!"
}

proc \\scriptscriptstyle {args} {
puts "\\scriptscriptstyle called!$args!"
}

proc \\scriptsize {args} {
puts "\\scriptsize called!$args!"
}

proc \\scriptstyle {args} {
puts "\\scriptstyle called!$args!"
}

proc \\section {args} {
puts "\\section called!$args!"
}

proc \\setcounter {args} {
puts "\\setcounter called!$args!"
}

proc \\setlanguage {args} {
puts "\\setlanguage called!$args!"
}

proc \\setlength {args} {
puts "\\setlength called!$args!"
}

proc \\settowidth {args} {
puts "\\settowidth called!$args!"
}

proc \\sf {args} {
puts "\\sf called!$args!"
}

proc \\shortstack {args} {
puts "\\shortstack called!$args!"
}

proc \\signature {args} {
puts "\\signature called!$args!"
}

proc \\sl {args} {
puts "\\sl called!$args!"
}

proc \\sloppy {args} {
puts "\\sloppy called!$args!"
}

proc \\sloppypar {args} {
puts "\\sloppypar called!$args!"
}

proc \\small {args} {
puts "\\small called!$args!"
}

proc \\smallskip {args} {
puts "\\smallskip called!$args!"
}

proc \\smallskipamount {args} {
puts "\\smallskipamount called!$args!"
}

proc \\sqrt {args} {
puts "\\sqrt called!$args!"
}

proc \\stackrel {args} {
puts "\\stackrel called!$args!"
}

proc \\stepcounter {args} {
puts "\\stepcounter called!$args!"
}

proc \\subparagraph {args} {
puts "\\subparagraph called!$args!"
}

proc \\subsection {args} {
puts "\\subsection called!$args!"
}

proc \\subsubsection {args} {
puts "\\subsubsection called!$args!"
}

proc \\symbol {args} {
puts "\\symbol called!$args!"
}

proc \\tabbing {args} {
puts "\\tabbing called!$args!"
}

proc \\tabbingsep {args} {
puts "\\tabbingsep called!$args!"
}

proc \\tabcolsep {args} {
puts "\\tabcolsep called!$args!"
}

proc \\table {args} {
puts "\\table called!$args!"
}

proc \\tableofcontents {args} {
puts "\\tableofcontents called!$args!"
}

proc \\tabular {args} {
puts "\\tabular called!$args!"
}

proc \\TeX {args} {
puts "\\TeX called!$args!"
}

proc \\textfraction {args} {
puts "\\textfraction called!$args!"
}

proc \\textfloatsep {args} {
puts "\\textfloatsep called!$args!"
}

proc \\textheight {args} {
puts "\\textheight called!$args!"
}

proc \\textstyle {args} {
puts "\\textstyle called!$args!"
}

proc \\textwidth {args} {
puts "\\textwidth called!$args!"
}

proc \\thanks {args} {
puts "\\thanks called!$args!"
}

proc \\thebibliography {args} {
puts "\\thebibliography called!$args!"
}

proc \\thicklines {args} {
puts "\\thicklines called!$args!"
}

proc \\thinlines {args} {
puts "\\thinlines called!$args!"
}

proc \\thispagestyle {args} {
puts "\\thispagestyle called!$args!"
}

proc \\tilde {args} {
puts "\\tilde called!$args!"
}

proc \\tiny {args} {
puts "\\tiny called!$args!"
}

proc \\title {args} {
puts "\\title called!$args!"
}

proc \\titlepage {args} {
puts "\\titlepage called!$args!"
}

proc \\today {args} {
puts "\\today called!$args!"
}

proc \\topfraction {args} {
puts "\\topfraction called!$args!"
}

proc \\topmargin {args} {
puts "\\topmargin called!$args!"
}

proc \\topnumber {args} {
puts "\\topnumber called!$args!"
}

proc \\topsep {args} {
puts "\\topsep called!$args!"
}

proc \\topskip {args} {
puts "\\topskip called!$args!"
}

proc \\totalnumber {args} {
puts "\\totalnumber called!$args!"
}

proc \\tt {args} {
puts "\\tt called!$args!"
}

proc \\twocolumn {args} {
puts "\\twocolumn called!$args!"
}

proc \\typein {args} {
puts "\\typein called!$args!"
}

proc \\typeout {args} {
puts "\\typeout called!$args!"
}

proc \\unboldmath {args} {
puts "\\unboldmath called!$args!"
}

proc \\underbrace {args} {
puts "\\underbrace called!$args!"
}

proc \\underline {args} {
puts "\\underline called!$args!"
}

proc \\unitlength {args} {
puts "\\unitlength called!$args!"
}

proc \\usebox {args} {
puts "\\usebox called!$args!"




}

proc \\value {args} {
puts "\\value called!$args!"
}

proc \\vec {args} {
puts "\\vec called!$args!"
}

proc \\vector {args} {
puts "\\vector called!$args!"
}

proc \\verb {args} {
puts "\\verb called!$args!"
}

proc \\verbatim {args} {
puts "\\verbatim called!$args!"
}

proc \\verse {args} {
puts "\\verse called!$args!"
}

proc \\vfill {args} {
puts "\\vfill called!$args!"
}

proc \\vline {args} {
puts "\\vline called!$args!"
}

proc \\voffset {args} {
puts "\\voffset called!$args!"
}

proc \\vspace {args} {
puts "\\vspace called!$args!"
}

proc \\widehat {args} {
puts "\\widehat called!$args!"
}

proc \\widetilde {args} {
puts "\\widetilde called!$args!"
}








>
>
>
>
>
>
>
>
>
>
>
>

|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|
>
>
>
>
>



|



|



|



|



|



|



|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|



|
>
>
>
>



|



|



|



|



|



|



|



|



|



|



|



|

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
# * Implementation of the latex commands in tcl
# *
# * Released under same BSD license as Tcl.
# * (Tcl BSD license found at <http://www.tcl.tk/software/tcltk/license.html>)
# *
# * Copyright 2012 Arnulf P. Wiedemann
#=====================================================

proc showArgs {args} {
  set str ""
  foreach arg $args {
    if {$arg eq ""} {
      append str "!"
    } else {
      append str "![$arg toString]"
    }
  }
  return $str
}

proc \\abovedisplayskip {args} {
puts "\\abovedisplayskip called![uplevel #0 showArgs $args]!"
}

proc \\abovedisplayshortskip {args} {
puts "\\abovedisplayshortskip called![uplevel #0 showArgs $args]!"
}

proc \\acute {args} {
puts "\\acute called![uplevel #0 showArgs $args]!"
}

proc \\addcontentsline {args} {
puts "\\addcontentsline called![uplevel #0 showArgs $args]!"
}

proc \\addcounter {args} {
puts "\\addcounter called![uplevel #0 showArgs $args]!"
}

proc \\address {args} {
puts "\\address called![uplevel #0 showArgs $args]!"
}

proc \\addtocontents {args} {
puts "\\addtocontents called![uplevel #0 showArgs $args]!"
}

proc \\addtocounter {args} {
puts "\\addtocounter called![uplevel #0 showArgs $args]!"
}

proc \\addtolength {args} {
puts "\\addtolength called![uplevel #0 showArgs $args]!"
}

proc \\addvspace {args} {
puts "\\addvspace called![uplevel #0 showArgs $args]!"
}

proc \\Alph {args} {
puts "\\Alph called![uplevel #0 showArgs $args]!"
}

proc \\alph {args} {
puts "\\alph called![uplevel #0 showArgs $args]!"
}

proc \\and {args} {
puts "\\and called![uplevel #0 showArgs $args]!"
}

proc \\arabic {args} {
puts "\\arabic called![uplevel #0 showArgs $args]!"
}

proc \\arraycolsep {args} {
puts "\\arraycolsep called![uplevel #0 showArgs $args]!"
}

proc \\arrayrulewidth {args} {
puts "\\arrayrulewidth called![uplevel #0 showArgs $args]!"
}

proc \\arraystretch {args} {
puts "\\arraystretch called![uplevel #0 showArgs $args]!"
}

proc \\author {args} {
puts "\\author called![uplevel #0 showArgs $args]!"
}

proc \\bar {args} {
puts "\\bar called![uplevel #0 showArgs $args]!"
}

proc \\baselineskip {args} {
puts "\\baselineskip called![uplevel #0 showArgs $args]!"
}

proc \\begin {args} {
puts "\\begin called![uplevel #0 showArgs $args]!"
}

proc \\baselinestretch {args} {
puts "\\baselinestretch called![uplevel #0 showArgs $args]!"
}

proc \\belowdisplayskip {args} {
puts "\\belowdisplayskip called![uplevel #0 showArgs $args]!"
}

proc \\bf {args} {
puts "\\bf called![uplevel #0 showArgs $args]!"
}

proc \\bibitem {args} {
puts "\\bibitem called![uplevel #0 showArgs $args]!"
}

proc \\bigskip {args} {
puts "\\bigskip called![uplevel #0 showArgs $args]!"
}

proc \\bigskipamount {args} {
puts "\\bigskipamount called![uplevel #0 showArgs $args]!"
}

proc \\boldmath {args} {
puts "\\boldmath called![uplevel #0 showArgs $args]!"
}

proc \\bottomfraction {args} {
puts "\\bottomfraction called![uplevel #0 showArgs $args]!"
}

proc \\breve {args} {
puts "\\breve called![uplevel #0 showArgs $args]!"
}

proc \\cal {args} {
puts "\\cal called![uplevel #0 showArgs $args]!"
}

proc \\caption {args} {
puts "\\caption called![uplevel #0 showArgs $args]!"
}

proc \\cc {args} {
puts "\\cc called![uplevel #0 showArgs $args]!"
}

proc \\centering {args} {
puts "\\centering called![uplevel #0 showArgs $args]!"
}

proc \\centerline {args} {
puts "\\centerline called![uplevel #0 showArgs $args]!"
}

proc \\chapter {args} {
puts "\\chapter called![uplevel #0 showArgs $args]!"
}

proc \\chapter* {args} {
puts "\\chapter called![uplevel #0 showArgs $args]!"
}

proc \\check {args} {
puts "\\check called![uplevel #0 showArgs $args]!"
}

proc \\circle {args} {
puts "\\circle called![uplevel #0 showArgs $args]!"
}

proc \\cite {args} {
puts "\\cite called![uplevel #0 showArgs $args]!"
}

proc \\cleardoublepage {args} {
puts "\\cleardoublepage called![uplevel #0 showArgs $args]!"
}

proc \\clearpage {args} {
puts "\\clearpage called![uplevel #0 showArgs $args]!"
}

proc \\cline {args} {
puts "\\cline called![uplevel #0 showArgs $args]!"
}

proc \\closing {args} {
puts "\\closing called![uplevel #0 showArgs $args]!"
}

proc \\columnsep {args} {
puts "\\columnsep called![uplevel #0 showArgs $args]!"
}

proc \\columnseprule {args} {
puts "\\columnseprule called![uplevel #0 showArgs $args]!"
}

proc \\dashbox {args} {
puts "\\dashbox called![uplevel #0 showArgs $args]!"
}

proc \\date {args} {
puts "\\date called![uplevel #0 showArgs $args]!"
}

proc \\dblfloatpagefraction {args} {
puts "\\dblfloatpagefraction called![uplevel #0 showArgs $args]!"
}

proc \\dblfloatsep {args} {
puts "\\dblfloatsep called![uplevel #0 showArgs $args]!"
}

proc \\dbltextfloatsep {args} {
puts "\\dbltextfloatsep called![uplevel #0 showArgs $args]!"
}

proc \\dbltopfraction {args} {
puts "\\dbltopfraction called![uplevel #0 showArgs $args]!"
}

proc \\dbltopnumber {args} {
puts "\\dbltopnumber called![uplevel #0 showArgs $args]!"
}

proc \\ddot {args} {
puts "\\ddot called![uplevel #0 showArgs $args]!"
}

proc \\description {args} {
puts "\\description called![uplevel #0 showArgs $args]!"
}

proc \\discretionary {args} {
puts "\\discretionary called![uplevel #0 showArgs $args]!"
}

proc \\displaymath {args} {
puts "\\displaymath called![uplevel #0 showArgs $args]!"
}

proc \\displaystyle {args} {
puts "\\displaystyle called![uplevel #0 showArgs $args]!"
}

proc \\document {args} {
puts "\\document called![uplevel #0 showArgs $args]!"
}

proc \\documentclass {args} {
puts "\\documentclass called![uplevel #0 showArgs $args]![llength $args]!"
#puts "\\documentclass called![uplevel #0 showArgs $args]!"
}

proc \\documentstyle {args} {
puts "\\documentstyle called![uplevel #0 showArgs $args]!"
}

proc \\dot {args} {
puts "\\dot called![uplevel #0 showArgs $args]!"
}

proc \\dotfill {args} {
puts "\\dotfill called![uplevel #0 showArgs $args]!"
}

proc \\doublerulesep {args} {
puts "\\doublerulesep called![uplevel #0 showArgs $args]!"
}

proc \\em {args} {
puts "\\em called![uplevel #0 showArgs $args]!"
}

proc \\encl {args} {
puts "\\encl called![uplevel #0 showArgs $args]!"
}

proc \\end {args} {
puts "\\end called![uplevel #0 showArgs $args]!"
}

proc \\endfirsthead {args} {
puts "\\endfirsthead called![uplevel #0 showArgs $args]!"
}

proc \\endfoot {args} {
puts "\\endfoot called![uplevel #0 showArgs $args]!"
}

proc \\endhead {args} {
puts "\\endhead called![uplevel #0 showArgs $args]!"
}

proc \\endlastfoot {args} {
puts "\\endlastfoot called![uplevel #0 showArgs $args]!"
}

proc \\enumerate {args} {
puts "\\enumerate called![uplevel #0 showArgs $args]!"
}

proc \\eqnarray {args} {
puts "\\eqnarray called![uplevel #0 showArgs $args]!"
}

proc \\equation {args} {
puts "\\equation called![uplevel #0 showArgs $args]!"
}

proc \\evensidemargin {args} {
puts "\\evensidemargin called![uplevel #0 showArgs $args]!"
}

proc \\extracolsep {args} {
puts "\\extracolsep called![uplevel #0 showArgs $args]!"
}

proc \\fbox {args} {
puts "\\fbox called![uplevel #0 showArgs $args]!"
}

proc \\fboxrule {args} {
puts "\\fboxrule called![uplevel #0 showArgs $args]!"
}

proc \\fboxsep {args} {
puts "\\fboxsep called![uplevel #0 showArgs $args]!"
}

proc \\figure {args} {
puts "\\figure called![uplevel #0 showArgs $args]!"
}

proc \\fill {args} {
puts "\\fill called![uplevel #0 showArgs $args]!"
}

proc \\floatpagefraction {args} {
puts "\\floatpagefraction called![uplevel #0 showArgs $args]!"
}

proc \\floatsep {args} {
puts "\\floatsep called![uplevel #0 showArgs $args]!"
}

proc \\flushbottom {args} {
puts "\\flushbottom called![uplevel #0 showArgs $args]!"
}

proc \\flushleft {args} {
puts "\\flushleft called![uplevel #0 showArgs $args]!"
}

proc \\flushright {args} {
puts "\\flushright called![uplevel #0 showArgs $args]!"
}

proc \\fnsymbol {args} {
puts "\\fnsymbol called![uplevel #0 showArgs $args]!"
}

proc \\footheight {args} {
puts "\\footheight called![uplevel #0 showArgs $args]!"
}

proc \\footnote {args} {
puts "\\footnote called![uplevel #0 showArgs $args]!"
}

proc \\footnotemark {args} {
puts "\\footnotemark called![uplevel #0 showArgs $args]!"
}

proc \\footnotesep {args} {
puts "\\footnotesep called![uplevel #0 showArgs $args]!"
}

proc \\footnotesize {args} {
puts "\\footnotesize called![uplevel #0 showArgs $args]!"
}

proc \\footnotetext {args} {
puts "\\footnotetext called![uplevel #0 showArgs $args]!"
}

proc \\footskip {args} {
puts "\\footskip called![uplevel #0 showArgs $args]!"
}

proc \\frac {args} {
puts "\\frac called![uplevel #0 showArgs $args]!"
}

proc \\frame {args} {
puts "\\frame called![uplevel #0 showArgs $args]!"
}

proc \\framebox {args} {
puts "\\framebox called![uplevel #0 showArgs $args]!"
}

proc \\frenchspacing {args} {
puts "\\frenchspacing called![uplevel #0 showArgs $args]!"
}

proc \\fussy {args} {
puts "\\fussy called![uplevel #0 showArgs $args]!"
}

proc \\fussypar {args} {
puts "\\fussypar called![uplevel #0 showArgs $args]!"
}

proc \\grave {args} {
puts "\\grave called![uplevel #0 showArgs $args]!"
}

proc \\hat {args} {
puts "\\hat called![uplevel #0 showArgs $args]!"
}

proc \\headheight {args} {
puts "\\headheight called![uplevel #0 showArgs $args]!"
}

proc \\headsep {args} {
puts "\\headsep called![uplevel #0 showArgs $args]!"
}

proc \\hfill {args} {
puts "\\hfill called![uplevel #0 showArgs $args]!"
}

proc \\hline {args} {
puts "\\hline called![uplevel #0 showArgs $args]!"
}

proc \\hoffset {args} {
puts "\\hoffset called![uplevel #0 showArgs $args]!"
}

proc \\hrulefill {args} {
puts "\\hrulefill called![uplevel #0 showArgs $args]!"
}

proc \\hspace {args} {
puts "\\hspace called![uplevel #0 showArgs $args]!"
}

proc \\Huge {args} {
puts "\\Huge called![uplevel #0 showArgs $args]!"
}

proc \\huge {args} {
puts "\\huge called![uplevel #0 showArgs $args]!"
}

proc \\imath {args} {
puts "\\imath called![uplevel #0 showArgs $args]!"
}

proc \\include {args} {
puts "\\include called![uplevel #0 showArgs $args]!"
}

proc \\includeonly {args} {
puts "\\includeonly called![uplevel #0 showArgs $args]!"
}

proc \\indent {args} {
puts "\\indent called![uplevel #0 showArgs $args]!"
}

proc \\input {args} {
puts "\\input called![uplevel #0 showArgs $args]!"
}

proc \\intextsep {args} {
puts "\\intextsep called![uplevel #0 showArgs $args]!"
}

proc \\it {args} {
puts "\\it called![uplevel #0 showArgs $args]!"
}

proc \\item {args} {
puts "\\item called![uplevel #0 showArgs $args]!"
}

proc \\itemize {args} {
puts "\\itemize called![uplevel #0 showArgs $args]!"
}

proc \\itemsep {args} {
puts "\\itemsep called![uplevel #0 showArgs $args]!"
}

proc \\jmath {args} {
puts "\\jmath called![uplevel #0 showArgs $args]!"
}

proc \\jot {args} {
puts "\\jot called![uplevel #0 showArgs $args]!"
}

proc \\kill {args} {
puts "\\kill called![uplevel #0 showArgs $args]!"
}

proc \\label {args} {
puts "\\label called![uplevel #0 showArgs $args]!"
}

proc \\LARGE {args} {
puts "\\LARGE called![uplevel #0 showArgs $args]!"
}

proc \\Large {args} {
puts "\\Large called![uplevel #0 showArgs $args]!"
}

proc \\large {args} {
puts "\\large called![uplevel #0 showArgs $args]!"
}

proc \\LaTeX {args} {
puts "\\LaTeX called![uplevel #0 showArgs $args]!"
}

proc \\letter {args} {
puts "\\letter called![uplevel #0 showArgs $args]!"
}

proc \\line {args} {
puts "\\line called![uplevel #0 showArgs $args]!"
}

proc \\linebreak {args} {
puts "\\linebreak called![uplevel #0 showArgs $args]!"
}

proc \\linethickness {args} {
puts "\\linethickness called![uplevel #0 showArgs $args]!"
}

proc \\listoffigures {args} {
puts "\\listoffigures called![uplevel #0 showArgs $args]!"
}

proc \\listoftables {args} {
puts "\\listoftables called![uplevel #0 showArgs $args]!"
}

proc \\makebox {args} {
puts "\\makebox called![uplevel #0 showArgs $args]!"
}

proc \\maketitle {args} {
puts "\\maketitle called![uplevel #0 showArgs $args]!"
}

proc \\marginpar {args} {
puts "\\marginpar called![uplevel #0 showArgs $args]!"
}

proc \\marginparpush {args} {
puts "\\marginparpush called![uplevel #0 showArgs $args]!"
}

proc \\marginparsep {args} {
puts "\\marginparsep called![uplevel #0 showArgs $args]!"
}

proc \\marginparwidth {args} {
puts "\\marginparwidth called![uplevel #0 showArgs $args]!"
}

proc \\markboth {args} {
puts "\\markboth called![uplevel #0 showArgs $args]!"
}

proc \\markright {args} {
puts "\\markright called![uplevel #0 showArgs $args]!"
}

proc \\math {args} {
puts "\\math called![uplevel #0 showArgs $args]!"
}

proc \\mathindent {args} {
puts "\\mathindent called![uplevel #0 showArgs $args]!"
}

proc \\mbox {args} {
puts "\\mbox called![uplevel #0 showArgs $args]!"
}

proc \\medskip {args} {
puts "\\medskip called![uplevel #0 showArgs $args]!"
}

proc \\medskipamount {args} {
puts "\\medskipamount called![uplevel #0 showArgs $args]!"
}

proc \\minipage {args} {
puts "\\minipage called![uplevel #0 showArgs $args]!"
}

proc \\multicolumn {args} {
puts "\\multicolumn called![uplevel #0 showArgs $args]!"
}

proc \\multiput {args} {
puts "\\multiput called![uplevel #0 showArgs $args]!"
}

proc \\name {args} {
puts "\\name called![uplevel #0 showArgs $args]!"
}

proc \\newcommand {args} {
puts "\\newcommand called![uplevel #0 showArgs $args]!"
}

proc \\newcounter {args} {
puts "\\newcounter called![uplevel #0 showArgs $args]!"
}

proc \\newenvironment {args} {
puts "\\newenvironment called![uplevel #0 showArgs $args]!"
}

proc \\newfont {args} {
puts "\\newfont called![uplevel #0 showArgs $args]!"
}

proc \\newlength {args} {
puts "\\newlength called![uplevel #0 showArgs $args]!"
}

proc \\newline {args} {
puts "\\newline called![uplevel #0 showArgs $args]!"
}

proc \\newpage {args} {
puts "\\newpage called![uplevel #0 showArgs $args]!"
}

proc \\newsavebox {args} {
puts "\\newsavebox called![uplevel #0 showArgs $args]!"
}

proc \\newtheorem {args} {
puts "\\newtheorem called![uplevel #0 showArgs $args]!"
}

proc \\noindent {args} {
puts "\\noindent called![uplevel #0 showArgs $args]!"
}

proc \\nolinebreak {args} {
puts "\\nolinebreak called![uplevel #0 showArgs $args]!"
}

proc \\nonfrenchspacing {args} {
puts "\\nonfrenchspacing called![uplevel #0 showArgs $args]!"
}

proc \\nonumber {args} {
puts "\\nonumber called![uplevel #0 showArgs $args]!"
}

proc \\nopagebreak {args} {
puts "\\nopagebreak called![uplevel #0 showArgs $args]!"
}

proc \\normalmarginpar {args} {
puts "\\normalmarginpar called![uplevel #0 showArgs $args]!"
}

proc \\normalsize {args} {
puts "\\normalsize called![uplevel #0 showArgs $args]!"
}

proc \\numberline {args} {
puts "\\numberline called![uplevel #0 showArgs $args]!"
}

proc \\oddsidemargin {args} {
puts "\\oddsidemargin called![uplevel #0 showArgs $args]!"
}

proc \\onecolumn {args} {
puts "\\onecolumn called![uplevel #0 showArgs $args]!"
}

proc \\opening {args} {
puts "\\opening called![uplevel #0 showArgs $args]!"
}

proc \\oval {args} {
puts "\\oval called![uplevel #0 showArgs $args]!"
}

proc \\overbrace {args} {
puts "\\overbrace called![uplevel #0 showArgs $args]!"
}

proc \\overline {args} {
puts "\\overline called![uplevel #0 showArgs $args]!"
}

proc \\pagebreak {args} {
puts "\\pagebreak called![uplevel #0 showArgs $args]!"
}

proc \\pagenumbering {args} {
puts "\\pagenumbering called![uplevel #0 showArgs $args]!"
}

proc \\pageref {args} {
puts "\\pageref called![uplevel #0 showArgs $args]!"
}

proc \\pagestyle {args} {
puts "\\pagestyle called![uplevel #0 showArgs $args]!"
}

proc \\par {args} {
puts "\\par called![uplevel #0 showArgs $args]!"
}

proc \\paragraph {args} {
puts "\\paragraph called![uplevel #0 showArgs $args]!"
}

proc \\parbox {args} {
puts "\\parbox called![uplevel #0 showArgs $args]!"
}

proc \\parindent {args} {
puts "\\parindent called![uplevel #0 showArgs $args]!"
}

proc \\parsep {args} {
puts "\\parsep called![uplevel #0 showArgs $args]!"
}

proc \\parskip {args} {
puts "\\parskip called![uplevel #0 showArgs $args]!"
}

proc \\part {args} {
puts "\\part called![uplevel #0 showArgs $args]!"
}

proc \\picture {args} {
puts "\\picture called![uplevel #0 showArgs $args]!"
}

proc \\poptabs {args} {
puts "\\poptabs called![uplevel #0 showArgs $args]!"
}

proc \\protect {args} {
puts "\\protect called![uplevel #0 showArgs $args]!"
}

proc \\ps {args} {
puts "\\ps called![uplevel #0 showArgs $args]!"
}

proc \\pushtabs {args} {
puts "\\pushtabs called![uplevel #0 showArgs $args]!"
}

proc \\put {args} {
puts "\\put called![uplevel #0 showArgs $args]!"
}

proc \\quotation {args} {
puts "\\quotation called![uplevel #0 showArgs $args]!"
}

proc \\quote {args} {
puts "\\quote called![uplevel #0 showArgs $args]!"
}

proc \\raggedbottom {args} {
puts "\\raggedbottom called![uplevel #0 showArgs $args]!"
}

proc \\raggedleft {args} {
puts "\\raggedleft called![uplevel #0 showArgs $args]!"
}

proc \\raggedright {args} {
puts "\\raggedright called![uplevel #0 showArgs $args]!"
}

proc \\raisebox {args} {
puts "\\raisebox called![uplevel #0 showArgs $args]!"
}

proc \\ref {args} {
puts "\\ref called![uplevel #0 showArgs $args]!"
}

proc \\refstepcounter {args} {
puts "\\refstepcounter called![uplevel #0 showArgs $args]!"
}

proc \\renewcommand {args} {
puts "\\renewcommand called![uplevel #0 showArgs $args]!"
}

proc \\renewenvironment {args} {
puts "\\renewenvironment called![uplevel #0 showArgs $args]!"
}

proc \\reversemarginpar {args} {
puts "\\reversemarginpar called![uplevel #0 showArgs $args]!"
}

proc \\rm {args} {
puts "\\rm called![uplevel #0 showArgs $args]!"
}

proc \\Roman {args} {
puts "\\Roman called![uplevel #0 showArgs $args]!"
}

proc \\roman {args} {
puts "\\roman called![uplevel #0 showArgs $args]!"
}

proc \\rule {args} {
puts "\\rule called![uplevel #0 showArgs $args]!"
}

proc \\samepage {args} {
puts "\\samepage called![uplevel #0 showArgs $args]!"
}

proc \\savebox {args} {
puts "\\savebox called![uplevel #0 showArgs $args]!"
}

proc \\sbox {args} {
puts "\\sbox called![uplevel #0 showArgs $args]!"
}

proc \\sc {args} {
puts "\\sc called![uplevel #0 showArgs $args]!"
}

proc \\scriptscriptstyle {args} {
puts "\\scriptscriptstyle called![uplevel #0 showArgs $args]!"
}

proc \\scriptsize {args} {
puts "\\scriptsize called![uplevel #0 showArgs $args]!"
}

proc \\scriptstyle {args} {
puts "\\scriptstyle called![uplevel #0 showArgs $args]!"
}

proc \\section {args} {
puts "\\section called![uplevel #0 showArgs $args]!"
}

proc \\setcounter {args} {
puts "\\setcounter called![uplevel #0 showArgs $args]!"
}

proc \\setlanguage {args} {
puts "\\setlanguage called![uplevel #0 showArgs $args]!"
}

proc \\setlength {args} {
puts "\\setlength called![uplevel #0 showArgs $args]!"
}

proc \\settowidth {args} {
puts "\\settowidth called![uplevel #0 showArgs $args]!"
}

proc \\sf {args} {
puts "\\sf called![uplevel #0 showArgs $args]!"
}

proc \\shortstack {args} {
puts "\\shortstack called![uplevel #0 showArgs $args]!"
}

proc \\signature {args} {
puts "\\signature called![uplevel #0 showArgs $args]!"
}

proc \\sl {args} {
puts "\\sl called![uplevel #0 showArgs $args]!"
}

proc \\sloppy {args} {
puts "\\sloppy called![uplevel #0 showArgs $args]!"
}

proc \\sloppypar {args} {
puts "\\sloppypar called![uplevel #0 showArgs $args]!"
}

proc \\small {args} {
puts "\\small called![uplevel #0 showArgs $args]!"
}

proc \\smallskip {args} {
puts "\\smallskip called![uplevel #0 showArgs $args]!"
}

proc \\smallskipamount {args} {
puts "\\smallskipamount called![uplevel #0 showArgs $args]!"
}

proc \\sqrt {args} {
puts "\\sqrt called![uplevel #0 showArgs $args]!"
}

proc \\stackrel {args} {
puts "\\stackrel called![uplevel #0 showArgs $args]!"
}

proc \\stepcounter {args} {
puts "\\stepcounter called![uplevel #0 showArgs $args]!"
}

proc \\subparagraph {args} {
puts "\\subparagraph called![uplevel #0 showArgs $args]!"
}

proc \\subsection {args} {
puts "\\subsection called![uplevel #0 showArgs $args]!"
}

proc \\subsubsection {args} {
puts "\\subsubsection called![uplevel #0 showArgs $args]!"
}

proc \\symbol {args} {
puts "\\symbol called![uplevel #0 showArgs $args]!"
}

proc \\tabbing {args} {
puts "\\tabbing called![uplevel #0 showArgs $args]!"
}

proc \\tabbingsep {args} {
puts "\\tabbingsep called![uplevel #0 showArgs $args]!"
}

proc \\tabcolsep {args} {
puts "\\tabcolsep called![uplevel #0 showArgs $args]!"
}

proc \\table {args} {
puts "\\table called![uplevel #0 showArgs $args]!"
}

proc \\tableofcontents {args} {
puts "\\tableofcontents called![uplevel #0 showArgs $args]!"
}

proc \\tabular {args} {
puts "\\tabular called![uplevel #0 showArgs $args]!"
}

proc \\TeX {args} {
puts "\\TeX called![uplevel #0 showArgs $args]!"
}

proc \\textfraction {args} {
puts "\\textfraction called![uplevel #0 showArgs $args]!"
}

proc \\textfloatsep {args} {
puts "\\textfloatsep called![uplevel #0 showArgs $args]!"
}

proc \\textheight {args} {
puts "\\textheight called![uplevel #0 showArgs $args]!"
}

proc \\textstyle {args} {
puts "\\textstyle called![uplevel #0 showArgs $args]!"
}

proc \\textwidth {args} {
puts "\\textwidth called![uplevel #0 showArgs $args]!"
}

proc \\thanks {args} {
puts "\\thanks called![uplevel #0 showArgs $args]!"
}

proc \\thebibliography {args} {
puts "\\thebibliography called![uplevel #0 showArgs $args]!"
}

proc \\thicklines {args} {
puts "\\thicklines called![uplevel #0 showArgs $args]!"
}

proc \\thinlines {args} {
puts "\\thinlines called![uplevel #0 showArgs $args]!"
}

proc \\thispagestyle {args} {
puts "\\thispagestyle called![uplevel #0 showArgs $args]!"
}

proc \\tilde {args} {
puts "\\tilde called![uplevel #0 showArgs $args]!"
}

proc \\tiny {args} {
puts "\\tiny called![uplevel #0 showArgs $args]!"
}

proc \\title {args} {
puts "\\title called![uplevel #0 showArgs $args]!"
}

proc \\titlepage {args} {
puts "\\titlepage called![uplevel #0 showArgs $args]!"
}

proc \\today {args} {
puts "\\today called![uplevel #0 showArgs $args]!"
}

proc \\topfraction {args} {
puts "\\topfraction called![uplevel #0 showArgs $args]!"
}

proc \\topmargin {args} {
puts "\\topmargin called![uplevel #0 showArgs $args]!"
}

proc \\topnumber {args} {
puts "\\topnumber called![uplevel #0 showArgs $args]!"
}

proc \\topsep {args} {
puts "\\topsep called![uplevel #0 showArgs $args]!"
}

proc \\topskip {args} {
puts "\\topskip called![uplevel #0 showArgs $args]!"
}

proc \\totalnumber {args} {
puts "\\totalnumber called![uplevel #0 showArgs $args]!"
}

proc \\tt {args} {
puts "\\tt called![uplevel #0 showArgs $args]!"
}

proc \\twocolumn {args} {
puts "\\twocolumn called![uplevel #0 showArgs $args]!"
}

proc \\typein {args} {
puts "\\typein called![uplevel #0 showArgs $args]!"
}

proc \\typeout {args} {
puts "\\typeout called![uplevel #0 showArgs $args]!"
}

proc \\unboldmath {args} {
puts "\\unboldmath called![uplevel #0 showArgs $args]!"
}

proc \\underbrace {args} {
puts "\\underbrace called![uplevel #0 showArgs $args]!"
}

proc \\underline {args} {
puts "\\underline called![uplevel #0 showArgs $args]!"
}

proc \\unitlength {args} {
puts "\\unitlength called![uplevel #0 showArgs $args]!"
}

proc \\usebox {args} {
puts "\\usebox called![uplevel #0 showArgs $args]!"
}

proc \\usepackage {args} {
puts "\\usepackage called![uplevel #0 showArgs $args]!"
}

proc \\value {args} {
puts "\\value called![uplevel #0 showArgs $args]!"
}

proc \\vec {args} {
puts "\\vec called![uplevel #0 showArgs $args]!"
}

proc \\vector {args} {
puts "\\vector called![uplevel #0 showArgs $args]!"
}

proc \\verb {args} {
puts "\\verb called![uplevel #0 showArgs $args]!"
}

proc \\verbatim {args} {
puts "\\verbatim called![uplevel #0 showArgs $args]!"
}

proc \\verse {args} {
puts "\\verse called![uplevel #0 showArgs $args]!"
}

proc \\vfill {args} {
puts "\\vfill called![uplevel #0 showArgs $args]!"
}

proc \\vline {args} {
puts "\\vline called![uplevel #0 showArgs $args]!"
}

proc \\voffset {args} {
puts "\\voffset called![uplevel #0 showArgs $args]!"
}

proc \\vspace {args} {
puts "\\vspace called![uplevel #0 showArgs $args]!"
}

proc \\widehat {args} {
puts "\\widehat called![uplevel #0 showArgs $args]!"
}

proc \\widetilde {args} {
puts "\\widetilde called![uplevel #0 showArgs $args]!"
}