Re: [NTG-context] solved-how to make "\getmarking[title]" show using default font size? (Wolfgang Schuster)

2011-07-28 Thread Wolfgang Schuster

Am 28.07.2011 um 02:32 schrieb Jeong Dalyoung:

> Dear Wolfgang,
> 
> Thank you for your help.
> 
>> Don?t set the font style with the argument of the \title command, use 
>> \setuphead.
> 
> I'll keep in mind.
> 
>> \define[2]\Mytitle
>> {\framedtext
>>[width=broad,
>> height=5\bodyfontsize,
>> background=color,
>> backgroundcolor=lightgray,
>> offset=2pt,
>> strut=no,
>> frame=off,
>> align={middle,middle}]
>>  {#2}}
>> 
>> \setuphead
>> [title]
>> [command=\Mytitle,
>>  style=\ssbfb] % \ss\bfb
>> 
> 
> Why is the number of arguments 2?  What is #1 for?


#1 : Number (not necessary in your case)
#2 : Text

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
___


Re: [NTG-context] solved-how to make "\getmarking[title]" show using default font size? (Wolfgang Schuster)

2011-07-27 Thread Jeong Dalyoung
Dear Wolfgang,

Thank you for your help.

> Don?t set the font style with the argument of the \title command, use 
> \setuphead.

I'll keep in mind.

> \define[2]\Mytitle
>  {\framedtext
> [width=broad,
>  height=5\bodyfontsize,
>  background=color,
>  backgroundcolor=lightgray,
>  offset=2pt,
>  strut=no,
>  frame=off,
>  align={middle,middle}]
>   {#2}}
> 
> \setuphead
>  [title]
>  [command=\Mytitle,
>   style=\ssbfb] % \ss\bfb
> 

Why is the number of arguments 2?  What is #1 for?

One more question about \startfiguretext.

\startitemize
\item first item

\startfiguretext[right][]{}
{\externalfigure[cow][width=.3\makeupwidth]}
\startitemize
\item 1
\item 2
\item 3
\stopitemize
\stopfiguretext

\item second item
\stopitemize

gives no error, but 1, 2 starts from the very beginning of the the text 
line. It ignores the indentation affected by \item first item. Is it normal? 
Then, how to keep the indentation caused by \startitemize?

Thank you again.

Best regards,

Dalyoung

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


Re: [NTG-context] solved-how to make "\getmarking[title]" show using default font size?

2011-07-26 Thread Wolfgang Schuster

Am 26.07.2011 um 06:04 schrieb Jeong Dalyoung:

> Dear all,
> 
> For the header text, I used \getmarking as follows:
> 
> \setupheadertexts[][{\getmarking[{\v!title}]}]
> 
> *
> This problem comes from my setting which is as follows: 
> 
> \title{\ss\bf\tfb Title}
> 
> I changed it by using the definition as follows:
> 
> \def\Mytitle#1{%
> \framedtext
> [width=\overlaywidth,
> height=5\bodyfontsize,
> background=color,
> backgroundcolor=lightgray,
> offset=2pt,
> strut=no,
> frame=off,
> align=middle,
> top=\vss,
> bottom=\vss]{
> \sans #1} }
> 
> \setuphead[title][textcommand=\Mytitle]
> 
> This makes everything fine.


Don’t set the font style with the argument of the \title command, use 
\setuphead.

\setupheadertexts[][title]

\define[2]\Mytitle
  {\framedtext
 [width=broad,
  height=5\bodyfontsize,
  background=color,
  backgroundcolor=lightgray,
  offset=2pt,
  strut=no,
  frame=off,
  align={middle,middle}]
   {#2}}

\setuphead
  [title]
  [command=\Mytitle,
   style=\ssbfb] % \ss\bfb

\setupheader[style=\ssb] % \ss\tfb

\starttext
\title{Title}
\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
___