Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spacing in math mode of the new release #11

Open
niwazukihon opened this issue Mar 17, 2023 · 6 comments
Open

Spacing in math mode of the new release #11

niwazukihon opened this issue Mar 17, 2023 · 6 comments

Comments

@niwazukihon
Copy link

Hi, I just updated to the newest release. I found that the spacing between symbols with an invisible multiplication * is too small.

Old version:
Screenshot 2023-03-17 153128

New version:
Screenshot 2023-03-17 153124

@slowphil
Copy link
Owner

slowphil commented Mar 19, 2023

The code was not changed in that area and both versions should render that snippet in the same way. If you happen to still have the older version installed, you can maybe check that (otherwise, do not bother reinstalling it).

I suspect something got corrupted in your user's preference folder, in which case deleting the folder in C:\Users\yourusername\AppData\Roaming\TeXmacs should revert to normal spacings. If you have customized your setup (with e.g. shortcuts, macros, etc) rename the folder instead of deleting it, for recovering your customized files. Let me know if that solves the issue.

@niwazukihon
Copy link
Author

I tried deleting the folder but still have the issue. I use custom styles and keyboard shortcuts but I don't think I changed anything relevant. Guess I'll just use the previous release then.

@slowphil
Copy link
Owner

Okay. That's already strange because I can't reproduce your issue when typing that equation in the new version, with a blank user profile.
Do you confirm the same document displays correctly in the previous version? If so, would you mind sharing your document file (or the relevant part of it), the appropriate style file, and your my-init-texmacs.scm, for me to inspect what is going on?

@niwazukihon
Copy link
Author

I did some testing and see some really strange behavior. It seems that my style files are not relevant at all.

  1. Delete old TeXmacs user folder. Install the new release.
  2. Open the application. Write a formula. Save the file. The file is
<TeXmacs|2.1.2>

<style|generic>

<\body>
  <\equation*>
    h=a*\<tau\><rsub|3>
  </equation*>
</body>

<\initial>
  <\collection>
    <associate|page-medium|paper>
  </collection>
</initial>

At this point, the equation looks normal. Then we close the file.
3. Open the file, now the issue appears.

@slowphil
Copy link
Owner

Ah yes, I can reproduce it now, thanks. Indeed, the problem arises in the new version when loading saved files. I'll have to bissect to find when the problem was introduced; it may take some time...

@slowphil
Copy link
Owner

slowphil commented Mar 21, 2023

I've determined the bug started at SVN rev. 13970, and it's related to the content of the $TEXMACS_HOME_PATH/system/cache/_generic_ file (or the corresponding localized file according to the language of user interface). If you start TeXmacs with this file deleted, the spacings are correct (but only once). I suppose the content of that file got corrupted after that revision, but I don't known how or why yet. Also I note it's a windows-only bug. To be continued...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants