{code-block}¶
prefer to use the code-block directive
more details here https://
code blocks¶
:linenos:¶
1 2 3 4 5 6 7one two three four five six seven
:emphasize-lines:¶
must use linenos too, otherwise it won’t trigger
1 2 3 4 5 6 7one two three four five six seven
filename¶
my-numbers.txt
one
two
three
four
five
six
seven{literalinclude}¶
to show stuff - possible an extract - from a local file (not working in jlab)
plain inclusion of separate file in the repo¶
apparently this is hopeless with jlab; works fine in jb2 though..
Makefile
include Makefile.book2
include Makefile.style2
include Makefile.prune
NOTEBOOKS := $(wildcard [0-9]*.md)
NBNORMFLAGS = -t 1 -L Licence --license-delete -S _static/style --style-delete
include Makefile.norm
partial¶
same between style (inclusive) and wildcard (exclusive)
Makefile
include Makefile.style2
include Makefile.prunedirective | how it works |
|---|---|
| inclusive |
| exclusive |
| inclusive |
| exclusive |
the file name¶
my-fake-name
include Makefile.book2
include Makefile.style2
include Makefile.prune
NOTEBOOKS := $(wildcard [0-9]*.md)
NBNORMFLAGS = -t 1 -L Licence --license-delete -S _static/style --style-delete
include Makefile.norm
emphasis lines¶
do not put spaces in the line list
:linenos: true
:emphasize-lines: 2,4,6Makefile
1 2 3 4 5 6 7include Makefile.book2 include Makefile.style2 include Makefile.prune NOTEBOOKS := $(wildcard [0-9]*.md) NBNORMFLAGS = -t 1 -L Licence --license-delete -S _static/style --style-delete include Makefile.norm