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 have trouble getting capital letters with a combination of accent and macron in XeLaTeX. I used this: \'{\=A}, but I didn't get the accent where I expected it to be. Also, i was wondering if it is possible to to have an upper case stressed capital letter?

share|improve this question
    
I didn't understand your question the first time, I've edited my answer, hope it helps. –  jrojasqu Mar 31 '13 at 7:42
add comment

2 Answers

up vote 3 down vote accepted

If the font has the necessary glyphs, you cand use combining accents:

U+0304 COMBINING MACRON
U+0301 COMBINING ACUTE

Thus

A^^^^0304^^^^0301

or the direct input

Ā́

(find out how your keyboard can realize it) should produce the requested result:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
A^^^^0304^^^^0301

Ā́
\end{document}

enter image description here

share|improve this answer
    
Ok, and to have the capital letter superscript (that's what I meant by "upper case stressed capital letter", sorry for my English), I found out I need this command \textsuperscript{LÚ}.I have a last question, which is quite specific: does any of you know if it possible to get a capital letter with a macron and an accent in italic characters? I got a weird result when I used the regular italic command. –  ben Mar 31 '13 at 13:52
add comment

You can use the covington package :

\documentclass{article}
\usepackage{fontspec}
\usepackage{covington}
\begin{document}
   \acm{A}
\end{document}

You can consult its manual from here.

enter image description here

To combine any 2 accents one can use the \twoacc function, for example :

\twoacc[\~|\={a}]

will provide with

enter image description here

EDIT

About the stressed capital letter, since I really don't know about the meaning of it (and to avoid explaining anything I don't understand) : you might want to check the \textsecstress function.

share|improve this answer
1  
ben was asking about "letters with a combination of accent and macron" and not about a letter accented in the simple way. –  Jean Baldraque Mar 31 '13 at 7:27
    
@JeanBaldraque oops... I didn't get the idea the firs time. I've edited my answer. –  jrojasqu Mar 31 '13 at 7:36
add comment

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.