Format tokens using HTML spans inside code tags. For example, A KeywordTok is rendered as a span with class kw. Short class names correspond to TokenTypes as follows: KeywordTok = kw, DataTypeTok = dt, DecValTok = dv, BaseNTok = bn, FloatTok = fl, CharTok = ch, StringTok = st, CommentTok = co, OtherTok = ot, AlertTok = al, FunctionTok = fu, RegionMarkerTok = re, ErrorTok = er, ConstantTok = cn, SpecialCharTok = sc, VerbatimStringTok = vs, SpecialStringTok = ss, ImportTok = im, DocumentationTok = do, AnnotationTok = an, CommentVarTok = cv, VariableTok = va, ControlFlowTok = cf, OperatorTok = op, BuiltInTok = bu, ExtensionTok = ex, PreprocessorTok = pp, AttributeTok = at, InformationTok = in, WarningTok = wa. A NormalTok is not marked up at all.
That give latex compilation issues indicating AttributeTokwas not found in a simple chunk like where that n = was wrapped using that AttributeTok.
I'm using a modified variant of INBOmd for slides. I noticed that using the latest Rstudio which ships an updated pandoc, the conversion from Rmd to tex provides other code tags. From the docs at https://hackage.haskell.org/package/pandoc-2.3/docs/Text-Pandoc-Highlighting.html
That give latex compilation issues indicating
AttributeTok
was not found in a simple chunk like where thatn =
was wrapped using thatAttributeTok
.As you can see in the .tex which generated this error
My guess is that you have the same issues in e.g. https://github.com/inbo/INBOmd/blob/main/inst/local_tex/tex/latex/inbogeneric_2015/inbogeneric_2015.sty