Hello all, why does second command \setupdissertation does not work? In the attached document I get in the title "xxx" instead of "How to do this in Context". Thanks
Am 22.04.10 15:48, schrieb Marius:
Hello all,
why does second command \setupdissertation does not work? In the attached document I get in the title "xxx" instead of "How to do this in Context".
Remove the spaces before the '=' in the assignments. \setupdissertation [ title={How to do this in Context}, authorname={The author}, date={July 26, 2005}] You can also simplify your defintion of \setupdissertation: \def\setupdissertation {\dodoubleargument\getparameters[\??DISS]} Wolfgang
On Thu, Apr 22, 2010 at 4:56 PM, Wolfgang Schuster
You can also simplify your defintion of \setupdissertation:
\def\setupdissertation {\dodoubleargument\getparameters[\??DISS]}
Thanks for the hint. I have one more question, I took and simplified the example which I sent here earlier from the wiki: http://wiki.contextgarden.net/Document_Titles "In ConTeXt: A more advanced solution" and I am wondering why I am using \c! macros? Why not \!! ? Why some macros I need to define "\def\c!authorname {authorname}", but the others not? Maybe here is a name clash with a system defined \c! macros?
Am 22.04.10 19:08, schrieb Marius:
On Thu, Apr 22, 2010 at 4:56 PM, Wolfgang Schuster
wrote: You can also simplify your defintion of \setupdissertation:
\def\setupdissertation {\dodoubleargument\getparameters[\??DISS]}
Thanks for the hint.
I have one more question, I took and simplified the example which I sent here earlier from the wiki: http://wiki.contextgarden.net/Document_Titles "In ConTeXt: A more advanced solution" and I am wondering why I am using \c! macros? Why not \!! ? Why some macros I need to define "\def\c!authorname {authorname}", but the others not? Maybe here is a name clash with a system defined \c! macros?
The \c! and \v! macros are used for ConTeXt’s multilingual interface, this means you can write in english \setupcommand[width=1cm] and in german \stellebefehlein[breite=1cm] in your module both 'width' and 'breite' are converted to 'width'. Since you don't need this feature you can use instead of \getparameters \getrawparameters where e.g. 'breite' will remain 'breite' when you do something with this key in your code (but use then title etc. without the \c! prefix). Wolfgang
On Thu, Apr 22 2010, Marius wrote:
[\c!title ={xxx},
\c!title eats the space.
[title ={How to do this in Context},
title does not, so the parameter is not "title" but "title ". Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
participants (3)
-
Marius
-
Peter Münster
-
Wolfgang Schuster