Initial commit of akmon project
This commit is contained in:
24
doc_bus/convert_to_word.bat
Normal file
24
doc_bus/convert_to_word.bat
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
echo Converting Markdown to Word format...
|
||||
|
||||
REM Check if Pandoc is installed
|
||||
pandoc --version >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo Pandoc is not installed or not in PATH
|
||||
echo Please install Pandoc from https://pandoc.org/installing.html
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Convert to Word format
|
||||
pandoc "融资计划书.md" -o "融资计划书.docx" --from markdown --to docx --reference-doc="template.docx"
|
||||
|
||||
REM Convert to PDF format (requires LaTeX)
|
||||
pandoc "融资计划书.md" -o "融资计划书.pdf" --from markdown --to pdf --pdf-engine=xelatex --template="template.tex"
|
||||
|
||||
echo Conversion completed!
|
||||
echo Generated files:
|
||||
echo - 融资计划书.docx
|
||||
echo - 融资计划书.pdf
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user