List Info

Thread: Font size chnages in and




Font size chnages in <author> and <affiliation>
user name
2007-04-13 14:50:28
On a <book&gt; title page I have a need to have <author> at a bigger font size than <affiliation> (which is within &lt;author>;)
Otherwise no change to standard title page.
Changing the font-size="...&quot; in
.
<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format&quot; xsl:use-attribute-sets="book.titlepage.recto.style" font-size="20.736pt" space-before="10.8pt" keep-with-next.within-column="always">
<xsl:apply-templates select=".&quot; mode="book.titlepage.recto.mode&quot;/>
</fo:block>
</xsl:template>
Doesn't work at all (no change), and I presume this should also change the size of <affiliation> as font-size would be inherited.  Can anyone help please?

Ron
-- 
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
Re: Font size changes in <author> and <affiliation>
user name
2007-04-13 15:04:00


Apologies, I should have been more precise.&nbsp; I want <author> in a larger font then <orgname> within &lt;affiliation> within <author>


On a <book&gt; title page I have a need to have <author> at a bigger font size than <affiliation> (which is within <author>)
Otherwise no change to standard title page.
Changing the font-size="...&quot; in
.
<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format&quot; xsl:use-attribute-sets="book.titlepage.recto.style" font-size="20.736pt" space-before="10.8pt" keep-with-next.within-column="always">
<xsl:apply-templates select=".&quot; mode="book.titlepage.recto.mode&quot;/>
</fo:block>
</xsl:template>
Doesn't work at all (no change), and I presume this should also change the size of <affiliation> as font-size would be inherited.  Can anyone help please?

Ron
--
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


-- 
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
Re: Font size changes in <author> and <affiliation>
user name
2007-04-14 13:55:27
As I describe in this section of my book:
 
 
you can customize how a particular element&nbsp;is&nbsp;handled on a titlepage by customizing the template in the mode without the "auto" in the mode name, in this case mode="book.titlepage.recto.mode".  For example:
 
<xsl:template match="author" mode="book.titlepage.recto.mode">
&nbsp; <fo:block font-size="23pt"
&nbsp; &nbsp;   ; &nbsp; &nbsp;  color="blue"
   ; &nbsp; &nbsp; &nbsp; &nbsp; space-before="20pt"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; keep-with-next.within-column="always">
 &nbsp;  <xsl:apply-templates select="." mode="titlepage.mode"/>
 ; </fo:block>
&nbsp; <fo:block font-size="12pt"
&nbsp; &nbsp;   ; &nbsp; &nbsp;  color="green"
 ; &nbsp; &nbsp; &nbsp; &nbsp;   space-before="18pt" >
 ; &nbsp; <xsl:apply-templates select="affiliation" mode="titlepage.mode"/>
 ; </fo:block>
&lt;/xsl:template>
(I use color here just to indicate that it is working).
 
Because this template is applied within the block created in the mode name that includes "auto", it will inherit all those attributes, so you need to override any that you don't want.
 
In this case, the affiliation would not normally appear on a book titlepage.  The default handling of author in fo/titlepage.xsl in mode="titlepage.mode" has one template with a general match on author which also processes the affiliation.  But there is a second template that specifically matches on bookinfo/author with priority="2", which takes precedence in this case. ; That template does not output affiliation.  So your customization needs to handle the components of author the way you want them.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net
&nbsp;
 
----- Original Message -----
Sent: Friday, April 13, 2007 12:04 PM
Subject: Re: [docbook-apps] Font size changes in <author> and <affiliation>



Apologies, I should have been more precise.&nbsp; I want <author> in a larger font then <orgname> within <affiliation> within <author>


On a <book&gt; title page I have a need to have <author> at a bigger font size than <affiliation> (which is within <author>)
Otherwise no change to standard title page.
Changing the font-size="..." in
.
<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="20.736pt" space-before="10.8pt" keep-with-next.within-column="always">
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
Doesn't work at all (no change), and I presume this should also change the size of <affiliation> as font-size would be inherited.  Can anyone help please?

Ron
--
Ron Catterall, Phd, DSc  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140    &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico&nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; fax: +1 530 348 8309
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


-- 
Ron Catterall, Phd, DSc  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140    &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico&nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; fax: +1 530 348 8309
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
Re: Font size changes in <author> and <affiliation>
user name
2007-04-15 11:02:08
Thanks Bob - I'm still missing something.  I added your code

<xsl:template match="author" mode="book.titlepage.recto.mode&quot;>
 
<fo:block font-size="23pt"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; color="blue"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; space-before="20pt"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; keep-with-next.within-column="always">
 &nbsp; 
<xsl:apply-templates select=".&quot; mode="titlepage.mode&quot;/>
 
</fo:block>
 
<fo:block font-size="12pt"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; color="green"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; space-before="18pt" >
 &nbsp; 
<xsl:apply-templates select="affiliation&quot; mode="titlepage.mode&quot;/>
 
</fo:block>
</xsl:template>
to my customization layer, but this has no effect at all, so there must be something of higher priority over-ruling it.

Both author and  affiliation are output on the title page by XEP 4.9

I am using the standard titlepage.templates.xsl which contains

<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format&quot; xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next.within-column="always">
<xsl:apply-templates select=".&quot; mode="book.titlepage.recto.mode&quot;/>
</fo:block>
</xsl:template>
and

<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author&quot;/>
I've tried taking the 'auto' out of these, but no effect

Any help much appreciated.

Ron

As I describe in this section of my book:
 
http://www.sagehill.net/docbookxsl/TitlePagePrint.html#TitlepageElementTemplates
 
you can customize how a particular element&nbsp;is handled on a titlepage by customizing the template in the mode without the ";auto" in the mode name, in this case mode="book.titlepage.recto.mode&quot;. ; For example:
 
<xsl:template match=&quot;author&quot; mode=&quot;book.titlepage.recto.mode&quot;>
  &lt;fo:block font-size="23pt&quot;
&nbsp; &nbsp; &nbsp;   ; &nbsp;  color="blue"
 &nbsp; &nbsp; &nbsp;   ; &nbsp; space-before=";20pt"
 &nbsp; &nbsp;   ; &nbsp; &nbsp; keep-with-next.within-column="always">;
 &nbsp;  <xsl:apply-templates select=&quot;." mode=";titlepage.mode"/>
&nbsp; </fo:block>
&nbsp; <fo:block font-size="12pt&quot;
&nbsp; &nbsp; &nbsp;   ; &nbsp;  color="green"
 &nbsp; &nbsp;   ; &nbsp; &nbsp; space-before=&quot;18pt"; >
&nbsp; &nbsp; <xsl:apply-templates select=&quot;affiliation" mode="titlepage.mode"/&gt;
 ; </fo:block>
</xsl:template>

(I use color here just to indicate that it is working).
 
Because this template is applied within the block created in the mode name that includes "auto", it will inherit all those attributes, so you need to override any that you don't want.
 
In this case, the affiliation would not normally appear on a book titlepage.  The default handling of author in fo/titlepage.xsl in mode=&quot;titlepage.mode&quot; has one template with a general match on author which also processes the affiliation.  But there is a second template that specifically matches on bookinfo/author with priority="2", which takes precedence in this case. ; That template does not output affiliation.  So your customization needs to handle the components of author the way you want them.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net">bobssagehill.net
 

-- 
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
Re: Font size changes in <author> and <affiliation>
user name
2007-04-17 15:16:37
Saxon 6.5.5 + XEP 4.9 + Oxygen 8.1 processing

<?xml version=&quot;1.0&quot; encoding="UTF-8" ?>
<!DOCTYPE book PUBLIC &quot;-//OASIS//DTD DocBook XML V4.5//EN&quot;
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
<book&gt;
<title&gt;Book Title</title>
<subtitle>Subtitle</subtitle>
<bookinfo>
<authorgroup>
<author>
<firstname>An</firstname>
<othername role="middle">23pt.</othername>
<surname>Author</surname>
<affiliation>&lt;orgname&gt;<?lb?&gt;&nbsp;<?lb?&gt;&nbsp;<?lb?&gt;Organisation Name (12pt.)</orgname></affiliation>
</author>
</authorgroup>
</bookinfo>
<chapter><title>Chapter Title</title><para>Some chapter text here.</para&gt;</chapter>
</book&gt;
with this XSL stylesheet

<?xsl version=&quot;1.0&quot; ?>
<xsl:stylesheet
 &nbsp; &nbsp;  xmlnssl="http://www.w3.org/1999/XSL/Transform" version="1.0&quot;
 &nbsp; &nbsp;  xmlns:fo="http://www.w3.org/1999/XSL/Format&quot; >
<xsl:import href="/Applications/Utilities/oxygen/8.1/oxygen/frameworks/docbook/xsl/fo/docbook.xsl" />
<xsl:param name="xep.extensions&quot; select ="1&quot; />
<xsl:template match="processing-instruction('lb')">
<fo:block/>
</xsl:template>
<xsl:template match="author" mode="book.titlepage.recto.mode&quot;>
 
<fo:block font-size="23pt"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; color="blue"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; space-before="20pt"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; keep-with-next.within-column="always">
 ??
<xsl:apply-templates select=".&quot; mode="titlepage.mode&quot;/>
 
</fo:block>
 
<fo:block font-size="12pt"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; color="green"
 &nbsp; &nbsp; &nbsp; &nbsp;   ; space-before="18pt" >
 ??
<xsl:apply-templates select="affiliation&quot; mode="titlepage.mode&quot;/>
 
</fo:block>
</xsl:template>
</xsl:stylesheet&gt;
does not apply either color or font-size specifications.


As I describe in this section of my book:
 
http://www.sagehill.net/docbookxsl/TitlePagePrint.html#TitlepageElementTemplates
 
you can customize how a particular element&nbsp;is handled on a titlepage by customizing the template in the mode without the ";auto" in the mode name, in this case mode="book.titlepage.recto.mode&quot;. ; For example:
 
<xsl:template match=&quot;author&quot; mode=&quot;book.titlepage.recto.mode&quot;>
&nbsp; <fo:block font-size="23pt&quot;
&nbsp; &nbsp; &nbsp;   ; &nbsp;  color="blue"
 &nbsp; &nbsp; &nbsp;   ; &nbsp; space-before=";20pt"
 &nbsp; &nbsp;   ; &nbsp; &nbsp; keep-with-next.within-column="always">;
 &nbsp;  <xsl:apply-templates select=&quot;." mode=";titlepage.mode"/>
&nbsp; </fo:block>
&nbsp; <fo:block font-size="12pt&quot;
&nbsp; &nbsp; &nbsp;   ; &nbsp;  color="green"
 &nbsp; &nbsp;   ; &nbsp; &nbsp; space-before=&quot;18pt"; >
&nbsp; &nbsp; <xsl:apply-templates select=&quot;affiliation" mode="titlepage.mode"/&gt;
 ; </fo:block>
&lt;/xsl:template>

(I use color here just to indicate that it is working).
 
Because this template is applied within the block created in the mode name that includes "auto", it will inherit all those attributes, so you need to override any that you don't want.
 
In this case, the affiliation would not normally appear on a book titlepage.  The default handling of author in fo/titlepage.xsl in mode=&quot;titlepage.mode&quot; has one template with a general match on author which also processes the affiliation.  But there is a second template that specifically matches on bookinfo/author with priority="2", which takes precedence in this case. ; That template does not output affiliation.  So your customization needs to handle the components of author the way you want them.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net">bobssagehill.net
 
 
----- Original Message -----
From: roncatterall.net">Ron Catterall
To: lists.oasis-open.org" >docbook-appslists.oasis-open.org
Sent: Friday, April 13, 2007 12:04 PM
Subject: Re: [docbook-apps] Font size changes in <author> and <affiliation>



Apologies, I should have been more precise.&nbsp; I want <author> in a larger font then <orgname> within &lt;affiliation> within <author>


On a <book&gt; title page I have a need to have <author> at a bigger font size than <affiliation> (which is within <author>)
Otherwise no change to standard title page.

Changing the font-size="...&quot; in
.
<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format&quot; xsl:use-attribute-sets="book.titlepage.recto.style" font-size="20.736pt" space-before="10.8pt" keep-with-next.within-column="always">
<xsl:apply-templates select=".&quot; mode="book.titlepage.recto.mode&quot;/>
</fo:block>
</xsl:template>
Doesn't work at all (no change), and I presume this should also change the size of <affiliation> as font-size would be inherited.  Can anyone help please?

Ron
--
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


--
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


-- 
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )