> On 24 May 2017, at 22:08, Gavin Smith <[email protected]> wrote: > > On Tue, May 23, 2017 at 07:10:53PM +0200, Hans Åberg wrote: >> [I am not on list, so please cc me.] >> >> . I want to use Texinfo for a program that uses UTF-8 @code, including >> math styles, and as such, the solution to that does not matter. Cf. >> sample [1]. Perhaps it requires some further development: > > I am sorry, I do not understand what it is you are trying to do. I > looked at the file sample.1.pdf and it looked fine compared with the > source sample.texi.
> I saw that sample.0.pdf was wrong. What was the difference in the way > you generated sample.0.pdf and sample.1.pdf? The sample.0.pdf is what I get if not including the OTF hacks, sample.1.pdf is what it should look like, mostly, in terms of @math and @code. But still, 'ö' in the text body, if put there, is translated by texinfo.tex into the classical TeX command \"o and written out verbatim. Also, I discovered that this does not work: @cindex ⇒ @cindex ¬ It results in the error: String contains an invalid utf-8 sequence There are some character translations causing this, it seems. >> One problem is that 'info' generation does not accept user defined >> commands like @stixfonts, nor is it possible to use @tex as it creates >> an environment. > > I couldn't see '@stixfonts' in any of the files, so I don't know what > that means. It is in the file sample.texi, the first few lines: \input luaotfload.sty \input luatex-math-modified.tex \input texinfo @c -*-texinfo-*- @stixfont The first file calls a large directory (in TeXLive 2016) that makes LuaTeX able to deal with OTF fonts, originally lifted out of ConTeXt. The second file, from ConTeXt, originally named luatex-math.tex, contains font specific hooks to TeX, modified to define a \stixfont macro specific to the STIX font. The last line, @stixfont calls this macro; the call must be global for the override to work.
