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

Footnote mark rendered on the wrong side of a right-to-left string after .tex to .docx #9556

Open
dan-reznik opened this issue Mar 10, 2024 · 1 comment
Labels

Comments

@dan-reznik
Copy link

Using "pandoc main.tex -o main.docx" on the .tex below, we identify the following deviation from a latex-generated PDF:

a footnote following a right-to-left string (e.g., hebrew below) appears correctly on its right side on the PDF and incorrectly on its left side on the .docx

Cheers


\documentclass[letter]{article}
\title{Right-To-Left Footnote problem}
\author{}

\usepackage{fontspec}
\setmainfont{FreeSerif}
\setsansfont{FreeSans}
\setmonofont{FreeMono}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\setotherlanguages{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{Hadasim CLM}

\begin{document}
\maketitle

Two Pandoc bugs in going from \texttt{.tex} to \texttt{.docx}:

A footnote on a right-to-left string, e.g., \texthebrew{טוֹב}\footnote{A footnote.} appears incorrectly on the
left side of the string.
\end{document}

@dan-reznik dan-reznik added the bug label Mar 10, 2024
@jgm
Copy link
Owner

jgm commented Mar 10, 2024

Could you upload a minimal docx created in Word with a couple Hebrew words and a footnote, so I can see how Word represents this and how it differs from pandoc's version?

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

No branches or pull requests

2 participants