Am 15.08.2011 um 17:29 schrieb Cecil Westerhof:

> 2011/8/15 Wolfgang Schuster <schuster.wolfg...@googlemail.com>
>> 2011/8/15 Cecil Westerhof <cldwester...@gmail.com>
>> While writing the documentation about using ConTeXt I need some 'special' 
>> characters. A few I have found, for example \%, \backslash, \texttilde, 
>> \percent. But until now I did not find how to represent [ and ]. How would I 
>> use those characters in my document?
>> 
>> Also: is there somewhere a 'complete' list? I found several, but they where 
>> all for LaTeX and are not completely the same. For example LaTeX uses 
>> \textbackslash which does not work in ConTeXt which uses \backslash.
>> 
>> I could not find it at first (there are so many things), but one solution I 
>> found:
>>     \startasciimode
>>     %\backslash setupbackend[export=yes,xhtml=yes,css=yes]
>>     \stopasciimode
>> 
>> And while searching a little further I also found:
>>     \type{    %\setupbackend[export=yes,xhtml=yes,css=yes]}
>> 
>> This has the added benefit that it displays somewhat better because of the 
>> increased indentation (for which I misuse spaces).
> 
> \setuptyping[margin=yes]
> 
> \starttext
> 
> before
> 
> \starttyping
> \setupbackend[export=yes]
> \stoptyping
> 
> after
> 
> \stoptext
> 
> Very nice. I now use:
>     \setuptyping[
>       blank=small,
>       lines=no,
>       margin=30pt,
>     ]
> 
> I have a bigger margin now. The problem is that there is a lot of white space 
> above and under the typed text. I tried the blank and lines parameters to get 
> rid of it, but that does not work. How can I get rid of the unwanted white 
> space?

You need \setuptyping[margin=30pt,before=,after=].

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to