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

pdfTeX error (font expansion): auto expansion is only possible with scalable #32

Closed
bsamadi opened this issue Jan 11, 2014 · 6 comments
Closed
Labels

Comments

@bsamadi
Copy link

bsamadi commented Jan 11, 2014

When I compiled pythontex_quickstart.tex, I got the following error:

pdfTeX error (font expansion): auto expansion is only possible with scalable

I searched for the solution, and then added:
\usepackage{lmodern}
to the file and then everything worked fine. I was wondering if there is a better solution? and should the file be updated?

@gpoore
Copy link
Owner

gpoore commented Jan 11, 2014

I also did some searching, and it looks like that error is due to microtype having trouble with the font configuration. So I will probably add \usepackage{lmodern} to the docs.

Can you tell me which TeX distribution and which version you are using? Also, do you have a full or only a partial installation? I've used the documentation files on many machines, and I've never gotten the error, so I'm guessing that there is something about a full install of TeX Live that prevents this from being triggered.

@bsamadi
Copy link
Author

bsamadi commented Jan 11, 2014

I have TeX Live 2013/Debian on Ubuntu. I'm not sure if I have the full installation. I have had Ubuntu on an external hard drive for a long time and I have upgraded it several times. The link you found is exactly the one I was referring to. As you say there should be some packages that I'm missing but adding the lmodern package solved my problem. I'm writing an article about cvxpy and the best way that I've found was to use LaTeX and PythonTeX (after trying Sage and IPython). Thanks for creating and maintaining PythonTeX. It is amazing and the possibilities are endless! I'm very excited. For another project, I am writing a LaTeX report using Emacs and its Org-Mode. My source file looks like a Markdown file (Org-Mode). Then the file can be exported to LaTeX and HTML and OpenOffice. However, only LaTeX can use BibTeX to make the bibliography (for HTML, it might be possible but it is harder to make it work). Combining PythonTeX and Org-Mode provides a simple and readable source file without losing anything from LaTeX. I just wish I could have Org-Mode in a browser (the union of IPython and Org-Mode features).

@gpoore
Copy link
Owner

gpoore commented Jan 11, 2014

I'll add lmodern or an equivalent to all the docs for the next release.

I'm glad you're finding PythonTeX useful. I don't think I've heard of anyone combining it with Org-Mode before.

I'm also hoping that the IPython notebook will support markup languages other than markdown in the future. I don't use Org-Mode myself, but if you haven't seen https://github.com/tkf/emacs-ipython-notebook, it might give you some of what you're looking for. I'm actually in the early stages of trying to create a markdown-style markup language, with proper support for LaTeX functionality, cross-format citation support, and something like PythonTeX baked in. So that may be an option someday, either standalone or (ideally) as an extension for IPython.

@bsamadi
Copy link
Author

bsamadi commented Jan 11, 2014

"A markdown-style markup language, with proper support for LaTeX functionality, cross-format citation support, and something like PythonTeX baked in" with an HTML interface would be perfect! Thanks for the link to emacs-ipython-notebook though. Looking forward to your next project.

@gpoore gpoore closed this as completed in 1e90bb1 Feb 6, 2014
@koppor
Copy link

koppor commented Mar 8, 2018

This is a usual issue in the context of MiKTeX. Solution: Install the cm-super package using the MiKTeX package manager. Then, run initexmf --mkmaps on the command line. (Long description: http://tex.stackexchange.com/a/324972/9075)

@kernel1983
Copy link

the command line to fix this is

mpm --install=cm-super

it may takes a while because around 65M data need to be downloaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants