TeXworksSomething happens wrong when I paste contents from word

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

Something happens wrong when I paste contents from word

Post by yaozhao »

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

Code: Select all

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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Something happens wrong when I paste contents from word

Post by Stefan Kottwitz »

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

\DeclareUnicodeCharacter{202F}{\,}

Stefan
LaTeX.org admin
Post Reply