]> granicus.if.org Git - multimarkdown/commitdiff
ADDED: Add integrated memoir test
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Thu, 15 Mar 2018 19:12:19 +0000 (15:12 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Thu, 15 Mar 2018 19:12:19 +0000 (15:12 -0400)
tests/Memoir/Integ.tex [new file with mode: 0644]
tests/Memoir/Integrated.tex [new file with mode: 0644]
tests/Memoir/Integrated.text [new file with mode: 0644]

diff --git a/tests/Memoir/Integ.tex b/tests/Memoir/Integ.tex
new file mode 100644 (file)
index 0000000..0870db4
--- /dev/null
@@ -0,0 +1,159 @@
+\input{mmd6-article-leader}
+\def\mytitle{Integrated}
+\longnewglossaryentry{term}{name=term}{A term to be defined.}
+
+\newacronym{MMD}{MMD}{MultiMarkdown}
+
+\input{mmd6-article-begin}
+
+This file is a designed as a single test that incorporates most of the
+\emph{commonly} used MultiMarkdown features. This allows a single test file to
+identify common structures that are not supported yet -- particularly useful
+when developing a new output format.
+
+\part{Basic Blocks }
+\label{basicblocks}
+
+paragraph
+
+\begin{itemize}
+\item{} list
+
+\item{} items
+
+\end{itemize}
+
+\begin{verbatim}
+fenced
+code
+\end{verbatim}
+
+\begin{verbatim}
+indented
+code
+\end{verbatim}
+
+\begin{quote}
+blockquote
+\end{quote}
+
+\texttt{code span}
+
+\emph{emph} and \textbf{strong} and \textbf{\emph{both}}
+
+\emph{emph} and \textbf{strong} and \textbf{\emph{both}}
+
+\chapter{Escapes }
+\label{escaped}
+
+\begin{enumerate}
+\item{} \$
+
+\item{} \#
+
+\item{} [
+
+\end{enumerate}
+
+\part{Footnotes }
+\label{footnotes}
+
+Foo.\footnote{This is an inline footnote}
+
+Bar.\footnote{And a reference footnote.}
+
+Cite.~\citep{inlinecitation}
+
+Cite.~\citep{foo}
+
+\part{Links and Images }
+\label{linksandimages}
+
+\href{http://foo.net/}{link}\footnote{\href{http://foo.net/}{http:\slash \slash foo.net\slash }} and \href{http://bar.net}{link}\footnote{\href{http://bar.net}{http:\slash \slash bar.net}}
+
+\begin{figure}[htbp]
+\centering
+\includegraphics[width=40pt,height=400pt]{http://foo.bar/}
+\caption{test}
+\end{figure}
+
+Math (\autoref{math})
+
+foo (\autoref{math})
+
+bar (\autoref{bar})
+
+bar (\autoref{bar})
+
+\part{Math }
+\label{math}
+
+foo \({e}^{i\pi }+1=0\) bar
+
+\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \]
+
+foo ${e}^{i\pi }+1=0$ bar
+
+foo ${e}^{i\pi }+1=0$, bar
+
+$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
+
+\part{Smart Quotes }
+\label{smartquotes}
+
+``foo'' and `bar' -- with --- dashes{\ldots}
+
+\part{CriticMarkup }
+\label{criticmarkup}
+
+\underline{foo}
+
+\sout{bar}
+
+\sout{foo}\underline{bar}
+
+\cmnote{foo}
+
+\hl{bar}
+
+\part{Definition Lists }
+\label{definitionlists}
+
+\begin{description}
+\item[foo]
+
+\item[bar]
+
+*foo bar
+
+baz bat*
+\end{description}
+
+\part{Horizontal Rules }
+\label{horizontalrules}
+
+\begin{center}\rule{3in}{0.4pt}\end{center}
+
+\part{Glossary }
+\label{glossary}
+
+\gls{term}
+
+\part{Abbreviations}
+\label{abbreviations}
+
+\gls{MMD}
+
+\begin{thebibliography}{0}
+
+\bibitem{inlinecitation}
+Inline Citation
+
+\bibitem{foo}
+bar
+
+
+\end{thebibliography}
+
+\input{mmd6-article-footer}
+\end{document}
diff --git a/tests/Memoir/Integrated.tex b/tests/Memoir/Integrated.tex
new file mode 100644 (file)
index 0000000..262aa1c
--- /dev/null
@@ -0,0 +1,162 @@
+\input{mmd6-article-leader}
+\def\mytitle{Integrated}
+\longnewglossaryentry{term}{name=term}{A term to be defined.}
+
+\newacronym{MMD}{MMD}{MultiMarkdown}
+
+\input{mmd6-article-begin}
+
+This file is a designed as a single test that incorporates most of the
+\emph{commonly} used MultiMarkdown features. This allows a single test file to
+identify common structures that are not supported yet -- particularly useful
+when developing a new output format.
+
+\part{Basic Blocks }
+\label{basicblocks}
+
+paragraph
+
+\begin{itemize}
+\item{} list
+
+\item{} items
+
+\end{itemize}
+
+\begin{adjustwidth}{2.5em}{2.5em}
+\begin{verbatim}
+fenced
+code
+\end{verbatim}
+\end{adjustwidth}
+
+\begin{adjustwidth}{2.5em}{2.5em}\begin{verbatim}
+indented
+code
+\end{verbatim}
+\end{adjustwidth}
+
+\begin{quote}
+blockquote
+\end{quote}
+
+\texttt{code span}
+
+\emph{emph} and \textbf{strong} and \textbf{\emph{both}}
+
+\emph{emph} and \textbf{strong} and \textbf{\emph{both}}
+
+\chapter{Escapes }
+\label{escaped}
+
+\begin{enumerate}
+\item{} \$
+
+\item{} \#
+
+\item{} [
+
+\end{enumerate}
+
+\part{Footnotes }
+\label{footnotes}
+
+Foo.\footnote{This is an inline footnote}
+
+Bar.\footnote{And a reference footnote.}
+
+Cite.~\citep{inlinecitation}
+
+Cite.~\citep{foo}
+
+\part{Links and Images }
+\label{linksandimages}
+
+\href{http://foo.net/}{link}\footnote{\href{http://foo.net/}{http:\slash \slash foo.net\slash }} and \href{http://bar.net}{link}\footnote{\href{http://bar.net}{http:\slash \slash bar.net}}
+
+\begin{figure}[htbp]
+\centering
+\includegraphics[width=40pt,height=400pt]{http://foo.bar/}
+\caption{test}
+\end{figure}
+
+Math (\autoref{math})
+
+foo (\autoref{math})
+
+bar (\autoref{bar})
+
+bar (\autoref{bar})
+
+\part{Math }
+\label{math}
+
+foo \({e}^{i\pi }+1=0\) bar
+
+\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \]
+
+foo ${e}^{i\pi }+1=0$ bar
+
+foo ${e}^{i\pi }+1=0$, bar
+
+$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
+
+\part{Smart Quotes }
+\label{smartquotes}
+
+``foo'' and `bar' -- with --- dashes{\ldots}
+
+\part{CriticMarkup }
+\label{criticmarkup}
+
+\underline{foo}
+
+\sout{bar}
+
+\sout{foo}\underline{bar}
+
+\cmnote{foo}
+
+\hl{bar}
+
+\part{Definition Lists }
+\label{definitionlists}
+
+\begin{description}
+\item[foo]
+
+\item[bar]
+
+*foo bar
+
+baz bat*
+\end{description}
+
+\part{Horizontal Rules }
+\label{horizontalrules}
+
+\begin{center}\rule{3in}{0.4pt}\end{center}
+
+\part{Glossary }
+\label{glossary}
+
+\gls{term}
+
+\part{Abbreviations}
+\label{abbreviations}
+
+\gls{MMD}
+
+\begin{thebibliography}{0}
+
+\bibitem{inlinecitation}
+Inline Citation
+
+\bibitem{foo}
+bar
+
+
+\end{thebibliography}
+
+\input{mmd6-article-footer}
+\end{document}
diff --git a/tests/Memoir/Integrated.text b/tests/Memoir/Integrated.text
new file mode 100644 (file)
index 0000000..20de986
--- /dev/null
@@ -0,0 +1,133 @@
+Title: Integrated
+latex config:  article
+
+This file is a designed as a single test that incorporates most of the
+*commonly* used MultiMarkdown features. This allows a single test file to
+identify common structures that are not supported yet -- particularly useful
+when developing a new output format.
+# Basic Blocks #
+
+paragraph
+
+* list
+* items
+
+```
+fenced
+code
+```
+
+       indented
+       code
+
+> blockquote
+
+`code span`
+
+
+*emph* and **strong** and ***both***
+
+_emph_ and __strong__ and ___both___
+
+
+Escapes [escaped]
+----------------
+
+1. \$
+
+2. \#
+
+3. \[
+
+
+# Footnotes #
+
+Foo.[^This is an inline footnote]
+
+Bar.[^foot]
+
+[^foot]: And a reference footnote.
+
+Cite.[#Inline Citation]
+
+Cite.[#foo]
+
+[#foo]: bar
+
+
+# Links and Images #
+
+[link](http://foo.net/) and [link]
+
+[link]: http://bar.net "title" class="custom"
+
+![test](http://foo.bar/ "title" width="40px" height=400px)
+
+[Math]
+
+[foo][math]
+
+[bar][foo1]
+
+[bar][foo2]
+
+[foo1]:  #bar
+[foo2]: #bar
+
+
+# Math #
+
+foo \\({e}^{i\pi }+1=0\\) bar
+
+\\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \\]
+
+foo ${e}^{i\pi }+1=0$ bar
+
+foo ${e}^{i\pi }+1=0$, bar
+
+$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$
+
+
+# Smart Quotes # 
+
+"foo" and 'bar' -- with --- dashes...
+
+
+# CriticMarkup #
+
+{++foo++}
+
+{--bar--}
+
+{~~foo~>bar~~}
+
+{>>foo<<}
+
+{==bar==}
+
+
+# Definition Lists #
+
+foo
+bar
+:      *foo bar
+:      baz bat*
+
+
+# Horizontal Rules #
+
+----
+
+
+# Glossary #
+
+[?term]
+
+[?term]: A term to be defined.
+
+# Abbreviations
+
+[>MMD]
+
+[>MMD]: MultiMarkdown
+