ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \thinrule in \margintext doesn't work
@ 2013-01-24  9:26 Devendra Ghate
  2013-01-24 16:03 ` Hans Hagen
  2013-01-24 16:09 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Devendra Ghate @ 2013-01-24  9:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

If \thinrule is used in \margintext, context gives error. \hairline 
works fine.


*Details:* ConTeXt  ver: 2013.01.10 01:04 MKIV  fmt: 2013.1.13

*Error Message:*
! Undefined control sequence.

system          > tex > error on line 2 in file a.tex: Undefined control 
sequence ...

1     \starttext
2 >>  \margintext{\thinrule A margintext with thinrule.}
3     %\margintext{\hairline A margintext with hairline.}
4     \stoptext
5


\thinrule ->\strut \bgroup \edef \p_height
{\directthinrulesparameter \c!hei...
<argument> \thinrule
                      A margintext with thinrule.
\doifelsenothing #1->\edef \m_syst_string_one {#1
                                                  }\ifx 
\m_syst_string_one \e...
\typo_margins_data_yes_indeed ...felsenothing {#3}
                                                   \donefalse \donetrue 
\ifdo...
l.2 ...text{\thinrule A margintext with thinrule.}


**MWE**

\starttext
%\margintext{\thinrule A margintext with thinrule.}
\margintext{\hairline A margintext with hairline.}
\stoptext

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

[-- Attachment #2: Type: text/plain, Size: 485 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
___________________________________________________________________________________

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

* Re: \thinrule in \margintext doesn't work
  2013-01-24  9:26 \thinrule in \margintext doesn't work Devendra Ghate
@ 2013-01-24 16:03 ` Hans Hagen
  2013-01-24 16:09 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2013-01-24 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/24/2013 10:26 AM, Devendra Ghate wrote:
> If \thinrule is used in \margintext, context gives error. \hairline
> works fine.

You can add an \unexpanded in pack-mrl.mkiv and remake the format:

\unexpanded\def\thinrule

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread

* Re: \thinrule in \margintext doesn't work
  2013-01-24  9:26 \thinrule in \margintext doesn't work Devendra Ghate
  2013-01-24 16:03 ` Hans Hagen
@ 2013-01-24 16:09 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2013-01-24 16:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/24/2013 10:26 AM, Devendra Ghate wrote:

> **MWE**
>
> \starttext
> %\margintext{\thinrule A margintext with thinrule.}
> \margintext{\hairline A margintext with hairline.}
> \stoptext

btw, after fixing it this becomes a MNWE as a \margintext without 
anything following it will never show up.

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2013-01-24 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-24  9:26 \thinrule in \margintext doesn't work Devendra Ghate
2013-01-24 16:03 ` Hans Hagen
2013-01-24 16:09 ` Hans Hagen

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