4

You can \detokenize the output: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{hyperref} \newcommand{\cppsection}[1]{\section{\protect\detokenize{#1}}\label{#1}} \newcommand{\cppfcn}[1]{\hyperref[#1]{\texttt{\detokenize{#1}}}} \begin{document} \tableofcontents \cppsection{function} See \cppfcn{procedure}. \cppsection{procedure} See \...


3

With biblatex that is as easy as changing the field format for url from the standard (l. 582 in biblatex.def, v3.15a) \DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{#1}} to \DeclareFieldFormat{url}{\href{#1}{\mkbibacro{URL}}} In the MWE I simplified and modernised some of your modifications (in particular I got rid of some superfluous load-...


3

Try with \text_purify:n (requires a rather current text system!) \documentclass{article} \usepackage{tikz} % Graphique \usepackage{transparent} % Transparence %\usepackage[outline]{contour} % Contour \usepackage{xcolor} % Couleurs par nom \usepackage{soul} % \hl{} \usepackage{hyperref} % \...


2

The problem is typically caused by an overfull first box for breakable tcolorboxes. It is described by https://github.com/T-F-S/tcolorbox/issues/34. Unfortunately, I cannot do very much from side of the package to remove this problem, but there are some things you can do. The following MWE provokes the 'lost label' situation: \documentclass{article} \...


2

... it's an old question, but I thought it might be worth mentioning that this can also be solved by the suggestion mentioned here: https://tex.stackexchange.com/a/330980/172810 ... e.g. simply add this to your preamble: \pdfstringdefDisableCommands{% \def\translate#1{#1}% }


1

% optional, not necessary: \usepackage[T1]{fontenc} % \usepackage[english]{babel}% or your language \usepackage{underscore} \usepackage{hyperref} . . . \cppsection{my_fcn} Subscripts will still work in math mode.


1

Probably this answer And try: \documentclass{book} \usepackage{fontspec} \catcode`_=12 \newcommand\Test[1]{% \section{#1}% } \begin{document} \Test{test_test} Text_text \end{document}


1

add hyperref package and use url = {\href{http://stuff.mit.edu/afs/athena/course/12/12.115/www/12.114%20Papers/BGS/Metamorphic/DetailedMetamorphic/9%20Metasomatism%20and%20metasomatic%20rocks.pdf%7B%5C%%7D5Cnwww.bgs.ac.uk/scmr/home.html}{source}}, in biblio file


Only top voted, non community-wiki answers of a minimum length are eligible