Texstudio: Random characters in TexStudio

Created on 30 May 2018  ·  16Comments  ·  Source: texstudio-org/texstudio

Environment

  • TeXstudio: 2.12.8
  • Qt: 5.8.0, build Qt 5.8.0 R
  • OS: Windows 7 64-bit
  • TeX distribution: texlive
  • Keyboard layout: Czech (qwertz)

When I want to write equations in mathmode, very often random symbol like heart or leaf appears. It occurs very often when I am trying to write lower index _{} in math mode $$, but it also randomly happens when using \cite, \ref, etc.

I think it might be related to automatic bracket closing feature, which I have turned on.

Thank you for reading.

help wanted

All 16 comments

I forgot to mention that another often cause is when using tilde ~ in mathmode. Basically it seems to happen when I am writing some symbols like bracket {} or tilde ~ with my (right "Alt Gr" + key) combinations.

you could try out https://bintray.com/sunderme/texstudio/texstudio-win#files with the latest version and report back if that fails as well.
And does it happen always or just sometimes ?

It happens only sometimes (but quite frequently). It used to happen even on older TeXStudio versions.

as I have never seen a similar behavior and there is no way to reproduce it here, there is nothing I can do. (have you tried the development build ?)

I have also experienced this issue. As said, its occurring only sometimes, so it is difficult to reproduce. It has been in texstudio for at least a year now. These are examples of the characters I'm getting: ♦◘

Here are some characters I collected today: ☺ ♠ * ♣ ♥

The issue isn't specific to TeXstudio. I have the same issue with RStudio (on windows).
It may be a Qt bug, or some other component both software are using.

I forgot to mention, the bug seems specific to windows. It never happened on linux.

Unfortunately I experience sometimes the same problem with the Alt Gr+\ combination.

TeXstudio 2.12.10 (git 2.12.10)
Using Qt Version 5.8.0, compiled with Qt 5.8.0 R
Windows 10

Pretty sure you're hitting the "compose" Alt-Gr key.
With that I can also create any kind of additional characters in Linux at least. (And I can turn it off..)

þø→↓←ŧ¶€ł˝^łĸŋđðſµ”“„¢«}][{¬½¼³²|~’^¨–
To give some examples ;)

Maybe it is specific to a certain keyboard layout or driver. @ondrejtichacek: I expect you use Czech (qwertz) as well?

On my keyboard (German-Swiss (QWERTZ)) it happens a lot if I write \ and a letter quite fast (slow [Alt Gr]-release).
Backslash on Swiss keyboard is [Alt GR] + [><].
Also, only in TeXstudio! Same chars as mentioned by @Mersadon and @ondrejtichacek (☺♦◘...).

I believe that this problem is not related to slow [Alt-Gr]-release. There is no [Alt-Gr]+key combination which would produce these symbols with Czech layout .

By the way, recently, I did a clean install of Windows 10 and it happens there as well. So it is not related with W7. Also, I do not know any other program which produces these symbols. Only thing I know is that it did not happen in different LaTeX editors (for example TeXWorks).

In Windows you can enter some Unicode special characters directly via shortcut keys. I don't think this is a bug of txs but just an error while typing. At https://www.sonderzeichen.de/sonderzeichen_mit_alt_windows.html there is a list of characters and their very short key combinations.

@OgreTransporter This is quite interesting, because some of the characters in the list are the same as those produced by TeXStudio. However, I believe that it is not an error while typing. Basically, I have two reasons:

  • It is happening only in TeXStudio. I never had similar experience in any other software or any other TeX editor.
  • In order to produce these characters on Czech keyboard, you have to press left alt and then corresponding number on numeric keyboard. I never use these combinations when I am writing my documents.

@Mersadon I found your description very interesting and searched for the signs. In other programs I tried the same with the list - it works almost everywhere even in notepad. This is unfortunately the only way I can reproduce these characters. With combinations of AltGr, \, $, ~, {, }, etc. the symbols do not appear. The source code of txs does not contain the symbols either. I am still convinced that these symbols are the unicode characters from the list. How they come about is not so easy to answer. A typo, a bug in Qt, a bug in Windows ... many possibilities. In txs the symbols could be created by scripts.

Was this page helpful?
0 / 5 - 0 ratings