I'm using pandoc, which parses markdown into LaTeX. In this case I configured pandoc to use babel in spanish and wrote `"avg"` which is translated by pandoc as \texttt{"avg"}.
When I do this I obtain the first string in the next image:

So I posted an Issue in pandoc's github. But it is unlikely to be solved if we don't know why LaTeX is behaving this way.
Any ideas?
I think the solution is related to this post, but I don't understand much LaTeX.
Thanks!
Update
This is a minimized code which produces the output of the image:
\documentclass[spanish,]{article}
\usepackage[spanish]{babel}
\begin{document}
\texttt{"avg"}
\texttt{"a}
\verb|"a|
\end{document}


\documentclass{...}and ending with\end{document}. You might also want to add to your question how you're including the pdfs etc. – Aradnix Sep 26 '14 at 23:23''for closing. – Aradnix Sep 26 '14 at 23:25