Guest User

Untitled

a guest
Mar 22nd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. itrans -I <filename>.itx -o <filename>.tex
  2.  
  3. echo off
  4.  
  5. rem Record where is MikTeX is installed
  6. set MiktexRoot=C:Program FilesMiKTeX 2.9
  7.  
  8. rem copy itrans.exe to a directory already within the path environment variable
  9. rem namely the path adjustment made by the installer for MiKTeX which puts
  10. rem all of the MiKTeX installed tools on the PATH variable
  11. rem
  12. rem for 32-bit windows systems remove the x64 suffix
  13. copy ".bin*.exe" "%MiktexRoot%miktexbinx64*.*" /Y /V
  14.  
  15. rem Create the directories within the MikTeX structure used or referenced by the itrans package
  16. mkdir "%MiktexRoot%docitrans"
  17. mkdir "%MiktexRoot%docitranscontrib"
  18. mkdir "%MiktexRoot%fontssourcepublicitrans"
  19. mkdir "%MiktexRoot%fontstype1publicitrans"
  20. mkdir "%MiktexRoot%fontstfmpublicitrans"
  21. mkdir "%MiktexRoot%fontsafmpublicitrans"
  22. mkdir "%MiktexRoot%fontstruetypepublicitrans"
  23. mkdir "%MiktexRoot%texlatexitrans"
  24. mkdir "%MiktexRoot%texlatexitransfonts"
  25.  
  26. rem Copy itrans package files into the MiKTeX structure
  27. rem used http:\tex.stackexchange.comquestions1754tamil-tex-in-windows
  28. rem and the installation script for Tamil-Omega as guides for the copy commands
  29. rem Listed below
  30. rem
  31.  
  32. rem Copy Documentation files
  33. copy ".doc*.*" "%MiktexRoot%docitrans*.*" /Y /V
  34. copy ".contrib*.*" "%MiktexRoot%docitranscontrib*.*" /Y /V
  35. rem copy Font Files
  36. copy ".libfonts*.mf" "%MiktexRoot%fontssourcepublicitrans*.*" /Y /V
  37. copy ".libfonts*.pfa" "%MiktexRoot%fontstype1publicitrans*.*" /Y /V
  38. copy ".libfonts*.pfb" "%MiktexRoot%fontstype1publicitrans*.*" /Y /V
  39. copy ".libfonts*.pfm" "%MiktexRoot%fontstype1publicitrans*.*" /Y /V
  40. copy ".libfonts*.tfm" "%MiktexRoot%fontstfmpublicitrans*.*" /Y /V
  41. copy ".libfonts*.afm" "%MiktexRoot%fontsafmpublicitrans*.*" /Y /V
  42. copy ".libfonts*.ttf" "%MiktexRoot%fontstruetypepublicitrans*.*" /Y /V
  43. rem copy all of the ITRANS Lib structure into MiKTeX structure.
  44. copy ".lib*.*" "%MiktexRoot%texlatexitrans*.*" /Y /V
  45. copy ".libfonts*.*" "%MiktexRoot%texlatexitransfonts*.*" /Y /V
  46.  
  47. rem post installation commands to rebuilt the font name database ans to process all of the font MAPping files.
  48. texhash
  49. updmap
  50.  
  51. rem
  52. rem With the above copies MikTeX can now find the ITRANS fonts and resolve references created by the itrans.exe preprocessor
  53. rem
  54. rem But the preprocessor cannot be run from the command line because itrans.exe is expecting to find a
  55. rem specific ITRANS structure somewhere on the disk via the environment variable: ITRANSPATH
  56. rem instruct the user about this environment variable requirement
  57. rem
  58.  
  59. echo "Set the environment variable: ITRANSPATH"
  60. echo "ITRANSPATH=%MiktexRoot%texlatexitrans;%MiktexRoot%texlatexitransfonts"
Add Comment
Please, Sign In to add comment