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
\nameref of hyperlink package #74
Comments
It works, but it seems that inside sectioning commands, referencing commands don't produce links. But it still produces correct text. But when you use it in normal text, it produces even link. Try this:
See the difference between |
It works, but when I compile with: I get the following error My config file is: Where is the error? Thanks. |
You can try to run |
The command:
make4ht does not compile your text correctly. It does not display \nameref correctly. Why? Thank you for your attention. |
Thanks for the report. This seems to be caused by Memoir, it redefines |
This file,
|
If the file memhfixc.4ht is in the same directory as the file to be compiled , it works, but if I copy it to the dir /usr/share/texlive/texmf-dist/tex/generic/tex4ht/ it has no effect. ll /usr/share/texlive/texmf-dist/tex/generic/tex4ht/mem*.* What am I doing wrong? Thank you. |
Does the |
No, he can't find it. |
I think it isn't, as TeX uses database of files for faster access. At least it used to do, I am not sure if it still does that. You can also can try to put the file in |
Unfortunately, our project is quite complex also uses tcolorbox, and this complicates things. I modified the minimal example to make it more like the document in production. The references are stoned.
Thank you for your attention and competence. |
This example seems to work with TeX4ht sources, but TeX Live 2023 wasn't updated yet. |
Hi!
Is it possible to implement "\nameref" of the "hyperlink" package?
Mini-example:
%--8<-------------------------------------
`
\documentclass[10pt,a4paper]{memoir}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{lipsum}
\ifdefined\HCode % compilazione htlatex
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}
\newcommand{\url}[1]{\Link[#1]{}{} #1 \EndLink}
\newcommand{\href}[2]{\Link[#1]{}{} #2 \EndLink}
\newcommand{\hypertarget}[2]{\Link[]{}{#1} #2 \EndLink}
\else % compilazione pdflatex
\RequirePackage[colorlinks=true]{hyperref}
\fi
\newcommand{\numnameref}[1]{\ref{#1} \nameref{#1}}
\begin{document}
\chapter{Primo capitolo}
\section{Sezione a}
\label{sec:pri_a}
\lipsum[1-2]
\section{Sezione b}
\label{sec:pri_b}
\lipsum[3-6]
\section{Sezione c}
\label{sec:pri_c}
\lipsum[7-9]
\section{Esercizi}
\subsection{Esercizi dei singoli paragrafi}
\subsubsection*{\numnameref{sec:pri_a}}
\subsubsection*{\numnameref{sec:pri_b}}
\subsection{Esercizi di riepilogo}
\end{document}
`
%--8<-------------------------------------
Thank you very much!
The text was updated successfully, but these errors were encountered: