You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pandoc 2.2.1
Compiled with pandoc-types 1.17.4.2, texmath 0.11, skylighting 0.7.0.2
Default user data directory: /home/doron/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
I've converted a mediawiki text from the Arch Linux WiKi into texinfo using pandoc inorder to run makeinfo on it. I recieved these errors from makeinfo:
After reading a little bit about the texinfo format I understand that I should use the --standalone flag in order for the @textsuperscript macro to be defined. But still, an unwanted warning for the same line as above appears when running makeinfo:
out/2bwm.texinfo:55: warning: @iftex should only appear at the beginning of a line (possibly involving @textsuperscript)
I think we should just use @sup and @sub for this.
The text was updated successfully, but these errors were encountered:
I have not used texinfo before, can someone explain what this macro is doing? Why does it call itself recursively and what ^@ means? Also it does not work for me with texi2pdf, there is no superscript, the text is simply indented or something.
The texinfo writer and template are very old, and my memory doesn't help me here, but there must have been some reason that complex macro was used. Until we can reconstruct what that was, I'm a bit nervous about making this change.
Have you tested the new code with output to both tex and non-tex backends?
OK, here's the answer -- I checked the texinfo changelog:
2014-12-02 Karl Berry <karl@gnu.org>
* doc/texinfo.tex (\sub, \sup, \mathopsup): new commands @sub and @sup.
(\ptexsp, \ptexsup): save and restore in \tex.
The pandoc texinfo writer dates to 2008 or something. So that's why there were custom macros defined. I think this change is fine.
Version:
I've converted a
mediawiki
text from the Arch Linux WiKi intotexinfo
using pandoc inorder to runmakeinfo
on it. I recieved these errors frommakeinfo
:While line 20 is:
And line 40 is:
I'm reporting this as a bug although it is compiled into pandoc like this by design. The official documentation for the
texinfo
format by GNU says that@sub
and@sup
are used supposed to be used: https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Inserting-Subscripts-and-SuperscriptsEDIT:
After reading a little bit about the
texinfo
format I understand that I should use the--standalone
flag in order for the@textsuperscript
macro to be defined. But still, an unwanted warning for the same line as above appears when runningmakeinfo
:I think we should just use
@sup
and@sub
for this.The text was updated successfully, but these errors were encountered: