Hi @cderv,
Yes, we are using several custom blocks as shown in 9.6.2 Adding a shaded box, some with black some with blue background, some of which include also citations, math notations and urls. Here a reprex:
Some text
:::: {.blackbox data-latex=""}
::: {.center data-latex=""}
:::
**A title**\newline
As noted by @author, $a = b + c$
::::
Some more text
:::: {.bluebox data-latex=""}
Link to the app: https://mgwk.shinyapps.io/first_app/
::::
Ps. in the .blackbox I am reporting the title in the main body of the custom block because I would like to have it justified to the left. There is probably a more elegant way to do that.
Maybe is that one causing the issue?
This is how we define the environment in preamble.tex using the LaTex framed package and xcolor for custom colors.
\usepackage{tcolorbox}
\usepackage{xcolor}
\definecolor{ShinyBlue}{RGB}{190, 213, 250}
\definecolor{ShinyBlueText}{RGB}{20, 130, 181}
\definecolor{greyBox}{RGB}{245, 245, 245}
\newtcolorbox{blackbox}{
colback = greyBox,
colframe = greyBox,
coltext = black,
boxsep = 5pt,
arc = 4pt
}
% The blue box
\newtcolorbox{bluebox}{
colback = ShinyBlue,
colframe = ShinyBlue,
coltext = ShinyBlueText,
boxsep = 5pt,
arc = 4pt,
box align = center,
halign = center,
valign = center
}
I don't report the CSS because the html is working just fine but if there is need I can also show that.
Here the link to our GitHub repo if you want to take a look. That would be great, of course. We are developing the pdf in the pdf_version branch.
Many thanks!