I am testing pandoc .
- first line
- second line
text
- third line
- my first ordered list :
- first
- second
- third
- my second ordered list :
- first
- second
- third
- nested lists :
- This is the first numbered item.
- This is the second. i) this is a sub-point ii) and another sub-point
- This is the third item. Note that the number I supplied is ignored
- ending a list manualy :
- This is the first numbered item.
- This is the second.
- This is the third item. Note that the number I supplied is ignored
<:!-- -->
{ width=250px } { height=250px }
Reference a figure see this figure [@fig:cute]
The latex way can also be used
In Fig.\ref{fig-my-great-img}, I show a great image.
By default latex puts figures where ever it thinks they should go based on some ? calculations. However in some cases we want then be exactly where we declare them on the markdown file; In order to achieve this create a file say no_float.tex
with the content below and add this to your pandoc
PDF compilation command line file -H /path/to/no_float.tex
.
\usepackage{float}
\let\origfigure\figure
\let\endorigfigure\endfigure
\renewenvironment{figure}[1][2] {
\expandafter\origfigure\expandafter[H]
} {
\endorigfigure
}
- 3 backticks at the top and bottom for codeblocks
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
- refrence code blocks as shown bellow
main :: IO ()
main = putStrLn "Hello World!"
You can list all supported highlighting languages with :
pandoc --list-highlight-languages
This is the full list as of 31-10-2020 :
abc asn1 asp ats awk actionscript ada agda alertindent apache bash bibtex boo c cs cpp cmake css changelog clojure coffee coldfusion commonlisp curry d dtd default diff djangotemplate dockerfile doxygen doxygenlua eiffel elixir elm email erlang fsharp fortran gcc glsl gnuassembler m4 go html hamlet haskell haxe ini isocpp idris fasm nasm j json jsp java javascript javascriptreact javadoc julia kotlin llvm latex lex lilypond literatecurry literatehaskell lua mips makefile markdown mathematica matlab maxima mediawiki metafont modelines modula2 modula3 monobasic mustache ocaml objectivec objectivecpp octave opencl php povray pascal perl pike postscript powershell prolog protobuf pure purebasic python qml r relaxng relaxngcompact roff ruby rhtml rust sgml sml sql sqlmysql sqlpostgresql scala scheme stata tcl tcsh texinfo mandoc typescript vhdl verilog xml xul yaml yacc zsh dot noweb rest sci sed xorg xslt
Section {#sec:section}
Here is a footnote reference,1 and another.2
- inline notes start with caret sign shift+6 and open square bracket and end with square bracket
Here is an inline note.^[Inlines notes are easier to write, since you don't have to pick an identifier and move down to type the note.]
- create table and refrence is as shown :
a b c
1 2 3 4 5 6
: Caption {#tbl:label}
-
another table :
Column A Column B Column C
Category 1 High 100.00 Category 2 High 80.50
-
multiline table :
Column A Column B Column C
Category 1 High 100.00 High 95.00
Centered Default Right Left Header Aligned Aligned Aligned
First row 12.0 Example of a row that spans multiple lines.
-
grid tables :
+---------------+---------------+--------------------+ | Fruit | Price | Advantages | +===============+===============+====================+ | Bananas | $1.34 | - built-in wrapper | | | | - bright color | +---------------+---------------+--------------------+ | Oranges | $2.10 | - cures scurvy | | | | - tasty | +---------------+---------------+--------------------+
+-----------+----------+-----------+ |Column A |Column B | Column C| +===========+==========+===========+ |Category 1 |100.00 | - point A | | | | - point B | +-----------+----------+-----------+ |Category 2 | 85.00 | - point C | | | | - point D | +-----------+----------+-----------+
-
pipe tables :
Default left Center Right High Cat 1 A 100.00 High Cat 2 B 85.50 Low Cat 3 C 80.00
- equations start with doubl $ and end with doubl $
- you can refrence the as shown down bollow
$$ p = np $${#eq:briank}
- subscripts
- added whit a underscore _
- superscripts
- added with caret sign ^
- long sub/super scripts
- done by opening {} after the _ subscripts or ^ superscripts
- like so t _ {n+1} or t ^ {n+1} just remove the spaces
- how to do equations properly :
The formula,
some line spacing disruptions are unavoidable.
Math should then be displayed in displayed mode.
[@fig:label1;@fig:label2;...] or [@eq:label1;@eq:label2;...] or [@tbl:label1;@tbl:label2;...] or @fig:label or @eq:label or @tbl:label
- if you are writing math check Equations section since it diffrent
- super by surounding the text that you want higher by ^
text^super^
- sub by surounding the text that you want lower by ~
textsub
paragraph1
paragraph2
paragraph3
paragraph4
title: " Big Title Here " author: " Guenfaf Hicham " date: "dd-mm-yyyy" abstract: " abstract your work here" keywords:
- keyword1
- keyword2
- keyword3 lang: en table-of-content: true numbersections: true
::: {lang=en-GB}
british english text here :::
::: {lang=fr-CA}
canadian french text here :::
dir: rtl
geometry: - top=30mm - right=20mm - left=20mm - bottom=30mm
indent
linestreach
pagesize: a4, letter
fontfamily: libertinus, "Latin Modern"
fontfamilyoptions:
fontsize: 11pt, 12pt...
thanks:
toc
lof lot