ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \quad in pdf author
@ 2006-05-09 16:50 Aditya Mahajan
  2006-05-09 17:05 ` Hans Hagen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Aditya Mahajan @ 2006-05-09 16:50 UTC (permalink / raw)


Hi,

\setupinteraction
   [
    author={Author 1 \quad Author 2},
   ]


gives me "Author 1 hskip 1em" in pdf info. Is there some way to ensure 
that \quad is ignored when used in \setupinteraction[...].

I use variables and setups to create a title page and use doctitle and 
author information in pdf document properties. I need quad in the 
titlepage but not in pdf properties.

Thanks,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \quad in pdf author
  2006-05-09 16:50 \quad in pdf author Aditya Mahajan
@ 2006-05-09 17:05 ` Hans Hagen
  2006-05-09 17:05 ` Peter Münster
  2006-05-09 17:13 ` nico
  2 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-05-09 17:05 UTC (permalink / raw)


Aditya Mahajan wrote:
> Hi,
>
> \setupinteraction
>    [
>     author={Author 1 \quad Author 2},
>    ]
>
>
> gives me "Author 1 hskip 1em" in pdf info. Is there some way to ensure 
> that \quad is ignored when used in \setupinteraction[...].
>
> I use variables and setups to create a title page and use doctitle and 
> author information in pdf document properties. I need quad in the 
> titlepage but not in pdf properties.
>   
\appendtoks
    \let\quad\space
\to \simplifiedcommands

wikifyable 

Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \quad in pdf author
  2006-05-09 16:50 \quad in pdf author Aditya Mahajan
  2006-05-09 17:05 ` Hans Hagen
@ 2006-05-09 17:05 ` Peter Münster
  2006-05-09 17:13 ` nico
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Münster @ 2006-05-09 17:05 UTC (permalink / raw)


On Tue, 9 May 2006, Aditya Mahajan wrote:

> \setupinteraction
>    [
>     author={Author 1 \quad Author 2},
>    ]
> 
> gives me "Author 1 hskip 1em" in pdf info. Is there some way to ensure 
> that \quad is ignored when used in \setupinteraction[...].

\appendtoks
  \def\quad{}%
\to \simplifiedcommands

or

\appendtoks
  \def\quad{\ \ \ \ }%
\to \simplifiedcommands

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \quad in pdf author
  2006-05-09 16:50 \quad in pdf author Aditya Mahajan
  2006-05-09 17:05 ` Hans Hagen
  2006-05-09 17:05 ` Peter Münster
@ 2006-05-09 17:13 ` nico
  2006-05-09 17:52   ` Hans Hagen
  2 siblings, 1 reply; 6+ messages in thread
From: nico @ 2006-05-09 17:13 UTC (permalink / raw)


On Tue, 9 May 2006 12:50:05 -0400 (EDT), Aditya Mahajan  
<adityam@umich.edu> wrote:

> Hi,
>
> \setupinteraction
>    [
>     author={Author 1 \quad Author 2},
>    ]
>
> gives me "Author 1 hskip 1em" in pdf info. Is there some way to ensure
> that \quad is ignored when used in \setupinteraction[...].

As Hans said once, you can do this:

\appendtoks
   \def\quad{}%
\to \simplifiedcommands

\setupinteraction
    [state=start,
     author={Author 1 \quad Author 2}]

\starttext
bla
\stoptext

Regards,
BG

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \quad in pdf author
  2006-05-09 17:13 ` nico
@ 2006-05-09 17:52   ` Hans Hagen
  2006-05-09 19:05     ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2006-05-09 17:52 UTC (permalink / raw)


nico wrote:
> On Tue, 9 May 2006 12:50:05 -0400 (EDT), Aditya Mahajan  
> <adityam@umich.edu> wrote:
>
>   
>> Hi,
>>
>> \setupinteraction
>>    [
>>     author={Author 1 \quad Author 2},
>>    ]
>>
>> gives me "Author 1 hskip 1em" in pdf info. Is there some way to ensure
>> that \quad is ignored when used in \setupinteraction[...].
>>     
>
> As Hans said once, you can do this:
>
> \appendtoks
>    \def\quad{}%
> \to \simplifiedcommands
>
> \setupinteraction
>     [state=start,
>      author={Author 1 \quad Author 2}]
>
> \starttext
> bla
> \stoptext
>   
actually, in the title it should be:

Author 1\quad Author 2


\def\MyQuad{\removeunwantedspaces\quad\ignorespaces}

\appendtoks \let\MyQuad\empty \to \simplifiedcommands

Author 1 \MyQuad Author 2


-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: \quad in pdf author
  2006-05-09 17:52   ` Hans Hagen
@ 2006-05-09 19:05     ` Aditya Mahajan
  0 siblings, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2006-05-09 19:05 UTC (permalink / raw)


On Tue, 9 May 2006, Hans Hagen wrote:

> nico wrote:
>> On Tue, 9 May 2006 12:50:05 -0400 (EDT), Aditya Mahajan
>> <adityam@umich.edu> wrote:
>>
>>
>>> Hi,
>>>
>>> \setupinteraction
>>>    [
>>>     author={Author 1 \quad Author 2},
>>>    ]
>>>
>>> gives me "Author 1 hskip 1em" in pdf info. Is there some way to ensure
>>> that \quad is ignored when used in \setupinteraction[...].
>>>
>>
>> As Hans said once, you can do this:
>>
>> \appendtoks
>>    \def\quad{}%
>> \to \simplifiedcommands
>>
>> \setupinteraction
>>     [state=start,
>>      author={Author 1 \quad Author 2}]
>>
>> \starttext
>> bla
>> \stoptext
>>
> actually, in the title it should be:
>
> Author 1\quad Author 2
>
>
> \def\MyQuad{\removeunwantedspaces\quad\ignorespaces}
>
> \appendtoks \let\MyQuad\empty \to \simplifiedcommands
>
> Author 1 \MyQuad Author 2

Thanks. I'll add it to the wiki (in a day or two)

Aditya


-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-09 19:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-09 16:50 \quad in pdf author Aditya Mahajan
2006-05-09 17:05 ` Hans Hagen
2006-05-09 17:05 ` Peter Münster
2006-05-09 17:13 ` nico
2006-05-09 17:52   ` Hans Hagen
2006-05-09 19:05     ` Aditya Mahajan

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).