New Reply

Latex keeps on getting parsing errors

 
Share Thread Thread Tools
Jul24-12, 12:09 AM   #1
 

Latex keeps on getting parsing errors


I keep on getting errors from Latex. For instance the following code looks OK to me but won't parse:

[itex]g(\vec{\bar{V}}_S, \vec{U}(1)) =\ _Sg_{ik}(O) _S\bar{V}_S^i _SU(1)^k [/itex]

However if I break it with the insertion of a close and then an open itex delimiter, the first bit parses but the second won't.

[itex]g(\vec{\bar{V}}_S, \vec{U}(1)) =[/itex][itex]\ _Sg_{ik}(O) _S\bar{V}_S^i _SU(1)^k [/itex]

Now if I break it yet again, it all parses OK.

[itex]g(\vec{\bar{V}}_S, \vec{U}(1)) =[/itex][itex]\ _Sg_{ik}(O) [/itex][itex]_S\bar{V}_S^i [/itex][itex]_SU(1)^k [/itex]

The three strings are identical, except for the insertion of [/itex][itex] first once and then twice.

I have put enough spaces in to deactivate the vBulletin 'no more than 50 consecutive nonspace characters' bug, but it still seems to go wrong.

Any help in fixing this would be much appreciated. I have a derivation I want to post, but it's impractical with this amount of latex problems.

Thanks very much.

PS is there any way to get that first arrow to sit over the V rather than off to the left?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Galaxies fed by funnels of fuel
>> The better to see you with: Scientists build record-setting metamaterial flat lens
>> Google eyes emerging markets networks
Jul24-12, 06:50 AM   #2

Math 2012
 
Recognitions:
Science Advisor Science Advisor
The problem is towards the end of your LaTeX where you have
Code:
\bar{V}_S^i _S U(1)^k
And the error message from LaTeX is "double subscript". If you write
Code:
A_b^c_d E
LaTeX thinks the "b" and "d" are both subscripts applied to "A".

One way to get round this is attach subscripts to an empty group, for example
Code:
A_b^c {}_d E
PS is there any way to get that first arrow to sit over the V rather than off to the left?
I think that is a MathJax problem. It looks OK in "real" LaTeX.
Jul24-12, 02:25 PM   #3
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor
Quote by andrewkirk View Post
PS is there any way to get that first arrow to sit over the V rather than off to the left?
For what it's worth, I had the same problem viewing the message on someone else's computer earlier today (IE8 on XP) but I see no problem now on my own computer (FF10 or IE9 on Vista, all MathJax renderers tried).
Jul24-12, 05:05 PM   #4
 

Latex keeps on getting parsing errors


Thanks for the replies. I presume MathJax is the TeX rendering engine for this site.
I tried the empty group suggestion and it worked, after I put in a few extra spaces "\ ", without which it also seemed to get upset.

I downloaded Texmaker and experimented with that and had a lot of intermittent 'double subscript' errors there too, but at least that was user-friendly enough to give an error message saying 'double subscript'.

When working with tensors there's sometimes no easy way to avoid using pre-subscripts (I use them to denote different coordinate systems) so it's good to know how to make it handle them correctly.

PS Texmaker seems to put my vector arrows in the right place.
New Reply
Thread Tools


Similar Threads for: Latex keeps on getting parsing errors
Thread Forum Replies
Parsing the Fibers of Critical Values Differential Geometry 0
systematic errors, random errors and error due to comparison with literature value Introductory Physics Homework 1
Parsing arguments to a python file Programming & Comp Sci 3
Parsing str to int in C Engineering, Comp Sci, & Technology Homework 4
Fixing up errors in Latex? Math & Science Software 11