I am using LyX 2.2 on Windows 7, MiKTeX is up to date. I am using currfile to get the file name and display it on the header. My problem is that it is displaying spaces with underscores. Example
what I have:
RP-C-1_Strontium_constancy_checks
what I want:
RP-C-1 Strontium constancy checks
Here is my MWE preamble, all other settings are as default
Code: Select all
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{babel}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\usepackage{currfile}
\usepackage{xstring}
\newcommand{\fileName}{\currfilebase}
\pagestyle{fancy}
\fancyhf{}
\lhead{\StrSubstitute{\fileName}{"}{}}
Any ideas how I can get rid of the underscores?
Thanks