# macro parameter character #' in horizontal mode - Texmaker [closed]

I use Texmaker and I keep getting this error:

! You can't use macro parameter character #' in horizontal mode.


However I can force compile it using cmdline as pdflatex foo.tex.

Any idea what the error could be?

\documentclass[a4paper,12pt]{article}
\usepackage[paper=a4paper,left=30mm,right=20mm,top=25mm,bottom=30mm]{geometry}
\usepackage[pdftex]{graphicx}
\usepackage[toc,page]{appendix}
\usepackage{framed}
\usepackage[toc]{glossaries}
\usepackage{hyperref}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{algorithm2e}
\usepackage{algorithmic}
\usepackage{underscore}
\begin{document}
random text
\end{document}


It says the error is near {\large }.

I use this in the BiBTeX file:

@misc{ten,
author = {pable, Chandandeep Singh },
title = {Completely Fair Scheduler},
howpublished = "\url{http://www.linuxjournal.com/magazine/completely-fair-scheduler}",
year = {2009},
note = "{Online, accessed 25-01-2013}"
}

-

## closed as too localized by Martin Schröder, Kurt, lockstep, Claudio Fiandrino, zerothFeb 28 '13 at 13:13

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

as the error says you have a # character in text, it can only be used as part of macro definitions. – David Carlisle Feb 27 '13 at 23:38
I do not have # character in text. – user2015933 Feb 27 '13 at 23:39
I think this has to do with a faulty .aux file from a previous run, since that is read around there. Delete that and recompile. – Werner Feb 27 '13 at 23:45
@user2015933: What BiBTeX file? – Werner Feb 28 '13 at 0:00
@user2015933 your MWE doesn't have a bibtex file but you say you ran bibtex? – David Carlisle Feb 28 '13 at 0:24