Indent of heading when using command option
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/
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
Dne Mon, 05 Apr 2010 14:06:52 +0300 Wolfgang Schuster
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/
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
participants (4)
-
Aditya Mahajan
-
Honza Pohanka
-
Jan Pohanka
-
Wolfgang Schuster