ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* t-vim module problems
@ 2012-01-14 16:12 Wagner Macedo
  0 siblings, 0 replies; only message in thread
From: Wagner Macedo @ 2012-01-14 16:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 973 bytes --]

Taking the message about "Syntax highlighting for C-code", I tried to use
t-vim module.

In that message:

Richard Weickelt wrote:

> 2) t-vim did not work. It failed somewhere (unknown command sequence
> \installspacehandler) on loading (\usemodule[vim])


I can confirm this on latest Beta, downloaded today, ver: 2012.01.12 11:03
MKIV  fmt: 2012.1.14  int: english/english. I attached the log file.

On my current version (2011.05.18 18:04), I can compile the file, but the
code cannot be viewed on generated PDF.

The content of file I'm trying to compile is below.

% teste.tex
\usemodule[vim]

\definevimtyping[C][syntax=C]
\definevimtyping[ruby][syntax=ruby]

\starttext

\startitemize
  \item A hello world example in C
    \startC
      #include<stdio.h>

      int main()
      {
        printf("Hello World")
      }
    \stopC
  \item A hello world example in ruby
    \startruby
      puts "Hello World"
    \stopruby
\stopitemize

\stoptext

--
Wagner Macedo

[-- Attachment #1.2: Type: text/html, Size: 1311 bytes --]

[-- Attachment #2: log_2012.01.12.txt --]
[-- Type: text/plain, Size: 6735 bytes --]


mtx-context     | run 1: luatex --fmt="/home/wagner/Programs/context_beta/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/home/wagner/Programs/context_beta/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./teste.tex" \stoptext
This is LuaTeX, Version beta-0.70.1-2011051918 (rev 4277) 
 \write18 enabled.
(teste.tex
jobcontrol      > version mismatch with jobfile: 1.14 <> 1.17

ConTeXt  ver: 2012.01.12 11:03 MKIV  fmt: 2012.1.14  int: english/english

system          > cont-new.mkiv loaded
(/home/wagner/Programs/context_beta/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > teste.top loaded
(teste.top
)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'vim'
(../home/wagner/Programs/context_beta/tex/texmf-modules/tex/context/third/vim/t-vim.tex
loading         > Vim syntax highlighting (ver: 2011.12.28)
resolvers       > modules > loaded: 'filter'
(../home/wagner/Programs/context_beta/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading         > Filter (ver: 2011.12.27)
resolvers       > modules > loaded: 'module-catcodes'
(../home/wagner/Programs/context_beta/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading         > Module Catcodes (ver: 2011.12.17)
))
resolvers       > modules > loaded: 'syntax-highlight'
(../home/wagner/Programs/context_beta/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv
loading         > Code syntax highlighting (ver: 2011.12.28)
resolvers       > modules > loaded: 'syntax-groups'
(../home/wagner/Programs/context_beta/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex
loading         > Syntax highlighting groups (ver: 2012.01.03)
resolvers       > modules > already loaded: 'module-catcodes'
)
resolvers       > modules > already loaded: 'filter'
! Undefined control sequence.

system          > tex > error on line 181 in file teste.tex: Undefined control sequence ...


l.181 \installspacehandler
                           {\syntaxhighlighting@namespace\v!on}
! Undefined control sequence.

system          > tex > error on line 189 in file teste.tex: Undefined control sequence ...


l.189 \installspacehandler
                           {\syntaxhighlighting@namespace\v!off}
! Undefined control sequence.

system          > tex > error on line 195 in file teste.tex: Undefined control sequence ...


l.195 \installspacehandler
                           {\syntaxhighlighting@namespace}
)){/home/wagner/Programs/context_beta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
(/home/wagner/Programs/context_beta/tex/texmf-context/tex/context/base/type-otf.mkiv)
files           > readfile > asked name: 'loc', not found
{/home/wagner/Programs/context_beta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/wagner/Programs/context_beta/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
t-filter        > command : vim -u NONE --noplugin -e -s -C -n -c "set tabstop=4" -c "syntax on" -c "set syntax=C" -c "let contextstartline=1" -c "let contextstopline=0" -c "let strip=0" -c "let escapecomments=0" -c "let highlight=[]" -c "source 2context.vim" -c "qa" teste-temp-C-0.tmp teste-temp-C-0.vimout
(teste-temp-C-0.vimout)
t-filter        > command : vim -u NONE --noplugin -e -s -C -n -c "set tabstop=4" -c "syntax on" -c "set syntax=ruby" -c "let contextstartline=1" -c "let contextstopline=0" -c "let strip=0" -c "let escapecomments=0" -c "let highlight=[]" -c "source 2context.vim" -c "qa" teste-temp-ruby-0.tmp teste-temp-ruby-0.vimout
(teste-temp-ruby-0.vimout)
backend         > xmp > using file '/home/wagner/Programs/context_beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
 ){/home/wagner/Programs/context_beta/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}</home/wagner/Programs/context_beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf></home/wagner/Programs/context_beta/tex/texmf/fonts/type1/public/lm/lmsy10.pfb>
mkiv lua stats  > used config file          - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - /home/wagner/Programs/context_beta/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats  > resource resolver         - loadtime 0.007 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 61 found files, scanned paths: 
mkiv lua stats  > stored bytecode data      - 301 modules, 65 tables, 366 chunks
mkiv lua stats  > cleaned up reserved nodes - 39 nodes, 9 lists of 428
mkiv lua stats  > node memory usage         - 2 glue, 3 penalty, 9 attribute, 28 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 6 instances (re)created, 2483 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded tex modules        - 5 requested, 5 found (*-filter *-module-catcodes *-syntax-groups *-syntax-highlight *-vim), 0 missing
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > jobdata time              - 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks                 - 2646 direct, 3915 indirect, 6561 total
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls
mkiv lua stats  > result saved in file      - teste.pdf
mkiv lua stats  > loaded fonts              - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time           - 0.248 seconds 
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051918 (rev 4277)
mkiv lua stats  > control sequences         - 32635 of 65536 + 100000
mkiv lua stats  > current memory usage      - 45 MB (ctx: 46 MB)
mkiv lua stats  > runtime                   - 1.041 seconds, 1 processed pages, 1 shipped pages, 0.961 pages/second

mtx-context     | fatal error: return code: 1

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-14 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-14 16:12 t-vim module problems Wagner Macedo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).