[Tex/LaTex] LNCS: remove URLs and DOIs from reference

bibliographiesdoilncsnatbiburls

I'm using LNCS style, and natbib with splncs03.bst for references style.
This style shows also URLs and DOIs in references.

Is there any way to remove them without modifying the style and bib file ?

Best Answer

as daleif pointed out, the only option is to do what Mico suggested.

Thank you daleif and Mico.

For anyone interested, below is a simple Python script for accomplishing this. If your bib file formatted differently, change the patterns in re.sub arguments.

import fileinput
import re
import sys

for line in fileinput.input(files=sys.argv[1:], inplace=1, backup=".bak"):
  if 'url = ' in line:
      line = re.sub('url = ', 'xurl = ', line)

  if 'doi = ' in line:
      line = re.sub('doi = ', 'xdoi = ', line)

  if 'note = ' in line:
      line = re.sub('note = ', 'xnote = ', line)

  print(line.rstrip())