From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19986 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: typing questions Date: Tue, 19 Apr 2005 19:14:37 +0200 (CEST) Message-ID: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1113930789 21693 80.91.229.2 (19 Apr 2005 17:13:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2005 17:13:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 19 19:13:05 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNwGn-00026c-Ia for gctc-ntg-context-518@m.gmane.org; Tue, 19 Apr 2005 19:12:17 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F158127E2; Tue, 19 Apr 2005 19:16:28 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05972-03; Tue, 19 Apr 2005 19:16:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A58B7127CB; Tue, 19 Apr 2005 19:16:24 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 56277127CB for ; Tue, 19 Apr 2005 19:16:23 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06017-06 for ; Tue, 19 Apr 2005 19:16:22 +0200 (CEST) Original-Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by ronja.ntg.nl (Postfix) with ESMTP id 9C93A127BF for ; Tue, 19 Apr 2005 19:16:22 +0200 (CEST) Original-Received: from gaston.free.fr (rennes-1-62-147-97-147.dial.proxad.net [62.147.97.147]) by postfix3-2.free.fr (Postfix) with ESMTP id B03E3C088 for ; Tue, 19 Apr 2005 19:16:21 +0200 (CEST) Original-Received: by gaston.free.fr (Postfix, from userid 500) id F1AAB13C049; Tue, 19 Apr 2005 19:14:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.free.fr (Postfix) with ESMTP id 59D10148077 for ; Tue, 19 Apr 2005 19:14:37 +0200 (CEST) X-X-Sender: peter@gaston.free.fr Original-To: ConTeXt list X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19986 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19986 Hello, here a few questions about typing: - Is there a module for pretty-printing C-code? - How could I change the tabulator-width? - First tab is only 7 spaces, the other 8, why? - How could I embed ConTeXt macros? - Where does the vertical space in \framed come from? Some of these questions are illustrated in the following example: \starttext \starttyping void test() { 12345678 the first characters of the next lines are tabulations int i; for(i = 0; i < 10; i++) do_something(); 1234567812345678 Here I would like to \embed{ some context-code } } \stoptyping \framed[align=lohi, top=\vskip-1.8\baselineskip,bottom=\vskip-0.8\baselineskip]{% \starttyping Why do we need special top and bottom options? type type type type type type \stoptyping } \stoptext Thanks in advance for any help! Cheers, Peter -- http://pmrb.free.fr/contact/