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

! Illegal unit of measure (pt inserted). — While using the XeLaTeX #3

Open
maxiride opened this issue Jul 2, 2019 · 4 comments
Open

Comments

@maxiride
Copy link
Contributor

maxiride commented Jul 2, 2019

I had no troubles using this package with pdfLaTeX for a long time, however, while making a document which needed the use of XeLaTex (custom fonts requirements) I encountered in the error:

! Illegal unit of measure (pt inserted).
<to be read again> 
                   p
l.9 \mysignature[right]{full}
                             
? 

Here is a minimal working example (remember to use XeLaTex):

\documentclass{article}
\usepackage[signature=my_signature, empty, nojob]{mysignature}

\begin{document}

\mysignature[right]{full}

\end{document}

The only place where a pt measure is used is here. I've tried to change the dimension to something else (and the thickness changed accordingly) and even commenting out the whole line (as expected no rule was drawn) but without success, the error was always thrown.

@AKuederle
Copy link
Owner

Strange... But I think the issue is exactly the opposite. The unit using pt is not the problem, but some other value is.
I might have time to look into this on the weekend.

Thank you for raising this issue!

@maxiride
Copy link
Contributor Author

maxiride commented Jan 19, 2021

Don't want to rush things, but did this weekend eventually come? =)

I did my own research and apparently XeLaTeX doesn't understand pt!

Here is the detailed explanation from a more experienced user: https://translate.google.com/translate?sl=it&tl=en&u=https://www.guitex.org/home/en/forum/5-tex-e-latex/116475-xelatex--illegal-unit-of-measure-pt-inserted

@AKuederle
Copy link
Owner

Oooh... I guess I had a really long week ;) Thank you for doing your own research on that. I checked and I am using the pt unit only once in the script. I changed to a value in mm that should be roughly equivalent. Could you check again and let me know, if it works with XeLatex now?

@maxiride
Copy link
Contributor Author

Still having the same issue, I eventually changed over to LuaLatex.

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

No branches or pull requests

2 participants