Math & ScienceNo Numbering of Definitions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Hoed
Posts: 28
Joined: Sat Jan 07, 2012 12:46 pm

No Numbering of Definitions

Post by Hoed »

Hi

I need to write some definitions without any numbering. I know how to do that theoretically, by just defining in the preamble:

Code: Select all

\newtheorem*{}[]{}
where the *-operator should do the trick.

However, typesetting this gives:
*-operator has been already defined.
in the TrueTeX-Previewer. This leads to an abortion of the typesetting process. Since I use SWP, it may be the case, that the *-Operator is defined previously and without me being able to change the definition.

If there is a possibility to workaround this in LaTeX, I would be very grateful for giving it.


Thanks and have a nice one.
H.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Hoed
Posts: 28
Joined: Sat Jan 07, 2012 12:46 pm

Re: No Numbering of Definitions

Post by Hoed »

Sry for double-posting...

But is there nobody with an idea?

Have a nice one,

H.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

No Numbering of Definitions

Post by cgnieder »

Hoed wrote:But is there nobody with an idea?
The reason you didn't get any response is most likely due to the fact that you didn't provide a Infominimal working example. Anyway, you need to use the amsthm package:

Code: Select all

\documentclass{article}
\usepackage{amsmath,amsthm}
\newtheorem{bla}{Example}
\newtheorem*{blub}{Another example}
\begin{document}
\begin{bla}
 Just some text
\end{bla}

\begin{bla}
 Just some text
\end{bla}

\begin{blub}
 Just some text
\end{blub}

\end{document}
amsthm.png
amsthm.png (11.41 KiB) Viewed 29499 times
Regards
site moderator & package author
Hoed
Posts: 28
Joined: Sat Jan 07, 2012 12:46 pm

Re: No Numbering of Definitions

Post by Hoed »

Hi,

thank you. Thing is, I use SWP. The solution I've written above works when using other editors i.e. TexNics, LeD whatsoever. I don't think, a minimal working example would be helpful.

Because the *-symbol seems to be used by SWP in the one or another way (and I'm not at all sure which...), I'm looking for a way, to code the thing new. Both of the packages (amsmath, amsthm) are in use.

So, if there is a way...

Regard
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

No Numbering of Definitions

Post by cgnieder »

I don't know what SWP is? I guess you're referring to »Scientific Workplace«? If so someone else must help as I have never worked with it.

Generally, (La)TeX code is independent from any editor. Important is the underlying engine and format you're using.

Regards
site moderator & package author
Hoed
Posts: 28
Joined: Sat Jan 07, 2012 12:46 pm

No Numbering of Definitions

Post by Hoed »

Hi,

until I began working with Scientific Workplace, I thought that, too. But let me give you an example.

Say, you want to make a beamer-presentation. And you have to fit quite long formulas on the slides. Because consistency is to be set above all, the font size has to be fixed and you can't use the [shrink] option in \begin{frame}.

In normal Latex, you would define a font and its size the following way:

Code: Select all

\newcommand\Lalalala{\fontsize{6}{7.2}\selectfont}
As you go, you would use the new fontsize with:

Code: Select all

\fontsize{6}{7.2}\Lalalala
after \begin{frame}.

Using the same file in SWP, SWP will save the code without you having changed it manuelly as follows:

Code: Select all

\fontsize{6}{7.2}\selectfont
Again. To get that change, you simply have to open your tex-file with SWP and save it with SWP. The code doesn't work anymore and SWP crashes.

Cool, eh?

Same goes for

Code: Select all

\newtheorem*{}[]{}
. SWP seems to use the * for a different operation and so one cannot use it as one would use it using different tex-editors. It puzzles me, may be yout too :lol:

Regards.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

No Numbering of Definitions

Post by cgnieder »

As I understand it SWP is not simply an editor but a whole software bundle that uses TrueTeX which until a few minutes ago I've never heard of. It might be a different format and/or engine... So it's not entirely puzzling that the code might not work the same way. However, it claims to be compatible with LaTeX2e... The homepage only tells us: “Formatter implements big TeX Version 3.1415” which is not too specific...

In order to be more specific as to what the issue might be you should provide an entire Infominimal working example that makes the trouble and not only a single line.

Regards
site moderator & package author
Post Reply