I was trying to get leading white space for a math formula on ET and couldnt seem to find a space command to get this to work.
As a simple example, say i want to indent the formula:
y=x+1
say 10 spaces in from the left so it looks sort of like this:
. y=x+1
which in latex:
[LATEX]
. \hspace{20 mm} y=x+1
[/LATEX]
only without the leading dot.
It works if you use any leading character but it would look neater if it did not require that.
I tried all of the standard white space generator commands such as hspace and hspace* that are discussed on various sites on the web but nothing worked.
Any ideas?
Also, i could not find a link to the Latex editor without going to a thread that someone had posted the link into. Is it on the home page somewhere?
Indents and tables have always been a problem with VB. It tends to compact multiple spaces and remove beginning space which at times is really annoying. I don't think it's LATEX related.
I've used the CODE tags to do simple tables at times, but LATEX won't work between CODE Tags.
The link to the [Latex editor] is under the symbols. The symbols don't appear all the time, you may have to "go advanced" sometimes. I use the free program Lyx.
Because the latex commands run 'inline' the white-space is stripped out from the start and end this is by design. Why do you need to indent is it just to make the formula stand out?
Duffy: The newlines and centering is being worked out (I've got newlines working but not centering).
The editor is a popup and there is a link in the right hand side of the quick reply or advanced post page.
Because the latex commands run 'inline' the white-space is stripped out from the start and end this is by design. Why do you need to indent is it just to make the formula stand out?
Duffy: The newlines and centering is being worked out (I've got newlines working but not centering).
The editor is a popup and there is a link in the right hand side of the quick reply or advanced post page.
According to various sites on the web, there is supposed to be a way to get leading white space in latex, somehow, someway, but every way they say doesnt work here on ET.
The reason for this would be to indent a formula like they do in written text books, where they would use a description of some sort followed by an indented formula on the next like. For example:
Code:
"To calculate the resistance R we can use the following formula"
" R=V/I"
without all the double quotes.
Centering the text would be interesting too, but i have a feeling that would only be useful if the previous line took up the whole line otherwise it would look too far off to the right in some cases.
Code:
"To calculate the resistance R we can use the following formula"
" R=V/I"
(depending on your browser width R=V/I would be centered)
Ideally we want it to look like this:
[LATEX]
To calculate the resistance R we can use the following formula...
[/LATEX]
[LATEX]
.\hspace{25} R=V/I
[/LATEX]
without the dot out in front. It would look very nice that way (without the dot).