       prv_nr                   += +1
       Q.key                    ?= "h#{prv_nr}"
       send [ 'tex', "\\#{prefix}x{#{Q.key}}", ]
+    #.......................................................................................................
+    else
+      send event
+
+#-----------------------------------------------------------------------------------------------------------
+@MKTX.$insert = ( S ) =>
+  #.........................................................................................................
+  return $ ( event, send ) =>
+    if select event, '.', 'insert'
+      send stamp event
+      [ type, name, Q, meta, ]  = event
+      path    = HELPERS.resolve_document_relative_path S, Q.src
+      content = njs_fs.readFileSync path, { encoding: 'utf-8', }
+      switch Q.mode ? 'literal'
+        when 'literal'
+          send [ '.', 'text', content, ( copy meta ), ]
+        when 'mkts'
+          send [ '.', 'mktscript', content, ( copy meta ), ]
+        when 'raw'
+          send [ 'tex', content, ]
+        else
+          send [ '.', 'warning', "unknown mode #{rpr Q.mode} in #{rpr event}", ( copy meta ), ]
     #.......................................................................................................
     else
       send event

  plugins_tee = D.combine pipeline
  #.......................................................................................................
  readstream
    .pipe @MKTX.SH.$spawn                                   S
    .pipe @MKTX.CALL.$call_await                            S
    .pipe @MKTX.CALL.$call_stream                           S

      [ type, name, Q, meta, ] = event
      send stamp event
      send [ 'tex', "\\mktsXfsc{#{Q.sc}}{#{Q.symbol}}", ]
    #.......................................................................................................
    else
      send event

#-----------------------------------------------------------------------------------------------------------
@MKTX.INLINE.$hfill = ( S ) =>
  #.........................................................................................................
  return $ ( event, send ) =>
    if select event, '.', [ 'hfil', 'hfill', ]
      [ type, name, Q, meta, ] = event
      send stamp event
      send [ 'tex', "\\#{name}{}", ]
    #.......................................................................................................
    else
      send event
