Text FormattingRemove Section Number

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

Remove Section Number

Post by huu2011 »

Hello,
I am new to latex and I have two question.How can I remove the numbering of the section.
eg.

Code: Select all

\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?
e.g

Code: Select all

\begin{eguation}
 \frac{ total number}{ complete total number}
\end{equation}
the fraction will be without space
thank you in advance
Huu
Last edited by cgnieder on Tue Sep 15, 2015 8:58 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

Remove Section Number

Post by fatra2 »

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:

Code: Select all

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

Code: Select all

$ a \text{} = \text{} b + c $
Hope this helps. Cheers
futuresimon
Posts: 1
Joined: Tue Sep 15, 2015 8:21 pm

Remove Section Number

Post by futuresimon »

For your second question:
The command:

Code: Select all

\emph{ }
creates a space in the document
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Remove Section Number

Post by cgnieder »

Hi futuresimon. Welcome to the forum!
futuresimon wrote:For your second question:
The command:

Code: Select all

\emph{ }
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
site moderator & package author
Post Reply