Math & ScienceRandom Symbol Replacement in Math Mode

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
weezix
Posts: 2
Joined: Wed Oct 31, 2012 10:50 pm

Random Symbol Replacement in Math Mode

Post by weezix »

Hi

I seem to be getting a bizarre occurrence in math mode.

Code: Select all

\begin{equation}
  \mathbf{z}(t_{k+1}) = \cal{M}\mathbf{z} (t_{k}) + \boldsymbol{\epsilon}_{m}(t_{k})
\end{equation}
This will display the left hand side of the equation fine, however on the right hand side the 't's are changed to the symbol that normally uses the \sqcup command and the subscripts change to symbols such as these (if I change the subscript letter):
⊣⌊⌋⌈⌉{}|\≀√∐∇∫⊔⊓⊑⊒§†‡ (not all of them copied and pasted here)
The '_m' command becomes the up down arrow \Updownarrow.

The are no errors or warnings when compiling, I have tried remove all the packages but nothing seems to make a difference. In in-line math mode the same thing happens, fine on the LHS, weird behaviour on the RHS. Any ideas?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Random Symbol Replacement in Math Mode

Post by localghost »

Please prepare a self-contained and minimal example to avoid guesswork and random shots.


Best regards and welcome to the board
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Random Symbol Replacement in Math Mode

Post by Stefan Kottwitz »

Hi,

welcome to the board!

It's caused by \cal. You could fix it by
  • using \mathcal instead
  • or enclosing it by braces, such as {\cal z}.
Please follow Thorsten's link to learn why and how to create a minimal example, for the next time, for the best chance to fix a problem.

Stefan
LaTeX.org admin
weezix
Posts: 2
Joined: Wed Oct 31, 2012 10:50 pm

Random Symbol Replacement in Math Mode

Post by weezix »

Stefan_K wrote:Hi,

welcome to the board!

It's caused by \cal. You could fix it by
  • using \mathcal instead
  • or enclosing it by braces, such as {\cal z}.
Please follow Thorsten's link to learn why and how to create a minimal example, for the next time, for the best chance to fix a problem.

Stefan
Excellent, thank you so much...been bugging me for ages!
Post Reply