mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-13 01:24:32 +02:00
Use XeLaTeX and Exit on empty selection
This commit is contained in:
@@ -254,7 +254,7 @@ CadmusExport () {
|
|||||||
;;
|
;;
|
||||||
md) shift; pandocExport md && exit 0
|
md) shift; pandocExport md && exit 0
|
||||||
;;
|
;;
|
||||||
pdf) shift; pandocExport pdf && exit 0
|
pdf) shift; pandocExport pdf --pdf-engine=xelatex && exit 0
|
||||||
;;
|
;;
|
||||||
html) shift; pandocExport html --mathml --self-contained -c "${script_dir}"'/resources/pandoc.css' && exit 0
|
html) shift; pandocExport html --mathml --self-contained -c "${script_dir}"'/resources/pandoc.css' && exit 0
|
||||||
;;
|
;;
|
||||||
@@ -280,7 +280,7 @@ pandocExport () { # $1 is extension; $2+ are options for pandoc
|
|||||||
else
|
else
|
||||||
FILEPATH=$("${script_dir}/NoteFind.sh" "${NOTES_DIR}")
|
FILEPATH=$("${script_dir}/NoteFind.sh" "${NOTES_DIR}")
|
||||||
fi
|
fi
|
||||||
FILE="$(basename ${FILEPATH})"
|
[[ -f "${FILEPATH}" ]] && FILE="$(basename ${FILEPATH})" || exit 0
|
||||||
FILEOUT="$(echo ${FILE} | cut -f 1 -d '.').${1}"
|
FILEOUT="$(echo ${FILE} | cut -f 1 -d '.').${1}"
|
||||||
shift
|
shift
|
||||||
cd "$(echo "${FILEPATH}" | xargs realpath | xargs dirname)"
|
cd "$(echo "${FILEPATH}" | xargs realpath | xargs dirname)"
|
||||||
|
Reference in New Issue
Block a user