24
votes
Accepted
Change the color of capital letters
You can do it with a regular expression, if you have the input string as an argument.
\documentclass{article}
\usepackage{xparse}
%\usepackage{l3regex} % only with expl3 before June 2017
\usepackage{...
18
votes
Change the color of capital letters
This solution shows an active character approach, which (though heavy in the setup) will allow one to have cap letter automatically colorized. But because active letters will tend to break macros, I ...
17
votes
What is the proper use of \@ (i.e., backslash-at)?
For novices, a simple mnemonic rule is: \@ is an invisible (zero-width) lowercase letter.
LaTeX considers a sequence <lowercase letter> <punctuation sign> <space> as end of a phrase ...
17
votes
Accepted
17
votes
Creating a macro that can selectively format capital letters
The tokcycle package (https://www.ctan.org/pkg/tokcycle) can be used for this.
\documentclass{article}
\usepackage{tokcycle}
\newcommand\famword[1]{%
\resettokcycle%
\Characterdirective{\ifcat A##...
16
votes
BibTeX loses capitals when creating .bbl file
A neat trick to get the WYSIWYG effect in the titles of your bibtex is to use double curlies to encode the titles, e.g.:
@book{aitchison2001language,
title={{Language Change: Progress or Decay?}},
...
15
votes
Accepted
Biblatex handling of Dutch "van" prefix
With a current biblatex version I recommend the slightly longer, but conceptually cleaner solution presented in Prefixes in author names in references and bibliography. The answer here still remains ...
15
votes
Accepted
How can I make it so that all the letters on a word are all capitalized yet the first letter is bigger than the rest?
The style is called "small caps" and is considered a font shape by LaTeX. Thus, \scshape will turn it on, or a delimited form, \textsc{...} is available. Naturally, you must make sure your ...
14
votes
What is the proper use of \@ (i.e., backslash-at)?
This is an old question and this is not so much an answer, but an overly long comment.
The \@ before the commas (as is shown in egreg's excellent answer) is not redundant. TeX's treatment of \...
12
votes
Accepted
Why aren't double curly braces around the title field of a bib entry preserving capitalization?
The double braces don't provide the required protection. Use
title = {Short history of {PACS}. {Part} {I}: {USA}.},
I believe that Biber is removing a pair of braces around the entire field, ...
12
votes
Accepted
Stylesheet does not capitalize Polish letters correctly
the issue is in the class file, which uses \uppercase for the case changing rather than \MakeUppercase. A fix:
\makeatletter
\def\@ucnt#1\thanks{\MakeUppercase{#1}\futurelet\@tempa\@ucnta}
\...
11
votes
Accepted
Creating a macro that can selectively format capital letters
When using modern fonts in conjunction with LuaLaTeX or XeLaTeX, one is (sometimes) able to delegate this this to the font, since OpenType Layout defines a font feature c2sc that translates capital ...
10
votes
Is it possible make the section names globally title case?
As mentioned by Werner in his comment, Steven Segletes's titlecaps package provides a macro called \titlecap that capitalises every word of its argument. Simply use that macro in the last mandatory ...
10
votes
How to write the capital letter form of "è"
The correct input is
\`E
Italian uses two kinds of accents, grave and acute. According to the most widespread usage, only the grave accent is used on a, i, o and u
\`a \`i \`o \`u
\`A \`I \`O \`U
...
10
votes
Accepted
van prefix is not in capital at beginning of sentence
The \textcite command uses the standard capitalization; however the biblatex package provides \Textcite for use at the beginning of a sentence (section 3.7.2 of the manual).
\documentclass{scrartcl} ...
10
votes
Accepted
Capitalizing mathematical parts in section mark
You can switch out \MakeUppercase for \MakeTextUppecase which skips math mode:
\documentclass{book}
\usepackage[overload]{textcase}
\begin{document}
\section{$n+2=N$}
\end{document}
9
votes
\autoref does not capitalize initial character in sentence when referencing label in listings environment
Another option is mentioned in the manual.
Use:
\usepackage[english]{babel}
\addto\extrasenglish{
\def\typeautorefname{Type}
}
\usepackage{hyperref}
If you want to capitalize usage of \...
9
votes
Capital gothic letter in headings
LaTeX's standard classes use \MakeUppercase to convert the letters of section titles to uppercase. The conversion does not know about arguments, math, ...
Workarounds:
The letter "g" can be hidden ...
9
votes
Capitalizing only the first word of the sentence in Section,Subsection
Rather than complicate your macros forever I'd just edit the file.
if your sec.tex file is
\section{My Title}
.....
\section{With Title Case}
...
Then after a command such as
sed -ie "s/\\\\...
9
votes
Capitalizing mathematical parts in section mark
You can manually protect single characters (or a range in which everything is lowercase) by using \lowercase:
\documentclass{book}
\begin{document}
\section{$\lowercase{n+n-n}+2=N$}
\end{document}
9
votes
Creating a macro that can selectively format capital letters
Here's a LuaLaTeX-based solution. It consists of (a) a main Lua function called uc2sc (short for "uppercase to smallcaps", I suppose) and an auxiliary Lua function called makesc which, together, do ...
9
votes
Creating a macro that can selectively format capital letters
Using uppercase in the input to mean small caps in the output:
\documentclass{article}
\usepackage{xparse}
\ExplSyntaxOn
\NewDocumentCommand{\famword}{m}
{
\tl_set:Nn \l_tmpa_tl { #1 }
\...
9
votes
Accepted
replace capital ›ẞ‹ with ›ss‹ when using small caps
I believe it should be a law that any font providing the utterly ugly ẞ character must provide a stylistic set for replacing it with “SS”.
But you're lucky: not with Linux Libertine, but with its (...
8
votes
Proper casing in citation/bibliography titles using biblatex/Biber
If you are using biblatex with style=apa and want to keep the casing of your bib-file you need to use
\DeclareFieldFormat{apacase}{#1}
The default is to capitalize only the first letter.
8
votes
Accepted
How to write the capital letter form of "è"
If you want a capital È with the accent grave, you use the backtick character (`), not the apostrophe character (').
The backtick is located in the upper left corner of your keyboard (assuming QWERTY)...
8
votes
Accepted
How to ensure the first letter of a footnote is always uppercase?
This won't work. \uppercase is a primitive which will works ok for simple text, but not with arbitrary content, and not with complicated commands like \cite.
In your case I also see no need to use ...
8
votes
Accepted
How to capitalize letter (using \uppercase) that has been assigned to \let (or to \def)?
\uppercase and \lowercase
do only apply to explicit character tokens.
do not trigger expansion after finding
either the left brace { of the ⟨balanced text⟩ that is to be uppercased/...
7
votes
Accepted
\MakeUppercase does not work with Ukrainian in Xelatex
The babel module for Russian has been updated for use with XeLaTeX, but the one for Ukrainian hasn't.
You're luckier with Polyglossia.
\documentclass{book}
\usepackage{polyglossia}
\usepackage{...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
capitalization × 374biblatex × 45
sectioning × 35
bibtex × 31
acronyms × 30
table-of-contents × 29
header-footer × 24
macros × 23
glossaries × 22
bibliographies × 19
small-caps × 18
cross-referencing × 17
fonts × 13
formatting × 13
expansion × 13
math-mode × 12
citing × 12
hyperref × 10
cleveref × 10
natbib × 9
titles × 9
memoir × 9
fancyhdr × 8
indexing × 8
greek × 8