Doc: render π more nicely in PDF output.
We need to select symbol font explicitly, or it comes out misaligned. Alexander Lakhin, Tom Lane Discussion: https://postgr.es/m/10598.1587928415@sss.pgh.pa.us
This commit is contained in:
parent
d51f704fd8
commit
5ac2475548
@ -1365,7 +1365,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
|
|||||||
<function>pi</function> ( )
|
<function>pi</function> ( )
|
||||||
<returnvalue>double precision</returnvalue>
|
<returnvalue>double precision</returnvalue>
|
||||||
<?br?>
|
<?br?>
|
||||||
Approximate value of π
|
Approximate value of <phrase role="symbol_font">π</phrase>
|
||||||
<?br?>
|
<?br?>
|
||||||
<literal>pi()</literal>
|
<literal>pi()</literal>
|
||||||
<returnvalue>3.141592653589793</returnvalue>
|
<returnvalue>3.141592653589793</returnvalue>
|
||||||
|
@ -1528,7 +1528,7 @@ SELECT 4 AS four \; SELECT 5 AS five \aset
|
|||||||
<row>
|
<row>
|
||||||
<entry><literal><function>pi()</function></literal></entry>
|
<entry><literal><function>pi()</function></literal></entry>
|
||||||
<entry>double</entry>
|
<entry>double</entry>
|
||||||
<entry>value of the constant PI</entry>
|
<entry>value of the constant <phrase role="symbol_font">π</phrase></entry>
|
||||||
<entry><literal>pi()</literal></entry>
|
<entry><literal>pi()</literal></entry>
|
||||||
<entry><literal>3.14159265358979323846</literal></entry>
|
<entry><literal>3.14159265358979323846</literal></entry>
|
||||||
</row>
|
</row>
|
||||||
|
@ -101,6 +101,11 @@
|
|||||||
<fo:block/>
|
<fo:block/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- FOP needs us to be explicit about use of symbol font in some cases -->
|
||||||
|
<xsl:template match="phrase[@role='symbol_font']">
|
||||||
|
<fo:inline font-family="{$symbol.font.family}"><xsl:value-of select="."/></fo:inline>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- bug fix from <https://sourceforge.net/p/docbook/bugs/1360/#831b> -->
|
<!-- bug fix from <https://sourceforge.net/p/docbook/bugs/1360/#831b> -->
|
||||||
|
|
||||||
<xsl:template match="varlistentry/term" mode="xref-to">
|
<xsl:template match="varlistentry/term" mode="xref-to">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user