From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48988 Path: news.gmane.org!not-for-mail From: zikmua1@fel.cvut.cz Newsgroups: gmane.comp.tex.context Subject: Typesetting C code Date: Wed, 01 Apr 2009 20:17:28 +0200 Message-ID: <20090401201728.14254qc6uvv58uyg@wimap.feld.cvut.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="Yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238654748 10917 80.91.229.12 (2 Apr 2009 06:45:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2009 06:45:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 02 08:47:06 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LpGha-0000KE-MV for gctc-ntg-context-518@m.gmane.org; Thu, 02 Apr 2009 08:47:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2CDB01FAD7; Thu, 2 Apr 2009 08:45:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17730-04; Thu, 2 Apr 2009 08:44:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F15171FB38; Thu, 2 Apr 2009 08:44:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 948761FA60 for ; Wed, 1 Apr 2009 20:17:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29121-02 for ; Wed, 1 Apr 2009 20:17:35 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id 35A711FA41 for ; Wed, 1 Apr 2009 20:17:35 +0200 (CEST) Original-Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n31IHYDj026453 for ; Wed, 1 Apr 2009 20:17:34 +0200 Original-Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 4470819F33E0 for ; Wed, 1 Apr 2009 20:17:34 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Original-Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id vY51qhsxtWme for ; Wed, 1 Apr 2009 20:17:30 +0200 (CEST) Original-Received: from wimap.feld.cvut.cz (wimap.feld.cvut.cz [147.32.192.127]) by max.feld.cvut.cz (Postfix) with ESMTP id 0055C19F334B for ; Wed, 1 Apr 2009 20:17:28 +0200 (CEST) Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=147.32.192.36; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 202504833 - e11c379eb80c - 20090401 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Thu, 02 Apr 2009 08:44:40 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48988 Archived-At: Can someone help me with typesetting C code. I tried typeset JAVA code with followed command \startJV import java.text.DateFormat; public class MainClass(){ } \stopJV and output was OK. I use predefine typing environment (verbatim) If I use predefine environment for C code, \startC #include int main(){ return 0; } \stopC the compiler report error. Please, can you help me with typesetting C code. Thanks very much. ___________________________________________________________________________________ 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 ___________________________________________________________________________________