ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bill Meahan <subscribed_lists@meahan.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: block with different formatting per line?
Date: Wed, 06 Feb 2013 14:21:25 -0500	[thread overview]
Message-ID: <5112AD35.9010405@meahan.net> (raw)
In-Reply-To: <510C4CBA.3010806@ingohohmann.de>

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

The output would have the tufte quote formatted according to my 
stylesheet and knuth in whatever the global style is.

The style parameter in the start/stop paragraph would, of course, be 
/optional/ so existing documents would be unchanged from current 
behavior but allow the introduction of paragraph styles.

-- 
Bill Meahan
Westland, Michigan USA

___________________________________________________________________________________
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:21 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 [this message]
2013-02-06 19:43   ` Paragraph formatting (was: block with different formatting per line?) Wolfgang Schuster
2013-02-06 19:45   ` block with different formatting per line? Aditya Mahajan

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=5112AD35.9010405@meahan.net \
    --to=subscribed_lists@meahan.net \
    --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).