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

Using \noboundary as a Text-Command, and similar issues #37

Closed
ozross opened this issue Jun 20, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@ozross
Copy link

commented Jun 20, 2017

Hi Heiko.

This cannot be correct, as it redefines a TeX primitive:
.../hyperref/puarenc.def:88:\DeclareTextCommand{\noboundary}{PU}{\9040\015}% U+200D

\documentclass[11pt, oneside]{article}
\usepackage[unicode,arabic,psdextra]{hyperref}
\begin{document}
\noboundary
\end{document}

gives an error:

LaTeX Error: Command \textlozenge unavailable in encoding OT1.

The right way (as I'm sure you know) is something like:
\DeclareTextCommand{\textPUnoboundary}{PU}{\9040\015}% U+200D
with
\let\noboundary\textPUnoboundary
included in \pdfstringdefDisableCommands (or elsewhere) when needed.

Another command showing a similar kind of error is: \textlozenge
when used with packages like: gfsdidot, gfsbodoni, gfsartemisia etc. or drm.sty

\textbullet is another that gets (re)defined in various packages.

Here's another that works smoothly, but results in different output, dependent upon the order in which the packages are loaded.

\documentclass[11pt, oneside]{article}
\usepackage{baskervillef}
\usepackage[unicode]{hyperref}
%\usepackage{baskervillef}
\begin{document}
\textcircled{A}
\end{document}

Then there is the package: ptmxcomp that redefines quite a few \text... macros.

I was hit with similar issues for L8U (pseudo-)encoding, with pdfx.sty.
I've been talking about such issues with Chris, David and Frank. They now realise the importance of pseudo-encodings (as we now call them) such as PU, PD1 and L8U, which are not associated with fonts, but still want to use some of the methods developed for font-encodings.

Cheers,

Ross

@ozross

This comment has been minimized.

Copy link
Author

commented Jun 20, 2017

Oops, I copied the wrong error message. It should've been:

LaTeX Error: Command \noboundary unavailable in encoding OT1.

Similarly with T1 when packages switch the font encoding.

u-fischer pushed a commit to u-fischer/hyperref that referenced this issue Sep 29, 2017

davidcarlisle added a commit that referenced this issue Sep 29, 2017

don't define \noboundary as text command / issue 37 (#45)
* changed default pdfversion from 2 to 5, along the default settings in the current tex systems

* change with pdfa version to 4 only if the current version is smaller, see issue #38

* removed \noboundary from puarenc.def, see issue #37

* spurious space, hope nobody notice it ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.