Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ac2475

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 LaneDiscussion:https://postgr.es/m/10598.1587928415@sss.pgh.pa.us
1 parentd51f704 commit5ac2475

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 constantPI</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:templatematch="phrase[@role='symbol_font']">
106+
<fo:inlinefont-family="{$symbol.font.family}"><xsl:value-ofselect="."/></fo:inline>
107+
</xsl:template>
108+
104109
<!-- bug fix from <https://sourceforge.net/p/docbook/bugs/1360/#831b>-->
105110

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp