#3726 closed enhancement (fixed)
PDF manual from dblatex renders fancy quotes for programlisting
Reported by: | Mike Taves | Owned by: | robe |
---|---|---|---|
Priority: | low | Milestone: | PostGIS 2.3.3 |
Component: | documentation | Version: | 2.3.x |
Keywords: | Cc: |
Description
As described in this Q/A, parts of the PostGIS manual e.g. ST_MLineFromText define an example like this within programlisting
:
<programlisting>SELECT ST_MLineFromText('MULTILINESTRING((1 2, 3 4), (4 5, 6 7))');</programlisting>
which renders fine for HTML outputs, however the PDF rendering via dblatex on page 29 shows:
SELECT ST_MLineFromText(’MULTILINESTRING((1 2, 3 4), (4 5, 6 7))’);
which has fancy, but bad quotes. Straight quotes need to be preserved in the programlisting environment. The PostgreSQL PDF manual does not have this issue.
Possible fixes are to use the "-s latex_style, --texstyle=latex_style" option for dblatex in the doc/Makefile.in, which would reference a static customized LaTeX style file that may modify how LaTeX handles these characters (e.g. this or other method).
Change History (10)
comment:1 by , 8 years ago
Milestone: | PostGIS Future → PostGIS 2.4.0 |
---|
comment:2 by , 8 years ago
comment:3 by , 8 years ago
Milestone: | PostGIS 2.4.0 → PostGIS 2.3.3 |
---|
comment:4 by , 8 years ago
Version: | trunk → 2.3.x |
---|
comment:9 by , 8 years ago
In [15366] it seems you copied astyle (a copy of astyle.sh) instead of doc/texstyle.sty
See fix here: https://github.com/postgis/postgis/pull/128
dblatex uses the listings LaTeX package, so the fix was to set the option upquote=true