MiKTeX and proTeXtMixing Hebrew and Portuguese Latin Characters

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
Daniel Levitan
Posts: 5
Joined: Fri Sep 19, 2008 4:08 pm

Mixing Hebrew and Portuguese Latin Characters

Post by Daniel Levitan »

Hi guys,

I'm trying to edit some texts in Portuguese and Hebrew, mixing the languages. I was able to edit text and both languages, but when I try to edit them together the Portuguese Characters that doesn't exist in English are not understood.

Those are some examples of characters: ç, á, à, ã, ó, and other ones.

This is the core of code that I'm trying to test:

Code: Select all

\documentclass{article}
\usepackage[hebrew,brazil]{babel}  % The very last idiom is standard in the text

\begin{document}
A test using latin then hebrew: \R{ùãâùìêç}

Using some portuguese symbols: ç % ã  á  ó 
\end{document}

When commenting the second sentence, the first sentence appears well, with hebrew characters. But when I remove the % from the second line I've got this error:

! LaTeX Error: Command \hebhet unavailable in encoding OT1.


OBS: As you may see, I've got a second problem. Although I've installed the hebrew characters in Windows, when editing in Texnic Center I'm not able to visualize them, as you can notice in the first sentence.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Daniel Levitan
Posts: 5
Joined: Fri Sep 19, 2008 4:08 pm

Re: Mixing Hebrew and Portuguese Latin Characters

Post by Daniel Levitan »

Hi all.

The second and less relevant part of the post is solved, or maybe it is better to say, discovered. Reading other topics I've found that Unicode is not supported by Texnik Center. But they've got this issue in their priority list. This is a very good thing as long as I think that is one of the best editors for TeX.

Regards,

Daniel
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Mixing Hebrew and Portuguese Latin Characters

Post by Stefan Kottwitz »

Hi Daniel,

welcome to the board! Try Cork encoding:

Code: Select all

\usepackage[T1]{fontenc}
Stefan
LaTeX.org admin
Daniel Levitan
Posts: 5
Joined: Fri Sep 19, 2008 4:08 pm

Mixing Hebrew and Portuguese Latin Characters

Post by Daniel Levitan »

Hi Stefan.

I've already tried that line, and a bunch of others too.

This line gives me the same error that I had previously. As long as I don't know the structure, hierarchy about other characters, I've tried randomly the following lines:

Code: Select all

\usepackage[T1]{fontenc}

\usepackage[cp1255]{inputenc}

\usepackage{ae}
Thanks again,

Daniel
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Mixing Hebrew and Portuguese Latin Characters

Post by Stefan Kottwitz »

Hi Daniel,

this code worked for me, without error messages:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[hebrew,brazil]{babel}

\begin{document}
A test using latin then hebrew: \R{ùãâùìêç}

Using some portuguese symbols: ç % ã  á  ó
\end{document}
I will attach the output pdf.

I'm using utf8, you could use latin1 for inputenc on Windows.

Stefan
Attachments
hebrew.pdf
(20.81 KiB) Downloaded 547 times
LaTeX.org admin
Daniel Levitan
Posts: 5
Joined: Fri Sep 19, 2008 4:08 pm

Re: Mixing Hebrew and Portuguese Latin Characters

Post by Daniel Levitan »

Hi Stefan.

I've tried your lines. It compiled without errors, but generate the strange characters that mean to represent hebrew letters. I mean, I was able to see the latin characters but the hebrew characters I couldn't.

I've checked in your pdf and although you've got some Hebrew characters, they'd appeared with some other symbols in the top of the letters (this doesn't exist in hebrew).

Do you think I have to declare the kind of coding I'm using each time I switch languages ?

Thanks again,

Daniel
Post Reply