2

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?

5

1 Answer 1

2

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

6
  • 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
    Commented Mar 18, 2012 at 13:48
  • setmainfont[Mapping=tex-text]{Minion Pro} Commented Mar 18, 2012 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. Commented Mar 18, 2012 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
    Commented Mar 18, 2012 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. Commented Mar 18, 2012 at 14:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .