Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to create a document using latex, but I discovered that latex only works with plain ascii, and my native language is not English :) So I tried xetex instead (with example from here). The problem is, I do not have the font that example requires.

What should I add to the beginning section of my .tex file to get a proper font - Times New Roman for example?

share|improve this question
    
What is your native language (if you don't mind me asking)? –  Thorsten Donig Mar 18 '12 at 13:49
1  
LaTeX works with a huge number of alphabets and languages. Probably also with your language. –  egreg Mar 18 '12 at 13:49
3  
Check the XeTeX answer to this question How do I use a particular font for a small section of my document (which covers font use in XeTeX thoroughly). –  Alan Munn Mar 18 '12 at 13:49
    
@ThorstenDonig - Russian, and I checked - latex just outputs blanks instead of the text. –  Rogach Mar 18 '12 at 13:54
1  

1 Answer 1

up vote 2 down vote accepted

You may use any otf or ttf font installed on your system. I tried the code you linked to both with "Times New Roman" and "Minion Pro" My Times New Roman seems not to have oldstyle nums, but Minio does

share|improve this answer
    
Can you please post the \setmainfont expression you used? I seem to be completely lost - it is unable to find the needed font file. –  Rogach Mar 18 '12 at 13:48
    
setmainfont[Mapping=tex-text]{Minion Pro} –  Peter Breitfeld Mar 18 '12 at 13:54
2  
@Rogach: It won't help you very much if we sent you a lot of \setmainfont-commands that works on our systems. What matters are the font you have on your system and their names. So you should at first give some informations like your OS and which of your system fonts you actually want to use. –  Ulrike Fischer Mar 18 '12 at 13:56
    
@UlrikeFischer - I am a newbie, so I do not understand the syntax by heart yet. For example, I did not know that font name needed to be inputted with spaces - and that command worked for me. –  Rogach Mar 18 '12 at 14:01
1  
@Rochach: I didn't expected you to know the syntax but to give more details. As a newbie you can make a lot errors and it is much easier to help you if you actually show what you are doing. E.g. the example on the wikipedia page you linked to in your question contains \setmainfont[Mapping=tex-text]{Linux Libertine O}- a font name with spaces. So one would need a very good christal ball to guess that your problem was due to missing spaces. If you had shown your code it would have been easy to see. –  Ulrike Fischer Mar 18 '12 at 14:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.