auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] ConTeXt problems after [n] pages


From: doed
Subject: Re: [AUCTeX] ConTeXt problems after [n] pages
Date: Sun, 12 Jan 2014 00:20:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)


Hello Tassilo 

These are the settings I have been using for context.el. 

I remember for example., and I believe this is still an issue, in that
any file running context, had to be set to xetex before it could
compile. Not only that, but it also had the problems after [n] pages. 

So a member of the developing group told me that any help in this
respect would be appreciated. I went ahead and sent a request of
inclusion in the project, but to no avail. Either way, hopefully if you
or someone can update those lines accordingly, it's more than enough, so other
fellow users can benefit from it. 

Line 480 of context.el 

          %%% Before
          
           ;; Various
              (defun TeX-ConTeXt-sentinel (process name)
                "Cleanup TeX output buffer after running ConTeXt."
                (cond ((TeX-TeX-sentinel-check process name))
                  ((save-excursion
                     ;; in a full ConTeXt run there will multiple texutil
                     ;; outputs. Just looking for "another run needed" would
                     ;; find the first occurence
                     (goto-char (point-max))
                     (re-search-backward "TeXUtil " nil t)
                     (re-search-forward "another run needed" nil t))
                   (message (concat "You should run ConTeXt again "
                            "to get references right, "
                            (TeX-current-pages)))
                   (setq TeX-command-next TeX-command-default))
                  ((re-search-forward "removed files :" nil t)
                   (message "sucessfully cleaned up"))
                  ((re-search-forward "^ ?TeX\\(Exec\\|Util\\)" nil t) ;; 
strange regexp --pg   
                   (message (concat " ConTeXt: successfully formatted "
                            (TeX-current-pages)))
                   (setq TeX-command-next TeX-command-default))
                  (t
                   (message (concat " ConTeXt: successfully formatted "
                            (TeX-current-pages)))
                   (setq TeX-command-next TeX-command-Show))))
          
          %%% After
          
          ;; Various
            (defun TeX-ConTeXt-sentinel (process name)
              "Cleanup TeX output buffer after running ConTeXt."
              (cond ((TeX-TeX-sentinel-check process name))
              ((save-excursion
                 ;; in a full ConTeXt run there will multiple texutil
                 ;; outputs. Just looking for "another run needed" would
                 ;; find the first occurence
                 (goto-char (point-max))
                 (re-search-backward "TeXUtil " nil t)
                 (re-search-forward "another run needed" nil t))
               (message (concat "You should run ConTeXt again "
                        "to get references right, "
                        (TeX-current-pages)))
               (setq TeX-command-next TeX-command-default))
              ((re-search-forward "removed files :" nil t)
               (message "sucessfully cleaned up"))
              (t
               (message (concat name ": successfully formatted "
                        (TeX-current-pages)
               (setq TeX-command-next TeX-command-Show))))))
          
          
           ;; Various
            (defun TeX-ConTeXt-sentinel (process name)
              "Cleanup TeX output buffer after running ConTeXt."
              (cond ((TeX-TeX-sentinel-check process name))
              ((save-excursion
                 ;; in a full ConTeXt run there will multiple texutil
                 ;; outputs. Just looking for "another run needed" would
                 ;; find the first occurence
                 (goto-char (point-max))
                 (re-search-backward "TeXUtil " nil t)
                 (re-search-forward "another run needed" nil t))
               (message (concat "You should run ConTeXt again "
                        "to get references right, "
                        (TeX-current-pages)))
               (setq TeX-command-next TeX-command-default))
              ((re-search-forward "removed files :" nil t)
               (message "sucessfully cleaned up"))
              (t
               (message (concat " ConTeXt: successfully formatted "
                        (TeX-current-pages))))
               (setq TeX-command-next TeX-command-default)))
          
          
          ;; Various
            (defun TeX-ConTeXt-sentinel (process name)
              "Cleanup TeX output buffer after running ConTeXt."
              (cond ((TeX-TeX-sentinel-check process name))
              ((save-excursion
                 ;; in a full ConTeXt run there will multiple texutil
                 ;; outputs. Just looking for "another run needed" would
                 ;; find the first occurence
                 (goto-char (point-max))
                 (re-search-backward "TeXUtil " nil t)
                 (re-search-forward "another run needed" nil t))
               (message (concat "You should run ConTeXt again "
                        "to get references right, "
                        (TeX-current-pages)))
               (setq TeX-command-next TeX-command-default))
              ((re-search-forward "removed files :" nil t)
               (message "sucessfully cleaned up"))
              (t
               (message (concat " ConTeXT: successfully formatted "
                        (TeX-current-pages))
               (setq TeX-command-next TeX-command-Show)))))


Take care 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]