mirror of
				https://github.com/larstvei/dot-emacs.git
				synced 2025-11-04 01:20:11 +00:00 
			
		
		
		
	Added tex-mode hack to compile with --shell-escape.
This commit is contained in:
		
							parent
							
								
									0c3f4c2807
								
							
						
					
					
						commit
						7f6b377f0c
					
				
							
								
								
									
										2
									
								
								init.el
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.el
									
									
									
									
									
								
							@ -418,6 +418,8 @@ LANGUAGES (cyclic) list."
 | 
			
		||||
                 (substring str (string-match "-" str))))
 | 
			
		||||
       org-latex-pdf-process))
 | 
			
		||||
 | 
			
		||||
(setcar (cdr (cddaar tex-compile-commands)) " -shell-escape ")
 | 
			
		||||
 | 
			
		||||
(setq jedi:server-command
 | 
			
		||||
      (cons "python3" (cdr jedi:server-command))
 | 
			
		||||
      python-shell-interpreter "python3")
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										7
									
								
								init.org
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								init.org
									
									
									
									
									
								
							@ -816,7 +816,10 @@
 | 
			
		||||
   #+END_SRC
 | 
			
		||||
 | 
			
		||||
   Because [[https://code.google.com/p/minted/][Minted]] uses [[http://pygments.org][Pygments]] (an external process), we must add the
 | 
			
		||||
 =-shell-escape= option to the =org-latex-pdf-process= commands.
 | 
			
		||||
 =-shell-escape= option to the =org-latex-pdf-process= commands. The
 | 
			
		||||
 =tex-compile-commands= variable controls the default compile command for
 | 
			
		||||
   Tex- and LaTeX-mode, we can add the flag with a rather dirty statement
 | 
			
		||||
   (if anyone finds a nicer way to do this, please let me know).
 | 
			
		||||
 | 
			
		||||
   #+BEGIN_SRC emacs-lisp :tangle yes
 | 
			
		||||
     (setq org-latex-pdf-process
 | 
			
		||||
@ -825,6 +828,8 @@
 | 
			
		||||
              (concat "pdflatex -shell-escape "
 | 
			
		||||
                      (substring str (string-match "-" str))))
 | 
			
		||||
            org-latex-pdf-process))
 | 
			
		||||
     
 | 
			
		||||
     (setcar (cdr (cddaar tex-compile-commands)) " -shell-escape ")
 | 
			
		||||
   #+END_SRC
 | 
			
		||||
 | 
			
		||||
** Python
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user