I have a Tex report in which I define some bibliography entries in my references.bib file like this:

title = {DARPA Intrusion Detection Data Sets},
author = {Massachusetts Institute of Technology, Linclon Laboratory},
url = {https://www.ll.mit.edu/ideval/data/},
year = {1998-2000}

title = {Ransomware Tracker Website},
url = {\url{https://ransomwaretracker.abuse.ch/tracker/}},
year = {2018}
title = {{UNBCIC 2017 IDS Dataset}},
url = {\url{http://www.unb.ca/cic/datasets/ids-2017.html}},
year = {2017}

and the following is how I import the file:


When I try to generate the PDF file using: PDFLatex and BibTex; the first execution shows no errors and the bibliography does not appear in my PDF file. However, during the second execution, I get the following errors:

! Use of \/ doesn't match its definition.
\do ... ~}{\mathchar \number \mathcode `#1\sb {\/}
                                              }\mathcode `#1=32768 \fi 
l.112 ...-intrusion-detection-evaluation-data-set}
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.

Runaway definition?
->\mathchar 96\sb {}\mathcode `\unhbox \voidb@x \bgroup \let \unhbox 
! File ended while scanning definition of `.
<inserted text> 
l.30 \bibliography{references.bib}

Apparently it also suggests to me a solution but I don't get it very well. Could somebody help me fix it. Thanks.

The following is the code for my main file:







In the config files I define the following packages:



\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\usepackage{tabularx}% http://ctan.org/pkg/tabularx
\usepackage{makecell} % for more vertical space in cells





% subhead
\newcommand{\subhead}[1]{\vspace {0.03in}\noindent{\textbf{#1.}}}



  • 1
    Please, make a full example from \documentclass to \end{document}.
    – egreg
    Sep 24 '18 at 14:11
  • 2
    \long\def\/*#1*/{} is a really bad idea! Note your error message is about \/ Sep 24 '18 at 14:23
  • Okay, it is working. Thanks for your quick reply @DavidCarlisle , it helped me fixing it. Sep 24 '18 at 14:32

\/ is a core latex comand for italic correction that is used internally for example in commands such as \textit but also lots of other places, and is likely to be explicitly inserted in some bibtex styles.

Doing a redefinition such as


will break all these uses.

In general you should use \newcommand rather than \def so that you do not accidentally redefine internal commands in this way.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.