3

Context: I'm doing a poster using tikzposter. Also I'm on ShareLatex, I suspect it might be source of the problem as well.

Problem: I can't add a theorem, this is simply ignored when I compile. Here is a sample:

First:

  \documentclass[18pt, a0paper, portrait, noamsthm]{tikzposter}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm} 
\usepackage{hyperref}
\newtheorem{definition}{Definition}
\newtheorem{theorem}{Theorem}
\usepackage{tikz-cd}
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\section*{\refname}}{}{}{}
\newcommand{\g}{\mathfrak{g}}
\newcommand{\h}{\mathfrak{h}}
\renewcommand{\b}{\mathfrak{b}}
\newcommand{\N}{\mathcal{N}}
\newcommand{\NN}{\tilde{\mathcal{N}}}
\newcommand{\C}{\mathbb{C}} 
\title{Talk}
\author{Nicolas Hemelsoet}
\date{\today}


\usetheme{Simple}

\begin{document}

\maketitle

\block{test}{
\begin{theorem}
Hi
\end{theorem}
}

\end{document}

For the first code, I got this answer:

There are no entries found in a list you have created. Make sure you label list entries using the \item command, and that you have not used a list inside a table.

Any help is really appreciated, many thanks in advance !

  • @egreg that does not explain the first one (I find the structure in tikzposter confusing, so gave up debuging) – daleif Jun 11 '18 at 13:53
  • @egreg : thank you ! Now the diagrams are working but I still can't obtain a theorem. I'll edit my question. – Nicolas Hemelsoet Jun 11 '18 at 13:54
  • @daleif : do you advice me to switch on baposter ? – Nicolas Hemelsoet Jun 11 '18 at 13:56
  • I don't use either, I did a poster some months back, just trying to where I put the code, that was very easy to use and a much easier interface. I don like the combination of \block and theorem, there are probably some lists involved that does not like each other – daleif Jun 11 '18 at 13:58
  • 1
    Possible duplicate of Error with tikzcd and baposter – Stefan Pinnow Jun 11 '18 at 14:48
2

If I remove the loading of amsthm there is no error.

If you need to style your theorems, you can use ntheorem.

1

Saving a piece of advice for the future generations: I had a similar issue when writing a document with lots of custom theorem environments (all created with amsthm). When I first used one of them, this issue appeared. The code that defined it was

\newtheorem{escoliox}[teoremax]{Escólio}   
\newenvironment{escolio}
    {\pushQED{\qed}\renewcommand{\qedsymbol}{$\square$}\escoliox}
    {\popQED\escoliox}

After inspecting the code for some time and testing with other custom environments, I discovered the problem was that i hadn't closed the escoliox environment when defing escolio. Therefore, when changing the first code to

\newtheorem{escoliox}[teoremax]{Escólio}   
\newenvironment{escolio}
    {\pushQED{\qed}\renewcommand{\qedsymbol}{$\square$}\escoliox}
    {\popQED\endescoliox}

the problem dissapeared. Oh, I was using Overleaf v2 (which is Overleaf + ShareLaTeX), but I believe this things might not be relevant for this issue.

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.