[NTG-context] Syntax highlighting for C-code
Hi, I've tried to include some C-code into my document, but failed to enable syntax highlighting. Tested on: linux-64, context-2011.05.18 (same with the beta) stand-alone mkIV 1) \starttyping[option=C] just prints verbatim text. There seems to be no formatter for C out of the box. 2) t-vim did not work. It failed somewhere (unknown command sequence \installspacehandler) on loading (\usemodule[vim]) 3) http://wiki.contextgarden.net/Verbatim_text I tried to download pret-c and put it into the modules folder, but writing \installprettytype[C][C] failed, because it's not known (in mkIV). 4) mkII does not complain to exec \installprettytype[C][C], but this does not change anything either. \starttyping[option=C] seems to call a (maybe builtin?) formatter, but I could not get colors to work. I'm also lost in the documentation, because there are many places talking about syntax-highlighting. Does this thing work for anybody or is ist just my installation? Thanks Richard ___ 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 ___
[NTG-context] figure captions in the margin
Hello, I want to have captions for figures, listings and other stuff inside the document margin. I saw that someone asked a very similar question 3 years ago: http://archive.contextgarden.net/message/20061025.211202.c2e04f8c.en.html Does somebody know whether it is possible and how it is possible to place the caption of a figure in the margin? yes, actually i implemented this last week but i need to update the details manual; captions can go in margins, hang in centered figures, there is support for all kind of inner/outer alignments etc Hans said, that he had already implemented that feature, but in fact it still doesn't work. So the code \setupcaptions[location=outermargin] \starttext \placefigure{Caption}{\framed{Figuur}} \stoptext still prints no caption at all. I am using Ubuntu 8.04 and ConTeXt from the repositories. Is this version too old? Thank You. Richard ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] figure captions in the margin
Hello, I want to have captions for figures, listings and other stuff inside the document margin. I saw that somone asked a very similar question 3 years ago: http://archive.contextgarden.net/message/20061025.211202.c2e04f8c.en.html Does somebody know whether it is possible and how it is possible to place the caption of a figure in the margin? yes, actually i implemented this last week but i need to update the details manual; captions can go in margins, hang in centered figures, there is support for all kind of inner/outer alignments etc Hans said, that he had already implemented that feature, but in fact it still doesn't work. So the code \setupcaptions[location=outermargin] \starttext \placefigure{Caption}{\framed{Figuur}} \stoptext still prints no caption at all. Am I missing something? Thank You. Best regards Richard ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___