Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add glossary #210

Merged
merged 5 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/spellignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ numpy
OECD
OER
OpenScience
Organization
Orithena
OSI-approved
Paderborn
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ objects := intro.pdf competencies.pdf institutionalised_education.pdf survey.pdf

all: $(objects)

%.pdf: %.md bibliography.bib contributors.yml preamble.sty build/template.tex filter.py
%.pdf: %.md bibliography.bib contributors.yml preamble.sty build/template.tex glossary.tex filter.py
@mkdir -p build
@rm -f build/pdfa.xmpi
cp --update preamble.sty build/
cp --update bibliography.bib build/
cp --update glossary.tex build/
python3 filter.py --input="${<}" --output="build/${<}" --contributors="contributors.yml"
pandoc \
--standalone \
Expand All @@ -23,12 +24,18 @@ all: $(objects)
-M pdfa-$(MAKE_PDFA)=1 \
-M date="`date "+%B %e, %Y"`" \
-M datexmp="`date "+%F"`" \
-M linkcolor=darkgray \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This color is almost black, so that acronyms and terms do not attract too much attention, while still being perceptible as links. One could also make this color black, then the terms (and links to figures/tables) would be indistinguishable from the regular text.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened in on my home pc with Adobe Acrobat and since it does not give a 'hover preview' I think it makes sense to keep the color as darkgray.

-V hyperrefoptions=pdfa \
-V colorlinks=true \
-V papersize=a4 \
-o "build/${@:.pdf=}.tex" \
"build/$<"
@sed -i '/\\author{}/d' "build/${@:.pdf=}.tex"
if grep -q "\\makeglossaries" "${<}"; then \
cd build; \
pdflatex --jobname="${@:.pdf=}" "${@:.pdf=}.tex"; \
makeglossaries "${@:.pdf=}"; \
fi
latexmk \
-pdflatex -bibtex -halt-on-error \
-jobname="${@:.pdf=}" -cd "build/${@:.pdf=}.tex"
Expand Down
Loading