Skip to content

Commit

Permalink
update doc structure and fix inline code stylinng
Browse files Browse the repository at this point in the history
  • Loading branch information
svbaelen committed May 28, 2024
1 parent 29e2b29 commit e5c6f6c
Show file tree
Hide file tree
Showing 15 changed files with 514 additions and 20 deletions.
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ input-files:
- ./src/02_chapter_1.md
- ./src/03_conclusion.md
- ./src/04_acknowledgment.md
- ./src/05_references.md
- ./src/bibliography/references.md
#- ./src/appendix.md # add this per outpuf file (see ./<format>/config.yaml)

# -------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion config/html/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# add some input files
input-files:
- ./src/appendix.md
- ./src/appendix/appendix.md

# styling
css:
Expand Down
1 change: 1 addition & 0 deletions config/html/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ code {
}

a > code,
li > code,
p > code {
padding:0.25em;
background-color: var(--color-background-code-inline);
Expand Down
2 changes: 1 addition & 1 deletion config/pdf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# add some input files
input-files:
- ./src/appendix.md
- ./src/appendix/appendix.md

log-file: build/pdf.log
output-file: build/index.pdf
Expand Down
2 changes: 1 addition & 1 deletion config/tex/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# add some input files
input-files:
- ./src/appendix.md
- ./src/appendix/appendix.md

log-file: build/tex.log
output-file: build/index.tex
Expand Down
7 changes: 5 additions & 2 deletions src/01_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ All human beings are born free and equal in dignity and rights. All human beings

## Mixed lists

- All human beings are born free and equal in dignity and rights.
1. All human beings are born free and equal in dignity and rights.
- All human beings are born free and equal in `dignity and rights`.
1. All human beings are born free and equal in `dignity and rights`.
- All human beings are born free and equal in `dignity and rights`.
2. All human beings are born free and equal in dignity and rights.
- All human beings are born free and equal in dignity and rights.

Expand Down Expand Up @@ -206,6 +207,8 @@ All human beings are born free and equal in dignity and rights. All human beings

## Scientific citations

Syntax: `[@<ref-in-bibfile>`].

> All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a
> spirit of brotherhood [@unitednations1948].
Expand Down
50 changes: 36 additions & 14 deletions src/_base.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
# - <http://lierdakil.github.io/pandoc-crossref/#settings-file>
#==============================================================

# ----------
# Main
# ----------

author:
- Senne Van Baelen
- "[Pandoc Contributors](https://github.com/jgm/pandoc/graphs/contributors)"
Expand All @@ -19,24 +23,46 @@ title: '[cowkit](https://github.com/svbaelen/cowkit)'
subtitle: 'A Comfortable Open Writing Kit<br> (example document)'
toc-title: 'Contents'

bibliography_main: ./src/references.bib
bibliography_sources: ./src/sources.bib
#csl: https://www.zotero.org/styles/chicago-note-bibliography
csl: https://www.zotero.org/styles/ieee

endnote: false
keywords:
- cowkit
- academic writing

endnote: false
lang: en_GB

# HTML-only
author-meta:
- Senne Van Baelen
date-meta: 2024


# ----------
# Citations
# ----------
bibliography_main: ./src/bibliography/references.bib
<!--bibliography_sources: ./src/bibliography/sources.bib-->
<!-- Link your style: <https://www.zotero.org/styles> (not possibly local!) -->
#csl: https://www.zotero.org/styles/chicago-note-bibliography
<!-- DOWNLOAD your style: <https://www.zotero.org/styles> -->
csl: ./src/bibliography/ieee.csl
link-citations: true
link-bibliography: true

suppress-bibliography: false

# nocite (best not combined with numeric IEEE citation styles; it messes with the order)
#nocite: |
# @brown2016

# ----------
# Listings
# ----------
listings: true # needed together with listings: true in yaml config
# (for default pandoc crossref listing style, simply
# set both to false)

# ----------
# Prefixes
# ----------
# http://lierdakil.github.io/pandoc-crossref/#reference-format
eqnPrefix: Eq.
figPrefix: Fig.
Expand All @@ -63,14 +89,10 @@ header-includes:
- <script src="./scripts/scroll.js"></script>
- \definecolor{myhrefcolor}{HTML}{0645AD}

# HTML
# ======

author-meta:
- Senne Van Baelen
date-meta: 2024

# options
# --------------
# Custom options
# --------------
code-lang: true # show code language in code blocks
code-copy: true # add copy-to-clipboard button in code blocks
# Download other outputs: requires a .pdf/.tex with this name in your server directory
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e5c6f6c

Please sign in to comment.