I want to do Multiple references in one superscript citation but with the options of pdf or paper layout.
When pdf is selected I want an internal link in the citation number to the reference and a link in the name of the articles to the doi or url.
When the paper option is selected the url or the doi should appear at the end of each article, but not both of them.
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\addtokomafont{disposition}{\rmfamily}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{csquotes,siunitx,fancyhdr,etoolbox}
\sisetup{per-mode = symbol}
\DeclareSIUnit\cal{cal}
\newtoggle{pdf}
\togglefalse{pdf}
\usepackage[
refsection=section,
style=authortitle,
backend=biber,
hyperref=auto
]{biblatex}
\addbibresource{biblatex-examples.bib}
\defbibheading{refbib}[Referencia~\therefsegment]{\subsection*{#1}}
\DeclareFieldFormat{linktitle}{%
\ifhyperref
{\iffieldundef{doi}
{\iffieldundef{eprint}
{\iffieldundef{url}
{#1}
{\href{\thefield{url}}{#1}}}
{\mkhrefeprint{#1}}}
{\href{http://dx.doi.org/\thefield{doi}}{#1}}}
{#1}}
\makeatletter
\newrobustcmd*{\mkhrefeprint}[1]{%
\iffieldequalstr{eprinttype}{arxiv}
{\href{http://arxiv.org/\abx@arxivpath/\thefield{eprint}}{#1}}
{\iffieldequalstr{eprinttype}{hdl}
{\href{http://hdl.handle.net/\thefield{eprint}}{#1}}
{\iffieldequalstr{eprinttype}{jstor}
{\href{http://www.jstor.org/stable/\thefield{eprint}}{#1}}
{\iffieldequalstr{eprinttype}{pubmed}
{\href{http://www.ncbi.nlm.nih.gov/pubmed/\thefield{eprint}}{#1}}
{\iffieldequalstr{eprinttype}{googlebooks}
{\href{http://books.google.com/books?id=\thefield{eprint}}{#1}}
{#1}}}}}}
\makeatother
\iftoggle{pdf}{
\usepackage[unicode,colorlinks,urlcolor=blue]{hyperref}
\newcommand{\myhref}[2]{\href{#1}{#2}} % enlace externo
\newcommand{\mylref}[2]{\hyperref[#1]{#2}} % enlace interno
\newcommand{\myplainurl}[1]{\ttfamily \url{#1}}
\newcommand{\myfootnote}[1]{\footnote{#1}}
\newcommand{\myfnhref}[2]{\href[#1]{#2}}
\def\mycite#1{\begin{refsegment}\nocite{#1}\footnotemark[\therefsegment]\end{refsegment}}
\renewbibmacro*{title}{%
\ifboolexpr{
test {\iffieldundef{title}}
and
test {\iffieldundef{subtitle}}
}
{}
{\printtext[linktitle]{\printtext[title]{%
\printfield[titlecase]{title}%
\setunit{\subtitlepunct}%
\printfield[titlecase]{subtitle}}}%
\newunit}%
\printfield{titleaddon}}
\renewbibmacro*{doi+eprint+url}{}
\renewbibmacro*{eprint}{}
\renewbibmacro*{url+urldate}{}
}{
\usepackage[unicode,hidelinks]{hyperref}
\newcommand{\myhref}[2]{{#2}\footnote{\url{#1}}} % enlace externo
\newcommand{\mylref}[2]{{#2}\footnote{\ref{#1} en la página \pageref{#1}}} % enlace interno
\newcommand{\myplainurl}[1]{\url{#1}}
\newcommand{\myfootnote}[1]{\footnote{#1}}
\newcommand{\myfnhref}[2]{{#2} \^{}{\{\ttfamily \url{#1}\}}} % enlace que sólo aparece en el pie de página
\def\mycite#1{\begin{refsegment}\nocite{#1}\textsuperscript{[\therefsegment]}\end{refsegment}}
\renewbibmacro*{doi+eprint+url}{%
\iftoggle{bbx:doi}
{\printfield{doi}}
{\newunit\newblock
\iftoggle{bbx:eprint}
{\usebibmacro{eprint}}
{\newunit\newblock
\iftoggle{bbx:url}
{\usebibmacro{url+urldate}}
{}}}}
}
\begin{document}
\section*{Referencias}
This should reference the first reference \mycite{itzhaki,markey,sigfridsson,geer}
\bibbysegment[heading=refbib]
\end{document}


biblatex's (dynamic or static)sethelp you there (see pp. 111-113 of thebiblatexdocumentation)? A MWE and a more precise description of what you seek to achieve would be greatly appreciated. – moewe Mar 08 '15 at 07:22\renewbibmacro*{doi+eprint+url}{}and\newbibmacro*{url+urldate}{}) and just the standard in print mode. (Come to think of it one would only need to enable printing of the URL in print mode and can leave the hyperlink active since it does not matter for printing.) – moewe Mar 08 '15 at 12:59