PAGES: works in latex.
remove extension-try using scan_until for PAGES: