1

I am using the code

\noindent where $rc$ is density ($\rho$) multiplied by heat
capacity ($C_p$), $k$ is thermal conductivity, $h$ is the heat
transfer coefficient, $ambT$ is the ambient temperature, $iniT$
is the initial copper temperature, and $q$ is a heat source
internally supplied to the sample ($\dot{q}$). \\

\noindent Then, the differential equation with boundary and
initial conditions is defined:

in the online LaTeX site sharelatex.com. While it looks the way I want, it gives the error Underfill \hbox (badness 10000) in paragraph and I'm not sure how to fix it. I have seen other similar questions, but none of the solutions given seemed to work in my situation. If anyone could help me do it without the error, that'd be great.

Au101
  • 10,278
auden
  • 1,458
  • 3
    Get rid of the double-backslash at the end of the paragraph. – Mico Aug 06 '16 at 18:05
  • 7
    And you really shouldn't be using \noindent. If you want paragraphs with no indentation separated by blank lines, load the parskip package instead. See Is there an easy way to have my whole document with a space between paragraphs rather than indentation? – Alan Munn Aug 06 '16 at 18:08
  • 2
    Incidentally, the "underfull \hbox" message is a warning message, not an error message. – Mico Aug 06 '16 at 18:10
  • 2
    Also, $ambT$ looks like the product of $a$, $m$, $b$, and $T$. – JPi Aug 06 '16 at 18:33
  • 3
    Following up on @JPi's comment: You may want to think about writing the two temperature-related variables T_{\mathit{amb}} and T_{\mathit{ini}}. – Mico Aug 06 '16 at 19:58
  • you might consider using the parskip package; see How to disable automatic indentation on new paragraphs? – barbara beeton Aug 06 '16 at 20:20
  • 1
    never use \\ at the end of a paragraph and almost never use \noindent in a document. – David Carlisle Aug 06 '16 at 20:22
  • @Mico yes it is a warning, but it is warning that the line has badness 10000 which is infinitely bad, as bad as things can possibly get, so if you ignore that warning you may as well ignore all of them – David Carlisle Aug 06 '16 at 20:24
  • @DavidCarlisle Well, by definition, warnings are not as bad as errors (especially fatal errors). I'd agree that it's as bad a problem as an underfull \hbox can be. (Correct me if I'm wrong, but the badness level is calculated by how bad this case is in comparison with similar (i.e. underfull \hbox) problems, yes?) – Sean Allred Aug 06 '16 at 20:34
  • you appear to be starting a paragraph with lowercase where which suggests that you have other errrors, such as spurious blank line before the shown code. If where was marked up as being part of the current paragraph tex would not indent it and \noindent would do nothing. – David Carlisle Aug 06 '16 at 22:09
  • @SeanAllred this is particularly bad as although it is reported as an underful hbox (which normaly looks like over stretched word spaces) it looks like vertical space but doesn't behave like space (eg not dropped at a page break) – David Carlisle Aug 06 '16 at 22:14
  • @DavidCarlisle, there is no need to worry about the lowercase where; this is part of a larger paper, and the where comes after a section of code (in Mathematica; formatted using code from another answer on this site), so the \noindent did take care of the indentation and so did Sean Allred's answer. Thank you for your concerns, though! – auden Aug 06 '16 at 22:46

1 Answers1

3

The warning (not error) is caused by your spurious \\ at the end of the paragraph. Remove it.

As others have suggested, you also probably want to remove each of the \noindents and load the parksip package instead; there are smarter ways of formatting your document than tweaking each paragraph individually.


\documentclass{article}

\usepackage{parskip}

% You can customize the vertical space like this:
% \setlength\parskip{1ex}

\usepackage{mwe}
\begin{document}
\lipsum
\end{document}

output

Sean Allred
  • 27,421
  • What do I do to have a vertical space instead of the \? I need that space... – auden Aug 06 '16 at 20:45
  • @heather You need to unmarry yourself from the idea that it's an 'enter' to begin with – strictly speaking, it's a vertical space. I'll throw up an MWE in a few minutes and ping you when I'm done. – Sean Allred Aug 06 '16 at 20:46
  • Thank you! I added the parksip package and it works beautifully. – auden Aug 06 '16 at 20:48
  • @heather sure thing! See edit for how to customize the vertical space between paragraphs. – Sean Allred Aug 06 '16 at 20:50
  • 1
    Thanks! It all works properly (and with less code now; this was part of a larger paper with many a \noindent. – auden Aug 06 '16 at 20:53