-
Notifications
You must be signed in to change notification settings - Fork 15
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
tcolorbox references and aspect #75
Comments
You can try this version of
Note that there is still a problem, as the title shouldn't be colored. I cannot find source of this issue. |
Dear Michal, With this new version of the driver, the reference to the number works, but not the reference to the name (the page reference, of course, is not meaningful). Complicating the example a bit (see below) I get strange errors: [ERROR] htlatex: Compilation errors in the htlatex run Strange because
New example: %--8<------------------------------------------------------- \usepackage{tcolorbox} \theoremstyle{plain} \newcommand{\coloross}{violet} \DeclareTCBListing{latexlistingbox}{ s O{} m }{% \tcbset{ \newtcbtheorem[number within=chapter]{osservazione}{Osservazione} \begin{document} \chapter{Problem with tcolorbox references} \paragraph{Osservazioni} \begin{osservazione}{Osservazione interessante}{primaoss} There may be a reference to the observation in the text: \ \lipsum[1-3] \begin{osservazione}{Osservazione molto interessante}{secondaoss} There may be a reference to the observation in the text: \ \lipsum[4-5] \begin{latexlistingbox}*{Osservazione} There may be a reference to the observation in the text: \ \end{document} |
Regarding
The compilation error seems to be caused by the fact that you use the |
I've found that you get the same error even when you compile your file using |
Yes, if I compile without "-l", make4ht works fine. I try to investigate the source of the error with LuaLaTeX. Thank you. |
Changing the first few lines of the source like this: %--8<------------------------------------------------------- the LuaLaTeX error is avoided and the compilation works fine. Thanks! |
I am glad it works now. I think that the Inputenc package shouldn't be necessary in recent LaTeX, as it expects UTF8 encoding even with PDFLaTeX. |
Hi Michal,
There are some errors in the references with tcolorboxes.
And also the boxes are not drawn in the same way, but this is a secondary problem.
In the working file, mk4ht reports me errors related to the .aux file errors that are not raised in the minimal example.
I send you a minimal example:
%--8<-------------------------------------------------------
\documentclass[10pt,a4paper]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{ulem}
\RequirePackage[colorlinks, hyperindex, pagebackref,
linkcolor=blue, filecolor=blue,
citecolor = black, urlcolor=blue]{hyperref}
\usepackage{tcolorbox}
\tcbuselibrary{most}
\usepackage{lipsum}
\theoremstyle{plain}
\newcommand{\coloross}{violet}
\tcbset{
ossstyle/.style={fonttitle=\bfseries\upshape, fontupper=\slshape,
arc=0mm, colback=\coloross!5!white, colframe=\coloross!50!black,
theorem style=plain, coltitle=\coloross!30!black}
}
\newtcbtheorem[number within=chapter]{osservazione}{Osservazione}
{ossstyle}{oss}
\begin{document}
\chapter{Problem with tcolorbox references}
\paragraph{Osservazioni}
Due ambienti per le osservazioni.
\begin{osservazione}{Osservazione interessante}{osser}
Questo è il contenuto di una osservazione interessante.
\end{osservazione}
There may be a reference to the observation in the text: \
observation number: \ref{oss:osser};\
title of the observation: \nameref{oss:osser};\
observation page: \pageref{oss:osser}.
\lipsum[1-3]
\begin{osservazione}{Osservazione molto interessante}{primaoss}
Questo è il contenuto di una osservazione.
\end{osservazione}
There may be a reference to the observation in the text: \
observation number: \ref{oss:primaoss};\
title of the observation: \nameref{oss:primaoss};\
observation page: \pageref{oss:primaoss}.
\end{document}
%--8<-------------------------------------------------------
Thank you for your attention.
Daniele
The text was updated successfully, but these errors were encountered: