Re: [XeTeX] Quotation marks

2011-06-08 Thread Arthur Reutenauer
 
 Can someone please explain why is it that if I compile the document:
 
 \documentclass{article}
 \usepackage{fontspec,lmodern}
 \usepackage[T1]{fontenc}
 \begin{document}
 «A»
 \end{document}
 
 what I get is
 
 ńAż
 
 instead of
 
 «A» ?

  Because you're using fontenc.  Don't.  Just let fontspec do the job.

Arthur


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Quotation marks

2011-06-08 Thread Ulrike Fischer
Am Wed, 08 Jun 2011 11:31:48 +0100 schrieb José Carlos Santos:

 Hi all,
 
 Can someone please explain why is it that if I compile the document:
 
 \documentclass{article}
 \usepackage{fontspec,lmodern}
 \usepackage[T1]{fontenc}
 \begin{document}
 «A»
 \end{document}
 
 what I get is
 
 ńAż
 
 instead of
 
 «A» ?

Because you are using T1 font encoding. For xetex you should use
EU1. If you need fontenc for one or the other reason (you don't need
it in your example) load it before fontspec. Remove also the lmodern
package. fontspec already use this fonts as default.


-- 
Ulrike Fischer 



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Quotation marks

2011-06-08 Thread Herbert Schulz

On Jun 8, 2011, at 5:31 AM, José Carlos Santos wrote:

 Hi all,
 
 Can someone please explain why is it that if I compile the document:
 
 \documentclass{article}
 \usepackage{fontspec,lmodern}
 \usepackage[T1]{fontenc}
 \begin{document}
 «A»
 \end{document}
 
 what I get is
 
 ńAż
 
 instead of
 
 «A» ?
 
 Best regards,
 
 Jose Carlos Santos
 

Howdy,

Because you are mixing pdflatex and xelatex. Don't use the lmodern package (I 
believe fontspec defaults to the otf version of latin modern if you don't 
specify a main/roman font) and certainly don't use the fontenc package.

\documentclass{article}
\usepackage{fontspec}
\begin{document}
«A»
\end{document}

Finally, make sure you are saving the file as UTF-8.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Quotation marks

2011-06-08 Thread Ulrike Fischer
Am Wed, 8 Jun 2011 05:54:27 -0500 schrieb Herbert Schulz:

  and certainly don't use the fontenc package.

There is no problem to *use* fontenc with xelatex. fontspec is
actually loading itself. And I'm loading it to use my chess fonts.
The problem is that by loading it with the option T1 *after*
fontspec, T1 will be the active encoding at the start of the
document. If you want another encoding you must either change the
loading order or activate EU1 with \fontencoding{EU1}\selectfont.

It is like loading \usepackage[ngerman,english,russian]{babel}: The
last language loaded is active until you change it with
\selectlanguage.  


 
-- 
Ulrike Fischer 



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Quotation marks

2011-06-08 Thread Wilfred van Rooijen
If I remember correctly, I thought that there is in fact a \quote-command or 
something similar in latex which will produce the correct quotation marks for 
the currently active language. I remember that we had a lengthy discussion 
about that once on the Dutch latex list, but I forgot the details (and I am too 
lazy to go look for it ;-)) )

In this way, in French you would get guillemots, in US-English something like 
`` foo , in Dutch ,, foo , and in other languages other appropriate signs.

Cheers,
Wilfred

--- On Wed, 8/6/11, Ulrike Fischer ne...@nililand.de wrote:

 From: Ulrike Fischer ne...@nililand.de
 Subject: Re: [XeTeX] Quotation marks
 To: xetex@tug.org
 Date: Wednesday, 8 June, 2011, 8:47 PM
 Am Wed, 8 Jun 2011 05:54:27 -0500
 schrieb Herbert Schulz:
 
   and certainly don't use the fontenc package.
 
 There is no problem to *use* fontenc with xelatex. fontspec
 is
 actually loading itself. And I'm loading it to use my chess
 fonts.
 The problem is that by loading it with the option T1
 *after*
 fontspec, T1 will be the active encoding at the start of
 the
 document. If you want another encoding you must either
 change the
 loading order or activate EU1 with
 \fontencoding{EU1}\selectfont.
 
 It is like loading
 \usepackage[ngerman,english,russian]{babel}: The
 last language loaded is active until you change it with
 \selectlanguage.  
 
 
  
 -- 
 Ulrike Fischer 
 
 
 
 --
 Subscriptions, Archive, and List information, etc.:
   http://tug.org/mailman/listinfo/xetex
 



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Quotation marks

2011-06-08 Thread R (Chandra) Chandrasekhar

On Wednesday 08 June 2011 05:49 PM, Wilfred van Rooijen wrote:

If I remember correctly, I thought that there is in fact a
\quote-command or something similar in latex which will produce the
correct quotation marks for the currently active language. I remember
that we had a lengthy discussion about that once on the Dutch latex
list, but I forgot the details (and I am too lazy to go look for it
;-)) )


Could that be from Philipp Lehman's csquotes package?

Chandra


In this way, in French you would get guillemots, in US-English
something like `` foo , in Dutch ,, foo , and in other languages
other appropriate signs.





Cheers, Wilfred

--- On Wed, 8/6/11, Ulrike Fischerne...@nililand.de  wrote:


From: Ulrike Fischerne...@nililand.de Subject: Re: [XeTeX]
Quotation marks To: xetex@tug.org Date: Wednesday, 8 June, 2011,
8:47 PM Am Wed, 8 Jun 2011 05:54:27 -0500 schrieb Herbert Schulz:


and certainly don't use the fontenc package.


There is no problem to *use* fontenc with xelatex. fontspec is
actually loading itself. And I'm loading it to use my chess fonts.
The problem is that by loading it with the option T1 *after*
fontspec, T1 will be the active encoding at the start of the
document. If you want another encoding you must either change the
loading order or activate EU1 with \fontencoding{EU1}\selectfont.

It is like loading \usepackage[ngerman,english,russian]{babel}:
The last language loaded is active until you change it with
\selectlanguage.



-- Ulrike Fischer



-- Subscriptions,
Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex





-- Subscriptions,
Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex