\definedescription problems (beta)
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
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 ___________________________________________________________________________________
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
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
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
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
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
participants (3)
-
Otared Kavian
-
Peter Park Nelson
-
Wolfgang Schuster