ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definedescription problems (beta)
@ 2012-02-16 20:41 Peter Park Nelson
  2012-02-16 20:50 ` Otared Kavian
  2012-02-16 20:59 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Park Nelson @ 2012-02-16 20:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Two problems using \definedescription the 2.16 beta:

\definedescription[mydescription][location=serried,text={Description}]

%% This gives an error (no blank lines around content):
\startmydescription
This is a description
\stopmydescription

%% But this works (with blank lines):
\startmydescription

This is a description

\stopmydescription

2. "location=serried" worked correctly before, but now I get a hanging
indent instead.
-- 
Peter Park Nelson
peter.park.nelson@gmail.com
___________________________________________________________________________________
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] 6+ messages in thread

* Re: \definedescription problems (beta)
  2012-02-16 20:41 \definedescription problems (beta) Peter Park Nelson
@ 2012-02-16 20:50 ` Otared Kavian
  2012-02-16 21:01   ` Wolfgang Schuster
  2012-02-16 20:59 ` Wolfgang Schuster
  1 sibling, 1 reply; 6+ messages in thread
From: Otared Kavian @ 2012-02-16 20:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Peter,

As Wolfgang pointed out in answering one of the problems I reported earlier today, one has to use « alternative=hanging » instead of « location=hanging ».
I guess it should be the same with the « serried ».

Best regards: OK

On 16 févr. 2012, at 21:41, Peter Park Nelson wrote:

> Two problems using \definedescription the 2.16 beta:
> 
> \definedescription[mydescription][location=serried,text={Description}]
> 
> %% This gives an error (no blank lines around content):
> \startmydescription
> This is a description
> \stopmydescription
> 
> %% But this works (with blank lines):
> \startmydescription
> 
> This is a description
> 
> \stopmydescription
> 
> 2. "location=serried" worked correctly before, but now I get a hanging
> indent instead.
> -- 
> Peter Park Nelson
> peter.park.nelson@gmail.com
> ___________________________________________________________________________________
> 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] 6+ messages in thread

* Re: \definedescription problems (beta)
  2012-02-16 20:41 \definedescription problems (beta) Peter Park Nelson
  2012-02-16 20:50 ` Otared Kavian
@ 2012-02-16 20:59 ` Wolfgang Schuster
  2012-02-16 21:20   ` Peter Park Nelson
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-02-16 20:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.02.2012 um 21:41 schrieb Peter Park Nelson:

> Two problems using \definedescription the 2.16 beta:
> 
> \definedescription[mydescription][location=serried,text={Description}]
> 
> %% This gives an error (no blank lines around content):
> \startmydescription
> This is a description
> \stopmydescription
> 
> %% But this works (with blank lines):
> \startmydescription
> 
> This is a description
> 
> \stopmydescription

What error message do you get, make a *working* example.

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] 6+ messages in thread

* Re: \definedescription problems (beta)
  2012-02-16 20:50 ` Otared Kavian
@ 2012-02-16 21:01   ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2012-02-16 21:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.02.2012 um 21:50 schrieb Otared Kavian:

> Hi Peter,
> 
> As Wolfgang pointed out in answering one of the problems I reported earlier today, one has to use « alternative=hanging » instead of « location=hanging ».
> I guess it should be the same with the « serried ».

Yes, descriptions and enumerations use the same base and all “location” values are no set with “alternative”.

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] 6+ messages in thread

* Re: \definedescription problems (beta)
  2012-02-16 20:59 ` Wolfgang Schuster
@ 2012-02-16 21:20   ` Peter Park Nelson
  2012-02-16 21:31     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Park Nelson @ 2012-02-16 21:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I just saw Otared's message. alternative=serried gives an error.

Two error examples:

1. spacing around description contents:
%%------------------example---------------------%%
\definedescription[Abstract][text={Abstract}]

\starttext

\startAbstract % THIS ONLY WORKS WITH BLANK LINES:
\input tufte\par
\stopAbstract

\stoptext
%%------------------------------end----------------------%%

Error:
! I can't find file `}'.
<to be read again>
                   \endgroup
\currentconstructiontext ...ionhandler \endcsname
                                                  \endstrut
\139>construction ... \currentconstructionsample }
                                                  }\assignwidth {\constructi...
\dodogotopar ...andler \v!construction \endcsname
                                                  \BeforePar \emptytoks
<to be read again>
                   t
l.7 \input t
            ufte\par
Please type another input file name: ^C! I can't find file `}'.
<to be read again>
                   \endgroup
\c
urrentconstructiontext ...ionhandler \endcsname
                                                  \endstrut
\139>construction ... \currentconstructionsample }
                                                  }\assignwidth {\constructi...
\dodogotopar ...andler \v!construction \endcsname
                                                  \BeforePar \emptytoks
<to be read again>
                   t
l.7 \input t
            ufte\par
Please type another input file name:
! Emergency stop.

system          > tex > error on line 7
ipeter@ThinkPad-T500:~/Desktop/contextstuff/jtlu-testing/J$ n file
J7-description.tex: Emergency stop ...

 1     \definedescription[Abstract][%
 2       text={Abstract}]
 3
 4     \starttext
 5
 6     \startAbstract
 7 >>  \input tufte\par
 8     \stopAbstract
 9
10     \stoptext

<to be read again>
                   \endgroup
\currentconstructiontext ...ionhandler \endcsname
                                                  \endstrut
\139>construction ... \currentconstructionsample }
                                                  }\assignwidth {\constructi...
\dodogotopar ...andler \v!construction \endcsname
                                                  \BeforePar \emptytoks
<to be read again>
                   t
l.7 \input t
            ufte\par
!  ==> Fatal error occurred, no output PDF file produced!^C



2. alternative=serried causes error:

%%------------------------example---------------------------------%%
\definedescription[Abstract][alternative=serried,  text={Abstract}]

\starttext

\startAbstract

\input tufte\par

\stopAbstract

\stoptext
%%--------------------------end--------------------------------%%

Error:
! Undefined control sequence.

system          > tex > error on line 9 in file J7-description.tex:
Undefined control sequence ...

 1     \definedescription[Abstract][%
 2     alternative=serried,
 3       text={Abstract}]
 4
 5     \starttext
 6
 7     \startAbstract
 8
 9 >>  \input tufte\par
10
11     \stopAbstract
12
13     \stoptext


\12>:144>:serried ...onstructionlocationparameter
                                                  \c!width }\doifsetupselse ...
\139>construction ...parameter \c!renderingsetup }
                                                  \relax \dostoptagged \dost...
\dodogotopar ...andler \v!construction \endcsname
                                                  \BeforePar \emptytoks
<to be read again>
                   \input
l.9 \input
           tufte\par
?
! Interruption.

system          > tex > error on line 9 in file J7-description.tex:
Interruption ...

 1     \definedescription[Abstract][%
 2     alternative=serried,
 3       text={Abstract}]
 4
 5     \starttext
 6
 7     \startAbstract
 8
 9 >>  \input tufte\par
10
11     \stopAbstract
12
13     \stoptext


\12>:144>:serried ...onlocationparameter \c!width
                                                  }\doifsetupselse {\??const...
\139>construction ...parameter \c!renderingsetup }
                                                  \relax \dostoptagged \dost...
\dodogotopar ...andler \v!construction \endcsname
                                                  \BeforePar \emptytoks
<to be read again>
                   \input
l.9 \input
           tufte\par
?
! Emergency stop.

system          > tex > error on line 9 in file J7-description.tex:
Emergency stop ...

 1     \definedescription[Abstract][%
 2     alternative=serried,
 3       text={Abstract}]
 4
 5     \starttext
 6
 7     \startAbstract
 8
 9 >>  \input tufte\par
10
11     \stopAbstract
12
13     \stoptext


\12>:144>:serried ...onlocationparameter \c!width
                                                  }\doifsetupselse {\??const...
\139>construction ...parameter \c!renderingsetup }
                                                  \relax \dostoptagged \dost...
\dodogotopar ...andler \v!construction \endcsname
                                                  \BeforePar \emptytoks
<to be read again>
                   \input
l.9 \input
           tufte\par
End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!





On Thu, Feb 16, 2012 at 2:59 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 16.02.2012 um 21:41 schrieb Peter Park Nelson:
>
>> Two problems using \definedescription the 2.16 beta:
>>
>> \definedescription[mydescription][location=serried,text={Description}]
>>
>> %% This gives an error (no blank lines around content):
>> \startmydescription
>> This is a description
>> \stopmydescription
>>
>> %% But this works (with blank lines):
>> \startmydescription
>>
>> This is a description
>>
>> \stopmydescription
>
> What error message do you get, make a *working* example.
>
> 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
> ___________________________________________________________________________________



-- 
Peter Park Nelson
peter.park.nelson@gmail.com
___________________________________________________________________________________
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] 6+ messages in thread

* Re: \definedescription problems (beta)
  2012-02-16 21:20   ` Peter Park Nelson
@ 2012-02-16 21:31     ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2012-02-16 21:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.02.2012 um 22:20 schrieb Peter Park Nelson:

> I just saw Otared's message. alternative=serried gives an error.
> 
> Two error examples:
> 
> 1. spacing around description contents:
> %%------------------example---------------------%%
> \definedescription[Abstract][text={Abstract}]
> 
> \starttext
> 
> \startAbstract % THIS ONLY WORKS WITH BLANK LINES:
> \input tufte\par
> \stopAbstract
> 
> \stoptext

Add “title=no” to \definedescription, otherwise \startAbstract tries to read (in this example) \input which fails when \input looks for it’s argument.

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] 6+ messages in thread

end of thread, other threads:[~2012-02-16 21:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16 20:41 \definedescription problems (beta) Peter Park Nelson
2012-02-16 20:50 ` Otared Kavian
2012-02-16 21:01   ` Wolfgang Schuster
2012-02-16 20:59 ` Wolfgang Schuster
2012-02-16 21:20   ` Peter Park Nelson
2012-02-16 21:31     ` 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).