How can I write X bar to denote a vector outside of a Latex forum?

  • Context: LaTeX 
  • Thread starter Thread starter solarblast
  • Start date Start date
  • Tags Tags
    Forum Latex Outside
Click For Summary

Discussion Overview

The discussion centers on how to write the notation for vectors, specifically using X bar, in LaTeX and other software tools. Participants explore the compatibility of LaTeX symbols with Word and discuss various methods for denoting vectors both in LaTeX and alternative applications.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant asks how to write X bar with a bar over it to denote a vector and inquires about copying LaTeX equations into Word.
  • Another participant expresses uncertainty about which symbols can be copied correctly from LaTeX to Word, noting that while LaTeX code is standard ASCII, control codes for Greek letters may not transfer properly.
  • A participant clarifies that they meant symbols like delta and arrows and questions if Word would accept all symbols in the LaTeX table.
  • One suggestion is to use \vec{x} in LaTeX to denote a vector, although it is noted that this may not work for copying into Word.
  • Another participant mentions that bold can be used in Word to signify a vector if LaTeX methods are not effective.
  • There is a mention that \vec{x} does work on the forum but may not display immediately due to loading issues.
  • One participant points out that standard LaTeX uses \bar{X} or \overline{X} for X bar, commenting on the visual differences between the two.
  • WinEdt is mentioned as a tool that works outside the forum for writing LaTeX.
  • Mathematica is also suggested as a software that allows for writing LaTeX and vectors using \vec{stuff}.

Areas of Agreement / Disagreement

Participants express varying opinions on the effectiveness of different methods for denoting vectors and the compatibility of LaTeX symbols with Word. There is no consensus on a single best approach, and multiple competing views remain regarding the use of LaTeX and other software tools.

Contextual Notes

Participants note limitations in transferring certain LaTeX symbols to Word, and there are unresolved questions about the visual quality of different LaTeX commands for denoting vectors.

solarblast
Messages
146
Reaction score
2
How do I write X bar with the bar over it to denote a vector?

I discovered that if I compose a Latex equation here that I can copy it into a Word file. Is this true of all the symbols? Same for sub and super scripts.

Is there a software tool that I can use to write Latex outside the realm of this forum?
 
Physics news on Phys.org
I'm not sure what "other symbols" you mean. LaTeX code is standard "ascii" but things like control codes for Greek letters, etc. generally will not copy correctly. Also you should be aware that while LaTeX code is standard the HTML code introducing it is not. Here you can use "[ t e x ]" (without the spaces) or "[ i t e x ]", Others require "[ l a t e x ]" or use "[ t e x ]" only. I have even run across one forum that uses "\(" and "\)".
 
By "other symbols", I meant ones like delta, arrow, etc. Ones that I had not used. That is, would Word accept all the symbols in the table?

Can I write an alphabetic symbol with a bar over it?

I found WinEdit, which appears to work outside the Forum.
 
Use \vec{x} to make a vector quantity in LaTeX. I don't think this would work for copying into Word. If you want to make a vector in Word, and you don't want to use the built in Equation functionality, just use an arrow object and manually position it above the symbol in your equation.
 
\vec{x} didn't seem to work here when I went into advanced. Maybe it needs an end character? I haven't used the Word equation ability for probably 7 years, and it appears that it requires a bit of work to install it, although Word readily accepts a copy of the Latex here. In any case, I can use bold in Word to signify a vector.

I think there may be a tutorial for WinEdit, which would help.
 
Sometimes you won't see it immediately because the page doesn't load the script properly, but \vec{x} does work on this forum.

Using LaTeX to produce a real document uses the same (but an expanded) syntax as is used here; the subtleties are related to the formatting of the document as a whole. There are plenty of introductory guides out there for how to produce, say, a PDF document using LaTeX. Note that WinEdt is just a graphical program that combines a text editor with buttons to do the heavy lifting; LaTeX documents can also be produced using only notepad, and the appropriate command-line utility to interpret the .tex file.
 
solarblast said:
How do I write X bar with the bar over it to denote a vector?

I discovered that if I compose a Latex equation here that I can copy it into a Word file. Is this true of all the symbols? Same for sub and super scripts.

Is there a software tool that I can use to write Latex outside the realm of this forum?

You can write latex quite nicely in Mathematica and to do vectors it's just \vec{stuff} which looks like;

\vec{stuff}
 
In standard LaTeX you use \bar{X} \bar{X} or \overline{X} \overline{X}.

As you can see, the \bar{X} is rather anemic and the \overline{X} is slightly too wide.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 10 ·
Replies
10
Views
17K
  • · Replies 3 ·
Replies
3
Views
11K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
117K
Replies
6
Views
8K