2

I'm using TeX for a long time now, but I'm currently struggling integrating some features for my daily use. To be more precise: I'm intending to use features like text highlighting (yellow markup), strikeout text passages, and so on. For punctuation i've the package 'csquotes' in use for ages.

So far, I tried to realize this by using 'ulem' and 'soul'.

soul: breaks with 'csquotes' its \enquote{}-command.

! Argument of \csq@quote@i has an extra }

ulem: breaks also with \enquote{}.

MWE (wished by TeXnician)

\documentclass{article}
\usepackage{csquotes}
\usepackage{soulutf8}
\begin{document}
\hl{Alpha particles named after and denoted by the \enquote{first letter in the Greek alphabet, alpha consist of two protons} and two neutrons bound together.}
\end{document}

Any ideas? Any alternative packages?

Thanks in advance.

Best regards

  • 2
    Welcome to TeX.SX! Could you please post a minimal compilable code example (MWE) of what you're trying to achieve? – TeXnician Jul 24 '18 at 17:10
  • Here you are... MWE added to topic. Didn't seem to be relevant to me, but it makes it maybe easier. – guest Jul 24 '18 at 17:31
  • 1
    It's an unfortunate (but known) limitation of soul(utf8) and ulem that their underlining commands can only accept light markup (from very few select macros) in their arguments. If you use LuaLaTeX you can use Lua callbacks to construct a more robust underlining. – moewe Jul 24 '18 at 17:38
  • 1
    \soulregister{\enquote}{1} works but breaks the underline before and after the quotation mark. – moewe Jul 24 '18 at 17:42
  • 1
    @guest Because line-breaking and breaking boxes is not that easy (and underlining is not considered proper typographical style anyway). Design restrictions of the most software packages will be noticeable at some point. – TeXnician Jul 24 '18 at 19:16

Your Answer

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

Browse other questions tagged or ask your own question.