Here is the template.
partially working.
when I use XeTeX, forward reference is not working, backward reference is working fine.
when I use LuaLaTeX, forward reference linked to References, backward reference is working fine.
and I found why, the reason is setspace.
I googled it and this link and others saying about package loading order.
I changed package loading order to make it work but no luck.
I checked basic example that use both setspace and footnotebackref, it's no problem.
I can't find out what other thing which makes this bug.
I want to make it work.
Please help. Thanks in advance!
hypersetupandurlstyleare not related to the error, and then take them out.) – Teepeemm Sep 14 '21 at 13:02$doing in template.tex? It looks like they're supposed to have been filled in by something else. – Teepeemm Sep 14 '21 at 13:33hypersetupandurlstylething, no difference. thanks. – luceat-lux-vestra Sep 14 '21 at 13:37MWEwhat you want because this template not only usestex. I'm thinking how to improve my question... I think all those$things doing aboutpandocthing. – luceat-lux-vestra Sep 14 '21 at 13:47