Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions lib/a-od-debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

file_name=$1
output_format="pdf"
template_key=""

if [ $# -gt 1 ]; then
output_format=$2
fi

if [ $# -gt 2 ]; then
template_key=" -f $3"
fi

if [ $# -gt 3 ]; then
custom_lib=" -c $4"
fi

a-od-pre -r asciidoctor-mathematical -r asciidoctor-diagram $file_name -b fodt -o pre.xml
a-od-out -i pre.xml -o ${file_name%.*}.fodt_ $template_key $custom_lib
java -jar /usr/local/a-od/lo-kts-converter.main.jar -f $output_format -i ${file_name%.*}.fodt_

#rm pre.xml
#rm ${file_name%.*}.fodt_