diff --git a/eoatex2pdf.py b/eoatex2pdf.py index aed1228..8b2c894 100755 --- a/eoatex2pdf.py +++ b/eoatex2pdf.py @@ -34,7 +34,7 @@ def main( raise( Exception( "input file matching '*.tex' expected" ) ) output_dir = Path( output_dir ) - fixed_file_path = output_dir / input_file.name + fixed_file_path = output_dir / input_file.with_suffix( ".tex" ).name libeoaconvert.enable_preamble( input_file = input_path, output_file = fixed_file_path, diff --git a/utils/libeoaconvert.py b/utils/libeoaconvert.py index 19c8468..ca9fff9 100644 --- a/utils/libeoaconvert.py +++ b/utils/libeoaconvert.py @@ -30,6 +30,8 @@ def enable_preamble( output_file, pdf_or_xml ): + logging.debug(f"Enabling preamble {pdf_or_xml}. Input file is {input_file}, outputting to {output_file}") + with open( input_file, "r" ) as i: with open( output_file, "w" ) as o: if( pdf_or_xml == "pdf" ):