dwrensha / sharelatex

A web-based collaborative LaTeX editor
GNU Affero General Public License v3.0
19 stars 8 forks source link

ShareLaTeX: unicode chars not supported #1

Closed krasin closed 9 years ago

krasin commented 9 years ago

I have tried the ShareLaTeX demo, hosted at sandstorm.io. In the document that opens after clicking on "New ShareLaTeX Project" button, I have replaced the word "Introduction" with the word "Привет" to test if there's a support for non-ascii letters. Not surprisingly, I've got the following compile errors:

Error in /var/compiles/5392f7810023f5fe374c75f2/main.tex (line 15):
Package inputenc Error: Unicode char \u8:П not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.15 \section{Привет}

Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.

It would be nice to support full utf-8, instead of just ascii.

dwrensha commented 9 years ago

I've released a new version of the app where this should work, once you add this line to your document's preamble:

\usepackage[T1,T2A]{fontenc}

You can try it here: https://demo.sandstorm.io/appdemo/5vuv7v0w7gu20z72m78n83rx9qqtqpmtk32f39823wh967z226qh

krasin commented 9 years ago

Thank you, David. I have verified that it works.