cpierquet

scripttexportable

Mar 22nd, 2022 (edited)
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 20.30 KB | None | 0 0
  1. :: ------SCRIPT D'INSTALLATION/UTILISATION AUTO TEX PORTABLE ---------------
  2. :: v1.0     version initiale
  3. :: -------------------------------------------------------------------------
  4.  
  5. @echo off
  6. :: chemin du script (le \ est ok)
  7. set chemin=%~dp0
  8. set chemindouble=%chemin:\=\\%
  9. :: variables des fichiers du site
  10. set site=https://texportable.cpierquet.fr
  11. set thonnyzip=%site%/fichiers/LOGICIELS/MATHS/thonny-windows-portable.zip
  12. set texstudiozip=%site%/fichiers/LOGICIELS/MATHS/texstudio-win-portable-qt5.zip
  13. set scriptauto=%site%/fichiers/SCRIPTS/Config.Auto.Mini.bat
  14. set scriptinstlog=%site%/fichiers/SCRIPTS/Installation.Logiciels.bat
  15. set launchtex=%site%/fichiers/SCRIPTS/texstudio.cmd
  16. set launchpyt=%site%/fichiers/SCRIPTS/thonny.cmd
  17. set gnuplotzip=%site%/fichiers/LOGICIELS/MATHS/gnuplot.zip
  18. set inifilezip=%site%/fichiers/LOGICIELS/SYSTEME/inifile.zip
  19. set initoolzip=%site%/fichiers/LOGICIELS/SYSTEME/initool.zip
  20. set miktexportable=%site%/fichiers/LOGICIELS/MATHS/miktex-portable.exe
  21. set unzip=%site%/fichiers/SCRIPTS/unzip.exe
  22. set everythingzip=%site%/fichiers/LOGICIELS/SYSTEME/everything.zip
  23. set sumatrazip=%site%/fichiers/LOGICIELS/OUTILS/SumatraPDF.zip
  24. set fichierstestszip=%site%/fichiers/SCRIPTS/fichierstest.zip
  25. :: variables des executables
  26. set texstudioini=logiciels\texstudio\config\texstudio.ini
  27. set unzipexe=logiciels\unzip.exe
  28. set thonnyexe=logiciels\thonny\thonny.exe
  29. set miktexini=logiciels\miktex-portable\texmfs\config\miktex\config\miktex.ini
  30. set miktexexe=logiciels\miktex-portable\texmfs\install\miktex\bin\x64\miktex-console.exe
  31. set everythingexe=logiciels\everything\everything.exe
  32. set inifileexe=logiciels\inifile.exe
  33. set initoolexe=logiciels\initool.exe
  34. set sumatraexe=logiciels\texstudio\sumatra.exe
  35. set texstudioexe=logiciels\texstudio\texstudio.exe
  36. set gnuplotexe=logiciels\gnuplot\bin\gnuplot.exe
  37. :: variables des fichiers ini
  38. set diction=%chemindouble%logiciels\\texstudio\\dictionaries
  39. set pythonexe=%chemindouble%logiciels\\thonny\\python.exe
  40. set pythontex=%chemindouble%logiciels\\miktex-portable\\texmfs\\install\\scripts\\pythontex\\pythontex.py
  41. set pathgnuplot=%chemindouble%logiciels\\gnuplot\\bin
  42. set paththonny=%chemindouble%logiciels\\thonny
  43. set paththonnyscripts=%chemindouble%logiciels\\thonny\\Scripts
  44. set pathmiktex=%chemindouble%logiciels\\miktex-portable\\texmfs\\install\\miktex\\bin\\x64
  45. set pathirfanview=%chemindouble%logiciels\\irfanview
  46. set pathmagick=%chemindouble%logiciels\\imagemagick
  47. :: variables diverses
  48. set typeproxy=Aucun
  49.  
  50. :intro
  51. :: Presentation, variables, choix proxy
  52. cls
  53. echo.
  54. echo --------------------------------------------------------
  55. echo Utilisation/Configuration d'un dossier MiKTeX-compatible
  56. echo   # Mode Nomade   = sur cle, la lettre peut changer
  57. echo   # Mode Portable = sur disque dur
  58. echo   * [OUTILS] MiKTeX + TeXstudio + Gnuplot + Thonny
  59. echo   * [UTILES] Initool + Inifile + Unzip + Sumatra
  60. echo.
  61. echo Pour le moment, proxy : %typeproxy%
  62. echo.
  63. echo --------------------------------------------------------
  64. echo  [c] Configuration automatique des logiciels............
  65. echo --------------------------------------------------------
  66. echo  [p] Configuration du proxy.............................
  67. echo  [i] Installation initiale..............................
  68. echo  [v] Verif. de l'install. et/ou install. suppl..........
  69. echo  [x] Lancement de TeXstudio.............................
  70. echo  [t] Lancement de Thonny................................
  71. echo  [m] Lancement de la Concole MiKTeX.....................
  72. echo.
  73. echo  [e] Effacer les fichiers temporaires...................
  74. echo  [q] Quitter............................................
  75. echo --------------------------------------------------------
  76. echo.
  77. set choix=-1
  78. set /p choix="Quel est votre choix ? "
  79. IF "%choix%"=="p" GOTO proxy
  80. IF "%choix%"=="i" GOTO installinit
  81. IF "%choix%"=="v" GOTO installverifinitunzip
  82. IF "%choix%"=="c" GOTO configauto
  83. IF "%choix%"=="x" GOTO testtexstudio
  84. IF "%choix%"=="t" GOTO testthonny
  85. IF "%choix%"=="m" GOTO testconsole
  86. IF "%choix%"=="e" GOTO efface
  87. IF "%choix%"=="q" exit /b
  88. goto intro
  89.  
  90. :efface
  91. rmdir /Q /S %chemin%tmp
  92. goto intro
  93.  
  94. :proxy
  95. :: on demande si on est au boulot ou pas
  96. set varproxy=n
  97. set /p varproxy="Utilisation d'un proxy [o/n] ? "
  98. set proxylycee=192.168.224.254
  99. set portproxylycee=3128
  100. :: en fonction on parametre la section du proxy :
  101. IF "%varproxy%"=="n" (
  102.     set "paramcurl= "
  103.     set typeproxy=Aucun
  104. )
  105. IF "%varproxy%"=="o" (
  106.     set /p proxylycee="IP du proxy (%proxylycee%) ? "
  107.     set /p portproxylycee="Port du proxy (%portproxylycee%) ? "
  108.     set "paramcurl=-x http://%proxylycee%:%portproxylycee% -k"
  109.     set "typeproxy=%proxylycee%:%portproxylycee%"
  110. )
  111. goto intro
  112.  
  113. :installinit
  114. :: creat des repertoires
  115. echo.
  116. echo [Etape 1/6] -- On cree les repertoires (si besoin)
  117. mkdir %chemin%logiciels 2>NUL
  118. mkdir %chemin%tmp 2>NUL
  119. mkdir %chemin%logiciels\miktex-portable 2>NUL
  120. :: on dl les zip/tar
  121. echo.
  122. echo [Etape 2/6] -- On rappatrie les fichiers utiles :
  123. echo a/ On commence par unzip (bien utile ;-))
  124. curl -sS -o %chemin%logiciels\unzip.exe %unzip% %paramcurl%
  125. echo b/ ensuite Thonny
  126. curl -sS -o %chemin%tmp\thonny.zip %thonnyzip% %paramcurl%
  127. echo c/ puis Texstudio
  128. curl -sS -o %chemin%tmp\texstudio.zip %texstudiozip% %paramcurl%
  129. echo d/ et gnuplot
  130. curl -sS -o %chemin%tmp\gnuplot.zip %gnuplotzip% %paramcurl%
  131. echo e/ ainsi que les fichiers tests
  132. curl -sS -o %chemin%tmp\fichierstest.zip %fichierstestszip% %paramcurl%
  133. echo f/ sans oublier inifile et initool...
  134. curl -sS -o %chemin%tmp\inifile.zip %inifilezip% %paramcurl%
  135. curl -sS -o %chemin%tmp\initool.zip %initoolzip% %paramcurl%
  136. echo g/ puis sumatra...
  137. curl -sS -o %chemin%tmp\sumatra.zip %sumatrazip% %paramcurl%
  138. echo h/ et MiKTeX...
  139. curl -sS -o %chemin%tmp\miktex-portable.exe %miktexportable% %paramcurl%
  140. echo i/ puis les scripts...
  141. curl -sS -o %chemin%texstudio.cmd %launchtex% %paramcurl%
  142. curl -sS -o %chemin%thonny.cmd %launchpyt% %paramcurl%
  143. :: on extrait les archives, on renomme
  144. echo.
  145. echo [Etape 3/6] -- Extraction des logiciels et renommage
  146. echo a/ on commence par Thonny
  147. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\thonny.zip -d %chemin%logiciels\thonny
  148. echo b/ puis Texstudio
  149. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\texstudio.zip -d %chemin%logiciels\texstudio
  150. echo c/ et sumatra
  151. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\sumatra.zip -d %chemin%logiciels\texstudio
  152. echo d/ et les fichiers test
  153. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\fichierstest.zip -d %chemin%
  154. echo e/ et gnuplot
  155. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\gnuplot.zip -d %chemin%logiciels
  156. echo f/ sans oublier inifile et initool
  157. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\inifile.zip -d %chemin%logiciels
  158. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\initool.zip -d %chemin%logiciels
  159. echo g/ on renomme sumatra
  160. ren %chemin%logiciels\texstudio\SumatraPDF*.exe sumatra.exe
  161. :: on lance miktex
  162. echo.
  163. echo [Etape 4/6] -- Lancement de MiKTeX
  164. echo %chemin%logiciels\miktex-portable|clip
  165. echo [le chemin pour installer MiKTeX est dans le presse-papier := Ctrl+V pour le coller !!]
  166. pause
  167. %chemin%tmp\miktex-portable.exe
  168. pause
  169. :: on lance texstudio une 1ere fois pour les fichiers de config
  170. echo.
  171. echo [Etape 5/6] -- Lancement de TeXstudio (une seule fois) pour avoir un fichier de configuration ini
  172. %chemin%logiciels\texstudio\texstudio.exe
  173. pause
  174. :: on lance thonny pour pygments
  175. echo.
  176. echo [Etape 6/6] -- On lance Thonny pour pygments
  177. echo a/ Menu OUTILS\Ouvrir la console du systeme
  178. echo pip install pygments|clip
  179. echo b/ Coller (:= Ctrl+V) la commande pip install pygments
  180. %chemin%logiciels\thonny\thonny.exe
  181. pause
  182. goto intro
  183.  
  184. :probleme
  185. echo Logiciel non disponible...
  186. pause
  187. goto intro
  188.  
  189. :testconsole
  190. :: on lance miktex-console si besoin
  191. echo.
  192. IF EXIST %chemin%%miktexexe% (goto lancementconsole) ELSE (goto probleme)
  193.  
  194. :lancementconsole
  195. echo Lancement de la Console MikTeX
  196. start "" %chemin%%miktexexe% --mkmaps
  197. goto intro
  198.  
  199. :testtexstudio
  200. :: on lance texstudio si besoin
  201. echo.
  202. IF EXIST %chemin%%texstudioexe% (goto lancementtexstudio) ELSE (goto probleme)
  203.  
  204. :lancementtexstudio
  205. echo Lancement de TeXStudio
  206. start "" %chemin%%texstudioexe%
  207. goto intro
  208.  
  209. :testthonny
  210. :: on lance thonny
  211. echo.
  212. IF EXIST %chemin%%thonnyexe% (goto lancementthonny) ELSE (goto probleme)
  213.  
  214. :lancementthonny
  215. echo Lancement de Thonny
  216. start "" %chemin%%thonnyexe%
  217. goto intro
  218.  
  219. :installverifinitunzip
  220. :: on anticipe si besoin
  221. cls
  222. echo.
  223. mkdir %chemin%logiciels 2>NUL
  224. mkdir %chemin%tmp 2>NUL
  225. mkdir %chemin%logiciels\miktex-portable 2>NUL
  226. goto installverifinit
  227.  
  228. :installverifinit
  229. :: on verifie les infos en memoire et on stocke les resultats
  230. IF EXIST %chemin%logiciels\unzip.exe (set unzipinstall=OK) ELSE (set unzipinstall=KO)
  231. IF EXIST %chemin%%thonnyexe% (set thonnyinstall=OK) ELSE (set thonnyinstall=KO)
  232. IF EXIST %chemin%%texstudioini% (set texstudioinstall=OK) ELSE (set texstudioinstall=KO)
  233. IF EXIST %chemin%%everythingexe% (set everythinginstall=OK) ELSE (set everythinginstall=KO)
  234. IF EXIST %chemin%%inifileexe% (set inifileinstall=OK) ELSE (set inifileinstall=KO)
  235. IF EXIST %chemin%%initoolexe% (set initoolinstall=OK) ELSE (set initoolinstall=KO)
  236. IF EXIST %chemin%%sumatraexe% (set sumatrainstall=OK) ELSE (set sumatrainstall=KO)
  237. IF EXIST %chemin%%gnuplotexe% (set gnuplotinstall=OK) ELSE (set gnuplotinstall=KO)
  238. IF EXIST %chemin%%miktexexe% (set miktexinstall=OK) ELSE (set miktexinstall=KO)
  239. goto installdebut
  240.  
  241. :installdebut
  242. echo.
  243. echo ----------------------------------------
  244. echo  Analyse des infos disponibles en stock
  245. echo ----------------------------------------
  246. echo Le dossier de travail est %chemin%
  247. echo Proxy : %typeproxy%
  248. echo.
  249. echo Inifile.......%inifileinstall%   Initool......%initoolinstall%
  250. echo TexStudio.....%texstudioinstall%   MiKTeX.......%miktexinstall%
  251. echo Thonny........%thonnyinstall%   Gnuplot......%gnuplotinstall%
  252. echo Everything....%everythinginstall%   Sumatra......%sumatrainstall%
  253. echo Unzip.........%unzipinstall%
  254. echo.
  255. echo   [0] Configurer le Proxy
  256. echo.
  257. echo   [1] Installer Inifile       [2] Installer Initool
  258. echo   [3] Installer TeXstudio     [4] Installer MikTeX
  259. echo   [5] Installer Thonny        [6] Installer Gnuplot
  260. echo   [7] Installer Everything    [8] Installer Sumatra
  261. echo   [9] Installer Unzip
  262. echo.
  263. echo   [b] Retourner au menu initial
  264. echo   [e] Supprimer les fichiers temporaires
  265. echo   [q] Quitter
  266. echo.
  267. set choix=-1
  268. set /p choix="Quel est votre choix ? "
  269. IF "%choix%"=="1" GOTO installinifile
  270. IF "%choix%"=="2" GOTO installinitool
  271. IF "%choix%"=="3" GOTO installtexstudio
  272. IF "%choix%"=="4" GOTO installmiktex
  273. IF "%choix%"=="5" GOTO installthonny
  274. IF "%choix%"=="6" GOTO installgnuplot
  275. IF "%choix%"=="7" GOTO installeverything
  276. IF "%choix%"=="8" GOTO installsumatra
  277. IF "%choix%"=="9" GOTO installunzip
  278. IF "%choix%"=="0" GOTO proxy
  279. IF "%choix%"=="b" GOTO intro
  280. IF "%choix%"=="e" GOTO efface
  281. IF "%choix%"=="q" exit /b
  282. goto installverifinit
  283.  
  284. :installinifile
  285. curl -sS -o %chemin%tmp\inifile.zip %inifilezip% %paramcurl%
  286. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\inifile.zip -d %chemin%logiciels
  287. goto installverifinit
  288.  
  289. :installinitool
  290. curl -sS -o %chemin%tmp\initool.zip %initoolzip% %paramcurl%
  291. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\initool.zip -d %chemin%logiciels
  292. goto installverifinit
  293.  
  294. :installtexstudio
  295. curl -sS -o %chemin%tmp\texstudio.zip %texstudiozip% %paramcurl%
  296. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\texstudio.zip -d %chemin%logiciels\texstudio
  297. goto installverifinit
  298.  
  299. :installunzip
  300. echo on
  301. curl -o %chemin%logiciels\unzip.exe %unzip% %paramcurl%
  302. goto installverifinit
  303.  
  304. :installsumatra
  305. curl -sS -o %chemin%tmp\sumatra.zip %sumatrazip% %paramcurl%
  306. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\sumatra.zip -d %chemin%logiciels\texstudio
  307. ren %chemin%logiciels\texstudio\SumatraPDF*.exe sumatra.exe
  308. goto installverifinit
  309.  
  310. :installgnuplot
  311. curl -sS -o %chemin%tmp\gnuplot.zip %gnuplotzip% %paramcurl%
  312. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\gnuplot.zip -d %chemin%logiciels
  313. goto installverifinit
  314.  
  315. :installthonny
  316. curl -sS -o %chemin%tmp\thonny.zip %thonnyzip% %paramcurl%
  317. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\thonny.zip -d %chemin%logiciels\thonny
  318. goto installverifinit
  319.  
  320. :installeverything
  321. curl -sS -o %chemin%tmp\everything.zip %everythingzip% %paramcurl%
  322. %chemin%logiciels\unzip.exe -o -q %chemin%tmp\everything.zip -d %chemin%logiciels\everything
  323. goto installverifinit
  324.  
  325. :installmiktex
  326. curl -sS -o %chemin%tmp\miktex-portable.exe %miktexportable% %paramcurl%
  327. echo %chemin%logiciels\miktex-portable|clip
  328. echo [le chemin pour installer MiKTeX est dans le presse-papier := Ctrl+V pour le coller !!]
  329. pause
  330. %chemin%tmp\miktex-portable.exe
  331. goto installverifinit
  332.  
  333. :configauto
  334. cls
  335. IF EXIST %chemin%logiciels\inifile.exe (set exeinifile=OK) ELSE (echo. & echo Inifile.exe := KO & goto probleme)
  336. IF EXIST %chemin%logiciels\initool.exe (set exeinitool=OK) ELSE (echo. & echo Initool.exe := KO & goto probleme)
  337. IF EXIST %chemin%logiciels\texstudio\texstudio.exe (set exetexstudio=OK) ELSE (echo. & echo TexStudio.exe := KO & goto probleme)
  338. IF EXIST %chemin%logiciels\texstudio\config\texstudio.ini (set initexstudio=OK) ELSE (echo. & echo TexStudio.ini := KO & goto probleme)
  339. IF EXIST %chemin%logiciels\miktex-portable\texmfs\config\miktex\config\miktex.ini (set inimiktex=OK) ELSE (echo. & echo Miktex.ini := KO & goto probleme)
  340. IF EXIST %chemin%logiciels\miktex-portable\texmfs\install\miktex\bin\x64\miktex-console.exe (set exemiktex=OK) ELSE (echo. & echo MiKTeX.exe := KO & goto probleme)
  341. IF EXIST %chemin%logiciels\thonny\thonny.exe (set exethonny=OK) ELSE (echo. & echo Thonny.exe := KO & goto probleme)
  342. IF EXIST %chemin%logiciels\gnuplot\bin\gnuplot.exe (set exegnuplot=OK) ELSE (echo. & echo Gnuplot.exe := KO & goto probleme)
  343. FOR /F %%i IN ('%chemin%logiciels\initool.exe g %chemin%%miktexini% MPM UseProxy --value-only') do (SET memproxyuse=%%i)
  344. FOR /F %%i IN ('%chemin%logiciels\initool.exe g %chemin%%miktexini% MPM ProxyHost --value-only') do (SET memproxyadresse=%%i)
  345. FOR /F %%i IN ('%chemin%logiciels\initool.exe g %chemin%%miktexini% MPM ProxyPort --value-only') do (SET memproxyport=%%i)
  346. FOR /F %%i IN ('%chemin%logiciels\initool.exe g %chemin%%texstudioini% texmaker Spell\DictionaryDir --value-only') do (SET memtexstudio=%%i)
  347. echo.
  348. echo ------------------------------------------
  349. echo   Analyse des infos disponibles en stock
  350. echo ------------------------------------------
  351. echo Inifile.exe.......%exeinifile%  Initool.exe.......%exeinitool%
  352. echo TeXstudio.exe.....%exetexstudio%  TeXstudio.ini.....%initexstudio%
  353. echo MiKTeX.exe........%exemiktex%  MiKTeX.ini........%inimiktex%
  354. echo Thonny.exe........%exethonny%  Gnuplot.exe.......%exegnuplot%
  355. echo.
  356. echo Le proxy de MiKTeX est en %memproxyuse% avec l'adresse %memproxyadresse%:%memproxyport%
  357. echo Le dossier de travail est %chemin%
  358. echo Texstudio va chercher les fichiers dans %memtexstudio:\\texstudio\\Dictionaries=%
  359. echo.
  360. echo   [1] Configuration du proxy
  361. echo   [2] Configurer TeXStudio
  362. echo   [3] Lancer MiKTeX-Console
  363. echo   [4] Lancer TeXstudio
  364. echo   [5] Lancer Thonny
  365. echo.
  366. echo   [b] Retour
  367. echo   [q] Quitter
  368. echo.
  369. set choix=-1
  370. set /p choix="Quel est votre choix ? "
  371. IF "%choix%"=="1" GOTO proxyconf
  372. IF "%choix%"=="2" GOTO configtexstudio
  373. IF "%choix%"=="3" GOTO miktexconsole
  374. IF "%choix%"=="4" GOTO texstudio
  375. IF "%choix%"=="5" GOTO thonny
  376. IF "%choix%"=="b" GOTO intro
  377. IF "%choix%"=="q" exit /b
  378. goto configauto
  379.  
  380. :proxyconf
  381. :: on demande si on est au boulot ou pas
  382. set varproxy=n
  383. set /p varproxy="Utilisation d'un proxy [o/n] ? "
  384. set proxylycee=192.168.224.254
  385. set portproxylycee=3128
  386. :: en fonction on parametre la section du proxy :
  387. IF "%varproxy%"=="n" (
  388.     %chemin%logiciels\inifile.exe %chemin%%miktexini% [MPM] ProxyHost=127.0.0.1
  389.     %chemin%logiciels\inifile.exe %chemin%%miktexini% [MPM] ProxyPort=8080
  390.     %chemin%logiciels\inifile.exe %chemin%%miktexini% [MPM] UseProxy=false
  391. )
  392. IF "%varproxy%"=="o" (
  393.     set /p proxylycee="IP du proxy (%proxylycee%) ? "
  394.     set /p portproxylycee="Port du proxy (%portproxylycee%) ? "
  395. )
  396. IF "%varproxy%"=="o" (
  397.     %chemin%logiciels\inifile.exe %chemin%%miktexini% [MPM] ProxyHost=%proxylycee%
  398.     %chemin%logiciels\inifile.exe %chemin%%miktexini% [MPM] ProxyPort=%portproxylycee%
  399.     %chemin%logiciels\inifile.exe %chemin%%miktexini% [MPM] UseProxy=true
  400. )
  401.  
  402. goto configauto
  403.  
  404. :configtexstudio
  405. echo.
  406. echo Lancement de la Configuration de TeXStudio
  407. :: on injecte la lettre dans le PATH dans texstudio
  408. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] "Tools\Search%%20Paths"="%pathgnuplot%;%paththonny%;%pathmiktex%;%paththonnyscripts%;%pathirfanview%;%pathmagick%"
  409. :: on modifie les exe (si jamais texstudio les change...)
  410. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\latex="latex.exe -src synctex=0 -interaction=nonstopmode %%.tex"
  411. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\pdflatex="pdflatex.exe -synctex=0 -interaction=nonstopmode %%.tex"
  412. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\xelatex="xelatex.exe -synctex=0 -interaction=nonstopmode %%.tex"
  413. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\lualatex="lualatex.exe -synctex=0 -interaction=nonstopmode %%.tex"
  414. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\view-dvi=yap.exe %%.dvi
  415. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\view-pdf-external=sumatra.exe %%.pdf
  416. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\dvips=dvips.exe -o %%.ps %%.dvi
  417. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\dvipng=dvipng.exe -T tight -D 120 %%.dvi
  418. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\ps2pdf=ps2pdf.exe %%.ps
  419. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\dvipdf=dvipdfmx.exe %%.dvi
  420. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\bibtex=bibtex.exe %%
  421. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\bibtex8=bibtex8.exe %%
  422. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\biber=biber.exe %%
  423. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\makeindex=makeindex.exe %%.idx
  424. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\texindy=texindy.exe %%.idx
  425. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\makeglossaries=makeglossaries.exe %%
  426. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\metapost="mpost.exe -interaction=nonstopmode ?me)"
  427. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\asy=asy.exe ?m*.asy
  428. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\gs=mgs.exe \"?am.ps\"
  429. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\latexmk="latexmk.exe -pdf -silent -synctex=1 %%"
  430. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\texdoc="texdoc.exe "
  431. :: on injecte la compilation pythonpdflatex
  432. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\pythonpdflatex="txs:///pdflatex/[-draftmode] | %pythonexe% %pythontex% --rerun=always %%.tex | txs:///pdflatex | txs:///view-pdf"
  433. :: on injecte la compilation pythonlualatex
  434. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\pythonlualatex="txs:///lualatex/[-draftmode] | %pythonexe% %pythontex% --rerun=always %%.tex | txs:///lualatex | txs:///view-pdf"
  435. :: on injecte la lettre pour les dictionnaires
  436. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Spell\DictionaryDir=%diction%
  437. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Spell\Language=fr_FR
  438. :: on injecte sumatra
  439. %chemin%logiciels\inifile.exe %chemin%%texstudioini% [texmaker] Tools\Commands\view-pdf-external=sumatra.exe %%.pdf
  440. :: on injecte la lettre pour everything
  441. %chemin%logiciels\inifile.exe %chemin%%everythingini% [Everything] folders="%chemindouble%"
  442. goto configauto
  443.  
  444. :miktexconsole
  445. :: on lance miktex-console si besoin
  446. echo.
  447. echo Lancement de la Console MikTeX
  448. start "" %chemin%%miktexexe% --mkmaps
  449. goto configauto
  450.  
  451. :texstudio
  452. :: on lance texstudio
  453. echo.
  454. echo Lancement de TeXStudio
  455. start "" %chemin%%texstudioexe%
  456. goto configauto
  457.  
  458. :thonny
  459. :: on lance texstudio
  460. echo.
  461. echo Lancement de Thonny
  462. start "" %chemin%%thonnyexe%
  463. goto configauto
Add Comment
Please, Sign In to add comment