Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- itrans -I <filename>.itx -o <filename>.tex
- echo off
- rem Record where is MikTeX is installed
- set MiktexRoot=C:Program FilesMiKTeX 2.9
- rem copy itrans.exe to a directory already within the path environment variable
- rem namely the path adjustment made by the installer for MiKTeX which puts
- rem all of the MiKTeX installed tools on the PATH variable
- rem
- rem for 32-bit windows systems remove the x64 suffix
- copy ".bin*.exe" "%MiktexRoot%miktexbinx64*.*" /Y /V
- rem Create the directories within the MikTeX structure used or referenced by the itrans package
- mkdir "%MiktexRoot%docitrans"
- mkdir "%MiktexRoot%docitranscontrib"
- mkdir "%MiktexRoot%fontssourcepublicitrans"
- mkdir "%MiktexRoot%fontstype1publicitrans"
- mkdir "%MiktexRoot%fontstfmpublicitrans"
- mkdir "%MiktexRoot%fontsafmpublicitrans"
- mkdir "%MiktexRoot%fontstruetypepublicitrans"
- mkdir "%MiktexRoot%texlatexitrans"
- mkdir "%MiktexRoot%texlatexitransfonts"
- rem Copy itrans package files into the MiKTeX structure
- rem used http:\tex.stackexchange.comquestions1754tamil-tex-in-windows
- rem and the installation script for Tamil-Omega as guides for the copy commands
- rem Listed below
- rem
- rem Copy Documentation files
- copy ".doc*.*" "%MiktexRoot%docitrans*.*" /Y /V
- copy ".contrib*.*" "%MiktexRoot%docitranscontrib*.*" /Y /V
- rem copy Font Files
- copy ".libfonts*.mf" "%MiktexRoot%fontssourcepublicitrans*.*" /Y /V
- copy ".libfonts*.pfa" "%MiktexRoot%fontstype1publicitrans*.*" /Y /V
- copy ".libfonts*.pfb" "%MiktexRoot%fontstype1publicitrans*.*" /Y /V
- copy ".libfonts*.pfm" "%MiktexRoot%fontstype1publicitrans*.*" /Y /V
- copy ".libfonts*.tfm" "%MiktexRoot%fontstfmpublicitrans*.*" /Y /V
- copy ".libfonts*.afm" "%MiktexRoot%fontsafmpublicitrans*.*" /Y /V
- copy ".libfonts*.ttf" "%MiktexRoot%fontstruetypepublicitrans*.*" /Y /V
- rem copy all of the ITRANS Lib structure into MiKTeX structure.
- copy ".lib*.*" "%MiktexRoot%texlatexitrans*.*" /Y /V
- copy ".libfonts*.*" "%MiktexRoot%texlatexitransfonts*.*" /Y /V
- rem post installation commands to rebuilt the font name database ans to process all of the font MAPping files.
- texhash
- updmap
- rem
- rem With the above copies MikTeX can now find the ITRANS fonts and resolve references created by the itrans.exe preprocessor
- rem
- rem But the preprocessor cannot be run from the command line because itrans.exe is expecting to find a
- rem specific ITRANS structure somewhere on the disk via the environment variable: ITRANSPATH
- rem instruct the user about this environment variable requirement
- rem
- echo "Set the environment variable: ITRANSPATH"
- echo "ITRANSPATH=%MiktexRoot%texlatexitrans;%MiktexRoot%texlatexitransfonts"
Add Comment
Please, Sign In to add comment