SOLVED

inserting LaTeX for \Bar in equation editor

%3CLINGO-SUB%20id%3D%22lingo-sub-1357262%22%20slang%3D%22en-US%22%3Einserting%20LaTeX%20for%20%5CBar%20in%20equation%20editor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1357262%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Finserting-latex-for-bar-in-equation-editor%2F44532dad-4700-4896-83ef-df538582d74f%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Finserting-latex-for-bar-in-equation-editor%2F44532dad-4700-4896-83ef-df538582d74f%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20insert%20the%20LaTeX%20expression%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22contentCodeblock%22%3E%5CBar%7B%5C%5Bj%5C%5D%7D%20%3D%20%5Cfrac%7B%5C%5Bj%5C%5D%7D%7Bm%5E%7B2%7D%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Einto%20a%20Word%20document%20in%20in%20the%20equation%20editor%2C%20it%20gives%20me%20a%20double%20overbar%20instead%20of%20a%20single%20one%3C%2FP%3E%3CP%3EWhat%20I%20get%20is%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22doubleBar.png%22%20style%3D%22width%3A%20228px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F188663i68AEB8D764176BBB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22doubleBar.png%22%20alt%3D%22doubleBar.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWhat%20I%20want%20is%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20my%20LaTeX%20expression%20wrong%3F%3C%2FSPAN%3EI%20am%20using%20Microsoft%20Word%20for%20Microsoft%20365%20MSO%20(16.0.12624.20424)%2064-bit%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1469889%22%20slang%3D%22en-US%22%3ERe%3A%20inserting%20LaTeX%20for%20%5CBar%20in%20equation%20editor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1469889%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20was%20originally%20reported%20on%20answers.microsoft.com%2C%20and%20I%20also%20submitted%20it%20via%20File%2FFeedback%2FSend%20a%20Frown%2C%20and%20it%20has%20been%20accepted%20by%20support%2C%20so%20I%20expect%20that%20a%20fix%20will%20be%20made.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2356481%22%20slang%3D%22en-US%22%3ERe%3A%20inserting%20LaTeX%20for%20%5CBar%20in%20equation%20editor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2356481%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F40829%22%20target%3D%22_blank%22%3E%40Thomas%20Ligon%3C%2FA%3E%26nbsp%3Byeah%20actually%20the%20command%20for%20a%20single%20bar%20is%20%5Cbar%20and%20a%20double%20bar%20is%20%5CBar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2356789%22%20slang%3D%22en-US%22%3ERe%3A%20inserting%20LaTeX%20for%20%5CBar%20in%20equation%20editor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2356789%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1054321%22%20target%3D%22_blank%22%3E%40Jazzmyne%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks!!%20This%20is%20the%20perfect%20answer%20to%20how%20to%20do%20this%20in%20Word%20Equation%20Editor%2C%20and%20that's%20all%20I%20need%2C%20since%20I%20produce%20my%20mathematics%20and%20mathematical%20physics%20papers%20in%20Word%2C%20and%20not%20LaTeX.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20I%20was%20hoping%20to%20find%20a%20more%20complete%20response%2C%20so%20I%20tried%20to%20find%20this%20definition%20on%20the%20Internet%2C%20and%20maybe%20even%20find%20the%20source%20for%20my%20error.%20I%20failed%20again.%20I%20wasn't%20able%20to%20find%20an%20authoritative%20%22reference%22%20for%20LaTeX.%20I%20found%20descriptions%20of%20%5Cbar%2C%20and%26nbsp%3B%5Cbar%7B%5Cbar%7B...%7D%7D%2C%20but%20not%20%5CBar.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

https://answers.microsoft.com/en-us/msoffice/forum/all/inserting-latex-for-bar-in-equation-editor/44...

 

When I insert the LaTeX expression

 

\Bar{\[j\]} = \frac{\[j\]}{m^{2}}

 

into a Word document in in the equation editor, it gives me a double overbar instead of a single one

What I get is

 

doubleBar.png

What I want is

 

 

Is my LaTeX expression wrong?I am using Microsoft Word for Microsoft 365 MSO (16.0.12624.20424) 64-bit

3 Replies

This was originally reported on answers.microsoft.com, and I also submitted it via File/Feedback/Send a Frown, and it has been accepted by support, so I expect that a fix will be made.

best response confirmed by Thomas Ligon (Occasional Contributor)
Solution

@Thomas Ligon yeah actually the command for a single bar is \bar and a double bar is \Bar

@Jazzmyne 

thanks!! This is the perfect answer to how to do this in Word Equation Editor, and that's all I need, since I produce my mathematics and mathematical physics papers in Word, and not LaTeX.

 

Now, I was hoping to find a more complete response, so I tried to find this definition on the Internet, and maybe even find the source for my error. I failed again. I wasn't able to find an authoritative "reference" for LaTeX. I found descriptions of \bar, and \bar{\bar{...}}, but not \Bar.