Counter footnote
GuiName Footnote
Within chapter
- LabelString "\arabic{footnote}"
End
Counter footnote
GuiName Footnote
+ LabelString "\superarabic{footnote}"
PrettyFormat "Footnote ##"
End
End
InsetLayout Foot
- LabelString Foot
+ LabelString ""
LatexType Command
LatexName footnote
Counter footnote
InheritFont false
Font
- Size Small
+ Size FootnoteSize
EndFont
LabelFont
Color footlabel
- Size Small
+ Size Normal
EndFont
MultiPar true
RefPrefix fn
if (numbertype == "fnsymbol")
return fnsymbolCounter(val);
+ if (numbertype == "superarabic")
+ return superarabicCounter(val);
+
return convert<docstring>(val);
}
int val = cnts.value(count);
if (cnts.hasCounter(count)) {
cnts.step(count, utype);
- custom_label_ += ' ' + cnts.theCounter(count, lang->code());
+ if (!custom_label_.empty())
+ custom_label_ += ' ';
+ custom_label_ += cnts.theCounter(count, lang->code());
if (deleted)
// un-step after deleted counter
cnts.set(count, val);
if (isOpen(bv))
// this will give us something useful if there is no button
return InsetCollapsible::toolTip(bv, x, y);
- return toolTipText(custom_label_+ ": ");
+ return toolTipText(custom_label_+ " ");
}
#include <config.h>
#include "support/counter_reps.h"
+
+#include "support/convert.h"
#include "support/docstring.h"
#include "support/lstrings.h"
};
}
+
+docstring const superarabicCounter(int const n)
+{
+ docstring superarabic = convert<docstring>(n);
+ static char_type map[] = {0x2070, 0x00b9, 0x00b2, 0x00b3, 0x2074,
+ 0x2075, 0x2076, 0x2077, 0x2078, 0x2079 };
+ for (char_type & c : superarabic)
+ c = map[c - char_type('0')];
+ return superarabic;
+}
+
} // namespace lyx
docstring const romanCounter(int const n);
docstring const lowerromanCounter(int const n);
docstring const fnsymbolCounter(int const n);
+docstring const superarabicCounter(int const n);
} // namespace lyx