1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Latex help

  1. Apr 29, 2009 #1

    I am quite new to latex but have a piece of maths coursework to do so decided that I would use that in order to learn the basics of latex. So far things have gone OK, as I have managed to fine the answers to most of my questions on various latex tutorial web pages and on this forum. However, I am having some trouble with a couple of cosmetic things.

    I have attached a copy of my tex file (in txt format because this forum doesn't seem to allow uploading tex files) and also a copy of my pdf file to this post.

    My trouble I am having is:
    1. The first line underneath figure 3.1 on page 9 is indented
    2. The first line underneath figure 3.2 on page 10 is indented
    3. Figure 3.3 on page 11 should be underneath the heading for section 3.2.2

    These are only minor cosmetic things, but I would like to know why they have happened and change them if possible.



    Attached Files:

  2. jcsd
  3. May 4, 2009 #2
    Hi ryan88!

    I'm quite new to latex too. But I hope this can help.

    For Problems # 1 and 2, try to write \noindent before the paragraph. That is,

    "\noindent The number of unknown variables in this problem ..."

    "\noindent For $j=1$ and $i=1$"

    Unfortunately I cant provide solution to problem # 3 since I do not have the figures (files in that matter). But i think [ht] means here top. Try [h] instead of [ht].

    I hope that helps.
  4. May 4, 2009 #3
    Thanks dude! That worked great.
  5. May 4, 2009 #4

    matt grime

    User Avatar
    Science Advisor
    Homework Helper

    Those indented things are deemed starts of paragraphs so they should be indented. But the \noindent thing works around this feature as noted. There are other times this can occur, such as after a displaymath environment, and then it is normally because of an extra newline in the source.

    In fact I'm just posting to say 'stop using displaymath'! No one uses that. There are two schools of thought as to what you should use. Some prefer

    Code (Text):
    $$ code $$
    and others

    Code (Text):
    \[ code \]
    as the standard.

    Getting floats right is a notorious black art - good luck to you.
  6. May 4, 2009 #5
    I guessed they were indented because it was recognizing them as new paragraphs. It's just never indent new paragraphs, i just leave a blank line and then start the new paragraph so it looked inconsistent.

    Thanks for the tip about displaymath.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook