title: "Test 013: New theorems, numbering and styles with lists immediately inside and a newline present in clear and large" author: 'Emma Cliffe, Skills Centre: MASH, University of Bath' date: 'September 2022' site: bookdown::bookdown_site language: en documentclass: article classoption: a4paper fontsize: 10pt geometry: margin=2.5cm output: clavertondown::pdf_clav: latex_engine: pdflatex dev: pdf keep_tex: true fig_caption: false toc: true clavertondown::html_clav: toc: true clavertondown::gitbook_clav: split_by: section config: download: [["Notes.html", "HTML page"], ["Notes.pdf","Standard print PDF"], ["NotesClear.pdf","Clear print PDF"], ["NotesLarge.pdf","Large print PDF"], ["Notes.docx","Accessible Word document"], ["Notes.epub","Accessible EPub book" ]] sharing: no clavertondown::word_clav: toc: true number_sections: true keep_md: true clavertondown::epub_clav: toc: true header-includes: - \usepackage{needspace}
\BeginKnitrBlock{definition}
Here is a definition.
\BeginKnitrBlock{example}
Here is an example.
Here is some more boring text in between.
\BeginKnitrBlock{theorem}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
Bookdown is needed for things like theorems and internal references
\BeginKnitrBlock{proposition}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
You can create new theorem types
\needspace{\baselineskip}
\BeginKnitrBlock{Thought}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
You can create new theorem types
\BeginKnitrBlock{Proof}
Here is a proof
□
\BeginKnitrBlock{proof}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
Here is a proof
□
\BeginKnitrBlock{Defns}
You can create new unumbered theorem types
\BeginKnitrBlock{Nugget}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
You can create new theorem types
\BeginKnitrBlock{Example}
An example
\BeginKnitrBlock{Solution}
You can create new theorem types
\BeginKnitrBlock{Exercises}
Here is a question
\BeginKnitrBlock{solution}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
Test
Now go to theorem 2.1 or thought 2.1
\BeginKnitrBlock{solution}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
Test
\needspace{3\baselineskip}
\BeginKnitrBlock{definition}
Here is a definition.
\BeginKnitrBlock{Thought}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
You can create new theorem types
Now an actual new thing: \BeginKnitrBlock{Thought}
\leavevmode\vspace{-\baselinestretch\parskip}\nobreak
Stuff and nonsense
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.