From f1b0941d06a636396152b44bb9c76662fb4a69de Mon Sep 17 00:00:00 2001 From: Riviera Taylor Date: Thu, 2 Nov 2023 17:46:23 +0100 Subject: [PATCH] updated README; scripts --- README.md | 1 + install-context.fish | 2 +- install-fonts.sh | 18 +++++++++--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 647f5c3..e75fd92 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ ConTeXt typesetting system due to its precision. # The short version ``` fish +# apt install wget fish $ fish install-context.fish $ fish install-fonts.sh $ fish compile.fish diff --git a/install-context.fish b/install-context.fish index ed816ff..1c379aa 100644 --- a/install-context.fish +++ b/install-context.fish @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/usr/bin/fish mkdir -p $HOME/Applications/context cd $HOME/Applications/context diff --git a/install-fonts.sh b/install-fonts.sh index 093e83c..0471e1f 100644 --- a/install-fonts.sh +++ b/install-fonts.sh @@ -1,27 +1,27 @@ #!/usr/bin/sh # make the required directories -mkdir -p ~/$HOME/Applications/context/tex/texmf-fonts/fonts/bitter -mkdir -p ~/$HOME/Applications/context/tex/texmf-fonts/fonts/compagnon -mkdir -p ~/$HOME/Applications/context/tex/texmf-fonts/tex/context/user/ +mkdir -p $HOME/Applications/context/tex/texmf-fonts/fonts/bitter +mkdir -p $HOME/Applications/context/tex/texmf-fonts/fonts/compagnon +mkdir -p $HOME/Applications/context/tex/texmf-fonts/tex/context/user/ # tell ConTeXt about the typescripts -cp ./fonts/type-imp-bitter.mkxl ~/$HOME/Applications/context/tex/texmf-fonts/tex/context/user/ -cp ./fonts/type-imp-compagnon.mkxl ~/$HOME/Applications/context/tex/texmf-fonts/tex/context/user/ +cp ./fonts/type-imp-bitter.mkxl $HOME/Applications/context/tex/texmf-fonts/tex/context/user/ +cp ./fonts/type-imp-compagnon.mkxl $HOME/Applications/context/tex/texmf-fonts/tex/context/user/ # install Bitter -cd ~/$HOME/Applications/context/tex/texmf-fonts/fonts/bitter +cd $HOME/Applications/context/tex/texmf-fonts/fonts/bitter wget https://github.com/solmatas/BitterPro/files/4696179/ttf.zip unzip ttf.zip mv ttf/* . && rm -r ttf __MACOSX ttf.zip -fc-cache -f -v ~/$HOME/Applications/context/tex/texmf-fonts/fonts/bitter/ +fc-cache -f -v $HOME/Applications/context/tex/texmf-fonts/fonts/bitter/ # install Compagnon Light -cd ~/$HOME/Applications/context/tex/texmf-fonts/compagnon +cd $HOME/Applications/context/tex/texmf-fonts/compagnon git clone https://gitlab.com/velvetyne/compagnon.git mv compagnon/fonts/* . rm -rf compagnon Icon\r webfonts -fc-cache -f -v ~/$HOME/Applications/context/tex/texmf-fonts/fonts/compagnon/ +fc-cache -f -v $HOME/Applications/context/tex/texmf-fonts/fonts/compagnon/ # Enable use of the fonts in ConTeXt mtxrun --generate