4

Trying to write the name Fra\"{i}ss\'{e} stylised correctly, I believe \"{i} is the correct way to get the two dots above the i but I get the following error:

Package amsmath Error: \hat allowed only in math mode

The output looks like this:

Fraisse

Not entirely sure what could be going wrong, assume it's something odd in my preamble but the \hat error confused me.

EDIT: okay this is an issue that would be unique to me and a poorly redefined function.

To elaborate, in my preamble I had \newcommand{\i}{\hat i} hence why the error mentioned \hat.

8
  • Without code, we can't even start to guess what's going on. It seems to me that you want write a text, so math mode shouldn't be involved at all?
    – Rmano
    Jan 31, 2021 at 16:02
  • \"{i} would result in three dots; it should (ordinarily) be \"[\i}. But the error message about \hat isn't at all related. Without a lot more information, your question doesn't make sense. Jan 31, 2021 at 16:15
  • @barbarabeeton No, \"i is declare as a composite and will do the same as \"{\i}
    – egreg
    Jan 31, 2021 at 16:35
  • The error message you received -- \hat allowed only in math mode -- indicates that you tried to input the word as Fra\hat{i}ss{\'e}. Is this hunch correct?
    – Mico
    Jan 31, 2021 at 16:40
  • Hi all, you're right that there wasn't enough information to solve this problem as is - apologies.
    – user291678
    Jan 31, 2021 at 17:19

1 Answer 1

7

Welcome to TeX.SX!

If you are writing a name, you are not in math mode, so:

\documentclass{article}
\begin{document}
Fraïssé  Fra\"iss\'e
\end{document}

results in:

enter image description here

Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.

1
  • You're right that this works, it was an issue buried in renewing commands.
    – user291678
    Jan 31, 2021 at 17:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .