On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote:
Dear List,
The MWE below gives a pdf with two #'s instead of only one. Why is that?
\starttext
\startluacode context.type("#") \stopluacode
\stoptext because by default tex loves to duplicate hashes when it serializes token lists
as this seems to be "the month of the duplicate hashes" i looked it what we did so far can also work here and i sort of managed although there might be more cases (when im done with this we probably "have it the other way around" which could mean adapting some code in the tex-lua context system that actually depends on duplication or where we work around it and no longer need to) the complication is mostly in moving token lists around, them beign serialized and deserialized etc but i guesa at some point we'll get there (original tex doesn't really have this problem because there serialization hashes will triggere errors in cases where they are not permitted anyway) no upload as i need to test more Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------