I am fairly new to latex, so i am using a "base" i got, to write my thesis in. At the beginning of the tex file, the following lines are placed, to define theorems and definitons:


My problem is, that when i am trying to use it, this happens Code:

Az $S\in[a,b]\to\mathbb{R}$ függvényt \textbf{l-ed fokú spline}-nak nevezzük, ha 
\item $S\arrowvert_{I_{k}}\in\mathbb{P}_{l} (k\in1..n+1)$
\item $S \in \mathcal{C}^{l-1} $
\item $S$ spline \textbf{interpolációs spline}, ha
 $S(t_{i})=f(t_{i}) \forall t_{i}\in \tau$ alappontra.

result: enter image description here

my problem is the bracket after the definition Also i get the following error at the 2nd line

Something is wrong -- perhaps missing an \item

here is a very minimal version of my document

\usepackage{algpseudocode} %ezzel összeakadhat \usepackage{algorithmic} 


\textwidth=6.truein \textheight=9.truein \hoffset=-.5truein




Ebben a fejezetben a spline-ok és az interpolációs problémák témakörének a dolgozathoz kapcsolódó részeit fogom ismertetni.

\subsection{Alapfogalmak, tulajdonságok}

A továbbiakban legyen $[a,b]\subset\mathbb{R}$, ennek $\tau=\{t_{0}, t_{1}, .. t_{n+1}\}$: $a=t_{0}<t_{1}<...<t_{n}<t_{n+1}=b$ egy felosztása. 
$I_{k}:=[x_{k-1}, x_{k}] (k\in1..n+1)$
Az $S\in[a,b]\to\mathbb{R}$ függvényt \textbf{l-ed fokú spline}-nak nevezzük, ha 
\item $S\arrowvert_{I_{k}}\in\mathbb{P}_{l} (k\in1..n+1)$
\item $S \in \mathcal{C}^{l-1} $
\item $S$ spline \textbf{interpolációs spline}, ha
 $S(t_{i})=f(t_{i}) \forall t_{i}\in \tau$ alappontra.

  • Welcome to TeX.SX! I tried your code (in a minimal document -- which you don't provide ;-)) and there are no [...] there -- so, whatever you have done, it's not answerable until you provide the document that produces this issue! – user31729 Apr 26 '16 at 16:40
  • @ChristianHupfer i commented with a minimal document below – Andesz Apr 26 '16 at 17:05
  • What exactly in the setup is placing the number before the definition name? – daleif Apr 26 '16 at 17:11
  • \newtheorem{definition}{Definíció}[section] <- the section part right here – Andesz Apr 26 '16 at 17:37
  • 2
    @andesz2x4: no problems means no brackets – user31729 Apr 26 '16 at 18:08

I can reproduce your issue with this minimal document:





Az $S\in[a,b]$


but only compiling with TeX Live 2012. Here is the console output, note the error message.

> /usr/local/texlive/2012/bin/x86_64-darwin/pdflatex andesz.tex 
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h
ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma
rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, 
kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,
 piedmontese, polish, portuguese, romanian, romansh, russian, sanskrit, serbian
, serbianc, slovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, u
ppersorbian, welsh, loaded.
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2012/texmf-dist/tex/latex/amscls/amsthm.sty) (./andesz.aux)

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.11 A
      z $S\in[a,b]$
(./andesz.aux) )</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts
Output written on andesz.pdf (1 page, 40242 bytes).
Transcript written on andesz.log.

The magyar option to babel is not compatible with amsthm and there's nothing you can do about it, except

  1. removing the call to amsthm; or

  2. updating your (very old) TeX distribution.

The second strategy seems the best. Indeed, there is no problem if I run your test file with TeX Live 2013 or later.

Side notes

You're calling very obsolete packages.

  • \usepackage{newlfont} and \usepackage{latexsym} should be removed

  • \usepackage{t1enc} should become \usepackage[T1]{fontenc}

  • \usepackage{subfigure} should become \usepackage{subfig} (but this requires changing \subfigure and \subtable into \subfloat.

| improve this answer | |
  • thank you, i will update my tex. sadly, i need babel magyar for special characters used in hungarian – Andesz May 1 '16 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.