Texmaker and TeXstudio ⇒ Copy&Paste from Word Processor to LaTeX
Copy&Paste from Word Processor to LaTeX
Hey folks,
Im trying to copy/paste some simple text from a word document into a latex document but errors occurs. Any idea why it happens?
It's a simple memoir document with few graphs and equations.
/Hakan
Im trying to copy/paste some simple text from a word document into a latex document but errors occurs. Any idea why it happens?
It's a simple memoir document with few graphs and equations.
/Hakan
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10322
- Joined: Mon Mar 10, 2008 9:44 pm
Copy&Paste from Word Processor to LaTeX
Hi Hakan,
welcome to the board!
Stefan
welcome to the board!
perhaps tell us the error messages which you got. These might lead to an idea.Hakane wrote:Im trying to copy/paste some simple text from a word document into a latex document but errors occurs. Any idea why it happens?
Stefan
LaTeX.org admin
Copy&Paste from Word Processor to LaTeX
Sorry for not explaining the problem properly. The error is:
and it refers to the following line:
Code: Select all
! LaTeX Error: Command \textyen unavailable in encoding T1.
Code: Select all
\usepackage[T1]{fontenc} % fonte (output)
Copy&Paste from Word Processor to LaTeX
I think I've found the problem. It seems like it wont compile the file when it contains letters like "æ", "ø" or "å". The solution to this should be, according to another help forum:
but it doesn't help :/
Code: Select all
\usepackage[ansinew]{inputenc}
- Stefan Kottwitz
- Site Admin
- Posts: 10322
- Joined: Mon Mar 10, 2008 9:44 pm
Copy&Paste from Word Processor to LaTeX
Yes, you need inputenc. But specify the encoding which you actually use. Today, utf8 is very common, it's the default for TeXworks and for Linux editors. So try
or check the encoding of your editor in its configuration.
Stefan
Code: Select all
\usepackage[utf8]{inputenc}
Stefan
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Copy&Paste from Word Processor to LaTeX
As alternative you can try a semiautomatic determination of the input encoding by selected glyphs offered by the selinput package from the oberdiek bundle. Replace the line that Stefan suggested with these.
For such special characters (probably Scandinavian) this can be preferable.
Thorsten
Code: Select all
\usepackage{selinput} % Semiautomatic choice of input encoding
\SelectInputMappings{ % by selected glyphs
ae={æ}, % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
oslash={ø},
Euro={€}
}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10