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

check for polyglossia alongside babel #3

Closed
wants to merge 1 commit into from
Closed

check for polyglossia alongside babel #3

wants to merge 1 commit into from

Conversation

jamieforth
Copy link

@jamieforth jamieforth commented Oct 16, 2018

This is in relation to file names and active double quotes.

svg produces an Undefined control sequence error when using xelatex and polyglossia (i.e. not babel).

This patch adds support for polyglossia alongside babel. However, the fix only works for languages that support babel shorthands, because only those languages load babelsh.def, in which \bbl@deactivate is defined.

\documentclass{article}

\usepackage{svg}

\usepackage{polyglossia}
% Languages that load babelsh.def (e.g. Dutch) work because 
% \bbl@deactivate is defined in that file.
\setmainlanguage[babelshorthands]{dutch}

% Other languages that do not load babelsh.def (e.g. English)
% still result in \bbl@deactivate undefined.
% \setmainlanguage[babelshorthands]{english}

\begin{document}
\includesvg{./figure.svg}
\end{document}
ERROR: Undefined control sequence.

--- TeX said ---
\svg@deactivate@dq ->\bbl@deactivate 
                                     {"}
l.595 }

this is in relation to file names and active double quotes
@mrpiggi
Copy link
Owner

mrpiggi commented Oct 17, 2018

solved with 9091990

@mrpiggi mrpiggi closed this Oct 17, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants