LaTeX forum ⇒ TeXworksSomething happens wrong when I paste contents from word

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

Something happens wrong when I paste contents from word

Postby yaozhao » Mon Oct 29, 2018 6:21 pm

When I copy and paste texts from word to texworks, sometimes it got wrong. Mistakes emerges.

LaTeX Warning: `h' float specifier changed to `ht'.

[1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]

! Package inputenc Error: Unicode character   (U+202F)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.39 Average product 
                       is the total quantity of output divided by the number...

?


What happened? What should I do?

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Stefan Kottwitz
Site Admin
Posts: 9878
Joined: Mon Mar 10, 2008 9:44 pm

Something happens wrong when I paste contents from word

Postby Stefan Kottwitz » Mon Oct 29, 2018 7:19 pm

There can be special characters. Here, it's a small space. Add to your preamble:

\DeclareUnicodeCharacter{202F}{\,}

Stefan
LaTeX.org admin


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 2 guests