Compare commits
10 Commits
f84baa5cc8
...
8fabcb6a18
Author | SHA1 | Date | |
---|---|---|---|
|
8fabcb6a18 | ||
|
57338e5869 | ||
|
8a9285146d | ||
|
76f535cc88 | ||
|
b294eaf9c0 | ||
|
518f91fd42 | ||
|
ff01cfd9c3 | ||
|
d835087c17 | ||
|
705bea64b7 | ||
|
7fbcdc02f7 |
4
Makefile
4
Makefile
@ -1,6 +1,7 @@
|
|||||||
PDF_FILES = $(shell share/bin/allpdfs)
|
PDF_FILES = $(shell share/bin/allpdfs)
|
||||||
ALL_FILES = $(shell find -name '*.tex' -or -name '*.sty' -or -name '*.cls' -or -name '*.bib' -or -name '*.bst' -or -name '*.jpg' -or -name '*.png' -or -name '*.eps' | sed -e 's/ /\ /g')
|
ALL_FILES = $(shell find -name '*.tex' -or -name '*.sty' -or -name '*.cls' -or -name '*.bib' -or -name '*.bst' -or -name '*.jpg' -or -name '*.png' -or -name '*.eps' | sed -e 's/ /\ /g')
|
||||||
MAKEFILES = $(shell share/bin/allmakefiles)
|
MAKEFILES = $(shell share/bin/allmakefiles)
|
||||||
|
PWD=$(shell pwd)
|
||||||
|
|
||||||
-include .configure
|
-include .configure
|
||||||
|
|
||||||
@ -26,6 +27,7 @@ multicore:
|
|||||||
|
|
||||||
.makefile:
|
.makefile:
|
||||||
mkdir -p .makefile
|
mkdir -p .makefile
|
||||||
|
share/bin/pkgdep
|
||||||
|
|
||||||
.makefile/%.makefile: .makefile share/makefile.sed
|
.makefile/%.makefile: .makefile share/makefile.sed
|
||||||
sed -e "s/SED/$*/g" share/makefile.sed > $@
|
sed -e "s/SED/$*/g" share/makefile.sed > $@
|
||||||
@ -33,4 +35,4 @@ multicore:
|
|||||||
-include $(MAKEFILES)
|
-include $(MAKEFILES)
|
||||||
|
|
||||||
echo:
|
echo:
|
||||||
echo $(PDF_FILES)
|
echo $(PDF_FILES)
|
16
README.md
16
README.md
@ -145,6 +145,22 @@ Because ``.`` is included in the search path, you can include files from other s
|
|||||||
|
|
||||||
The use of ``share/texmf`` should be avoided, as it is supposed to put some shared files.
|
The use of ``share/texmf`` should be avoided, as it is supposed to put some shared files.
|
||||||
|
|
||||||
|
## Import and Download
|
||||||
|
|
||||||
|
To import from other latex projects, add "imports" in the config file.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
imports="latex-theme"
|
||||||
|
```
|
||||||
|
|
||||||
|
This is useful when you use other latex projects as templates or share paragraphs in multiple projects.
|
||||||
|
|
||||||
|
To download from a git project and import:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
imports="latex-theme||git@source"
|
||||||
|
```
|
||||||
|
|
||||||
## Dependency between ``pdf``s
|
## Dependency between ``pdf``s
|
||||||
|
|
||||||
If you need to include files from other latex sources, it would be wise to explicitly add dependencies in the make file. So that the changes in the source ``pdf`` would cause rebuild in the destiny ``pdf``. This is done by add ``depend`` configuration in ``config`` file:
|
If you need to include files from other latex sources, it would be wise to explicitly add dependencies in the make file. So that the changes in the source ``pdf`` would cause rebuild in the destiny ``pdf``. This is done by add ``depend`` configuration in ``config`` file:
|
||||||
|
2
example.tex/Makefile
Normal file
2
example.tex/Makefile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
this:
|
||||||
|
make -C ..
|
0
share/bin/gray
Normal file → Executable file
0
share/bin/gray
Normal file → Executable file
@ -9,4 +9,22 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ -f $*/config ] && . $*/config
|
||||||
|
|
||||||
|
for import in $imports
|
||||||
|
do
|
||||||
|
args=(${import//||/ })
|
||||||
|
target=${args[0]}
|
||||||
|
source=${args[1]}
|
||||||
|
dir="$(pwd)/${target}"
|
||||||
|
|
||||||
|
if [ ! -d $dir ];then
|
||||||
|
git clone $source $dir
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d $dir ]; then
|
||||||
|
TEXMF="$TEXMF$dir:"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo $TEXMF
|
echo $TEXMF
|
||||||
|
11
share/bin/pkgdep
Executable file
11
share/bin/pkgdep
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
DEPS="make texlive-full inotify-tools biber bibtool poppler-utils python-pygments"
|
||||||
|
|
||||||
|
if test -f /etc/debian_version; then
|
||||||
|
echo "pkgdep: installing dependencies - $DEPS"
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install $DEPS -y
|
||||||
|
else
|
||||||
|
echo "pkgdep: can't support current system $(uname -s)"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user