General ⇒ QED square in all environments
-
- Posts: 120
- Joined: Fri Nov 14, 2008 9:40 pm
Re: QED square in all environments
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 120
- Joined: Fri Nov 14, 2008 9:40 pm
QED square in all environments
In the order of my document's code, I have, among other declarations:
Code: Select all
\documentclass[10pt,a4paper,twoside,final,openright]{book}%report
%% -- USED PACKAGES --
\usepackage[latin1]{inputenc}
%\usepackage{everyshi}
%\usepackage{onglet}
\usepackage[frenchb,english]{babel}
\usepackage{amsmath}
\usepackage[amsmath,thmmarks,amsthm,hyperref]{ntheorem}
\usepackage{amsthm}
\begin{document}
%% Declaration of theorems %%
\newtheoremstyle{theorem}%name
{10pt} % space above
{10pt} % space below
{\slshape} % bofy font
{\parindent} % ident - empty=no indent, \parindent= paragraph indent
{\bfseries} % thm head font
{. } % punctuation after thm head
{ } % space after thm head: `` ``=normal \newline=linebreak
{} % thm head specification
\theoremstyle{theorem}
\theoremsymbol{\qed}
\newtheorem{theorem}{\textcolor{red}{Thèorème}}[section]
\newtheorem{corollary}{\textcolor{orange}{Corollaire}}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{lemma}{\textcolor{green}{Lemme}}[section]
\newtheorem{property}{\textcolor{magenta}{Propriété}}[section]
\newtheoremstyle{exemple}
{10pt}{10pt}{\itshape \footnotesize}{}{\itshape \footnotesize}{.}{\newline}{}
\theoremstyle{exemple}
\theoremsymbol{\qed}
\newtheorem{exemple}{\textcolor{brown}{Exemple}}[section]
\newtheoremstyle{defi}%name
{10pt} % space above
{10pt} % space below
{\rmfamily} % body font
{\parindent} % ident - empty=no indent, \parindent= paragraph indent
{\bfseries} % thm head font
{. } % punctuation after thm head
{ } % space after thm head: `` ``=normal \newline=linebreak
{} % thm head specification
\theoremstyle{defi}
\theoremsymbol{\qed}
\newtheorem{definition}{\textcolor{blue}{Définition}}[section]
%% Declaration of theorems %%
%% BEGINNING OF DOCUMENT %%
\begin{document}
\begin{property}Here is a test.\end{property}
\end{document}
Why? Thanks.
QED square in all environments
You cannot use both packages at the same time. There are other severe errors in your document (e.g. double \begin{document}, missing color package, paragraph end between parameters). Here is a fixed version that at least compiles:amsthm.sty conflicts with the definition of theorem layouts in theorem.sty, some features of amsthm.sty have been incorporated into option [amsthm] which has to be used instead of \usepackage{amsthm}.
Code: Select all
\documentclass[10pt,a4paper,twoside,final,openright]{book}%report
%% -- USED PACKAGES --
\usepackage{xcolor}
\usepackage[latin1]{inputenc}
%\usepackage{everyshi}
%\usepackage{onglet}
\usepackage[frenchb,english]{babel}
\usepackage{amsmath}
%\usepackage[amsmath,thmmarks,amsthm,hyperref]{ntheorem}
\usepackage{amsthm}
%\begin{document}
%% Declaration of theorems %%
\newtheoremstyle{theorem}%name
{10pt} % space above
{10pt} % space below
{\slshape} % bofy font
{\parindent} % ident - empty=no indent, \parindent= paragraph indent
{\bfseries} % thm head font
{. } % punctuation after thm head
{ } % space after thm head: `` ``=normal \newline=linebreak
{} % thm head specification
\theoremstyle{theorem}
%\theoremsymbol{\qed}
\newtheorem{theorem}{\textcolor{red}{Thèorème}}[section]
\newtheorem{corollary}{\textcolor{orange}{Corollaire}}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{lemma}{\textcolor{green}{Lemme}}[section]
\newtheorem{property}{\textcolor{magenta}{Propriété}}[section]
\newtheoremstyle{exemple}
{10pt}{10pt}{\itshape \footnotesize}{}{\itshape \footnotesize}{.}{\newline}{}
\theoremstyle{exemple}
%\theoremsymbol{\qed}
\newtheorem{exemple}{\textcolor{brown}{Exemple}}[section]
\newtheoremstyle{defi}%name
{10pt} % space above
{10pt} % space below
{\rmfamily} % body font
{\parindent} % ident - empty=no indent, \parindent= paragraph indent
{\bfseries} % thm head font
{. } % punctuation after thm head
{ } % space after thm head: `` ``=normal \newline=linebreak
{} % thm head specification
\theoremstyle{defi}
%\theoremsymbol{\qed}
\newtheorem{definition}{\textcolor{blue}{Définition}}[section]
%% Declaration of theorems %%
%% BEGINNING OF DOCUMENT %%
\begin{document}
\begin{property}Here is a test.\end{property}
\end{document}
-
- Posts: 120
- Joined: Fri Nov 14, 2008 9:40 pm
Re: QED square in all environments
QED square in all environments
-
- Posts: 120
- Joined: Fri Nov 14, 2008 9:40 pm