3

Just use caption package with hypcap=true. Hope it works as desired! \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[hypcap=true]{caption} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage[american]{circuitikz} \usetikzlibrary{calc} \usepackage{hyperref} \title{text} \author{derviswebdev } \date{May 2020} \...


1

This works: latex "\makeatletter\AtBeginDocument{\def\p@figure{\color{red}}\def\p@equation{\color{green}}}\makeatother \input{mydocument.tex}" That is, in the loose form, \makeatletter \AtBeginDocument{ \def\p@figure{\color{red}} \def\p@equation{\color{green}} } \makeatother \input{mydocument.tex}


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