Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange footnotes in docbook with memoir #45

Closed
hcf-n opened this issue Feb 8, 2021 · 3 comments
Closed

Strange footnotes in docbook with memoir #45

hcf-n opened this issue Feb 8, 2021 · 3 comments

Comments

@hcf-n
Copy link

hcf-n commented Feb 8, 2021

The following MWE gives to strange footnotes when converting to docbook whith memoir

\documentclass[a4paper,12pt,article]{memoir}
\usepackage[T1]{fontenc}                         
\usepackage[utf8]{inputenc}                       
\title{Placeholder title}
\begin{document}
\maketitle 

Test sentence.\footnote{Test.}
\end{document}

The footnote in docbook looks like:
footnote><para><inlineequation><inlinemediaobject><imageobject><imagedata fileref="Praktikumssjangeren1x.png"/></imageobject></inlinemediaobject></inlineequation>Test.</para></footnote>

@michal-h21
Copy link
Owner

Try this configuration file:

\Preamble{xhtml}
\catcode`\:=11
\Configure{footnotetext}
    {\HCode{<footnote><para>}\setbox\tmp:bx=\hbox\bgroup\let\@makefnmark\relax}
    {\egroup}%
    {\HCode{</para></footnote>}}
\catcode`\:=12
\begin{document}
\EndPreamble

@hcf-n
Copy link
Author

hcf-n commented Feb 8, 2021

Works fine! Will it be included in the source?

@michal-h21
Copy link
Owner

Yes, I've added it to the sources. I've also added \textuperscript and \textsubscript support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants