4
votes
0answers
53 views

Error arising when using \typeout & \meaning with \midrule

In order to facilitate debugging some experimental code, I created a version of \typeout that will break its content into multiple lines: %% dummy macro for simulating newlines in output to terminal ...
7
votes
1answer
722 views

A \typeout (or expandable command) that can expand once - or with variable levels of expansion?

Consider the following MWE: \documentclass[12pt]{article} \begin{document} \def\aaa{something} \typeout{=1==\aaa==} \typeout{=1==\meaning\aaa==} \typeout{} \def\bbb{else \aaa, else} ...
4
votes
2answers
1k views

Output ASCII code as character on terminal in Latex?

If I have a letter/character, I can output its ASCII value using \number and backtick command: *\typeout{\number`a} 97 What do I do if I have "97", and I want to show "a" in terminal? I have ...
3
votes
1answer
264 views

Generating a catcode table in Latex (with \typeout to terminal)?

I often need to look up a catcode table, and quick searches on the web are rarely satisfying. So I thought, it must be (in the long term) easier to use a Latex function of sorts, to loop through all ...