LaTeX forum ⇒ Math & ScienceCaret/circumflex in equation environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
aerodinamika
Posts: 7
Joined: Tue Nov 10, 2020 9:51 am

Caret/circumflex in equation environment

Postby aerodinamika » Sun Nov 22, 2020 12:54 pm

Hello all,

I am having trouble writing a circumflex above some letters in \begin{equation} environment.
I tried to use \^{} as you can see. However, for some variables in the equation, like matrix A, the syntax works. But for the vector b, the output is an offset circumflex. For vector c it works, and for d it returns an error.

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{equation}
  2. \displaystyle \frac{d\boldsymbol{\mbox{x}}}{dt} = \text{\^{A}}\boldsymbol{\mbox{x}} + \boldsymbol{\mbox{\^{b}}} x_{u}
  3. \end{equation}
  4. \begin{equation}
  5. x_{i} = \boldsymbol{\mbox{\^{c}}}\boldsymbol{\mbox{x}} + \^{d}x_{u}
  6. \end{equation}


I also get a an error saying I should use \mathaccents in math mode, but I am not in math mode.
Any reason as to why I am getting inconsistent output using the same syntax?
Attachments
Screenshot_1.png
Screenshot_1.png (4.62 KiB) Viewed 50 times

aerodinamika
Posts: 7
Joined: Tue Nov 10, 2020 9:51 am

Postby aerodinamika » Sun Nov 22, 2020 2:03 pm

I figured it out. The offset appears to be an offset since the letter b is wide, so it is really centered.
With the use of \hat before \boldsymbol{\mbox{x}} the issue seems to be solved.


Hope this helps someone in their future endeavors.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 1 guest