Na gimlim je UTF-8 TeX
This commit is contained in:
		
							parent
							
								
									8ab43b9ae1
								
							
						
					
					
						commit
						36dbab7b38
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -566,8 +566,7 @@ def obalkyView(request,resitele): | ||||||
| 
 | 
 | ||||||
|     tempdir = tempfile.mkdtemp() |     tempdir = tempfile.mkdtemp() | ||||||
|     with open(tempdir+"/obalky.tex","w") as texfile: |     with open(tempdir+"/obalky.tex","w") as texfile: | ||||||
|         # Pokud TeX chce ISO Latin, tak se da encode nastavit |         texfile.write(tex) | ||||||
|         texfile.write(tex.decode("utf-8").encode("iso-8859-2")) |  | ||||||
|     shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/lisak.eps'),tempdir) |     shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/lisak.eps'),tempdir) | ||||||
|     subprocess.call(["csplain","obalky.tex"],cwd = tempdir) |     subprocess.call(["csplain","obalky.tex"],cwd = tempdir) | ||||||
|     subprocess.call(["dvipdf","obalky.dvi"],cwd = tempdir) |     subprocess.call(["dvipdf","obalky.dvi"],cwd = tempdir) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue