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

unhbox and unvbox not supported? #18

Open
yuishin-kikuchi opened this issue Nov 21, 2023 · 1 comment
Open

unhbox and unvbox not supported? #18

yuishin-kikuchi opened this issue Nov 21, 2023 · 1 comment
Assignees

Comments

@yuishin-kikuchi
Copy link

I found unhbox and unvbox are not supported.
I think these are very important.

(LuaHBTeX, Version 1.17.0 (TeX Live 2023)) + lua-ul [2022-05-31]

\documentclass{article}

\usepackage{luacolor}
\usepackage[soul]{lua-ul}

\begin{document}
Inside underLine / strikeThrough / highLight,
unhbox and unvbox are not affected by the command.

\underLine{This is a test: \setbox0\hbox{abc}\unhbox0, \setbox0\vbox{abc}\unvbox0, OK?}

\strikeThrough{This is a test: \setbox0\hbox{abc}\unhbox0, \setbox0\vbox{abc}\unvbox0, OK?}

\highLight{This is a test: \setbox0\hbox{abc}\unhbox0, \setbox0\vbox{abc}\unvbox0, OK?}

\end{document}
@zauguin zauguin self-assigned this Nov 26, 2023
@yuishin-kikuchi
Copy link
Author

Uggh... if I could solve this problem...

\documentclass{article}

\usepackage{luatexja}% package for Japanese support
\usepackage{pxrubrica}% package for Japanese ruby support, using \unhbox
\usepackage{luacolor}
\usepackage[soul]{lua-ul}

\begin{document}
日本人でも\highLight{漢字で「\ruby[g]{薔薇}{ばら}」を書く}のは難しい。\par
It is difficult to \highLight{write \textit{bara}, which means rose, in Kanji} even for many Japanese.\par
\end{document}

I know a quick solution is to use \mbox.
But this solution has a problem of line break.
Any better solutions?

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