header for indented text / blockquote
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
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
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 ___________________________________________________________________________________
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
participants (2)
-
R. Ermers
-
Wolfgang Schuster