Skip to content

Commit 5ac2475

Browse files
committed
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
1 parent d51f704 commit 5ac2475

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
13651365
<function>pi</function> ( )
13661366
<returnvalue>double precision</returnvalue>
13671367
<?br?>
1368-
Approximate value of &pi;
1368+
Approximate value of <phrase role="symbol_font">&pi;</phrase>
13691369
<?br?>
13701370
<literal>pi()</literal>
13711371
<returnvalue>3.141592653589793</returnvalue>

doc/src/sgml/ref/pgbench.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ SELECT 4 AS four \; SELECT 5 AS five \aset
15281528
<row>
15291529
<entry><literal><function>pi()</function></literal></entry>
15301530
<entry>double</entry>
1531-
<entry>value of the constant PI</entry>
1531+
<entry>value of the constant <phrase role="symbol_font">&pi;</phrase></entry>
15321532
<entry><literal>pi()</literal></entry>
15331533
<entry><literal>3.14159265358979323846</literal></entry>
15341534
</row>

doc/src/sgml/stylesheet-fo.xsl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@
101101
<fo:block/>
102102
</xsl:template>
103103

104+
<!-- FOP needs us to be explicit about use of symbol font in some cases -->
105+
<xsl:template match="phrase[@role='symbol_font']">
106+
<fo:inline font-family="{$symbol.font.family}"><xsl:value-of select="."/></fo:inline>
107+
</xsl:template>
108+
104109
<!-- bug fix from <https://sourceforge.net/p/docbook/bugs/1360/#831b> -->
105110

106111
<xsl:template match="varlistentry/term" mode="xref-to">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy