ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Indent of heading when using command option
@ 2010-04-05  8:54 Jan Pohanka
  2010-04-05 11:06 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Pohanka @ 2010-04-05  8:54 UTC (permalink / raw)
  To: ntg-context

Hello,

I have following code (simplified)

\def\mySubject#1{#1}
\setuphead[subject][style=\bfb\ss,color=HeadColor,before=,after=,textcommand={\mySubject}]

When the command option is not set it works as expected and typeset the  
heading (subject) without any indenting, but using the command causes the  
small horizontal space in front of the subject. Is there any possibility  
to get rid of it?

best regards Jan



-- 
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Indent of heading when using command option
  2010-04-05  8:54 Indent of heading when using command option Jan Pohanka
@ 2010-04-05 11:06 ` Wolfgang Schuster
  2010-04-05 18:55   ` Honza Pohanka
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2010-04-05 11:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 05.04.10 10:54, schrieb Jan Pohanka:
> Hello,
>
> I have following code (simplified)
>
> \def\mySubject#1{#1}
> \setuphead[subject][style=\bfb\ss,color=HeadColor,before=,after=,textcommand={\mySubject}] 
>
>
> When the command option is not set it works as expected and typeset 
> the heading (subject) without any indenting, but using the command 
> causes the small horizontal space in front of the subject. Is there 
> any possibility to get rid of it?
Learn to make a minimal example, with this I can't see what you mean.

\def\mySubject#1{#1}

\setuphead
   [subject]
   [style=\bfb\ss,
    color=HeadColor,
    before=,
    after=,
    textcommand={\mySubject}]

\showframe
\starttext
\subject{Text}
\stoptext

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

* Re: Indent of heading when using command option
  2010-04-05 11:06 ` Wolfgang Schuster
@ 2010-04-05 18:55   ` Honza Pohanka
  2010-04-05 20:46     ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Honza Pohanka @ 2010-04-05 18:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dne Mon, 05 Apr 2010 14:06:52 +0300 Wolfgang Schuster  
<schuster.wolfgang@googlemail.com> napsal(a):

> Am 05.04.10 10:54, schrieb Jan Pohanka:
>> Hello,
>>
>> I have following code (simplified)
>>
>> \def\mySubject#1{#1}
>> \setuphead[subject][style=\bfb\ss,color=HeadColor,before=,after=,textcommand={\mySubject}]  
>> When the command option is not set it works as expected and typeset the  
>> heading (subject) without any indenting, but using the command causes  
>> the small horizontal space in front of the subject. Is there any  
>> possibility to get rid of it?
> Learn to make a minimal example, with this I can't see what you mean.
>
> \def\mySubject#1{#1}
>
> \setuphead
>    [subject]
>    [style=\bfb\ss,
>     color=HeadColor,
>     before=,
>     after=,
>     textcommand={\mySubject}]
>
> \showframe
> \starttext
> \subject{Text}
> \stoptext
>
> Wolfgang

Sorry for unclear question, I have already find the solution. I  
missunderstood the \def macro.
\def\mySubject#1{#1} works fine

\def\mySubject#1{
#1
}
causes problems

Jan

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


-- 
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Indent of heading when using command option
  2010-04-05 18:55   ` Honza Pohanka
@ 2010-04-05 20:46     ` Aditya Mahajan
  0 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2010-04-05 20:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 5 Apr 2010, Honza Pohanka wrote:

> Sorry for unclear question, I have already find the solution. I 
> missunderstood the \def macro.
> \def\mySubject#1{#1} works fine
>
> \def\mySubject#1{
> #1
> }
> causes problems

\def\mySubject#1{%<<- Otherwise you get a space
   #1}

or

\def\mySubject#1%
   {#1}

Aditya
___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2010-04-05 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-05  8:54 Indent of heading when using command option Jan Pohanka
2010-04-05 11:06 ` Wolfgang Schuster
2010-04-05 18:55   ` Honza Pohanka
2010-04-05 20:46     ` 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).