[texhax] Difficulties with quotes

David Niklas great123456 at mail.com
Sat Nov 4 03:13:18 CET 2017


I don't know with which piece of software the fault lies so I am taking
the liberty of CC'ing all the affected projects in order to get a
solution. If you don't want to be included just ask.

###############################################################################
% cat broken.tex
\documentclass{book}
\begin{document}
``Example''
"Example 2"
\end{document}
###############################################################################
###############################################################################
% chktex broken.tex
ChkTeX v1.7.1 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with PCRE regex support.
Warning 18 in broken.tex line 4: Use either `` or '' as an alternative to
`"'. "Example 2"
^
Warning 18 in broken.tex line 4: Use either `` or '' as an alternative to
`"'. "Example 2"
          ^
No errors printed; 2 warnings printed; No user suppressed warnings; No
line suppressed warnings.
###############################################################################
###############################################################################
% chktex --version
ChkTeX v1.7.1 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with PCRE regex support.
###############################################################################
###############################################################################
% latex2html broken.tex
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/^\\newcommand{ <-- HERE
\\etalchar}[^\n\r]*[\n\r]+/ at /usr/lib64/latex2html/latex2html.pl line
1156. Unescaped left brace in regex is deprecated, passed through in
regex; marked by <-- HERE in m/(^|[^\\])\\{ <-- HERE /
at /usr/lib64/latex2html/latex2html.pl line 1847.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/(^|[^\\])\\{ <-- HERE /
at /usr/lib64/latex2html/latex2html.pl line 1848.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/(color{ <-- HERE [^}]*})/
at /usr/lib64/latex2html/latex2html.pl line 2729.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/(color{ <-- HERE [^}]*})/
at /usr/lib64/latex2html/latex2html.pl line 2740.
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/((^|[\s,=])')\\\W{ <-- HERE (\w)}/ at 
/usr/lib64/latex2html/latex2html.pl line 6456.
This is LaTeX2HTML Version 2008 (1.71)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

Revised and extended by:
 Marcus Hennecke, Ross Moore, Herb Swan and others
...producing markup for HTML version 4.0



Extension: loading /usr/lib64/latex2html/versions/latin1.plUnescaped left
brace in regex is deprecated, passed through in regex; marked by <-- HERE
in m/(color{ <-- HERE [^}]*})/
at /usr/lib64/latex2html/versions/html4_0.pl line 958.

HTML version: loading /usr/lib64/latex2html/versions/html4_0.pl

 *** processing declarations ***

OPENING /home/me/broken.tex

Cannot create directory broken/: File exists, reusing it.

Note: Working directory is /home/me/broken
Note: Images will be generated in /tmp/l2h25883

texexpand V2008 (Revision 1.12)



Loading /usr/lib64/latex2html/styles/texdefs.perl...
Package: loading /usr/lib64/latex2html/styles/book.perl
Reading ...
++

Translating ...
0/1:top of broken: for broken.html

 *** translating preamble ***
..
 *** preamble done ***
;;

1/1:sectionstar:.."About this document ..." for node1.html
;;.

Doing section links ......
Done.
###############################################################################
###############################################################################
% pdflatex broken.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded 
format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./broken.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9l> and hyphenation patterns for 16 languages loaded.
(/usr/share/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/bk10.clo))
No file broken.aux.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./broken.aux)
)</usr/sh are/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on broken.pdf (1 page, 12548 bytes).
Transcript written on broken.log.
###############################################################################
###############################################################################
% latex2html --version
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/^\\newcommand{ <-- HERE
\\etalchar}[^\n\r]*[\n\r]+/ at /usr/lib64/latex2html/latex2html.pl line
1156. Unescaped left brace in regex is deprecated, passed through in
regex; marked by <-- HERE in m/(^|[^\\])\\{ <-- HERE /
at /usr/lib64/latex2html/latex2html.pl line 1847. Unescaped left brace in
regex is deprecated, passed through in regex; marked by <-- HERE in
m/(^|[^\\])\\{ <-- HERE / at /usr/lib64/latex2html/latex2html.pl line
1848. Unescaped left brace in regex is deprecated, passed through in
regex; marked by <-- HERE in m/(color{ <-- HERE [^}]*})/
at /usr/lib64/latex2html/latex2html.pl line 2729. Unescaped left brace in
regex is deprecated, passed through in regex; marked by <-- HERE in
m/(color{ <-- HERE [^}]*})/ at /usr/lib64/latex2html/latex2html.pl line
2740. Unescaped left brace in regex is deprecated, passed through in
regex; marked by <-- HERE in m/((^|[\s,=])')\\\W{ <-- HERE (\w)}/
at /usr/lib64/latex2html/latex2html.pl line 6456. This is LaTeX2HTML
Version 2008 (1.71) by Nikos Drakos, Computer Based Learning Unit,
University of Leeds.
###############################################################################
###############################################################################
% pdflatex --version pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015)
kpathsea version 6.2.2 Copyright 2015 Peter Breitenlohner (eTeX)/Han The
Thanh (pdfTeX). There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and the Lesser GNU
General Public License. For more information about these matters, see the
file named COPYING and the pdfTeX source. Primary author of pdfTeX: Peter
Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng
1.6.27+apng; using libpng 1.6.29+apng Compiled with zlib 1.2.11; using
zlib 1.2.11 Compiled with poppler version 0.45.0
###############################################################################
###############################################################################
% gv --version gv 3.7.3
###############################################################################
###############################################################################
% lynx --version Lynx Version 2.8.9dev.11 (15 Nov 2016) libwww-FM 2.14,
SSL-MM 1.4.1, GNUTLS 3.5.13, ncurses 6.0.20150808(wide) Built on
linux-gnu (Jul  8 2017 14:55:01).

Copyrights held by the Lynx Developers Group,
the University of Kansas, CERN, and other contributors.
Distributed under the GNU General Public License (Version 2).
See http://lynx.invisible-island.net/ and the online help for more
information.
###############################################################################
###############################################################################
% less --version less 487 (PCRE regular expressions)
Copyright (C) 1984-2016  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less
###############################################################################
###############################################################################
% cat broken.log
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded
format=pdflatex 2017.1.30)  1 NOV 2017 22:18 entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**broken.tex
(./broken.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9l> and hyphenation patterns for 16 languages loaded.
(/usr/share/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/bk10.clo
File: bk10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c at part=\count79
\c at chapter=\count80
\c at section=\count81
\c at subsection=\count82
\c at subsubsection=\count83
\c at paragraph=\count84
\c at subparagraph=\count85
\c at figure=\count86
\c at table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
No file broken.aux.
\openout1 = `broken.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}

] (./broken.aux) ) 
Here is how much of TeX's memory you used:
 223 strings out of 494408
 2356 string characters out of 6169694
 49360 words of memory out of 5000000
 3575 multiletter control sequences out of 15000+600000
 3993 words of font info for 15 fonts, out of 8000000 for 9000
 452 hyphenation exceptions out of 8191
 23i,4n,17p,128b,141s stack positions out of
5000i,500n,10000p,200000b,80000s
</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on broken.pdf (1 page, 12548 bytes).
PDF statistics:
 12 PDF objects out of 1000 (max. 8388607)
 7 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
###############################################################################
###############################################################################
% cat broken.aux
\relax 
###############################################################################
###############################################################################

In the PDF "example" has fancy quotes one upside down whereas "example 2"
has fancy quotes but of only one type. Furthermore chktex complains that
double quotes should not be used.

In lynx I have simply:
``Example'' "Example 2"
This is also the case when viewing the raw HTML (which I am attaching).

Annoyingly, the fancy quotes prevent the PDF from being viewed over the
command line via less (which is what I expect several people to view my
document with).

My LANG env is set to C and my terminal is mrxvt.

So chktex and pdflatex and latex2html cannot all be acting correctly
here.

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20171103/e4e9143c/attachment.html>


More information about the texhax mailing list