I am currently writing my thesis in Greek, but I have to cite mostly English sources. My bibliography file looks like this:
@online{microsoft-memory-safety-errors,
author={\en{MSRC Team}},
title={\en{A proactive approach to more secure code}},
url={\en{https://msrc-blog.microsoft.com/2019/07/16/a-proactive-approach-to-more-secure-code/}},
year={2019},
month={7}
}
Although \en{}
works fine for the author and title fields, it fails to work with the URL field, creating the reference as follows:
MSRC Team. «A proactive approach to more secure code». (Ιούλ. 2019), διεύθν.:
%5ἓν%7Βηττπς://μσρς-βλογ.μιςροσοφτ.ςομ/2019/07/16/α-προαςτιvε-αππροαςη-
το-μορε-σεςυρε-ςοδε/%7Δ.
main.tex
:
\documentclass[11pt,a4paper,english,greek,twoside]{book}
\usepackage[greek]{babel}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,style=ieee]{biblatex}
\addbibresource{chapters/bibliography.bib}
% typeset short english phrases
\newcommand{\en}[1]{\foreignlanguage{english}{#1}}
\selectlanguage{greek}
\begin{document}
Κείμενο \en{Text}\cite{microsoft-memory-safety-errors}
\printbibliography
\end{document}
url
or (better still) thexurl
package.url
with thehyphens
option. I tried to substitute it withhyperref
but to no avail.