Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined control sequence '\minb' during pdf compilation #174

Open
xlucn opened this issue Dec 13, 2019 · 0 comments
Open

Undefined control sequence '\minb' during pdf compilation #174

xlucn opened this issue Dec 13, 2019 · 0 comments

Comments

@xlucn
Copy link

xlucn commented Dec 13, 2019

This control sequence is probabily not defined either in my tex system (texlive, newest) or in the mosfit source code.

The code is

"latex":"T_{\\minb}\\,{\\rm (K)}"

There are two similar ones near this: \minp, \minr

Related log:

Traceback (most recent call last):                                                                                                                                                                                                                    
  File "/usr/lib/python3.8/site-packages/matplotlib/texmanager.py", line 302, in _run_checked_subprocess                                                                                                                                              
    report = subprocess.check_output(command,                                                                                                                                                                                                         
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output                                                                                                                                                                                  
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,                                                                                                                                                                                  
  File "/usr/lib/python3.8/subprocess.py", line 512, in run                                                                                                                                                                                           
    raise CalledProcessError(retcode, process.args,                                                                                                                                                                                                   
subprocess.CalledProcessError: Command '['latex', '-interaction=nonstopmode', '--halt-on-error', '/home/luxu/.cache/matplotlib/tex.cache/44dd72235b96dcc2abad663bfd462fa3.tex']' returned non-zero exit status 1.                                     
                                                                                                                                                                                                                                                      
The above exception was the direct cause of the following exception:                                                                                                                                                                                  
                                                                                                                                                                                                                                                      
Traceback (most recent call last):                                                                                                                                                                                                                    
  File "run.py", line 285, in <module>                                                                                                                                                                                                                
    cfig.savefig('../products/corner.pdf')                                                                                                                                                                                                            
  File "/usr/lib/python3.8/site-packages/matplotlib/figure.py", line 2180, in savefig                                                                                                                                                                 
    self.canvas.print_figure(fname, **kwargs)                                                                                                                                                                                                         
  File "/usr/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2075, in print_figure                                                                                                                                                     
    result = print_method(                                                                                                                                                                                                                            
  File "/usr/lib/python3.8/site-packages/matplotlib/backends/backend_pdf.py", line 2503, in print_pdf                                                                                                                                                 
    self.figure.draw(renderer)                                                                                                                                                                                                                        
  File "/usr/lib/python3.8/site-packages/matplotlib/artist.py", line 38, in draw_wrapper                                                                                                                                                              
    return draw(artist, renderer, *args, **kwargs)                                                                                                                                                                                                    
  File "/usr/lib/python3.8/site-packages/matplotlib/figure.py", line 1708, in draw                                                                                                                                                                    
    mimage._draw_list_compositing_images(                                                                                                                                                                                                             
  File "/usr/lib/python3.8/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images                                                                                                                                             
    a.draw(renderer)
  File "/usr/lib/python3.8/site-packages/matplotlib/artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2647, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
  File "/usr/lib/python3.8/site-packages/matplotlib/image.py", line 135, in _draw_list_compositing_images
    a.draw(renderer)
  File "/usr/lib/python3.8/site-packages/matplotlib/artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/matplotlib/axis.py", line 1217, in draw
    self.label.draw(renderer)
  File "/usr/lib/python3.8/site-packages/matplotlib/artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/matplotlib/text.py", line 670, in draw
    bbox, info, descent = textobj._get_layout(renderer)
  File "/usr/lib/python3.8/site-packages/matplotlib/text.py", line 297, in _get_layout
    w, h, d = renderer.get_text_width_height_descent(
  File "/usr/lib/python3.8/site-packages/matplotlib/backends/_backend_pdf_ps.py", line 46, in get_text_width_height_descent 
    w, h, d = texmanager.get_text_width_height_descent(
  File "/usr/lib/python3.8/site-packages/matplotlib/texmanager.py", line 448, in get_text_width_height_descent
    dvifile = self.make_dvi(tex, fontsize)
  File "/usr/lib/python3.8/site-packages/matplotlib/texmanager.py", line 336, in make_dvi
    self._run_checked_subprocess(
  File "/usr/lib/python3.8/site-packages/matplotlib/texmanager.py", line 310, in _run_checked_subprocess
    raise RuntimeError(
RuntimeError: latex was not able to process the following string:
b'$\\\\log\\\\, T_{\\\\minb}\\\\,{\\\\rm (K)}$'

Here is the full report generated by latex:
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(/home/luxu/.cache/matplotlib/tex.cache/44dd72235b96dcc2abad663bfd462fa3.tex
LaTeX2e <2019-10-01> patch level 1
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/08/27 v1.4j Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/type1cm/type1cm.sty)
(/usr/share/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texmf-dist/tex/latex/base/ts1enc.def
(/usr/share/texmf-dist/tex/latex/base/ts1enc.dfu)))
(/usr/share/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty)

Package geometry Warning: Over-specification in `h'-direction.
    `width' (5058.9pt) is ignored.


Package geometry Warning: Over-specification in `v'-direction.
    `height' (5058.9pt) is ignored.

) (./44dd72235b96dcc2abad663bfd462fa3.aux)
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
! Undefined control sequence.
l.14 ...000}{17.500000}{\rmfamily $\log\, T_{\minb
                                                  }\,{\rm (K)}$}
No pages of output.
Transcript written on 44dd72235b96dcc2abad663bfd462fa3.log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant