windows batch file 实现 tex 文件 的双档、单档(double column, single column)分别编译
2014-01-04 11:54
399 查看
提交论文的时候有时需要同时提交double column跟single column的pdf文件,而同时编辑同一篇论文的两个版本实在是一件很讨厌的事情,而且没有必要。可以通过开关tex 文件开关的documentclass 来实现分别编译,但用windows batch就更方便了。
insert lines from a .txt file into a .txt file
准备
首先tex 文件开关的两个documentclass (单档和双档的)都要注释掉。tex 文件中实现单双档分支可以用条件编译语句\ifCLASSOPTIONtwocolumn ... \else ... \fi
编译双档
ECHO Compiling double column version... @ECHO OFF ( ECHO \documentclass[journal,twocolumn,10pt]{IEEEtran} type SPL.tex )> temp.tex texify -p temp.tex move /y temp.pdf SPL_double.pdf del temp.*
编译单档
ECHO Compiling double column version... @ECHO OFF ( ECHO \documentclass[journal,onecolumn,draftclsnofoot,11pt]{IEEEtran} type SPL.tex )> temp.tex texify -p temp.tex move /y temp.pdf SPL_single.pdf del temp.*
参考文献
Batch:insert lines from a .txt file into a .txt file
相关文章推荐
- phpstorm配置File Watcher在windows下自动编译sass文件
- BatchFileProcessing(2)--实现之解析文件
- Windows和Linux上分别怎样实现等待某个线程结束?---用WaitForSingleObject和pthread_join
- 通过windows + MinGW + MSYS编译ffmpeg实现文件播放
- windows 下使用gcc编译. c文件的实现方法。
- 使用Ajaxfileupload插件分别实现单文件和多文件上传
- 使用Ajaxfileupload插件分别实现单文件和多文件上传
- 使用Ajaxfileupload插件分别实现单文件和多文件上传
- 编译matconvnet(GPU版本)报错fatal error C1083: 无法打开包括文件: “windows.h”: No such file or directory
- File.separator 实现Windows和Linux文件路径中的斜线
- Windows下Python3实现C++多文件编译脚本(没有Make怎么办)
- 使用Windows的SHFileOperation外壳函数实现文件操作
- AjaxFileUpload.js实现异步上传文件
- Windows命令行下面编译一个Java文件需要引用另一个class文件解决办法
- vim的lookupfile插件在windows平台上tag文件生成
- windows下mogo-c-driver编译release版的库文件
- C++的头文件和实现文件分别写什么
- ajaxfileupload.js+SpringMVC实现文件上传
- html5 中input type=‘file’实现文件图片等的上传的文件类型限制
- cwRsync实现windows下文件定时同步(sql server 2008R2 备份文件定时同步)