readme
This commit is contained in:
parent
d9af374eb7
commit
c9aa68cb32
1 changed files with 13 additions and 18 deletions
31
README.md
31
README.md
|
@ -33,25 +33,20 @@ systemctl reload nginx
|
|||
|
||||
## Configuration
|
||||
|
||||
These are included in the `public/compiler.sh` file, the binaries' PATH can
|
||||
be modified in case you want to compile groff from source, for example.
|
||||
As for the preprocessors, `grap` isn't installed by default in most systems,
|
||||
so you might want to remove the `G`, also `chem` gives me a bit of trouble
|
||||
when used with `eqn`.
|
||||
Here, you can change the groff binary PATH, and also settings
|
||||
an external compilation script if you prefer.
|
||||
|
||||
```shell
|
||||
SOELIM="/usr/bin/soelim" # soelim PATH
|
||||
REFER="/usr/bin/refer" # refer PATH
|
||||
GROFF="/usr/bin/groff" # groff PATH
|
||||
PRE="-ketpG" # Preprocessors
|
||||
```
|
||||
|
||||
These are not set, but you can set them if you want a directory with macros,
|
||||
or a custom bibliography file.
|
||||
|
||||
```shell
|
||||
BIB="bibliography" # Bibliography file
|
||||
MAC="macros" # Macros dir
|
||||
```php
|
||||
<?php
|
||||
...
|
||||
# groff settings
|
||||
$groff = "/usr/bin/groff";
|
||||
$comp = "$groff -ketpG -mspdf -Tpdf tmp/$uid.ms > tmp/$uid.pdf";
|
||||
# In case you want to use an external
|
||||
# script to compile with groff:
|
||||
#$comp = "sh groff-compiler.sh";
|
||||
...
|
||||
?>
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
Loading…
Reference in a new issue