ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* list of figures (bug?)
@ 2010-06-02 22:32 Rogutės Sparnuotos
  2010-06-03 11:52 ` getting new font variants to work Michael Murphy
  0 siblings, 1 reply; 3+ messages in thread
From: Rogutės Sparnuotos @ 2010-06-02 22:32 UTC (permalink / raw)
  To: ntg-context

Hello,

What is the correct way to set 'alternative=c' for the
\completelistoffigures?

This works:

  \starttext
    \completelistoffigures[alternative=c]
    \placefigure[here]{x}{}
    \placefigure[here]{y}{}
  \stoptext

But this doesn't:

  \setupcombinedlist[listoffigures][alternative=c]
  \starttext
    \completelistoffigures
    \placefigure[here]{x}{}
    \placefigure[here]{y}{}
  \stoptext

Why? If I add \definecombinedlist[listoffigures][figure], it starts
working, but the list is printed without the title... This seems
inconsistent, so either I have something wrong or there is a bug, no?

-- 
--  Rogutės Sparnuotos
___________________________________________________________________________________
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

* getting new font variants to work
  2010-06-02 22:32 list of figures (bug?) Rogutės Sparnuotos
@ 2010-06-03 11:52 ` Michael Murphy
  2010-06-03 12:09   ` Bernhard Rosensteiner
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Murphy @ 2010-06-03 11:52 UTC (permalink / raw)
  To: ntg-context

Hi all,

I'd like to get some new font variants defined, such as Medium, 
Semibold, etc. What I have so far is the following.

\definealternativestyle[medium][\me][]

\starttypescript [serif] [minionpro]
   ...
   \definefontsynonym[MinionPro-Medium][name:MinionPro-Medium]
   ...
\stoptypescript

\starttypescript [serif] [minionpro] [name]
   ...
   \definefontsynonym[SerifMedium][MinionPro-Medium]
   ...
\stoptypescript

\starttypescript [serif] [regular] [size]
   \definebodyfont [10pt, 11pt, 12pt] [rm] [%
     it=SerifItalic sa 1,
     bi=SerifBoldItalic sa 1,
     bf=SerifBold sa 1,
     tf=SerifRegular sa 1,
     me=SerifMedium sa 1]
\stoptypescript

then I set up the font with

\definetypeface [adobe] [rm] [serif] [minionpro] [regular]
\setupbodyfont[11pt]

This all looks fine, but then

{\me This should be medium}

doesn't work, and neither does \me{...} or \medium{...}. I should say that

\definedfont[SerifMedium]

does work though. How can I fix this, short of

\def\me{\definedfont[SerifMedium]}

-- 
Michael Murphy
___________________________________________________________________________________
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: getting new font variants to work
  2010-06-03 11:52 ` getting new font variants to work Michael Murphy
@ 2010-06-03 12:09   ` Bernhard Rosensteiner
  0 siblings, 0 replies; 3+ messages in thread
From: Bernhard Rosensteiner @ 2010-06-03 12:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 03.06.2010 um 13:52 schrieb Michael Murphy:

> Hi all,
> 
> I'd like to get some new font variants defined, such as Medium, Semibold, etc. What I have so far is the following.
> 
> \definealternativestyle[medium][\me][]
> 
> \starttypescript [serif] [minionpro]
>  ...
>  \definefontsynonym[MinionPro-Medium][name:MinionPro-Medium]
>  ...
> \stoptypescript
> 
> \starttypescript [serif] [minionpro] [name]
>  ...
>  \definefontsynonym[SerifMedium][MinionPro-Medium]
>  ...
> \stoptypescript
> 
> \starttypescript [serif] [regular] [size]
>  \definebodyfont [10pt, 11pt, 12pt] [rm] [%
>    it=SerifItalic sa 1,
>    bi=SerifBoldItalic sa 1,
>    bf=SerifBold sa 1,
>    tf=SerifRegular sa 1,
>    me=SerifMedium sa 1]
> \stoptypescript
> 
> then I set up the font with
> 
> \definetypeface [adobe] [rm] [serif] [minionpro] [regular]
> \setupbodyfont[11pt]
> 
> This all looks fine, but then
> 
> {\me This should be medium}
> 
> doesn't work, and neither does \me{...} or \medium{...}. I should say that
> 
> \definedfont[SerifMedium]
> 
> does work though. How can I fix this, short of
> 
> \def\me{\definedfont[SerifMedium]}

when the rest if the typescript works the problem lies here:

instead or additionally of \definealternativestyle[medium][\me][] use \definefontalternative[me]

then the command \me should be available.
the \definealternativestyle command is only for key value pairs in style= keys as far as i know


best regards
Bernhard

___________________________________________________________________________________
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:[~2010-06-03 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-02 22:32 list of figures (bug?) Rogutės Sparnuotos
2010-06-03 11:52 ` getting new font variants to work Michael Murphy
2010-06-03 12:09   ` Bernhard Rosensteiner

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