-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Not all passing yet.
- Loading branch information
Showing
6 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
``` | ||
% pandoc -f latex -t native | ||
\newcommand\foo{+} | ||
Testing: $\mu\foo\eta$. | ||
^D | ||
[Para [Str "Testing:",Space,Math InlineMath "\\mu+\\eta"]] | ||
``` | ||
|
||
``` | ||
% pandoc -f latex -t native | ||
\newcommand{\vecx}{a + b} | ||
$\hat\vecx$ | ||
^D | ||
[Para [Math InlineMath "\\hat{a+b}"]] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
``` | ||
% pandoc -f latex -t native | ||
\newcommand{\inclgraph}{\includegraphics[width=0.8\textwidth]} | ||
\begin{figure}[ht] | ||
\centering | ||
\inclgraph{setminus.png} | ||
\caption{Set subtraction} | ||
\label{fig:setminus} | ||
\end{figure} | ||
^D | ||
[] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
``` | ||
pandoc -f latex -t native | ||
\newcommand{\mycolor}{red} | ||
\includegraphics[width=17cm]{\mycolor /header} | ||
Magnificent \mycolor{} header. | ||
^D | ||
[Para [Image ("",[],[("width","17cm")]) [Str "image"] ("red/header",""),SoftBreak,Str "Magnificent",Space,Str "red",Space,Str "header."]] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
``` | ||
% pandoc -f latex -t native | ||
\newcommand{\fakeitemize}[1]{ | ||
\begin{itemize} | ||
#1 | ||
\end{itemize} | ||
} | ||
\newcommand{\testcmd}[1]{ | ||
#1 | ||
} | ||
\fakeitemize{ | ||
\item Pandoc is 100\% awesome. | ||
} | ||
\begin{itemize} | ||
\item Pandoc is 200\% awesome. | ||
\end{itemize} | ||
\testcmd{ | ||
Pandoc is 300\% awesome. | ||
} | ||
^D | ||
[BulletList | ||
[[Para [Str "Pandoc",Space,Str "is",Space,Str "100%",Space,Str "awesome."]] | ||
,BulletList | ||
[[Para [Str "Pandoc",Space,Str "is",Space,Str "200%",Space,Str "awesome."]]] | ||
,Para [Str "Pandoc",Space,Str "is",Space,Str "300%",Space,Str "awesome."]]] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
``` | ||
% pandoc -f latex -t native | ||
\newcommand{\ddb}[2]{ | ||
\textit{``#1''} | ||
\textbf{#2} | ||
} | ||
\ddb{This should be italic and in quotes}{And this is the attribution} | ||
^D | ||
[Para [Emph [Quoted DoubleQuote [Str "This",Space,Str "should",Space,Str "be",Space,Str "italic",Space,Str "and",Space,Str "in",Space,Str "quotes"]]] | ||
,Para [Strong [Str "And",Space,Str "this",Space,Str "is",Space,Str "the",Space,Str "attribution"]]] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
``` | ||
% pandoc -f latex -t native | ||
\newcommand{\BEQ}{\begin{equation}} | ||
\newcommand{\EEQ}{\end{equation}} | ||
\BEQ | ||
y=x^2 | ||
\EEQ | ||
^D | ||
[Para [Math DisplayMath "y=x^2"]] | ||
``` |