Fix LaTeX exporting '?' for non-ascii title #1039
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have the same issue with #786 . When I tried to export a PDF file from a notebook that has a non-ascii title (which is the notebook's file name), the output is just '????':
I discovered that it was not a XeLaTeX problem; I use
ctex
package to support non-ascii rendering (You can see them in the date under the title), but the title is still '???'. I tried to directly export.tex
source file instead, and it turned out thatnbconvert
itself produces'\title{????}'
for title while other non-ascii characters in the document body is fine.In
nbconvert/templates/latex/base.tplx
, I found this line confusing:\title{((( nb_title | ascii_only | escape_latex )))}
I have no idea what
ascii_only
is for, and deleting this is supposed to make sense.