@Canageek if \SI is being executed it can handle the argument and interpret it as it wants but if the caption is being written to the loit of figures, a robust command just writes itself unexpanded expecting its argumnet to do the same but you will have picked up the definition of \degree expacting \degree{Master of Science} or some such.
In pdfTeX, the \pdfelapsedtime primitive gives access to the time since this pdfTeX run was started, in "scaled seconds" (1/65536 seconds). This is useful to benchmark code: repeat it many times, and test the time it takes.
\newcount\benchmarkcount
\long\def\tenfold#1{#1#1#1#1#1#1#1#1#1#1}
\long...
@StefanKottwitz er that's odd it should be populating it with the text content so no markup, I can look later
@StefanKottwitz ah well that's different. so that isn't the html it is (by then) the literal character U+00A0 I could strip it out but it isn't at all clear that it should be stripped out you can use A0 in text (it is the same as ~ basically once you have the utf8 input enabled which is the case here) so removing it in documents may break examples Having an A0 character in a latex preamble is an error.....
@StefanKottwitz one could consider making U+A0 have catcode 10 (space) until the begin docment but that would be a latex format change not runlatex (@JosephWright @UlrikeFischer ??)
@StefanKottwitz er let me look..
@StefanKottwitz untested but after ` p[i].textContent=pretext.replace(/\s+$/,'');`
@StefanKottwitz add p[i].textContent=p[i].textContent.replace(/\u00A0/,' '); (if I got my JavaScript right)
@StefanKottwitz it's probably safe if I always strip out nbsp that are at the start of a line, they probably come from wiki/markdown spftware making emptyish paragraphs, theer is no sensible use for a non breaking space if it isn't being used like ~ in see table~\ref{zzz}
@UlrikeFischer as always it's got a danger of messing up packages, shame you can't easily isolate the top level
@DavidCarlisle yes, that is the problem. It is also possible that it gets in definitions by copy and paste, and it wouldn't be good to try to guess if this is wanted or not.
@StefanKottwitz the font sizes are rather odd on this page. the ttfont is very tiny.
@StefanKottwitz I really do nothing there at all it's an iframe of pre-determined size and it shows the result of the post request, it just does what ot does...
@StefanKottwitz not really specifically although there are plenty of reports generally that pdf.js has some quirqs and isn't always that faithful, but really it os the only option I see for cross platform rendering. If you enable the cooke settings options then you could choose to use your browsers default renderer instead (same as adding the TeX pdf comment)
@StevenB.Segletes I think that is the wrong question:-) you could set \endlinechar=-1 then the end of line won't make a space, otherwise just test for a space at the end of the definition
@StevenB.Segletes the standart \typein command locally sets \endlinechar to avoid getting a space
@DavidCarlisle Is that the case if I want to process the end of line in the normal way? That is to say, if I read two successive lines, and append the 2nd to the first, how must \endlinechar be set so that a space gets inserted if line one ends in ^^M, but no space gets inserted if line 1 ends in %