(LaTeX) I'm writing up a math assignment in LaTeX, but I'm having some severe rendering/compiling issues where I can't get past the first page (no second page is displayed/there's nothing showing up after a certain point despite a \newpage command), could somebody take a look at my code really quick and tell me what's wrong with it?
You might be able to get more help from the TeX Stack Exchange page https://tex.stackexchange.com/
Mimi, are you Dan? What's with the profile pic?
This is the first time I've legitimately used TeX editor to generate a document that is going to be multipage, so it's overwhelmingly likely it's just a simple coding issue, but I just can't get to the second page. Should I post my code here or something for somebody to take a look?
You can try posting it here, or share it using ShareLatex (you'll need to register): https://www.sharelatex.com/
I'll try posting it here, one sec. Or, why don't I just upload the .tex file? I'll just do that.
(the math for the first problem is pathetically easy, don't chide me lol)
Oops I could have sworn I had a .tex reader installed on this computer... Any chance you can extract the text into a .txt file?
Uhh yeah one sec
(I should note that I have no idea how to make a prim and proper LaTeX document so my code probably looks like total garbage, I just do what looks nice even if inefficient or unorthodox)
First problem I'm seeing is all the `\[` and `\]`. I'm pretty sure that kind of wrapping is used on OS only.
you shouldn't use \\ if there is nothing before it you should have some text before the \\
delete the \\ that is at the top of page 1 and page 2
Alright
second problem: you forgot to close off the mathbf for F_{y}=
Oh also, there is text before the double slashes at the beginning, but I got rid of it because it had my personal info
here is the fixed doc (and I got it to compile just fine with this fixed file)
But yeah, double slashes at beginning because my personal info was there
ah i gotcha
But OS only what? What about that, sith?
also I deleted the "\\" before the "We can immediately disregard the y-component of force due to our golf ball being hit and moving solely along the x and z axes; this leaves us with"
`\[` and `\]` are used on this site for display mode, whereas tex documents require dollar sign wrapping. On OS, `\[\sum\]` gives you \[\sum\] (display mode) and `\(\sum\)` gives \(\sum\) (inline mode). In tex docus, you need to use `$$` and `$`, respectively.
`\[...\]` works just fine it is the same as `$$...$$`
Oh, I was told it was a mortal sin to use dollar sign wrapping unless you are using it inside a paragraph or sentence of plain text.
@jim_thompson5910 really? I guess I've only used software that uses $$...
it could be dependent on the software then?
So what was specifically causing that second page to not appear?
I'm using TeXworks and it renders just fine
that \\
I had actually removed and tested both with and without the double slashes before, and I still couldn't get the second page
before the first sentence
the \\ needs to have words come before it
I've only ever used TeXShop (Macs only I believe) and whatever ShareLatex uses.
Lemme open up my original file and try it again, yeah, I tried it both with and without that but for some reason that didn't change stuff, thank you guys again
you also had an error in F_{y}=m\mathbf{\ddot{y} you forgot the closing brace
since it should be F_{y}=m\mathbf{\ddot{y}}
Yeah, I got that, but there's something entirely odd going on with it compiling, because it's finishing compiling and is giving me green, but the altered document both without the personal info and without the double slash at the end, after telling it to produce an updated preview, still has the old preview with my personal info at the top and no second page, so something is up with it compiling
so it sounds like it didn't compile properly
delete everything but the tex file and try again
I got aux errors so I deleted those files
Aaaaand now I'm getting no preview after I had the same thought and deleted the aux files and everything but the original .tex file :CCC
I normally go Fn+F7 and then Fn+F6 to render a document in the preview
It's not able to find the PDF (which I also deleted); I normally generate a preview PDF when I do those commands successively, right? Compile, and then Build & View?
which program are you using?
TeX Studio
This weird stuff has happened before, I'm going to restart the program and see if that changes anything
Yeah, it looks like when I compile, build and view, I'm not generating a PDF.
strange, well it works with sharelatex https://www.sharelatex.com/project/54c5bce60231378d4def14b5 I made a public test project to show that it works. So you can always start a free account there and work off of sharelatex
TY, I'm probably just going to move on for now and do all the homework by hand first, this is too tedious and I'm too tired to play with LaTeX at the moment >:C
And LaTeX isn't even required, I just like it, lol
it's good you're writing it up professionally like that
Thanks!
Join our real-time social learning platform and learn together with your friends!