有没有办法为 qrcode 包添加重音字符支持?
\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[]{qrcode}
\begin{document}
\qrcode[]{ààààççççééééùùùùïïï}% produces an error: accented characters
\qrcode[]{Are accented characters supported by the qrcode package ?}% works well
\end{document}
答案1
如果你使用支持 UTF-8 的引擎(比如 LuaTeX 或 XeTeX)编译文档,则代码可以正常工作:
% Compile with LuaLaTeX or XeLaTeX
\documentclass[french]{article}
\usepackage{fontspec}
\usepackage{babel}
\usepackage[]{qrcode}
\begin{document}
\qrcode[]{ààààççççééééùùùùïïï}% produces no error: accented characters
\bigskip
\qrcode[]{Are accented characters supported by the qrcode package ?}% works well
\end{document}