Skip to content
No results
  • One man and his blog
STM publishing: tools, technologies and change
  • One man and his blog
STM publishing: tools, technologies and change
  • C programming (miscellaneous), TeX (general)

Looking inside TeX: C helps me to see

  Introduction: From WEB to C, a bit of history/background For some time I’d wanted to build TeX (the original Knuth version) from the WEB source code, but the relatively complex process to generate C from WEB meant it was…

  • Graham Douglas
  • September 2, 2014
  • C programming (miscellaneous), Uncategorized

RegexBuddy and RegexMagic: Truly superb regular expression tools

Regular expressions are part of many programmer’s toolkit but they can be quite fiddly to get right. At the moment, I’m trying to “sanitize” the C code generated for TeX (via Web2C) by post-processing the TeX.c file to make the…

  • Graham Douglas
  • August 30, 2014
  • C programming (miscellaneous), TeX (general)

TeX’s “badness” function in C

TeX uses the concept of “badness” as a measure of how much the glue in a box has to stretch or shrink. In the following C function, t is the difference between the total of the natural sizes (N) of…

  • Graham Douglas
  • August 26, 2014
  • C programming (miscellaneous), TeX (general)

What is TeX’s memoryword structure in C?

Just a brief post, partly to record this for my own use. If you read the source code of TeX you will see references to a data structure called a memoryword. It is very carefully defined in the source file…

  • Graham Douglas
  • August 24, 2014
  • Uncategorized

Tip: PCRE, how to fix the stack overflow problem (Windows)

I kept hitting a stack overflow problem when using the PCRE regular expression C library under windows. To fix it, put the following line in PCRE’s config.h to tell it not to use recursion but to use the heap instead.…

  • Graham Douglas
  • August 15, 2014
  • Uncategorized

Minimal FreeType program to dump PostScript font names (with file globbing)

Introduction I needed to create an updated font map for some work with dvipng/dvips and had to update psfonts.map to contain the mapping between tfm/pfb files and the corresponding PostScript name for each font. To do that I wrote a…

  • Graham Douglas
  • August 1, 2014
Prev
1 2 3 4 5 6 … 22
Next
Copyright © 2026 - WordPress Theme by CreativeThemes

Powered by
►
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
►
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
►
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
►
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by