149
The sequence
\"{o}
will be used when you want to write 'ö' in text, such as 'Schrödinger'.
While in the math mode, as Peter Grill mentioned
\dot{o}
\ddot{o}
and so on, should do the trick.
Edit:
For more than two dots, e.g. \dddot{o}, you need the package amsmath, which allows you a maximum of 4 dots \ddddot{o}
(not strikingly beautiful
)
For ...
116
Semantically, don't use either. Use \conj, or \mean, or \variant or whatever the overline is meant to mean. Then in your preamble, do:
\newcommand*\conj[1]{\bar{#1}}
\newcommand*\mean[1]{\bar{#1}}
Then:
Your document source becomes readable: you can determine the meaning right there and then.
Your document becomes more flexible: if you decide to denote ...
answered Feb 13 '13 at 13:41
Andrew Stacey
137k3636 gold badges344344 silver badges674674 bronze badges
56
The question wasn't "should it be done?" But, for the same reason men climb mountains, "could it be done?" The answer, with the scalerel package, is yes. Thus, we introduce \reallywidehat [EDITED to add phantom rule below argument, so that baseline of result matches baseline of original argument. RE-EDITED to \ensuremath on the \widthof calculation (...
answered Mar 6 '13 at 12:29
Steven B. Segletes
198k1010 gold badges266266 silver badges515515 bronze badges
47
You can write the macron using \=<character>;
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Sankhy\=a
\end{document}
Just for the record, here's a table I wrote some time ago, containing (I think) all the accents provided by LaTeX (the original names were in Spanish; I used the English names I found on the web, but let me know ...
answered Mar 4 '14 at 23:40
Gonzalo Medina
454k5353 gold badges14851485 silver badges16981698 bronze badges
40
Choose the one you like:
% arara: lualatex
\documentclass{article}
\usepackage{unicode-math}
\usepackage{mathtools}
\setmathfont{XITS math}
\begin{document}
Accents above:
\begin{itemize}
\item \verb+\grave+ $\grave x\quad Z_{\grave x}\quad Z_{Z_{\grave x}}$
\item \verb+\acute+ $\acute x\quad Z_{\acute x}\quad Z_{Z_{\acute x}}$
\item \verb+\hat+ $\hat x\...
34
Users looking to make common accents in regular text mode can do so with, for example, \'e.
MWE:
\documentclass[10pt]{article}
\begin{document}
Alfred Land\'e.
\end{document}
Output:
34
For UTF-8 input, use soulutf8; don't forget fontenc!
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{soulutf8}
\usepackage{color}
\definecolor{y}{RGB}{245, 255, 189}
\sethlcolor{y}
\begin{document}
\hl{\'e}
\hl{é}
\end{document}
There is no 15pt option for article.
answered Feb 13 '14 at 11:28
egreg
890k111111 gold badges22732273 silver badges37183718 bronze badges
32
With the following setup, you can just type these characters normally, and the copy-paste text in the pdf (the OCR layer) will be correct, too. Your source .tex document should be encoded in UTF8, of course, or you could use latin1, or some other input encoding that includes the characters you desire and is listed in the inputenc documentation.
% !TEX ...
30
This works:
M\^^22arz
Indeed TeX interprets ^^xy (where x and y are digits or abcdef) as the character having "xy (hexadecimal) ASCII code. Since the character code of " is 34, hexadecimal 22, typing \^^22 is the same as typing \". This translation happens before TeX starts to make tokens.
answered May 16 '13 at 13:54
egreg
890k111111 gold badges22732273 silver badges37183718 bronze badges
26
The immediate problem is solved by replacing the text-mode instruction \~{A} with the math-mode directive \tilde{A}.
You may also want to make the equation both more compact and more readable by (a) introducing a line break in the material set below the third \sum symbol (via a \substack instruction) and (b) eliminating the whitespace that's otherwise ...
26
The only sane reason I can think of for giving in to your professor's preference concerns bibliographies and, specifically, bibliographies created with BibTeX and a bibliography style that sorts entries alphabetically by authors' surnames. (Aside: The issues raised in the remainder of this answer do not pertain to bibliographies generated with biblatex+...
23
It is difficult to see in some editors, but in the first case you have \" acting on o, in the second: \' acting on ', hence the strange result.
\documentclass{article}
\begin{document}
Toks\"{o}z
Toks\''{o}z
\end{document}
BTW: your question gives an interesting example, why " and '' should never be mixed. Improper usage of " as a quote does not give ...
answered Jul 2 '14 at 23:58
Przemysław Scherwentke
33.2k55 gold badges5555 silver badges105105 bronze badges
22
Here is my attempt.
I tried to emulate the original julia logo from julialang.org. Some features:
The positioning of the dots is relative to the x-height of the current font, which means that they should stay in the right position if the font size changes.
The word "julia" is set in the cmss (Computer Modern sans serif) font, which means the logo won't ...
21
If you want to use Knuth TeX you'll have a hard time. With pdftex it's easier, because there are some useful features coming from e-TeX extensions.
Here's a seemingly working setup (I add only a reduced version of the first file, for the limitation in characters here.
utfplainmac.tex
% -*- coding: utf-8 -*-
% We set a safe catcode for ^ and ^^^; XeTeX ...
answered Mar 5 '14 at 21:25
egreg
890k111111 gold badges22732273 silver badges37183718 bronze badges
21
By all means replace \overset{\sim}{u} with \tilde{u}. Optionally, replace \overline{\rho} with \bar{\rho}.
Here's a screenshot of u with various math-mode adornments.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\bar{u} \tilde{u} \hat{u} \dot{u} \ddot{u} \acute{u} \grave{u} \check{u} \breve{u}$
$\bar{\bar{u}} \tilde{\tilde{u}} \hat{\hat{...
19
\bar{a} can mean just "another thing" like if you used a' or \tilde{a} or \diamondclub. You never use \overline for this.
However, if you denote an operation like complex conjugation, reversal, set closure or whatever, you can use whichever you want. You found out that somehow (to some people) \bar{a} seems "too subtile" for this purpose, and you can use ...
19
In the definition files for output encodings, you can find the defined combinations that are substituted with precomposed accented characters; for instance, in t1enc.def we find
\DeclareTextComposite{\.}{T1}{i}{`\i}
\DeclareTextComposite{\.}{T1}{\i}{`\i}
\DeclareTextComposite{\`}{T1}{i}{236}
\DeclareTextComposite{\`}{T1}{\i}{236}
\DeclareTextComposite{\'}{...
answered May 31 '14 at 8:08
egreg
890k111111 gold badges22732273 silver badges37183718 bronze badges
19
This is encoded in Unicode as "Combining Comma Above" (U+0313} and with a suitable font and XeLaTeX or LuaLaTeX can be entered directly. In the example below I've made a \glottal macro to make input simpler. I've used Doulos SIL as the font, which places the character correctly; other fonts may place it differently, unfortunately (for example, Linux ...
18
egreg's comment comforted me in the thought that both \bar{\bar{...}} and \overline{\overline{...}} can be used to typeset double accents without any nasty side effects.
However, the best way to replicate the double-bar notation for rank-2 tensors, as found there, for instance, seems to be using \overline{\overline{...}}.
\overline{\overline{...}} should ...
17
It is described in manuals to LaTeX that inside tabbing you have to use \a'{e} instead of \'{e}. This will work for you. As well, I recommend loading lmodern and [T1]{fontenc} to get proper accent placement:
\documentclass{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\begin{document}
\section{EDUCATION \& CERTIFICATION}
\begin{tabbing}
\textbf{...
17
Firstly \" is not a tex primitive, it is a macro defined in plain tex and also a macro with a different definition defined in latex, so it isn't that latex changes this macro it just has a different definition. (Plain TeX accents only have to work with the original 7-bit encoding of computer modern, but latex ones need to adapt to the currently specified ...
answered Oct 4 '16 at 10:07
David Carlisle
596k5151 gold badges13481348 silver badges21412141 bronze badges
16
For the breve accent in text mode use \u{\i}, for the háček use \v{\i}. In math mode, they are \breve{\imath} and \check{\imath}.
\documentclass{article}
\begin{document}
\verb|\u{\i}|: \u{\i}
\verb|\v{\i}|: \v{\i}
\verb|$\breve{\imath}\ne\check{\imath}$|: $\breve{\imath}\ne\check{\imath}$
\end{document}
answered Nov 30 '13 at 16:09
egreg
890k111111 gold badges22732273 silver badges37183718 bronze badges
15
While echoing the sentiment expressed in the earlier answer -- "this stuff really shouldn't be encouraged" -- I can't resist pointing out that \widehat can easily be made super-wide with the help of the mtpro2 (MathTime Professional II) package. Note that this package isn't free of charge and can't be downloaded from the CTAN. However, its "lite" subset -- ...
15
I suggest you to use XeLaTeX with UTF-8 encoding and fontspec for direct character inputing. Charis SIL and Brill fonts are enhanced so as to handle diacritic stacking. SIL distributes an IPA keyboard which lets you enter diacritics or you can use the Characters Map in windows.
Here's a code sample with output.
\documentclass{article}
\usepackage{fontspec}
...
14
Simply \c{c}, no space.
I believe you are trying a space between \c and {c}.
14
A modification of the \dddot macro of amsmath:
\documentclass{article}
\newcommand\ringring[1]{%
{% make an Ord atom
\mathop{\kern0pt #1}\limits^{% set a box over the variable
\vbox to-1.85ex{
\kern-2ex % lower the ring accents
\hbox to 0pt{\hss\normalfont\kern.1em \r{}\kern-.45em \r{}\hss}%
\vss % fill
}% end of \vbox
...
answered Mar 10 '14 at 20:37
egreg
890k111111 gold badges22732273 silver badges37183718 bronze badges
14
Some low level TeX is the easiest way:
\documentclass{article}
\makeatletter
\newcommand{\generic}{\textsf{Gener\istar c}}
\newcommand{\istar}{%
\leavevmode
\vbox{%
\offinterlineskip
\ialign{\hfil##\hfil\cr\hidewidth$\scriptstyle\star$\hidewidth\cr\i\cr}%
}%
}
\makeatother
\begin{document}
\Large \generic
\normalsize \generic
\...
answered Sep 29 '15 at 8:58
egreg
890k111111 gold badges22732273 silver badges37183718 bronze badges
14
Line 84 of latex/base/tuenc.def is
\relax\detokenize{#2}^^a0\else#2\fi
Please edit to say
\if\relax\detokenize{#2}\relax^^a0\else#2\fi
I'll get an update to the release this evening, sorry.
answered Feb 22 '17 at 20:53
David Carlisle
596k5151 gold badges13481348 silver badges21412141 bronze badges
13
I've had a similar problem, but I've "solved" it.
Online some people seemed to suggest this is to do with hyperref, but, I'm not convinced.
Loading hyperref last had no effect whatsoever.
In the .tex file I had:
\begin{proposition}\label{prop:amG delta in amG delta K}
\begin{enumerate}
\item
This formats so that the 1. of the \item is right next to the "...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
accents × 669math-mode × 143
fonts × 63
xetex × 60
characters × 52
symbols × 46
unicode × 41
input-encodings × 36
luatex × 29
font-encodings × 23
macros × 21
bibtex × 20
fontspec × 20
spacing × 18
pdftex × 18
amsmath × 16
french × 16
errors × 15
greek × 15
biblatex × 12
hyperref × 10
babel × 10
unicode-math × 10
bibliographies × 9
languages × 9