ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* header for indented text / blockquote
@ 2011-05-06 10:00 R. Ermers
  2011-05-06 10:10 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: R. Ermers @ 2011-05-06 10:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear All,

In my docbook xml document I have fragments that I want to typeset indented. For this I use the tag <blockquote> which I map to startnarrower and stopnarrower.

Some blockquotes in my document have a header:

<blockquote>
<title>How a cow catches a rabbit</title>
<para>Text Text</para>
</blockquote>

I was wondering if the header could be setup just like sections and section headers in the following way:

\startnarrower[title={title}, reference=reference]
....
\stopnarrower

Perhaps I need to create a new environment (blockquote) with these qualities?

The title and the reference to the section (and subsections) can now easily be matched to lpath variables (much easier than when \section  in fact refers to the section title).

Another question related to this is how to can typeset the text of the blockquote in two columns, while its header is typeset over the full page.

Kind regards,

Robert
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header for indented text / blockquote
  2011-05-06 10:00 header for indented text / blockquote R. Ermers
@ 2011-05-06 10:10 ` Wolfgang Schuster
  2011-05-06 12:43   ` R. Ermers
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-05-06 10:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.05.2011 um 12:00 schrieb R. Ermers:

> Dear All,
> 
> In my docbook xml document I have fragments that I want to typeset indented. For this I use the tag <blockquote> which I map to startnarrower and stopnarrower.
> 
> Some blockquotes in my document have a header:
> 
> <blockquote>
> <title>How a cow catches a rabbit</title>
> <para>Text Text</para>
> </blockquote>
> 
> I was wondering if the header could be setup just like sections and section headers in the following way:
> 
> \startnarrower[title={title}, reference=reference]
> ....
> \stopnarrower
> 
> Perhaps I need to create a new environment (blockquote) with these qualities?
> 
> The title and the reference to the section (and subsections) can now easily be matched to lpath variables (much easier than when \section  in fact refers to the section title).
> 
> Another question related to this is how to can typeset the text of the blockquote in two columns, while its header is typeset over the full page.

\usemodule[annotation]

\define[2]\QuotationCommand
  {\startnarrower
   #1\blank
   \startcolumns#2\stopcolumns
   \stopnarrower}

\defineannotation
  [myquotation]
  [alternative=command,
   left=,
   right=,
   command=\QuotationCommand]

\starttext

\input knuth

\startmyquotation{How a cow catches a rabbit}
\input knuth
\stopmyquotation

\input knuth

\stoptext

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header for indented text / blockquote
  2011-05-06 10:10 ` Wolfgang Schuster
@ 2011-05-06 12:43   ` R. Ermers
  2011-05-07  6:51     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: R. Ermers @ 2011-05-06 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Wolfgang!

I saw your examples and the module does exactly what I need.

I installed the module from the context wiki third party modules, but got this error message:

system          : module annotation loaded
(/prog2/context/tex/texmf-context/tex/context/third/annotation/t-annotation.mkvi
loading         : ConTeXt User Module / Annotations
<+ /prog2/context/tex/texmf-context/tex/context/third/annotation/t-annotation.lua>
! Undefined control sequence.
<inserted text> \letannotationparameter 
                                        \s!counter \currentannotation 
\d@defineannotation ...the \everypresetannotation 
                                                  \ifthirdargument \getparam...
<to be read again> 
                   \par 
l.662 
      
? 
)

I then found out that there is a newer version (%D version=2011.04.22) https://bitbucket.org/wolfs/annotation/changesets.
The same error persists.

Regards,

Robert



Op 6 mei 2011, om 12:10 heeft Wolfgang Schuster het volgende geschreven:

> 
> Am 06.05.2011 um 12:00 schrieb R. Ermers:
> 
>> Dear All,
>> 
>> In my docbook xml document I have fragments that I want to typeset indented. For this I use the tag <blockquote> which I map to startnarrower and stopnarrower.
>> 
>> Some blockquotes in my document have a header:
>> 
>> <blockquote>
>> <title>How a cow catches a rabbit</title>
>> <para>Text Text</para>
>> </blockquote>
>> 
>> I was wondering if the header could be setup just like sections and section headers in the following way:
>> 
>> \startnarrower[title={title}, reference=reference]
>> ....
>> \stopnarrower
>> 
>> Perhaps I need to create a new environment (blockquote) with these qualities?
>> 
>> The title and the reference to the section (and subsections) can now easily be matched to lpath variables (much easier than when \section  in fact refers to the section title).
>> 
>> Another question related to this is how to can typeset the text of the blockquote in two columns, while its header is typeset over the full page.
> 
> \usemodule[annotation]
> 
> \define[2]\QuotationCommand
>  {\startnarrower
>   #1\blank
>   \startcolumns#2\stopcolumns
>   \stopnarrower}
> 
> \defineannotation
>  [myquotation]
>  [alternative=command,
>   left=,
>   right=,
>   command=\QuotationCommand]
> 
> \starttext
> 
> \input knuth
> 
> \startmyquotation{How a cow catches a rabbit}
> \input knuth
> \stopmyquotation
> 
> \input knuth
> 
> \stoptext
> 
> Wolfgang
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header for indented text / blockquote
  2011-05-06 12:43   ` R. Ermers
@ 2011-05-07  6:51     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2011-05-07  6:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.05.2011 um 14:43 schrieb R. Ermers:

> Thanks Wolfgang!
> 
> I saw your examples and the module does exactly what I need.
> 
> I installed the module from the context wiki third party modules, but got this error message:
> 
> […]

Your context is too old. When you use the minimals you can install the module with “first-setup.sh --extras=t-annotation”.

> I then found out that there is a newer version (%D version=2011.04.22) https://bitbucket.org/wolfs/annotation/changesets.
> The same error persists.

I put a new version on bitbucket where you can now write

\startmyquotation[title={Ward}]
\input ward
\stopmyquotation

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-07  6:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-06 10:00 header for indented text / blockquote R. Ermers
2011-05-06 10:10 ` Wolfgang Schuster
2011-05-06 12:43   ` R. Ermers
2011-05-07  6:51     ` Wolfgang Schuster

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).