I'm trying to create a custom \cite
command that takes in three arguments: the book/article name and the initial and final pages of the part that I'm citing. This is the code so far:
\renewcommand{\cite}[3]{
(vedi~\ifthenelse{\equal{#2}{#3}}
{\parencite[\pno~#2]{#1}}
{\parencite[\ppno~#2~\hspace{-0.035cm}--\hspace{-0.035cm}~#3]{#1}}\hspace{0.035cm})\\}
So if the input is
\cite{book_1}{64}{64}
the output is
I'd like to modify is so that that output corresponds to the input
\cite{book_1, 64}
if the initial and final cited pages are the same, and
\cite{book_1, 64-65}
if they're different. Is there a way to do this?
\cite
command? e.g.\cite[p.64]{book1}