From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80711 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: block with different formatting per line? Date: Wed, 6 Feb 2013 14:45:44 -0500 (EST) Message-ID: References: <510C4CBA.3010806@ingohohmann.de> <5112AD35.9010405@meahan.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360179957 4473 80.91.229.3 (6 Feb 2013 19:45:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2013 19:45:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 06 20:46:18 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U3Awi-0003Yl-ID for gctc-ntg-context-518@m.gmane.org; Wed, 06 Feb 2013 20:46:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC7D010259; Wed, 6 Feb 2013 20:45:57 +0100 (CET) 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 uQjItyLsZ+Ny; Wed, 6 Feb 2013 20:45:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2C5A3101FD; Wed, 6 Feb 2013 20:45:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 23620101FD for ; Wed, 6 Feb 2013 20:45:53 +0100 (CET) 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 aNsAd8S0Ykhu for ; Wed, 6 Feb 2013 20:45:51 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id C6E2E101F7 for ; Wed, 6 Feb 2013 20:45:51 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r16JXpVQ011435 for ; Wed, 6 Feb 2013 20:33:52 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 5112B2E9.EA5E0.14631 ; Authuser adityam; 6 Feb 2013 14:45:46 EST In-Reply-To: <5112AD35.9010405@meahan.net> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIV7xPtr - cec118e456b3 - 20130206 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:80711 Archived-At: On Wed, 6 Feb 2013, Bill Meahan wrote: > On 02/01/2013 06:16 PM, Ingo Hohmann wrote: >> Hi, >> >> is it possible to define a block, where lines are automatically formatted >> differently? >> For example: >> first line in caps, >> second in bold, >> others normal. >> >> Is this possible? And how? > > My #1 "Wish List" item for ConTeXt is /allowing/ "stylesheets" at the > paragraph level. That would allow closer correspondence with what CSS/CSS3, > Scribus, ODT, EPUB3 &al do and make it much easier to write transformation > scripts whether XSLT, lua code, Perl code or whatever favorite tool one > wishes to use. > > I envision something like (psuedo code): > > \setupstylesheet[myparagraphstyle] > [font=AccanthisADF, > fontsize=12pt, > fontstyle=italic, > alignment=justified, > frame=no, > color=blue, > width=\textwidth, > &c .... > ] > > \starttext > > \startparagraph[style=mystylesheet] > \input tufte > \stopparagraph > > \input knuth > > \stoptext framedtext already does most of this (except that it makes the paragraphs unbreakable across pages). I don't remember if backgrounds has all the relevant keys. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________