The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-article.css" type="text/css"/>
<section inlist="toc" xml:id="S1">
<tags>
<tag>1</tag>
<tag role="refnum">1</tag>
<tag role="typerefnum">§1</tag>
</tags>
<title><tag close=" ">1</tag>Testing duplication of #</title>
<para xml:id="S1.p1">
<p>detokenize: Two hashes: ##, not one; “a .</p>
</para>
<para xml:id="S1.p2">
<p>scantokens: two hashes: ##, not one; [expanded a].</p>
</para>
<para xml:id="S1.p3">
<p>Deferred tokenize: One hash: #, not two; [expanded a].</p>
</para>
</section>
<section inlist="toc" xml:id="S2">
<tags>
<tag>2</tag>
<tag role="refnum">2</tag>
<tag role="typerefnum">§2</tag>
</tags>
<title><tag close=" ">2</tag>In definitions</title>
<para xml:id="S2.p1">
<p>Also two hashes##, not one</p>
</para>
<para xml:id="S2.p2">
<p>Also two hashes##, not one</p>
</para>
</section>
<section inlist="toc" xml:id="S3">
<tags>
<tag>3</tag>
<tag role="refnum">3</tag>
<tag role="typerefnum">§3</tag>
</tags>
<title><tag close=" ">3</tag>File io</title>
<para xml:id="S3.p1">
<p>Reading file badchars.tex:<break/>
Line:“Bad chars: ^b$@##˙x ! ”<break/>
Line:“More Bad chars: ^b$@##˙x ! ”<break/>
Line:“And More Bad chars: ^b$@##˙x ! ”<break/>
Line:““par ”<break/>
Full Contents:“Bad chars: ^b$@##˙x ! More Bad chars: ^b$@##˙x ! And More Bad chars: ^b$@##˙x ! “par ”<break/></p>
</para>
</section>
</document>