[pmwiki-users] Bold numbered list
Patrick R. Michaud
pmichaud at pobox.com
Thu Jan 4 09:54:43 CST 2007
On Thu, Jan 04, 2007 at 10:44:43AM -0500, Pierre Racine wrote:
> Thanks Pm,
>
> I'm trying to make it a permanent style in config.php but it doesn't work. How do you set the unary variable "item"?
>
> I have tried:
>
> $WikiStyle['bolditem']['font-weight'] = 'bold';
> $WikiStyle['bolditem']['item'] = '1';
"item" isn't a unary variable, it's a wikistyle defined as:
%define=item apply=item%
So, to set it in config.php:
$WikiStyle['bolditem']['font-weight'] = 'bold';
$WikiStyle['bolditem']['apply'] = 'item';
But after thinking about it a bit more, I think the best result
is probably to define a %bold% wikistyle and then use %bold item%
to bold a single item and %bold list% on the first item to bold an
entire list.
To define the %bold% wikistyle, do any one of the following:
1. Use Cookbook.WikiStylesPlus
2. Define a .bold CSS class (e.g., in pub/css/local.css) as
.bold { font-weight:bold; }
3. Add the following to local/config.php:
$WikiStyle['bold']['font-weight'] = 'bold';
> Strangely this seems to work for "block" in:
>
> $WikiStyle['yellowboxNoborder']['block'] = '1';
> $WikiStyle['yellowboxNoborder']['background-color'] = '#ffec89';
Hmm, I'm not sure why that works -- normally one would do
...['apply'] = 'block';
Pm
> -----Message d'origine-----
> De : Patrick R. Michaud [mailto:pmichaud at pobox.com]
> Envoyé : 20 décembre 2006 17:24
> À : Pierre Racine
> Cc : pmwiki-users at pmichaud.com
> Objet : Re: [pmwiki-users] Bold numbered list
>
> On Wed, Dec 20, 2006 at 03:15:20PM -0500, Pierre Racine wrote:
> > Anyone has a trick to make a numbered list with the text AND the numbers
> > in bold?
>
> Define a new wikistyle for it:
>
> %define=bolditem item font-weight:bold%
>
> and then for each bullet point you can do:
>
> # %bolditem% This text is bold
> # %bolditem% This is also bold
>
> See http://www.pmwiki.org/wiki/Test/BoldOrderedList
> for an example.
>
> Pm
More information about the pmwiki-users
mailing list