Brian M. Hunt

Canada

Age: 35

4h
comment Are British plugs safer than all other plugs?
FWIW, an American-looking statistic is “Each day, nearly 7 children are treated in hospital emergency rooms for electrical shock or burn injuries caused by tampering with a wall outlet”
7h
comment Escape a string printed from Lua using ConTeXt
One note, context("%!tex!", text) seems to handle "\" in an unintuitive way. For example, the string "\escape" results in "<LINEBREAK>escape". This may not be the desired behaviour. The catcodes solution does not have this particular caveat.
8h
awarded Nice Question
8h
comment Are British plugs safer than all other plugs?
Yes, exactly. :o) I mean, the more I look at it the more I think it is an marvel of engineering and forethought. I just wonder whether it has made a significant difference in a statistical/actuarial sense.
10h
accepted Escape a string printed from Lua using ConTeXt
10h
comment Escape a string printed from Lua using ConTeXt
Thanks Aditya - why do you think one would prefer these over the discussed catcodes? other than Hans saying so, which ought to be compelling enough :-) —just curious.
21h
comment Are British plugs safer than all other plugs?
@AlanMunn: The US may not be the best comparison to mention, but there's lots of the world to compare to at 220V, with few of those places having the protections of the UK-style plug. In any case, won't the higher voltage in the UK vs in the US lead to more likely arcing in the UK - arguably making it more dangerous than in the US. If that is the case if the stats show lower electricity injuries/deaths in the UK it would be in spite of the higher voltage?
1d
asked Are British plugs safer than all other plugs?
Jul
26
comment What is a simple example of something you can do with LuaTeX?
I believe, in mkiv at least, one might prefer \ctxlua to \directlua and \startlua for blocks.
Jul
25
revised Escape a string printed from Lua using ConTeXt
added 49 characters in body
Jul
25
answered Escape a string printed from Lua using ConTeXt
Jul
25
comment Escape a string printed from Lua using ConTeXt
It looks like the proper catcode might be \notcatcodes from catc-def.mkiv
Jul
25
revised Escape a string printed from Lua using ConTeXt
note verbatim
Jul
24
accepted Get or change ConTeXt path for components/projects/environment
Jul
23
comment Escape a string printed from Lua using ConTeXt
Thanks @phg. I am afraid it is not apparent from the link how one employs said catcodes. Incidentally, and aside, if there is no such thing as a TeX compiler, what is the mechanism by which the TeX source is converted to machine instructions?
Jul
23
asked Escape a string printed from Lua using ConTeXt
Jul
23
revised Get or change ConTeXt path for components/projects/environment
add note re --path
Jul
21
answered Get or change ConTeXt path for components/projects/environment
Jul
21
comment Get or change ConTeXt path for components/projects/environment
Thanks @Metafox - it is probably also worth noting that using \usepath[.., ../..] enables discrimination by subpath i.e. \component components/X will not retrieve products/X. Whereas \usepath[..] \usesubpath[components,products] with \component X is ambiguous —— TeX might end up using either the products/X or components/X.
Jul
21
comment Get or change ConTeXt path for components/projects/environment
@Metafox: That seems to work. Could you be so kind as to document the arguments to those? That would be a good answer.
1 2 3 4 5