Ask your own question, for FREE!
Mathematics 16 Online
OpenStudy (mendicant_bias):

(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?

OpenStudy (displayerror):

You might be able to get more help from the TeX Stack Exchange page https://tex.stackexchange.com/

OpenStudy (mendicant_bias):

Mimi, are you Dan? What's with the profile pic?

OpenStudy (mendicant_bias):

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?

OpenStudy (anonymous):

You can try posting it here, or share it using ShareLatex (you'll need to register): https://www.sharelatex.com/

OpenStudy (mendicant_bias):

I'll try posting it here, one sec. Or, why don't I just upload the .tex file? I'll just do that.

OpenStudy (mendicant_bias):

(the math for the first problem is pathetically easy, don't chide me lol)

OpenStudy (anonymous):

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?

OpenStudy (mendicant_bias):

Uhh yeah one sec

OpenStudy (mendicant_bias):

OpenStudy (mendicant_bias):

(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)

OpenStudy (anonymous):

First problem I'm seeing is all the `\[` and `\]`. I'm pretty sure that kind of wrapping is used on OS only.

jimthompson5910 (jim_thompson5910):

you shouldn't use \\ if there is nothing before it you should have some text before the \\

jimthompson5910 (jim_thompson5910):

delete the \\ that is at the top of page 1 and page 2

OpenStudy (mendicant_bias):

Alright

jimthompson5910 (jim_thompson5910):

second problem: you forgot to close off the mathbf for F_{y}=

OpenStudy (mendicant_bias):

Oh also, there is text before the double slashes at the beginning, but I got rid of it because it had my personal info

jimthompson5910 (jim_thompson5910):

here is the fixed doc (and I got it to compile just fine with this fixed file)

OpenStudy (mendicant_bias):

But yeah, double slashes at beginning because my personal info was there

jimthompson5910 (jim_thompson5910):

ah i gotcha

OpenStudy (mendicant_bias):

But OS only what? What about that, sith?

jimthompson5910 (jim_thompson5910):

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"

OpenStudy (anonymous):

`\[` 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.

jimthompson5910 (jim_thompson5910):

`\[...\]` works just fine it is the same as `$$...$$`

OpenStudy (mendicant_bias):

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.

OpenStudy (anonymous):

@jim_thompson5910 really? I guess I've only used software that uses $$...

jimthompson5910 (jim_thompson5910):

it could be dependent on the software then?

OpenStudy (mendicant_bias):

So what was specifically causing that second page to not appear?

jimthompson5910 (jim_thompson5910):

I'm using TeXworks and it renders just fine

jimthompson5910 (jim_thompson5910):

that \\

OpenStudy (mendicant_bias):

I had actually removed and tested both with and without the double slashes before, and I still couldn't get the second page

jimthompson5910 (jim_thompson5910):

before the first sentence

jimthompson5910 (jim_thompson5910):

the \\ needs to have words come before it

OpenStudy (anonymous):

I've only ever used TeXShop (Macs only I believe) and whatever ShareLatex uses.

OpenStudy (mendicant_bias):

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

jimthompson5910 (jim_thompson5910):

you also had an error in F_{y}=m\mathbf{\ddot{y} you forgot the closing brace

jimthompson5910 (jim_thompson5910):

since it should be F_{y}=m\mathbf{\ddot{y}}

OpenStudy (mendicant_bias):

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

jimthompson5910 (jim_thompson5910):

so it sounds like it didn't compile properly

jimthompson5910 (jim_thompson5910):

delete everything but the tex file and try again

jimthompson5910 (jim_thompson5910):

I got aux errors so I deleted those files

OpenStudy (mendicant_bias):

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

OpenStudy (mendicant_bias):

I normally go Fn+F7 and then Fn+F6 to render a document in the preview

OpenStudy (mendicant_bias):

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?

jimthompson5910 (jim_thompson5910):

which program are you using?

OpenStudy (mendicant_bias):

TeX Studio

OpenStudy (mendicant_bias):

This weird stuff has happened before, I'm going to restart the program and see if that changes anything

OpenStudy (mendicant_bias):

Yeah, it looks like when I compile, build and view, I'm not generating a PDF.

jimthompson5910 (jim_thompson5910):

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

OpenStudy (mendicant_bias):

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

OpenStudy (mendicant_bias):

And LaTeX isn't even required, I just like it, lol

jimthompson5910 (jim_thompson5910):

it's good you're writing it up professionally like that

OpenStudy (mendicant_bias):

Thanks!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!