is it a known latex command? textsca
- User
is it a known latex command? textsca
Assistant
No, \textsca is not a standard LaTeX command. You might be thinking of one of these similar commands:
\textsc{text} - produces small caps text \textsl{text} - produces slanted text \textit{text} - produces italic text \textbf{text} - produces bold text
If you're looking for small caps specifically, \textsc{} is what you want. For example: latex\textsc{This text will be in small caps} If \textsca appears in a document you're working with, it might be:
A custom command defined elsewhere in the document or in a package A typo that should be \textsc Part of a specialized package that defines this command
Could you provide more context about where you encountered this command?
- User
how \newcommand{\textsca}[1]{{\fontspec{TeX Gyre Termes}\textsc{#1}}} is different from \textsc{text}?
Assistant
The custom command \newcommand{\textsca}[1]{{\fontspec{TeX Gyre Termes}\textsc{#1}}} differs from the standard \textsc{text} in one key way: Font specification:
\textsc{text} uses small caps in whatever font is currently active (usually the document's main font) \textsca{text} explicitly switches to the TeX Gyre Termes font and then applies small caps
TeX Gyre Termes is a Times-like serif font that's part of the TeX Gyre font collection. So this custom command ensures that:
Small caps text always appears in TeX Gyre Termes, regardless of the current font context You get consistent typography for small caps throughout your document You're using a specific font that may have better-designed small caps than your main document font
This is particularly useful if:
Your main document font doesn't have good small caps support You want small caps to always appear in a specific, high-quality serif font You're using a sans-serif or monospace main font but want small caps in a serif font for contrast
The double braces {{...}} create a local scope, so the font change only affects the text within that command and doesn't leak out to surrounding text.
- User
LaTeX Error: Command \textsca unavailable in encoding TU.
Assistant
This error occurs because \textsc doesn't work properly with the TU encoding (Unicode) when using fontspec in this way. The issue is that you're mixing font selection methods. Here are several solutions: Solution 1: Use fontspec's built-in small caps feature latex\newcommand{\textsca}[1]{{\fontspec{TeX Gyre Termes}[SmallCapsFont=*]\textsc{#1}}} Solution 2: Define the font family first (recommended) latex\newfontfamily\termessc{TeX Gyre Termes} \newcommand{\textsca}[1]{{\termessc\textsc{#1}}} Solution 3: Use fontspec's direct small caps specification latex\newcommand{\textsca}[1]{{\fontspec{TeX Gyre Termes}[Letters=SmallCaps]#1}} Solution 4: Most robust approach latex\newfontfamily\termesfont{TeX Gyre Termes}[ SmallCapsFont = {TeX Gyre Termes}, SmallCapsFeatures = {Letters=SmallCaps} ] \newcommand{\textsca}[1]{{\termesfont\textsc{#1}}} The error happens because fontspec changes how font encoding works in XeLaTeX/LuaLaTeX, and the traditional \textsc command doesn't always play nicely with on-the-fly font switching using \fontspec{}. Solution 2 is probably the cleanest and most efficient approach.