3
votes
1answer
56 views

TeX commands and currency symbols

Why does the code \documentclass{memoir} \usepackage[latin1]{inputenc} \usepackage[danish]{babel} \usepackage[T1]{fontenc} \def£#1£{``#1''} \def€#1€{<#1>} \begin{document} Hi, £this£ is nice, ...
8
votes
2answers
148 views

If \@percentchar represents %, is there a macro for #?

If \@percentchar represents %, is there a macro for #? I have tried \@sharpchar and \@numberchar but both do not exist. Do you have any idea what is the correct macro name for #?
2
votes
1answer
118 views

Macro to get character width in ConTeXt

Background Looking to adjust the location of the first letter in a word based on its width. Problem The calculation resembles: \define[1]\StyleChapterChar{% \cldcontext{string.sub("#1",1,1)}% } ...
5
votes
1answer
129 views

Count chars with xstring

I have the following code, which was provided by the xstring author Christian Tellechea, thank you very much. The idea is to count the number of character inside a structure that do belong to a ...
0
votes
0answers
124 views

TeX, LaTeX capabilities in counting occurrences in text of chars defined in a given list

I am asking this question in part because I am not completely aware of TeX, LaTeX capabilities. Imagine that I want to count the number occurrences of charecters defined in a certain list. The usage ...
6
votes
4answers
395 views

UTF-8 (but not in current font) character in newcommand

I'm trying to define a new single-character LaTeX command (to insert a 1 pt space with \kern1pt) and want to use one of the characters obtained through the AltGr key on a US International keyboard ...
7
votes
2answers
379 views

How is the LaTeX 2e made?

I wanted to know how is the \LaTeXe symbol () made, I mean, the command definition of superscripts and subscripts on the "L", "A"... letters.
2
votes
0answers
89 views

Is there a \text… command for Cyrillic characters? [duplicate]

I am trying to get the Cyrillic variant of the Serbian alphabet and was wondering if there was an easy \text command for Cyrillic characters? For example, I can easily get the letter З by typing ...
1
vote
1answer
125 views

Macro needed for automatic creation of labels

I'm asking for help with the creation of a label inside a command out of a given text. The given text contains spaces and an umlaut. See my MWE, which contains my question: \documentclass[pagesize, ...
0
votes
1answer
106 views

Defect of measuring into the count of alphabet width

Question: Why in the example below I get (with CM at 10pt) \alphabet=342.93138pt and \myalphabetwidth=342.6536pt why I have this difference between the two measures? What is the more correct? ...
3
votes
1answer
185 views

Support for the punctuation symbols into a macro for characters count

Question about this macro: Is possible to have a higher precision with this macro by adding some punctuation symbols like ,.;:?!'() into the final count of the characters? ...
9
votes
2answers
435 views

“Activate” active characters in argument passed as macro

Let's say I have some macro (\iPrint in the MWE) that internally uses active characters to interpret its argument: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
5
votes
4answers
214 views

Symbols to avoid while creating new commands

I experienced some problems when creating \newcommand that have some numbers in their names; I can't find docs about that, about the accepted charset for the commands in LaTeX.
30
votes
2answers
796 views

How to color the characters in LaTeX2e logo?

I want to get the LaTeX2e logo but with each character having a different color. I know that \LaTeXe produces the logo, but how do I give a color to each character?