mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-10 16:14:02 +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
|
||||
;;
|
||||
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
|
||||
;;
|
||||
@@ -280,7 +280,7 @@ pandocExport () { # $1 is extension; $2+ are options for pandoc
|
||||
else
|
||||
FILEPATH=$("${script_dir}/NoteFind.sh" "${NOTES_DIR}")
|
||||
fi
|
||||
FILE="$(basename ${FILEPATH})"
|
||||
[[ -f "${FILEPATH}" ]] && FILE="$(basename ${FILEPATH})" || exit 0
|
||||
FILEOUT="$(echo ${FILE} | cut -f 1 -d '.').${1}"
|
||||
shift
|
||||
cd "$(echo "${FILEPATH}" | xargs realpath | xargs dirname)"
|
||||
|
Reference in New Issue
Block a user