Compound words, loanwords, capital letters
The rule: Compound words, loanwords, capital letters
A compound word written as one word follows the general rules as a single word: décimo + séptimo → decimoséptimo, así + mismo → asimismo, veinte + dos → veintidós. In hyphenated words each part keeps its own accent mark: físico-químico. Established loanwords also follow the general rules: líder, cómic, récord, estándar, bíceps (llanas not ending in a vowel, n or s take an accent mark; so do llanas ending in -s after another consonant). Capital letters must be written with the accent mark: Álvaro, ÁFRICA.
Examples
decimoséptimo
the first part loses its accent mark
the first part loses its accent mark
veintidós
aguda ending in s → accent mark
aguda ending in s → accent mark
físico-químico
hyphenated — each part has its own accent mark
hyphenated — each part has its own accent mark
líder
llana ending in r → accent mark
llana ending in r → accent mark
bíceps
llana ending in -ps → accent mark
llana ending in -ps → accent mark
Álvaro
a capital letter also takes the accent mark
a capital letter also takes the accent mark