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

TeX4ht support #7

Closed
wants to merge 2 commits into from
Closed

TeX4ht support #7

wants to merge 2 commits into from

Conversation

michal-h21
Copy link

This fix should remove an error message when TeX file that uses embedfile is compiled by TeX4ht, as reported here.

@u-fischer
Copy link
Contributor

I have no problems with it. But it would be perhaps cleaner if embedfile would do

\ifcsname EmFi@Error\endcsname
\else 
\def\EmFi@Error{%
  \@PackageError{embedfile}%
}
\fi

Then you (and other packages) could provide your own definition (which should take two arguments) which then could do nothing, or issue some info.

@michal-h21
Copy link
Author

@u-fischer that's another possibility. Should I change my pull request to use this instead?

@u-fischer
Copy link
Contributor

I added it already locally manually and I looked at the other PR too.

@michal-h21
Copy link
Author

OK, so we can close this one, I think :)

@u-fischer
Copy link
Contributor

uploaded to ctan as discussed, so closing.

@u-fischer u-fischer closed this Jan 12, 2023
@muzimuzhi
Copy link

muzimuzhi commented Jan 14, 2023

Is \ifdefined a bit faster than \ifcsname ...\endcsname, especially for unicode engine(s)? LuaTeX Manual, sec. 2.8.3 reads

This [the use of \lastcsname instead of \csname ... \endcsname] is slightly more efficient than constructing the string twice (deep down in LuaTeX this also involves some utf8 juggling), ...

Update: Ah I misunderstood that doc paragraph. Sorry for the noise.

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

3 participants