[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Finding out if an element is processed as part of an xref text
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi again, so... we are trying to create nice-looking PDF documents with nice fonts that are displayed with matching x-heights (i. e. when mixing different fonts on the same line, the height of the lowercase letters should always be the same). We need a solution that works with FOP (and XEP) which has led to me manually having to find out factors to multiply font sizes with... and now it works, mostly. We are using the usual three different fonts: + "Serif" for running text + "Sans" for titles and ToC + "Mono" for code examples, command, etc. When adding another font within the running text, as needs to be done for e.g. commands in a para, I am using em units. FO output could e.g. be: <fo:block font-size="12pt"> This was a DocBook para with a <fo:inline font-size="0.89em">command</fo:inline> in it. </fo:block> Since titles are usually in the sans-serif font, but running text is in the serif font, I need different em sizes for each to make the mono font appear well-adjusted in either. However, there is an issue with xrefs: they are generally displayed in a serif font, but usually reference a title. Sometimes that title contains a monospaced elements like a command. But when I process that monospaced element, I can't see that I am processing it for a xref. I tried using no.anchors.mode to determine whether I was within an xref but that seems to be set for every title now, somehow (not sure if my code was always faulty or this is something that has changed with a DocBook update). Any ideas on how resolve this? Thanks in advance, Stefan. - -- SUSE LINUX Products GmbH, Maxfeldstraße 5, D-90409 Nürnberg Geschäftsführer: Jeff Hawn, Jennifer Guild, Felix Imendörffer HRB 16746 (Amtsgericht Nürnberg) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlPQBvUACgkQ5AP3bIqhlM2mAwD/cBppihbbtF4cvG4zzYQ5JVWm vDxDidQxFyZM4SX70gMBAK3+oWm3oI/XZ8uArUkJomg49EsVyTMW/EdPHqhyrfNB =If38 -----END PGP SIGNATURE-----
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]