ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: block with different formatting per line?
Date: Wed, 6 Feb 2013 14:45:44 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.02.1302061443301.25867@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <5112AD35.9010405@meahan.net>

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
___________________________________________________________________________________


      parent reply	other threads:[~2013-02-06 19:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 23:16 Ingo Hohmann
2013-02-03  3:56 ` Rogers, Michael K
2013-02-04 15:16   ` Ingo Hohmann
2013-02-06  6:04   ` Ingo Hohmann
2013-02-06 13:29     ` Wolfgang Schuster
2013-02-06 15:00       ` Ingo Hohmann
2013-02-07  4:32     ` Rogers, Michael K
2013-02-06 19:21 ` Bill Meahan
2013-02-06 19:43   ` Paragraph formatting (was: block with different formatting per line?) Wolfgang Schuster
2013-02-06 19:45   ` Aditya Mahajan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.02.1302061443301.25867@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).