Hello,

I'm having a problem while generating equations (and float) previews for
the attached minimal working example, bug_report.tex. The problem seems to
be related to the package "algorithm". When the file is opened into a
buffer in Emacs, the AUCTeX menu becomes available. I try to generate the
previews from the menu, selecting Preview -> Generate previews - for
buffer. However, the generation of the previews stops at line 130 , where
the \begin{algorithm}[H] command is. A file with the error output,
bug_log.txt,  is attached. The generation of the previews completes
successfully when the lines 130 to 140, the full instance of use of the
algorithm environment, are commented out.

When the .tex file is "compiled" with PdfLatex no errors are issued. I'm
using A*UCTeX 13.1.4 and *TeXLive [pdfTeX 3.141592653-2.6-1.40.24 (TeX Live
2022)] on Windows 10.

A workaround for this problem, which I will try, is to use an alternative
to the package algorithm, like algorithm2e. However, I thought it would be
of interest for you to know about this problem and to warn the community of
AUCTeX users about it.

Thanks,
Alejandro Garzon.
Running `Preview-LaTeX' on 
`c:/Users/agarz/Documents/Repositorios/adj_opt/paper/_region_' with ``pdflatex  
-file-line-error    
"\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}"
 "\input" "\detokenize{" "_region_.tex" "}"''
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded 
format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2022-06-01> patch level 5
L3 programming layer <2022-08-30>
No auxiliary output files.

(./_region_.tex  !name(bug_report.tex) 
(c:/texlive/2022/texmf-dist/tex/latex/revtex/revtex4-2.cls
Document Class: revtex4-2 2020/10/03 4.2e (https://journals.aps.org/revtex/ for 
documentation)
ltxutil[2020/10/03 4.2e utilities package (portions licensed from W. E. Baxter 
web at superscript.com)]
ltxfront[2020/10/03 4.2e frontmatter package (AO,DPC,MD)]
ltxgrid[2020/10/03 4.2e page grid package (portions licensed from W. E. Baxter 
web at superscript.com)]
(c:/texlive/2022/texmf-dist/tex/latex/revtex/aps4-2.rtx)

Class revtex4-2 Warning: No journal specified, using default pra.

(c:/texlive/2022/texmf-dist/tex/latex/revtex/aps10pt4-2.rtx) 
(c:/texlive/2022/texmf-dist/tex/latex/textcase/textcase.sty) 
(c:/texlive/2022/texmf-dist/tex/latex/amsfonts/amssymb.sty 
(c:/texlive/2022/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) 
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amstext.sty 
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsgen.sty)) 
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsbsy.sty) 
(c:/texlive/2022/texmf-dist/tex/latex/amsmath/amsopn.sty)) 
(c:/texlive/2022/texmf-dist/tex/latex/url/url.sty) 
(c:/texlive/2022/texmf-dist/tex/latex/natbib/natbib.sty

c:/texlive/2022/texmf-dist/tex/latex/natbib/natbib.sty:795: LaTeX Error: 
Command \makeindex undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.795 \renewcommand\makeindex
                             {\NAT@makeindex
) (c:/texlive/2022/texmf-dist/tex/latex/revtex/revsymb4-2.sty)) 
(c:/texlive/2022/texmf-dist/tex/latex/algorithms/algorithm.sty 
(c:/texlive/2022/texmf-dist/tex/latex/float/float.sty) 
(c:/texlive/2022/texmf-dist/tex/latex/base/ifthen.sty)) 
(c:/texlive/2022/texmf-dist/tex/latex/algorithms/algorithmic.sty 
(c:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty)) 
(c:/texlive/2022/texmf-dist/tex/latex/lipsum/lipsum.sty 
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty 
(c:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.sty 
(c:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def))) 
(c:/texlive/2022/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex))

Class revtex4-2 Warning: Repair the float package.

No file _region_.aux.
(c:/Users/agarz/AppData/Roaming/.emacs.d/elpa/auctex-13.1.4/latex/preview.sty 
(c:/texlive/2022/texmf-dist/tex/generic/luatex85/luatex85.sty) 
(c:/Users/agarz/AppData/Roaming/.emacs.d/elpa/auctex-13.1.4/latex/prtightpage.def)
 (c:/Users/agarz/AppData/Roaming/.emacs.d/elpa/auctex-13.1.4/latex/prauctex.def
No auxiliary output files.


(c:/Users/agarz/AppData/Roaming/.emacs.d/elpa/auctex-13.1.4/latex/prauctex.cfg))
 
(c:/Users/agarz/AppData/Roaming/.emacs.d/elpa/auctex-13.1.4/latex/prfootnotes.def)
Preview: Fontsize 10pt
Preview: PDFoutput 1
)  !name(bug_report.tex) !offset(-3)  
(c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsa.fd) 
(c:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsb.fd)
./_region_.tex:107: Preview: Snippet 1 started.
<-><->
      
l.107 \section
              {Model equations}
Preview: Tightpage -32891 -32891 32891 32891
./_region_.tex:107: Preview: Snippet 1 ended.(404685+114688x16121856).
<-><->
      
l.107 \section{Model equations}
                               
[1{c:/texlive/2022/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
./_region_.tex:109: Preview: Snippet 2 started.
<-><->
      
l.109 \begin{align}
                   \label{eq:puwtLu}
./_region_.tex:111: Preview: Snippet 2 ended.(865077+0x16121856).
<-><->
      
l.111 \end{align}
                 
[2]
./_region_.tex:114: Preview: Snippet 3 started.
<-><->
      
l.114 \begin{align}
                   
./_region_.tex:117: Preview: Snippet 3 ended.(753663+0x16121856).
<-><->
      
l.117 \end{align}
                 
[3]
./_region_.tex:120: Preview: Snippet 4 started.
<-><->
      
l.120 \begin{equation}
                      
./_region_.tex:123: Preview: Snippet 4 ended.(655360+0x16121856).
<-><->
      
l.123 \end{equation}
                    
[4]
./_region_.tex:126: Preview: Snippet 5 started.
<-><->
      
l.126 \begin{equation*}
                       
./_region_.tex:128: Preview: Snippet 5 ended.(1640601+0x9937957).
<-><->
      
l.128 \end{equation*}
                     
[5]
./_region_.tex:131: Preview: Snippet 6 started.
<-><->
      
l.131 \begin{algorithm}
                       [H] % do not change or remove the H
./_region_.tex:141: Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.141 \end{algorithm}
                     
./_region_.tex:141: Preview: Snippet 6 ended.(1962439+0x16121856).
<-><->
      
l.141 \end{algorithm}
                     
[6]
./_region_.tex:147: Preview: Snippet 7 ended.(1489138+0x16121856).
<-><->
      
l.147 \end{equation}
                    
[7]
./_region_.tex:154: Preview: Snippet 8 ended.(1921029+0x16121856).
<-><->
      
l.154 \end{equation}
                    
[8]
No file _region_.bbl.

./_region_.tex:158: LaTeX Error: \begin{algorithm} on input line 131 ended by 
\end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.158 \end{document}
                    
./_region_.tex:158: You can't use `\end' in internal vertical mode.
\enddocument ...cument/end}\deadcycles \z@ \@@end 
                                                  
l.158 \end{document}
                    

./_region_.tex:158: LaTeX Error: \begin{algorithm} on input line 131 ended by 
\end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.158 \end{document}
                    
./_region_.tex:158: Missing } inserted.
<inserted text> 
                }
l.158 \end{document}
                    
 !name(bug_report.tex) !offset(-160) )
! Emergency stop.
<*> .../05]\fi} \input \detokenize{ _region_.tex }
                                                  
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on _region_.log.

TeX Output exited as expected with code 1 at Thu Sep 22 10:16:01
Running `Preview-PDF2DSC' with ``pdf2dsc "_region_.pdf" 
"_region_.prv/tmpZIeIW4"/preview.dsc''
Parser: End of Preview snippet 7 unexpected
Parser: End of Preview snippet 8 unexpected
Error: /undefinedfilename in --file--
Operand stack:
   PDFfile   (_region_.pdf)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   2022   1   3   %oparray_pop   
2021   1   3   %oparray_pop   2009   1   3   %oparray_pop   1865   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:797/1123(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 1814
GPL Ghostscript 9.56.1: Unrecoverable error, exit code 1

Preview-PDF2DSC exited abnormally with code 1 at Thu Sep 22 10:16:03
PDF2DSC sentinel: Opening input file: No such file or directory, 
c:/Users/agarz/Documents/Repositorios/adj_opt/paper/_region_.prv/tmpZIeIW4/preview.dsc

Attachment: bug_report.tex
Description: Binary data

_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to