#include "Encoding.h"
#include "LaTeXFeatures.h"
-#include "Lexer.h"
#include "OutputParams.h"
#include "texstream.h"
#include "support/debug.h"
#include "support/docstream.h"
#include "support/docstring.h"
+#include "support/Lexer.h"
#include "support/lstrings.h"
#include <sstream>
// Since LyX uses unicode, also set the PDF strings to unicode strings
// with the hyperref option "unicode". This is only needed with pdflatex.
// As of 2021/02/04, unicode=true is default.
- if (!LaTeXFeatures::isAvailable("hyperref-2021/02/04")
+ if (!LaTeXFeatures::isAvailableAtLeastFrom("hyperref", 2021, 2, 4)
&& !runparams.isFullUnicode() && !runparams.use_japanese)
opt += "unicode=true,";