1
vote
1answer
57 views

Redefining \^ and \~ in math mode?

\^ and \~ apply accents in text mode, but each gives an error when used in math mode. So I consider redefining them for my own use, perhaps like this: \let\old@hat\^ ...
11
votes
3answers
121 views

Mirror tilde accent

Does anybody know if there is a "mirror" tilde accent command in any package? That is, the "wiggling" of the tilde accent going in the other direction. Something like defining this \backtilde ...
6
votes
1answer
165 views

\renewcommand and \newcommand for accented letters

I'm using OT1 font encoding, but I would like to use T1 font encoding for glyphs that don't exist in OT1. To do that, I'm redefining the typical T1 commands so that they automatically choose a T1 ...
15
votes
3answers
309 views

Parsing strings containing diacritical marks (macros?)

I apologize that this question may seem very much like several other recent ones I have asked (Parsing leading hardspaces, Parsing a \$ as part of an improved \getargs command). They are all related ...
16
votes
2answers
266 views

“Namethatchar” macro

I am searching for a macro/package that would give the name of characters. Here are a few examples of a possible behaviour: \namethatchar{A} → A \namethatchar{À} → Agrave \namethatchar{a} → a ...
4
votes
1answer
103 views

Define commands for symbols with index, combine with accents

To facilitate writing of formulas that contain symbols with subscript, I often define custom commands. However, combining these with accents gives unpleasant results. Is there any way to define such ...
4
votes
1answer
244 views

Newcommand with accents

I would like to create a command to automatically generate accented letters like è or é. I tried: \newcommand{\ar}[1]{\´#1} \newcommand{\al}[1]{\`#1} \ar{e} \al{e} but the result was "Undefined ...
0
votes
2answers
138 views

How I could insert an accented word in a new command?

I have the following command \newcommand{\startsection}[4]{ \gdef\classname{#2} \subsection*{\label{#3}{\bf {\sc #1} #2}}{ \rule[1em]{\hsize}{4pt}\vskip -1em \vskip .1in #4 }% } I use it in the ...
3
votes
1answer
2k views

Mathaccents, fontdimens, macros, oh my!

Why doesn't this work? \def\circacc{% \dimen0=\fontdimen5\textfont2 \fontdimen5\textfont2=-.5ex \mathaccent\circ \fontdimen5\textfont2=\dimen0 }$\circacc a$\bye The last line produces an ...
6
votes
1answer
581 views

Defining new accents in LaTeX

The documents that I type include lots of references to complex numbers and their complex conjugates, such as $j, \overline{j}$. I would find it lots easier to be able to type something as \*j to ...