Tag Info

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{...
• 992k

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 ...

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 ...
• 1,147
Accepted

Capitalize first letter of a defined variable

\expandafter\MakeUppercase \mytext
• 668k

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##...

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?}}, ...
• 455
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 ...
• 159k
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 ...

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 \...
• 59.8k
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, ...
• 992k
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} \...
• 243k
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 ...
• 2,584

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 ...
• 56.5k

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 ...
• 992k
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} ...
• 992k
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}
• 668k

\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 \...
• 211

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 ...
• 262k

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/\\\\...
• 668k

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}
• 48.9k

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 ...
• 439k

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 } \...
• 992k
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 (...
• 992k

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.
• 688
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)...
• 442
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 ...
• 294k
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/...
• 23.4k