2

The LuaLaTeX code...

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{german}

\begin{document} 
English/\textgerman{German}
\end{document}

...results in an extra space after the slash. How can I avoid it?

2

Your system is not really up-to-date. There is probably a spurious space in one of the gloss-files, but in newer system it is gone.

| improve this answer | |
2

Because I currently use the version of TexLive found in cygwin, which is apparently not current enough, and don't have the tlmgr command available, I hunted down the spurious space.

It's in /usr/share/texmf-dist/tex/latex/polyglossia/gloss-german.ldf, in six different invocations of \xpg@set@language@luatex@ii, for example:

(line 225)        \xpg@set@language@luatex@ii{ngerman}

End these lines with % signs and the problem disappears.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.