ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marius <mariausol@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: defining commands
Date: Fri, 5 Feb 2010 15:57:08 +0200	[thread overview]
Message-ID: <c86049a21002050557h3e294981x52c6fc7f05f1a37a@mail.gmail.com> (raw)
In-Reply-To: <4B6BE515.8060903@googlemail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1480 bytes --]

Thank you for the link, the answer to my question was as in the example you
gave, but with a single argument. The solution to my problem given below
works, but I can't find the answer to the following question. What is the
difference between \dosingleempty and \dosingleargument ?

%%%%%%%%%%%%%%%%%%%%%%%
\unprotect

\definesystemvariable {dt}

\def\setuptitle
  {\dosingleempty\dosetuptitle}

\def\dosetuptitle[#1]%
  {\def\dodosetuptitle##1%
     {\getparameters[\??dt][#1]}%
  \processcommalist[#1]\dodosetuptitle}

\def\placetitle
  {\startalignment[\v!middle]
   \blank[\v!force,2*\v!big]
   \@@dttitle
   \blank[3*\v!medium]
   \@@dtauthor
   \blank[2*\v!medium]
   \@@dtdate
   \blank[3*\v!medium]
   \stopalignment}

\setuptitle
  [\c!title=,
   \c!author=,
   \c!date=\currentdate]

\protect
%%%%%%%%%%%%%%%%%%%%

On Fri, Feb 5, 2010 at 11:29 AM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

> Am 05.02.10 09:03, schrieb Marius:
>
>  Hello all,
>>
>> How do I define the \setuptitlepage and \placetitlepage commands in the
>> environment file? These commands are used as shown in the example below.
>>
>
> Since you do not explain what do you expect from both commands it's not
> possible to give you an answer but you can find on the wiki [1] a example
> for a \setuptitle and \placetitle command which can be copied and used in
> your document.
>
> [1]
> http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_solution
>
> Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2425 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

  reply	other threads:[~2010-02-05 13:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-05  8:03 Marius
2010-02-05  9:29 ` Wolfgang Schuster
2010-02-05 13:57   ` Marius [this message]
2010-02-05 17:36     ` Hans Hagen
2010-02-05 17:53   ` Hans Hagen
2010-02-05 18:08     ` Wolfgang Schuster
2010-02-05 18:19       ` Hans Hagen
2010-02-05 18:21         ` Wolfgang Schuster
2010-02-05 18:29           ` Hans Hagen
     [not found] <mailman.170.1265412781.26807.ntg-context@ntg.nl>
2010-02-06 15:29 ` Wolfgang Werners-Lucchini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c86049a21002050557h3e294981x52c6fc7f05f1a37a@mail.gmail.com \
    --to=mariausol@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).