From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84039 Path: news.gmane.org!not-for-mail From: Romain Diss Newsgroups: gmane.comp.tex.context Subject: How to redefine \section temporaly? Date: Sat, 31 Aug 2013 23:10:07 +0200 Message-ID: <3738642.m1qO42jPmq@nereid> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2030585906==" X-Trace: ger.gmane.org 1377983452 32381 80.91.229.3 (31 Aug 2013 21:10:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Aug 2013 21:10:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 31 23:10:55 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VFsRb-0002xR-3z for gctc-ntg-context-518@m.gmane.org; Sat, 31 Aug 2013 23:10:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B92D310203; Sat, 31 Aug 2013 23:09:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1k5wBJKsacG1; Sat, 31 Aug 2013 23:09:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C672F10200; Sat, 31 Aug 2013 23:09:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DFBF310200 for ; Sat, 31 Aug 2013 23:09:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ppAJglhS6V5l for ; Sat, 31 Aug 2013 23:08:56 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 0795A101F7 for ; Sat, 31 Aug 2013 23:08:55 +0200 (CEST) Original-Received: from nm6.bullet.mail.ird.yahoo.com (nm6.bullet.mail.ird.yahoo.com [77.238.189.63]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7VLAuUM004776 for ; Sat, 31 Aug 2013 23:11:02 +0200 Original-Received: from [77.238.189.53] by nm6.bullet.mail.ird.yahoo.com with NNFMP; 31 Aug 2013 21:10:14 -0000 Original-Received: from [46.228.39.88] by tm6.bullet.mail.ird.yahoo.com with NNFMP; 31 Aug 2013 21:10:14 -0000 Original-Received: from [127.0.0.1] by smtp125.mail.ir2.yahoo.com with NNFMP; 31 Aug 2013 21:10:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1377983414; bh=KlZqTZelLu+mn9iwMWAYksqizSx00pjePxK7frknroI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type; b=wC0kKaCytDduAMxdKv9NzCBMh5+SUx6gJ0CdSDq96XlkaDuh4WzlyUy+DbJEx3wHY64ZCWdKcwqpZcLhpbAVgjQolZ8X/1xazoR1O/kPS+hTyetk5M3qKfLEs8mQ5tdMuCv23YXfotQnz/D3bTKPYIJy2oss3piBLgV1EHnLYt4= X-Yahoo-Newman-Id: 640866.26615.bm@smtp125.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: g.KlkqAVM1nsBxw8Z.3f01lRdaVIgpLWZgYEcMOLGxMj7pG GLAAjjz20RNdlMiGXrZvbhsN7E4u1gf2LuUdwxb9HUz4D0nXghE.zYfCW20N Zca7kIHFvkZw3H8z5RZY8FJWes5gvefgWzrykUtPvMwAcrp55SYdYNlluTmc hm1ByQxRYA8FQ5dFaE3O.c6klEtOUHBjDlmGgWnJ7YhqLCt76fC5l_97PN51 hmXedheqGaKIH75uzCKesG_yNGiF2a4d58xsXPXTm5C6dAMV_UNRC7Sli4Nm S0TJKgDDudf8kajcg7oSUHO9wym335MHLDTuch9o4VkKmGCLJp9ADZzMJzrb qJTgxEFZdUMCQR6sza9cDst0e60lnRFA3xuDk9Hi9tWPh40nsmkQqEFRRVch Ud5tcXT_5R_UZCn_Jl7VsN.paj0wz4zoLtxTPrUTayF1ri9Z3sLIvQD9KdIN M92LrxLTE7VlozZdsYA.buF2pCG7uvrNqOs8TsvF9qU3srSlCkKdmcw.JRqZ 1iqRKsTVx0nOMAYHzeDR9nvJlL4Kqx1e.k2yF X-Yahoo-SMTP: S1hYNv6swBAmdDgiTrR1jsHHwRWtJLYt X-Rocket-Received: from nereid.localnet (romain.diss@89.226.19.105 with ) by smtp125.mail.ir2.yahoo.com with SMTP; 31 Aug 2013 21:10:14 +0000 UTC User-Agent: KMail/4.10.5 (Linux/3.10-2-amd64; KDE/4.10.5; x86_64; ; ) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=77.238.189.63; country=GB; latitude=51.5000; longitude=-0.1300; http://maps.google.com/maps?q=51.5000,-0.1300&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KjxaUQ1 - 8c723f172279 - 20130831 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84039 Archived-At: --===============2030585906== Content-Type: multipart/signed; boundary="nextPart2104854.qEsA6P5iA1"; micalg="pgp-sha1"; protocol="application/pgp-signature" --nextPart2104854.qEsA6P5iA1 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Hi all, I wrote some articles with context and they contain (of course) sections. Now I have to include all these articles in a book but each article should become a section of the book. So I wonder if there is a way to convert the \section command of the article files into \subsection in the book. Minimal not working (but supposed to explain my problem) example: %%% article.tex \startsection[title=A first point] ... \stopsection \startsection[title=A second point] ... \stopsection %%% book.tex % command to make the \section of the input articles become \subsection % commands \startsection[title=My first article] \input article \stopsection %%% end I know I can change the \section commands of the article.tex into \ArticleSection and switch with \definehead[ArticleSection][section] \definehead[ArticleSection][subsection] depending of the context, but it would be better (for me) to not modify the article.tex files. Any ideas? Thank in advance. -- Romain Diss --nextPart2104854.qEsA6P5iA1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iQIcBAABAgAGBQJSIlu0AAoJEI9TCE0QdFrFpZMQAJHC82lyJESSlaS+YaPckcrB uWeVDWcoDZb9KDC/nGyCUG27d6A52YOMmfXppt88SkaJdcW9xkqvKp225dSnLWE8 MjXKNnwIMerDmZf2UJvFyZ2EL966dw7HDv6Gek4vXv3HyNL9Tb+WYRM2R8Ql4jTq R5XrmFmDT0Il5IQZCknJ4ZkVcHgOJJfc8zk8NukDz14WWNmQeN4bFobnWuyy5wqb PYkJLoIhxPknlvSUQ093gattRIl56z5ec6JWa4kbNJi8s46STmRjoB4owLFB365C A0aq5/2AwY6/xadXpy/2grFQrM8dYXSO3MhXn2JUYs+KJYTBFg5BR+FI9ZBKbfq+ FSqQCJIDvY5IsrDWlSjlYIylkAbG3U+9N7xyJiQVMKG+dL5p1/6Stiq6w4i2kb5I XLIa/A8w0zSwKQvpVYSckZtx7ElyzFXG+XqOmhDyROm8+cay9epzQN9S5iCq4D8f /TknxC8ZkZvo7NweaiOKDwtPsBzQD00tSAv9L9JXvqNz9324JSE0QUPnjzoWrdQ9 ngps0ULMExrwhKwQULJSKcA9KzZCipuFLwbZDBodZviRLx5mYI213Ed7QF5OOEKL 9V1nysfd+4iaOch72jPnlyecWnu1lDBCK3HIqUhb/xp/Jusu3RDbv+sI7/gTFOuI o6IszBDx8ig7GjQHHdgv =oQi7 -----END PGP SIGNATURE----- --nextPart2104854.qEsA6P5iA1-- --===============2030585906== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2030585906==--