Closed Suavesito-Olimpiada closed 1 year ago
I think we should check all symbols. I do not expect we will often change the symbol table. If we do it should be deliberate and we can generate a new reference table for the test.
Perfect, I'll update it accordingly.
Seems like it would be nicer to simply export the Symbols
array?
I thought about it, but I want to have the same rendering of symbols from the lib without needing to change something in the Julia side if the lib is updated (maybe more effort than needed, as the only thing affecting this is the dotted circle for substitution).
I thought about it, but I want to have the same rendering of symbols from the lib
It's just a table mapping LaTeX names to unicode codepoints. Why does the caller need it in a particular text format?
(Julia has an even bigger table that it might be useful to crib a few more symbols from here.)
I also added access to Symbols
.
Fixed that texstring
was not exported in the shared library.
I wrote a script to generate the list of symbols to export from texprintf.h (it is not the first time it was forgotten to add new symbols to the list). Cheers!
This adds a new API function
char *texsymbols_str()
, which return a formatted list ofcommand:symbol;
which need to be freed withtexfree
.I added this functionality to be able to call it as a library in a higher-level language (from LibTeXPrintf.jl), because it is tricky and unreliable to capture
stdout
output. cc @stevengjAlso added a small test script
testtexsymbols.sh
that check the first two symbols, in principle I would like to check all of them, but if the order or some are added/deleted it won't work.