[NTG-context] Small caps and bold

2017-12-13 Thread Procházka Lukáš Ing .

Hello,

I'm trying to typeset some text in bold + smallcaps.

But even the sample on wiki:

http://wiki.contextgarden.net/Bold_small_caps

extended to:


\starttext
  \setff{smallcaps} Normal and \bf bold Small Caps.

  {\sc Normal and \bf bold Small Caps.}
\stoptext


doesn't produce bold small caps - see the attached files.

So - how to get bold small caps?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

BfSc.mkiv
Description: Binary data


BfSc.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Spacing issue of xtable with itemize

2017-12-13 Thread Lars

Hi guys,

I found a pretty annoying behaviour of xtable spacing (in my case when 
using an itemization inside the table). I hope you guys can help me out. 
MWE is:


\starttext

  \startxtable[frame=on]

\startxrow
  \startxcell[width=3cm]

\startitemize[packed]
  \startitem

here a short line

  \stopitem
\stopitemize

  \stopxcell
\stopxrow

\startxrow
  \startxcell

\startitemize[packed]
  \startitem

here filled with some words to force a rather long line

  \stopitem
\stopitemize

  \stopxcell
\stopxrow

  \stopxtable

\stoptext

To this mail I also attached a picture of my PDF output, that I edited 
slightly to make my point clear. Have a look at the spacing between 
content and bottomframe in the second row of each table please...

Is there any way to change this?

Cheers and thanks in advance, Lars
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] issue with css selector in lpath

2017-12-13 Thread MF
Il giorno mar, 12/12/2017 alle 22.36 +0100, Pablo Rodriguez ha scritto:
> On 12/11/2017 11:51 PM, mf wrote:
> > I think it's the "#header" without the name of an element before.
> > Try specifying an element you find in your document (i.e.
> > "{{header,
> > tag#header}}"), just to see if it compiles.
> > 
> > If it compiles, it's likely you found a bug.
> 
> No, it doesn’t compile.
> 
> But {header, #header} shouldn’t be a problem, accorrding to
> http://pragma-ade.com/general/manuals/xml-mkiv.pdf#page=34.
> 
> If this isn’t a bug, I wonder what I’m doing wrong.
> 

Could you send a minimal (not) working example?

> > > I have the following code:
> > > 
> > > \xmlsetsetup{\xmldocument}
> > > {{header, #header}}
> > > {xml:titlepage}
> > > 
> > > 

The error you get says that #header is read as a macro parameter, but
the "#" is not followed by a number, so the error.
Why "#header" is interpreted as a parameter? It smells like the "#" is
being parsed in a context with the wrong catcodes.

I would investigate the first (\xmldocument) and the third argument
(your xml:titlepage setup).

For the first one, I've always used the form:
\xmlsetsetup{#1}{{header, #header}}{xml:titlepage}

I'm reading from xml-mkiv.pdf, at page 19, that "The macro \xmldocument
expands to the current document id. There is also \xmlself which
expands to the current node number (#1 in setups)."

Could you modify your setup to use that form ("#1" i mean) and see if
it works?

Best wishes,
Massi
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___