Compare commits

...

47 commits

Author SHA1 Message Date
505cdf92ca
run jobs sequentially
All checks were successful
Build LaTeX packages / build (push) Successful in 42s
Build LaTeX packages / pages (push) Successful in 59s
2023-10-19 13:13:23 +02:00
bc3a076cd6
ci-test
All checks were successful
Build LaTeX packages / build (push) Successful in 57s
Build LaTeX packages / pages (push) Successful in 1m7s
2023-10-19 13:09:28 +02:00
92dc505b06
use caches to speed up compilation
All checks were successful
Build LaTeX packages / build (push) Successful in 1m45s
Build LaTeX packages / pages (push) Successful in 6m20s
2023-10-19 12:56:19 +02:00
9225c03547
remove unneded script 2023-10-19 10:55:10 +02:00
b1925a752f
fix TEXINPUTS
All checks were successful
Build LaTeX packages / build (push) Successful in 4m41s
2023-10-19 10:42:01 +02:00
e7f4d10438
further try
Some checks failed
Build LaTeX packages / build (push) Failing after 54s
2023-10-19 10:25:55 +02:00
6ae8238e15
next try
Some checks failed
Build LaTeX packages / build (push) Failing after 55s
2023-10-19 10:08:20 +02:00
8bed099045
further attempt to compile correctly
All checks were successful
Build LaTeX packages / build (push) Successful in 1m41s
2023-10-19 09:55:20 +02:00
13bbc42e4e
fix ci file
All checks were successful
Build LaTeX packages / build (push) Successful in 1m43s
2023-10-19 02:56:31 +02:00
7be9e1046b
fix compilation 2023-10-19 02:55:29 +02:00
eaf0763583
correctly compile in pipeline
All checks were successful
Build LaTeX packages / build (push) Successful in 1m55s
2023-10-19 02:50:36 +02:00
72cc9d78b0
set -e for compilation script
All checks were successful
Build LaTeX packages / build (push) Successful in 1m50s
2023-10-19 02:49:26 +02:00
34f0a41699
change job name
All checks were successful
Build LaTeX packages / build (push) Successful in 1m44s
2023-10-19 02:47:45 +02:00
c07e84d91b
generate documentation on master
All checks were successful
Build LaTeX packages / build (push) Successful in 1m42s
2023-10-19 02:23:39 +02:00
8798571831
fix path
Some checks failed
Build LaTeX packages / build (push) Failing after 36s
2023-10-19 02:21:55 +02:00
823c5097ce
adjust ci to new build style
Some checks failed
Build LaTeX packages / build (push) Failing after 23s
2023-10-19 02:21:13 +02:00
6d8a131865
Rework building of documentation files
Instead of an ugly Makefile structure, we now use a single compile
script that collects all the files in build/doc.
2023-10-19 01:34:46 +02:00
b587beb806
use single job
All checks were successful
Build LaTeX packages / build (push) Successful in 4m43s
2023-10-18 18:46:34 +02:00
ed6ee5ec64
remove unneeded ssh step 2023-10-18 16:35:40 +02:00
2cd113166d
update readme
Some checks failed
Build LaTeX packages / build (push) Successful in 4m34s
Build LaTeX packages / deploy-pages (push) Failing after 7s
2023-10-18 16:28:52 +02:00
6263366b56
adapt commit message in build repo
Some checks failed
Build LaTeX packages / build (push) Successful in 4m34s
Build LaTeX packages / deploy-pages (push) Failing after 7s
2023-10-18 16:25:41 +02:00
0156ddca43
fix origin url
Some checks failed
Build LaTeX packages / build (push) Successful in 4m37s
Build LaTeX packages / deploy-pages (push) Failing after 7s
2023-10-18 16:21:37 +02:00
476b57d2ba
fix permissions on ssh key
Some checks failed
Build LaTeX packages / build (push) Failing after 28s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 16:03:51 +02:00
3858718041
change setting up git: don't use agent, directly write to ~/.ssh
Some checks failed
Build LaTeX packages / build (push) Failing after 30s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 16:01:37 +02:00
e8fedd07a0
configure git directly before building
Some checks failed
Build LaTeX packages / build (push) Failing after 28s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 15:51:43 +02:00
65c801c212
rename deploy key secret
Some checks failed
Build LaTeX packages / build (push) Failing after 31s
Build LaTeX packages / deploy-pages (push) Failing after 7s
2023-10-18 11:31:12 +02:00
f941a10fe6
correct domain for host key
Some checks failed
Build LaTeX packages / build (push) Failing after 29s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:27:37 +02:00
5a0ec99d86
enter remote host key
Some checks failed
Build LaTeX packages / build (push) Failing after 29s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:25:56 +02:00
3c8f825e3f
fix push
Some checks failed
Build LaTeX packages / build (push) Failing after 30s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:24:21 +02:00
7e76546afd
fix pushing to build repo
Some checks failed
Build LaTeX packages / build (push) Failing after 29s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:19:33 +02:00
d5af0e7ad1
fix ssh url
Some checks failed
Build LaTeX packages / build (push) Failing after 47s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:16:37 +02:00
4719ba2d52
explicitly use ssh to clone
Some checks failed
Build LaTeX packages / build (push) Failing after 20s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:15:23 +02:00
e0b9b7ad44
fix ref name
Some checks failed
Build LaTeX packages / build (push) Failing after 32s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:13:58 +02:00
7c3775828e
clone history as well
Some checks failed
Build LaTeX packages / build (push) Failing after 30s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:12:09 +02:00
546a7007cc
fetch tags
Some checks failed
Build LaTeX packages / build (push) Failing after 27s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:11:01 +02:00
4008cb355f
clone submodules
Some checks failed
Build LaTeX packages / build (push) Failing after 25s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:06:35 +02:00
298e515a51
fix environment variable
Some checks failed
Build LaTeX packages / build (push) Failing after 24s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 11:04:38 +02:00
896956f6fa
fix ref name context variable
Some checks failed
Build LaTeX packages / build (push) Failing after 25s
Build LaTeX packages / deploy-pages (push) Failing after 6s
2023-10-18 10:26:11 +02:00
77140598bf
fix repo url
Some checks failed
Build LaTeX packages / build (push) Failing after 21s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 10:21:00 +02:00
27a592b9f1
specify branch to checkout
Some checks failed
Build LaTeX packages / build (push) Failing after 43s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 10:11:47 +02:00
1de88c00b8
rename deploy key variable
Some checks failed
Build LaTeX packages / build (push) Failing after 50s
Build LaTeX packages / deploy-pages (push) Failing after 7s
2023-10-18 09:56:35 +02:00
0aece45a9c
move ci file to corect location
Some checks failed
Build LaTeX packages / build (push) Failing after 14s
Build LaTeX packages / deploy-pages (push) Has been skipped
2023-10-18 09:52:14 +02:00
6aa92357e0
ajust ci 2023-10-18 09:51:02 +02:00
3483a24dca
disable indexing with beamer clas 2023-06-18 21:15:50 +02:00
51afbd7188
add category of presheaves 2022-10-17 18:34:37 +02:00
521ce5c804
fix whitespace around \vocab 2022-08-18 16:09:02 +02:00
b6a13cfa40
add green background style 2022-08-18 11:32:37 +02:00
45 changed files with 182 additions and 194 deletions

View file

@ -1,18 +0,0 @@
set -e
cd .ci
export COMMIT_MSG=$(python3 print_deploy_message.py)
cd ..
make ci-build
cd build/LatexPackagesBuild
git add .
git commit -m "${COMMIT_MSG}" || echo "Nothing new to commit"
git push --set-upstream origin ${CI_COMMIT_REF_NAME}-build
cd ../..
mkdir -p ~/texmf/tex/latex
cp -r build/LatexPackagesBuild ~/texmf/tex/latex
make doc
cd build
mv LatexPackagesBuild LatexPackages
zip -r LatexPackages.zip LatexPackages/ -x '*.git*'
zip -r LatexPackagesDocumentation.zip documentation
tree -H '.' -I "index.html" -D --charset utf-8 -T "LatexPackages" > index.html

View file

@ -1,12 +1,17 @@
set -e set -e
eval $(ssh-agent -s)
echo "$GITLAB_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
# Set up ssh private key
mkdir -p ~/.ssh mkdir -p ~/.ssh
chmod 700 ~/.ssh chmod 700 ~/.ssh
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
# Set up remote host key fingerprint
echo "git.abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
git config --global user.email "git@maximilian-kessler.de" git config --global user.email "git@maximilian-kessler.de"
git config --global user.name "Maximilian Keßler (via gitlab runner)" git config --global user.name "Maximilian Keßler (via gitlab runner)"
echo "Successfully added ssh deploy keys"

View file

@ -14,6 +14,6 @@ def get_deploy_message(repo):
"\n" \ "\n" \
"Build branch {branch} ({hexsha}) from {repo_name}" \ "Build branch {branch} ({hexsha}) from {repo_name}" \
.format(old_msg=old_msg, .format(old_msg=old_msg,
branch=os.environ['CI_COMMIT_REF_NAME'], branch=os.environ['REF_NAME'],
hexsha=get_latest_commit(repo).hexsha[0:7], hexsha=get_latest_commit(repo).hexsha[0:7],
repo_name='kesslermaximilian/LatexPackages') repo_name='latex/latex-packages')

14
.ci/deploy_to_build_repo.sh Executable file
View file

@ -0,0 +1,14 @@
set -e
# set up deploy message
cd .ci
export COMMIT_MSG=$(python3 print_deploy_message.py)
cd ..
# push pages to build repository
cd build/packages
git add .
git commit -m "${COMMIT_MSG}" || echo "Nothing new to commit"
git remote set-url origin --push git@git.abstractnonsen.se:latex/latex-packages-build
git push --set-upstream origin ${REF_NAME}-build
cd ../..

View file

@ -1,13 +1,13 @@
# ! /bin/sh # ! /bin/sh
set -e set -e
ssh git@gitlab.com
git clone git@gitlab.com:latexci/packages/LatexPackagesBuild.git build/LatexPackagesBuild cd build/packages
cd build/LatexPackagesBuild
REMOTE_BRANCH=$(git branch -a | sed -n '/remotes\/origin\/.*-build/p' | sed 's/remotes\/origin\///g' | sed 's/-build//g' | sed 's/[[:space:]]//g' | sed -n "/^${CI_COMMIT_REF_NAME}$/p") REMOTE_BRANCH=$(git branch -a | sed -n '/remotes\/origin\/.*-build/p' | sed 's/remotes\/origin\///g' | sed 's/-build//g' | sed 's/[[:space:]]//g' | sed -n "/^${REF_NAME}$/p")
echo ${REMOTE_BRANCH} echo ${REMOTE_BRANCH}
if [ "$REMOTE_BRANCH" = "" ];then if [ "$REMOTE_BRANCH" = "" ]; then
echo "This is the first build on this branch, creating new branch in build repository to push to" echo "This is the first build on this branch, creating new branch in build repository to push to"
git checkout --orphan ${CI_COMMIT_REF_NAME}-build git checkout --orphan ${CI_COMMIT_REF_NAME}-build
ls -ra | sed '/^\.git$/d' | sed '/^\.\.$/d' | sed '/^\.$/d' | xargs -r git rm --cached ls -ra | sed '/^\.git$/d' | sed '/^\.\.$/d' | sed '/^\.$/d' | xargs -r git rm --cached

View file

@ -0,0 +1,81 @@
name: Build LaTeX packages
on: [push]
jobs:
build:
runs-on: latex-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0 # We need all history to correctly parse tag names
fetch-tags: true
- name: Setup git credentials and committer
run: .ci/configure_git.sh
env:
DEPLOY_SSH_KEY: ${{ secrets.deploy_ssh_key }}
- name: Clone build repository
uses: actions/checkout@v4
with:
repository: latex/latex-packages-build
path: build/packages
ref: master
- name: Checkout correct branch in build repository
run: |
.ci/setup_build_repo_branch.sh
env:
REF_NAME: ${{ github.ref_name }}
- name: Build packages incrementally
run: make
- name: Push packages to build repo
run: |
.ci/deploy_to_build_repo.sh
env:
REF_NAME: ${{ github.ref_name }}
- name: Clean up git files from build repo
if: github.ref == 'refs/heads/master'
run: rm -rf build/packages/.git
- name: Save built packages to cache
if: github.ref == 'refs/heads/master'
uses: actions/cache/save@v3
with:
path: build/packages/
key: ${{ github.ref }}-packages
pages:
runs-on: latex-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Load package cache
uses: actions/cache/restore@v3
with:
path: build/packages/
key: ${{ github.ref }}-packages
- name: Load compilation cache
uses: actions/cache/restore@v3
with:
path: .compile
key: ${{ github.ref }}-doc
- name: Compile documentation
run: make doc
env:
TEXINPUTS: '${{ github.workspace }}/build/packages//:'
- name: Prepage pages
run: |
cd build
rm -rf packages/.git # Don't deploy the git files
zip -r latex-packages.zip packages/ -x '*.git*'
zip -r latex-packages-doc.zip doc/
- name: Deploy to pages
uses: actions/pages@v1
with:
directory: build/
- name: Upload compilation cache
uses: actions/cache/save@v3
with:
path: .compile
key: ${{ github.ref }}-doc

View file

@ -1,44 +0,0 @@
stages:
- get
- build
- pages
get-build-repo:
stage: get
before_script:
- source .ci/configure_git.sh
script:
- echo "Getting old Build repo..."
- .ci/get_build_repo_from_origin.sh
artifacts:
paths:
- build/
tags:
- latex
build-packages:
stage: build
before_script:
- source .ci/configure_git.sh
script:
- echo "Building packages incrementally..."
- sh .ci/ci_build.sh
variables:
GIT_SUBMODULE_STRATEGY: recursive
artifacts:
paths:
- build/
tags:
- latex
pages:
stage: pages
artifacts:
paths:
- public/
script:
- mv build/ public/
tags:
- latex
only:
- master

View file

@ -1,12 +1,30 @@
# Makefile for latex-packages
BUILD_DIR=build
DOC_SUBDIR=doc
PACKAGES_SUBDIR=packages
COMPILE_SUBDIR=.compile
BUILD_FLAGS=--recursive --git-version --pytex-version --license --author "Maximilian Keßler" --pytex-info-text --extra-header ".build/header_info.txt" --name "prepend-author" --clean-old-files BUILD_FLAGS=--recursive --git-version --pytex-version --license --author "Maximilian Keßler" --pytex-info-text --extra-header ".build/header_info.txt" --name "prepend-author" --clean-old-files
BUILD_DIRS= --source-dir src --build-dir build
ROOT=$(shell pwd)
BUILD_ROOT=${ROOT}/${BUILD_DIR}
# Build packages
build: .initsubmodulelock build: .initsubmodulelock
@python3 build.py ${BUILD_DIRS} ${BUILD_FLAGS} python3 build.py --source-dir src --build-dir ${BUILD_ROOT}/${PACKAGES_SUBDIR} ${BUILD_FLAGS}
# Build packages and allow repo to be dirty (use with caution and only when developing)
dirty: .initsubmodulelock dirty: .initsubmodulelock
@python3 build.py ${BUILD_DIRS} ${BUILD_FLAGS} --allow-dirty python3 build.py --source-dir src --build-dir ${BUILD_ROOT}/${PACKAGES_SUBDIR} ${BUILD_FLAGS} --allow-dirty
# generate documentation files from /doc
doc:
@scripts/compile_doc.sh
@mkdir -p ${BUILD_ROOT}/${DOC_SUBDIR}
@cp .compile/*.pdf ${BUILD_ROOT}/${DOC_SUBDIR}
@echo Documentation files written to ${BUILD_ROOT}/${DOC_SUBDIR}
init: .initsubmodulelock .gitconfiglock init: .initsubmodulelock .gitconfiglock
config: .gitconfiglock config: .gitconfiglock
@ -27,12 +45,9 @@ all: clean build
clean: clean:
@-rm -r build/ @-rm -r build/
@-rm -r .compile/
ci-build:
@python3 build.py --source-dir src --build-dir build/LatexPackagesBuild ${BUILD_FLAGS}
doc:
@-rm -r build/documentation
$(MAKE) -C doc central-doc
.PHONY: build doc .PHONY: build doc
#!/bin/bash
# Compiles all correspondence letters in repository

View file

@ -11,11 +11,11 @@ Mostly, they are available as a repository so that
- This motivates me to keep things organized - This motivates me to keep things organized
## Usage ## Usage
If you want to use these, just clone [LatexPackagesBuild](https://gitlab.com/latexci/packages/LatexPackagesBuild) into your `~/texmf/tex/latex` directory, and you are ready to go. If you want to use these, just clone [latex-packages-build][lp-build] into your `~/texmf/tex/latex` directory, and you are ready to go.
The builds are also available as single files or as zip at [GitLab pages](https://latexci.gitlab.io/packages/LatexPackages). The builds are also available as single files or as zip at the [pages][pages].
## Documentation ## Documentation
See the `documentation` folder (or zip file) at [GitLab pages](https://latexci.gitlab.io/packages/LatexPackages) for documentation to most of the packages. See the `documentation` folder (or zip file) at [pages][pages] for documentation to most of the packages.
## Bugs ## Bugs
As already mentioned, not all of these are intended for generic use. If you however feel like this should be the case, feel free to point out bugs or troubles when using these here at GitHub or to me directly. As already mentioned, not all of these are intended for generic use. If you however feel like this should be the case, feel free to point out bugs or troubles when using these here at GitHub or to me directly.
@ -28,4 +28,8 @@ This is free software.
Prior to version 2.6 this has been MIT-licensed. Starting with version 1.6 this is licensed under the LPPL and/or the GPLv3. Prior to version 2.6 this has been MIT-licensed. Starting with version 1.6 this is licensed under the LPPL and/or the GPLv3.
See `LICENSE.md` for further details. See `LICENSE.md` for further details.
The `quiver.sty` package here is taken from [varkor/quiver](https://github.com/varkor/quiver) and licensed under the MIT License. It is redistributed unchanged for dependency reasons of my projects. The `quiver.sty` package here is taken from [varkor/quiver][quiver] and licensed under the MIT License. It is redistributed unchanged for dependency reasons of my projects.
[pages]: https://latex.users.abstractnonsen.se/latex-packages
[lp-build]: https://git.abstractnonsen.se/latex/latex-packages-build
[quiver]: https://github.com/varkor/quiver

View file

@ -1,12 +0,0 @@
TOPTARGETS := all clean doc full central-doc
SUBDIRS := $(wildcard */.)
$(TOPTARGETS): $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
central-doc: $(SUBDIRS)
mv *.pdf ..
.PHONY: $(TOPTARGETS) $(SUBDIRS)

View file

@ -1,11 +0,0 @@
doc:
latexmk
full:
latexmk -gg
clean:
latexmk -C
central-doc: full
mv *.pdf ..

View file

@ -1,3 +1,10 @@
# This is the .latexmkrc file that needs to be used for compiling the documentation
# Note that the makeindex command is non-standard and follows the LaTeX3 architecture
# Without this, generating the indexes properly will not work and leads to compiling
# errors.
# When adding new packages, this should be symlinked to in each new directory,
# so that a call to latexmk will automatically use these options
$makeindex = 'makeindex -s gind.ist %O -o %D %S'; $makeindex = 'makeindex -s gind.ist %O -o %D %S';
$clean_ext .= ' glo'; $clean_ext .= ' glo';
$clean_ext .= ' hd'; $clean_ext .= ' hd';

View file

@ -1,13 +0,0 @@
TOPTARGETS := all clean doc full central-doc
SUBDIRS := $(wildcard */.)
$(TOPTARGETS): $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
central-doc: $(SUBDIRS)
mkdir -p ../build/documentation
mv *.pdf ../build/documentation
.PHONY: $(TOPTARGETS) $(SUBDIRS)

View file

@ -1 +0,0 @@
../DIR_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../DIR_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../DIR_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../DIR_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

View file

@ -1 +0,0 @@
../../DOC_MAKEFILE

8
scripts/compile_doc.sh Executable file
View file

@ -0,0 +1,8 @@
#! /bin/bash
# Compiles all documentation files in repository
set -e
BUILD_COMMAND="latexmk -output-directory=$(pwd)/.compile $1"
find doc -type f -name "*.tex" -execdir sh -c "$BUILD_COMMAND" -- {} \;

View file

@ -1,10 +0,0 @@
pdf:
latexmk
full:
latexmk -gg
clean:
latexmk -C
.PHONY: clean

View file

@ -1,10 +0,0 @@
pdf:
latexmk
full:
latexmk -gg
clean:
latexmk -C
.PHONY: clean

View file

@ -1,10 +0,0 @@
pdf:
latexmk
full:
latexmk -gg
clean:
latexmk -C
.PHONY: clean

View file

@ -382,6 +382,7 @@
\DeclareFancyThmStyle[orange!10]{orange}[thmorangemarginandfill] \DeclareFancyThmStyle[orange!10]{orange}[thmorangemarginandfill]
\DeclareFancyThmStyle[blue!7]{blue}[thmbluemarginandfill] \DeclareFancyThmStyle[blue!7]{blue}[thmbluemarginandfill]
\DeclareFancyThmStyle{green!70!black}[thmgreenmargin] \DeclareFancyThmStyle{green!70!black}[thmgreenmargin]
\DeclareFancyThmStyle[green!10]{green!70!black}[thmgreenmarginandfill]
\DeclareFancyThmStyle{gold}[thmgoldmargin] \DeclareFancyThmStyle{gold}[thmgoldmargin]
\DeclareFancyThmStyle{yellow!80!orange}[thmyellowmargin] \DeclareFancyThmStyle{yellow!80!orange}[thmyellowmargin]
\DeclareFancyThmStyle{gray}[thmgraymargin] \DeclareFancyThmStyle{gray}[thmgraymargin]

View file

@ -1,6 +1,8 @@
__HEADER__(Declaring of math symbols with automatic indexing) __HEADER__(Declaring of math symbols with automatic indexing)
\RequirePackage{imakeidx} \@ifclassloaded{beamer}{}{
\RequirePackage{imakeidx}
}
\RequirePackage{xparse} \RequirePackage{xparse}
% Keys used for declaring symbols % Keys used for declaring symbols
@ -35,13 +37,15 @@ __HEADER__(Declaring of math symbols with automatic indexing)
{ {
\bool_if:cF { used_#2 } \bool_if:cF { used_#2 }
{ {
\index[#1] \@ifclassloaded{beamer}{}{
{ \index[#1]
#7 {
@ #7
$#4{#5}#6$ @
#3 $#4{#5}#6$
} #3
}
}
\bool_gset_true:c { used_#2 } \bool_gset_true:c { used_#2 }
} }
#4{#5} #4{#5}

View file

@ -21,25 +21,25 @@ __IF__(index)
%Emphasize \vocabulary %Emphasize \vocabulary
\RequirePackage{expl3} \RequirePackage{expl3}
\ExplSyntaxOn \ExplSyntaxOn
\NewDocumentCommand{\vocab}{O{} m}{ \NewDocumentCommand{\vocab}{O{} m}{%
\textbf{\color{blue} #2}% \textbf{\color{blue} #2}%
\if\relax\detokenize{#1}\relax% \if\relax\detokenize{#1}\relax%
\index[vocabindex]{\text_titlecase_first:n{#2}} % true branch: #1 was empty \index[vocabindex]{\text_titlecase_first:n{#2}} % true branch: #1 was empty
\else \else%
\index[vocabindex]{#1} % false branch: #1 was supplied \index[vocabindex]{#1} % false branch: #1 was supplied
\fi \fi%
} }
\ExplSyntaxOff \ExplSyntaxOff
\newcommand\printvocabindex{ \newcommand\printvocabindex{%
\printindex[vocabindex] \printindex[vocabindex]%
} }
\NewDocumentCommand{\PrintVocabIndex}{ } \NewDocumentCommand{\PrintVocabIndex}{ }
{ {%
\printindex[vocabindex] \printindex[vocabindex]%
} }
\else \else
\NewDocumentCommand{\vocab}{O{} m }{ \NewDocumentCommand{\vocab}{O{} m }{%
\textbf{\color{blue} #2} \textbf{\color{blue} #2}%
} }%
\fi \fi

View file

@ -87,6 +87,7 @@ __END_OPTIONS_X__
\DeclareSimpleMathOperator{Tor} \DeclareSimpleMathOperator{Tor}
\DeclareSimpleMathOperator{MaxSpec} \DeclareSimpleMathOperator{MaxSpec}
\DeclareSimpleMathOperator{Sh} \DeclareSimpleMathOperator{Sh}
\DeclareSimpleMathOperator{PSh}
\DeclareSimpleMathOperator{Proj} \DeclareSimpleMathOperator{Proj}
\DeclareSimpleMathOperator{QCoh} \DeclareSimpleMathOperator{QCoh}
\DeclareSimpleMathOperator{Fun} \DeclareSimpleMathOperator{Fun}