0

I am new to LaTeX and am trying to get used to the features of the language. I have typed

\indent Like all languages mathematics has a few basic rules upon which its complexity is built. The first, and most important rule is this:
        \centering{No statement may be ambigous. That is, it must be either true or false. These statements are known as \underline{predicates}.}

SO I want the standard alignment except for the sentence I put in the centering brackets. Why is the whole paragraph ending up centered?

lockstep
  • 250,273
RhythmInk
  • 537
  • Welcome to TeX.SX! It should be \begin{center}No statement may be ambigous. That is, it must be either true or false. These statements are known as \underline{predicates}.\end{center} – LaRiFaRi Jul 20 '15 at 15:05
  • 1
    The alignment in effect at the end of a paragraph is applied to that paragraph. Hence, the text before \centering is centred here. And, as mentioned above, it does not take an argument. The center environment may be more suitable. – cfr Jul 20 '15 at 15:09
  • 1
    I bet mathematics does not really call propositions 'predicates'. Freger would turn in his grave. – cfr Jul 20 '15 at 15:10
  • @s__C try Text {blabla \centering blabla} Text\par ;) – cgnieder Jul 20 '15 at 19:42
  • @s__C the alignment of a paragraph is whatever is active when the paragraph ends which is why a \par should be added: {blabla \centering blabla\par}. – cgnieder Jul 20 '15 at 19:57
  • Frege would probably spin.... – cfr Jul 21 '15 at 00:29
  • @s__C a blank line outside of the {...} is useless for the same reason why {blabla \centering blabla}\par won't give centered text. – cgnieder Jul 21 '15 at 09:24

0 Answers0