add lualatex to the script
This commit is contained in:
parent
07100aa7bb
commit
35ed975570
|
@ -46,12 +46,13 @@ Note
|
||||||
If the script is run as `pdflatex.sh`, then the `pdflatex` command is used
|
If the script is run as `pdflatex.sh`, then the `pdflatex` command is used
|
||||||
(producing PDF output files). However, if the script is run as `latex.sh`,
|
(producing PDF output files). However, if the script is run as `latex.sh`,
|
||||||
then the `latex` command is used (producing DVI output files), and if the
|
then the `latex` command is used (producing DVI output files), and if the
|
||||||
script is run as `xelatex.sh`, then the `xelatex` command is used (producing
|
script is run as `xelatex.sh` or 'lualatex.sh', then the `xelatex` resp. 'lualatex' command is used (producing
|
||||||
PDF output files). Thus, if necessary, symbolic links may be created to use
|
PDF output files). Thus, if necessary, symbolic links may be created to use
|
||||||
the script easily, e.g.::
|
the script easily, e.g.::
|
||||||
|
|
||||||
$ ln -s ./pdflatex.sh ./latex.sh
|
$ ln -s ./pdflatex.sh ./latex.sh
|
||||||
$ ln -s ./pdflatex.sh ./xelatex.sh
|
$ ln -s ./pdflatex.sh ./xelatex.sh
|
||||||
|
$ ln -s ./pdflatex.sh ./lualatex.sh
|
||||||
|
|
||||||
**Arch Linux** users may use `tdi <https://github.com/tdi>`_'s `AUR package
|
**Arch Linux** users may use `tdi <https://github.com/tdi>`_'s `AUR package
|
||||||
<http://aur.archlinux.org/packages.php?ID=55739>`_ to obtain the script.
|
<http://aur.archlinux.org/packages.php?ID=55739>`_ to obtain the script.
|
||||||
|
|
16
pdflatex.sh
16
pdflatex.sh
|
@ -21,7 +21,7 @@
|
||||||
# | -sc [LANG] FILE(.tex)
|
# | -sc [LANG] FILE(.tex)
|
||||||
#
|
#
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
# A bash script to simplify TeX/LaTeX/XeLaTeX files compilation and more.
|
# A bash script to simplify TeX/LaTeX/XeLaTeX/LuaLaTeX files compilation and more.
|
||||||
# Just run the script to get more information: './pdflatex.sh'.
|
# Just run the script to get more information: './pdflatex.sh'.
|
||||||
#
|
#
|
||||||
# REPORTING BUGS
|
# REPORTING BUGS
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
# VERSION
|
# VERSION
|
||||||
# =======
|
# =======
|
||||||
VERSION=3.4.0
|
VERSION=3.4.1
|
||||||
|
|
||||||
|
|
||||||
# PROGRAMS
|
# PROGRAMS
|
||||||
|
@ -54,7 +54,7 @@ PDFLATEX_PROGRAM="pdflatex"
|
||||||
PDFNUP_PROGRAM="pdfnup"
|
PDFNUP_PROGRAM="pdfnup"
|
||||||
PS4PDF_PROGRAM="ps4pdf"
|
PS4PDF_PROGRAM="ps4pdf"
|
||||||
XELATEX_PROGRAM="xelatex"
|
XELATEX_PROGRAM="xelatex"
|
||||||
|
LUALATEX_PROGRAM="lualatex"
|
||||||
|
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
# =======
|
# =======
|
||||||
|
@ -87,7 +87,7 @@ AUXILIARYEXTS_BIBTEX="$AUXILIARYEXTS_COMMON dvi gls ind pdf synctex.gz"
|
||||||
AUXILIARYEXTS_INDEX="$AUXILIARYEXTS_COMMON bbl div gls pdf synctex.gz"
|
AUXILIARYEXTS_INDEX="$AUXILIARYEXTS_COMMON bbl div gls pdf synctex.gz"
|
||||||
AUXILIARYEXTS_GLOSSARIES="$AUXILIARYEXTS_COMMON bbl div ind pdf synctex.gz"
|
AUXILIARYEXTS_GLOSSARIES="$AUXILIARYEXTS_COMMON bbl div ind pdf synctex.gz"
|
||||||
|
|
||||||
# Options to pass to the latex/pdflatex/xelatex compilers:
|
# Options to pass to the latex/pdflatex/xelatex/LuaLaTeX compilers:
|
||||||
LATEX_OPTIONS="$LATEX_BATCHMODE_OPT"
|
LATEX_OPTIONS="$LATEX_BATCHMODE_OPT"
|
||||||
|
|
||||||
# Base name of the script:
|
# Base name of the script:
|
||||||
|
@ -131,13 +131,13 @@ cat <<EOF
|
||||||
${txtbld}PDFLATEX.SH${txtrst} $VERSION (c) 2007-2016\
|
${txtbld}PDFLATEX.SH${txtrst} $VERSION (c) 2007-2016\
|
||||||
${txtbld}Michal Kalewski${txtrst} <mkalewski at cs.put.poznan.pl>
|
${txtbld}Michal Kalewski${txtrst} <mkalewski at cs.put.poznan.pl>
|
||||||
|
|
||||||
${txtund}A BASH SCRIPT TO SIMPLIFY TeX/LaTeX/XeLaTeX FILES COMPILATION\
|
${txtund}A BASH SCRIPT TO SIMPLIFY TeX/LaTeX/XeLaTeX/LuaLaTeX FILES COMPILATION\
|
||||||
AND MORE${txtrst}
|
AND MORE${txtrst}
|
||||||
|
|
||||||
NOTE: If the script is run as 'pdflatex.sh', then the 'pdflatex' command is
|
NOTE: If the script is run as 'pdflatex.sh', then the 'pdflatex' command is
|
||||||
used (producing PDF output files). However, if the script is run as
|
used (producing PDF output files). However, if the script is run as
|
||||||
'latex.sh', then the 'latex' command is used (producing DVI output
|
'latex.sh', then the 'latex' command is used (producing DVI output
|
||||||
files), and if the script is run as 'xelatex.sh', then the 'xelatex'
|
files), and if the script is run as 'xelatex.sh', then the 'xelatex' or 'LuaLaTeX'
|
||||||
command is used (producing PDF output files). Thus, if necessary,
|
command is used (producing PDF output files). Thus, if necessary,
|
||||||
symbolic links may be created to use the script easily.
|
symbolic links may be created to use the script easily.
|
||||||
|
|
||||||
|
@ -428,7 +428,7 @@ function spell_checker() {
|
||||||
function run_pdflatex() {
|
function run_pdflatex() {
|
||||||
check_programs "$GREP"
|
check_programs "$GREP"
|
||||||
echo -ne "$TEXT..."
|
echo -ne "$TEXT..."
|
||||||
$LATEX_PROGRAM $LATEX_OPTIONS "$FILENAME" >&- 2>&-
|
$LATEX_PROGRAM $LATEX_OPTIONS "$FILENAME"
|
||||||
local ERR=`$GREP -a -i error "$FILENAME".log | $GREP -a -v -i infwarerr`
|
local ERR=`$GREP -a -i error "$FILENAME".log | $GREP -a -v -i infwarerr`
|
||||||
if [[ -z $ERR ]] ; then
|
if [[ -z $ERR ]] ; then
|
||||||
local ERR=`$GREP -a -i "^\!" "$FILENAME".log`
|
local ERR=`$GREP -a -i "^\!" "$FILENAME".log`
|
||||||
|
@ -537,7 +537,7 @@ if [[ -n $CHKTEX ]] ; then
|
||||||
mquit $?
|
mquit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Command to use: 'latex', 'pdflatex', or 'xelatex':
|
# Command to use: 'latex', 'pdflatex', 'xelatex' or 'LuaLaTeX':
|
||||||
if [[ $THENAME == "latex.sh" ]] ; then
|
if [[ $THENAME == "latex.sh" ]] ; then
|
||||||
LATEX_PROGRAM=$LATEX_PROGRAM
|
LATEX_PROGRAM=$LATEX_PROGRAM
|
||||||
elif [[ $THENAME == "xelatex.sh" ]] ; then
|
elif [[ $THENAME == "xelatex.sh" ]] ; then
|
||||||
|
|
Loading…
Reference in New Issue