Skip to content

Commit

Permalink
rreece/trying memoir (#5)
Browse files Browse the repository at this point in the history
* yml

* yml
  • Loading branch information
rreece committed Sep 27, 2024
1 parent 90b642b commit de2d8de
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 13 deletions.
19 changes: 18 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
## Makefile for quarto-example
##
##-----------------------------------------------------------------------------

SHELL := /bin/bash
.SHELLFLAGS := -eu -o pipefail -c


##-----------------------------------------------------------------------------
## helpers and settings
##-----------------------------------------------------------------------------

PRINT = @echo '==> '

Expand All @@ -7,10 +17,17 @@ OUTPUT := Quarto-Example
OUTDIR := _site
BIBLIO := bibs/mybib.bib

#OUTPUT := $(shell grep '^output:'_quarto.yml | head -n1 | sed -e 's/output:[[:space:]]*//' | tr -d "'" | tr -d '"')

QMD_FILES := $(wildcard *.qmd)
HTML_FILES := $(QMD_FILES:%.qmd=$(OUTDIR)/%.html)
BIB_TXT_FILES := $(sort $(wildcard bibs/*.txt))


##-----------------------------------------------------------------------------
## main targets
##-----------------------------------------------------------------------------

.PHONY: all html project_html pdf bib clean realclean check check_pdf publish

all: project_html
Expand All @@ -34,7 +51,7 @@ pdf: $(QMD_FILES) _quarto.yml $(BIBLIO)
$(PRINT) "make $@ done."


## create bibs/mybib.bib from bibs/*.txt
## create bibliography
bib: $(BIBLIO)

$(BIBLIO): $(BIB_TXT_FILES)
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,20 @@ TODOs
Documentation:

- [ ] Finish Quick start in this README
- [ ] Better example of making plots through jupyter
- [ ] Make a table by reading csv?

Build:

- [x] GitHub Actions for testing for build artifacts before deployment
- [x] Change GitHub Actions to use this Makefile
- [ ] Conditionally build different parts of the document
- [x] Conditionally build different parts of the document: `make html`
- [ ] Make pdf output-file configurable?
- [ ] Automatically get Makefile variables from `_quarto.yml`
- [ ] Make bibliography optional
- [ ] Makefile target for starting a new document
- [ ] Make it easy to create a small single page doc
- [ ] Make it easy to create a small single page doc/webpage
- [ ] Support rendering a document from `./` with no sub-directories?

Rendering issues:

Expand All @@ -103,7 +107,11 @@ Style:

- [x] Add `_quarto.yaml` settings for custom css
- [ ] Add `_quarto.yaml` settings for latex styling
- [ ] Polish book pdf output
- [ ] Shrink fontsize for code
- [ ] Pollish book pdf output
- [ ] Config for making an article instead of a book
- [ ] Config for making an website instead of a book
- [ ] Template for article (e.g. [NeurIPS](https://www.overleaf.com/latex/templates/neurips-2024/tpsbbrdqcmsh))


Note these quarto issues
Expand Down
5 changes: 2 additions & 3 deletions basics.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ can be used, but will indent the output.
| Opportunity fleeting,
| Experiment dangerous,
| Judgment difficult.


Otherwise, one can put two or more spaces at the end of a line of Markdown
for the linebreak to be taken literally
Expand All @@ -184,9 +183,9 @@ this.

A **horizontal rule** can be made by just writing some number of dashes:

----------------------------------------------------
--------------------

----------------------------------------------------
--------------------

Boom.

Expand Down
21 changes: 15 additions & 6 deletions templates/mystyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,29 @@ pre {
border-bottom: 2px solid #cccccc;
border-left: 2px solid black;
padding: 10px 10px;
max-width: 700px;
max-width: auto;
white-space: pre-wrap;
background-color: #444444;
color: white;
}
code {

pre code {
color: white;
font-family: Consolas, Monaco, "Andale Mono", monospace;
line-height: 16px;
font-size: 12px;
font-size: 0.8em;
line-height: 1.25em;
text-align: left;
}

/* poetry (line-block) -------------------------------------------- */

div.line-block {
margin-top: 1.0em;
margin-bottom: 1.0em;
line-height: 1.25em;
}


/* references ------------------------------------------------------- */
/* references ----------------------------------------------------- */

div#refs
{
Expand Down

0 comments on commit de2d8de

Please sign in to comment.