We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

How to add space in TexMaths equation

asked 2019-09-23 20:33:59 +0200

CBhihe gravatar image

updated 2019-09-24 09:33:28 +0200

Hi using LO Writer, I insert simple equation with TexMaths, eg.:

param = {alignc{1}} over {N_{rec}}

How can I pad blank space around (on both sides) of the equal sign ?

I checked the Latex doc but nothing (such as: \, or \; or \: ) seems to work.

EDIT: I confirm that LaTeX' "big space" or "thin space" do NOT work on my instance. I work on Archlinux with TexMaths 0.48 and LO

edit retag flag offensive close merge delete


I just tried with TexMaths 0.48 and the "big space" \; works without problems.

RGB-es gravatar imageRGB-es ( 2019-09-23 23:17:46 +0200 )edit

@RGB-es Thanks for the clarification. Deleted my answer.

Opaque gravatar imageOpaque ( 2019-09-23 23:51:46 +0200 )edit

@RGB-es: see my Edit. @Opaque: Thanks and, please, do re-post your answer. It does work fine.

CBhihe gravatar imageCBhihe ( 2019-09-24 09:34:44 +0200 )edit

Actually I don't understand the real question anymore and obviously others are confused now as well. Your "EDIT" still confirms that the question is about TexMaths and your latest comment states that my "LibreOffice-Math-related" answer worked for you. If that's true, to mention "TexMaths" must be considered a red herring. Just to be clear: My original answer was inspired by the code sequence of the question, which looked to me (though doing some LaTeX long time ago) purely as a Math markup (to be honest I oversaw Tex in TexMaths during first reading)

Opaque gravatar imageOpaque ( 2019-09-24 10:51:20 +0200 )edit

@Opaque, my OP is factually correct and I use TexMaths v0.48 as mentioned. Why should TexMaths be a red herring ? A red herring for what ? Your solution works. T'is all. Tx.

CBhihe gravatar imageCBhihe ( 2019-09-24 11:00:24 +0200 )edit

Great that you are not confused but I'm. My solution was a solution for Math and not for TexMaths (which I never worked with and I even don't know what it is exactly) and even the screenshot was from Math module. Anyway ...

Opaque gravatar imageOpaque ( 2019-09-24 11:17:29 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-09-24 07:46:02 +0200

ajlittoz gravatar image

updated 2019-09-24 08:58:08 +0200

OOPS! Apologies, I disregarded TexMaths and answered for Math. Do you want me to delete my (faulty) answer?

Math is not TeX. Its markup language is different.

There are 3 spaces (from thinnest to widest):

  • space (U+0020 SPACE)
  • grave accent ` (U+0060 GRAVE ACCENT)
  • tilde ~ (U+007E TILDE)

When ` and ~ are used, spaces around them are ignored. From experiment, using more than one ` (to enlarge spacing) leads to very strange results while this works well with ~.

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-09-23 20:33:59 +0200

Seen: 3,933 times

Last updated: Sep 24 '19