LaTeX forum ⇒ Text FormattingRemove Section Number

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Posts: 10
Joined: Thu Sep 15, 2011 9:43 am

Remove Section Number

Postby huu2011 » Thu Sep 15, 2011 9:54 am

I am new to latex and I have two question.How can I remove the numbering of the section.
  1. \section{question 1}

after typsetting

1 question 1

so dont want the automatic numbering of the section.

second question:
how can I add space in equation?
  1. \begin{eguation}
  2. \frac{ total number}{ complete total number}
  3. \end{equation}

the fraction will be without space
thank you in advance
Last edited by cgnieder on Tue Sep 15, 2015 8:58 pm, edited 1 time in total.
Reason: added code markup


Posts: 126
Joined: Fri May 01, 2009 1:43 pm

Postby fatra2 » Thu Sep 15, 2011 3:06 pm

Hi there,

The answer to your first question is the asterisk (*). Use the asterisk everytime you want to remove the numbering in the different parts in LaTeX. Something like this:

  1. \section*{question 1}

My answer to your second question might not be the best suitable, but it works. You can use the \text command in the math mode to add some space.

  1. $ a \text{} = \text{} b + c $

Hope this helps. Cheers

Posts: 1
Joined: Tue Sep 15, 2015 8:21 pm

Postby futuresimon » Tue Sep 15, 2015 8:23 pm

For your second question:
The command:
creates a space in the document

User avatar
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Tue Sep 15, 2015 9:07 pm

Hi futuresimon. Welcome to the forum!

futuresimon wrote:For your second question:
The command:
creates a space in the document

I cannot recommend this. Although this does insert a space it misuses the macro for emphasis. There are better alternatives:

  • \space inserts a simple inter-word space
  • \nobreakspace inserts an inter-word space which prohibits line-breaking. The shortcut for this is ~.
  • \hspace{1cm} inserts a horizontal space of 1cm.

There are more options. Which one's the best solution is hard to guess since the question is rather vague.

For the first question nowadays I'd suggest using a dedicated package for problems such as probsoln, exam or exsheets.

Best regards
chemmacros · chemformula · leadsheets · xsim

Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 6 guests