The best way to define greek letters in text mode
up vote
2
down vote
favorite
I would like to know which way is suited for defining a greek letter in text mode (e.g. delta). Is it:
newcommand{deltat} {ensuremath{delta}}
and you have to use deltat
instead of delta
or
usepackage{letltxmacro}
LetLtxMacro{old}{delta}
renewcommand{delta}{ensuremath{old}}
pdftex greek
|
show 1 more comment
up vote
2
down vote
favorite
I would like to know which way is suited for defining a greek letter in text mode (e.g. delta). Is it:
newcommand{deltat} {ensuremath{delta}}
and you have to use deltat
instead of delta
or
usepackage{letltxmacro}
LetLtxMacro{old}{delta}
renewcommand{delta}{ensuremath{old}}
pdftex greek
3
I actually find it simpler just to type $delta$ in text mode. Welcome to the site.
– Steven B. Segletes
yesterday
But I would like to make delta in text, it's 2 fewer symbols tho.
– Bast
yesterday
1
If keystrokes were the issue, you couldnewcommand?{ensuremath{delta}}
...but would that really make your document readable? I don't recommend it.
– Steven B. Segletes
yesterday
1
Considerfoo delta{} bar
vsfoo $delta$ bar
. That is the exact same number of keystrokes.
– Henri Menke
yesterday
2
your question isn't clear, do you want to enter a mathematical greek variablem s $delta$ or do you actually want to type Greek Γειά σου Κόσμε the math Greek font is unsuitable for text use just as $hello world$ is not a suitable fromt to type text italic.
– David Carlisle
yesterday
|
show 1 more comment
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I would like to know which way is suited for defining a greek letter in text mode (e.g. delta). Is it:
newcommand{deltat} {ensuremath{delta}}
and you have to use deltat
instead of delta
or
usepackage{letltxmacro}
LetLtxMacro{old}{delta}
renewcommand{delta}{ensuremath{old}}
pdftex greek
I would like to know which way is suited for defining a greek letter in text mode (e.g. delta). Is it:
newcommand{deltat} {ensuremath{delta}}
and you have to use deltat
instead of delta
or
usepackage{letltxmacro}
LetLtxMacro{old}{delta}
renewcommand{delta}{ensuremath{old}}
pdftex greek
pdftex greek
asked yesterday
Bast
132
132
3
I actually find it simpler just to type $delta$ in text mode. Welcome to the site.
– Steven B. Segletes
yesterday
But I would like to make delta in text, it's 2 fewer symbols tho.
– Bast
yesterday
1
If keystrokes were the issue, you couldnewcommand?{ensuremath{delta}}
...but would that really make your document readable? I don't recommend it.
– Steven B. Segletes
yesterday
1
Considerfoo delta{} bar
vsfoo $delta$ bar
. That is the exact same number of keystrokes.
– Henri Menke
yesterday
2
your question isn't clear, do you want to enter a mathematical greek variablem s $delta$ or do you actually want to type Greek Γειά σου Κόσμε the math Greek font is unsuitable for text use just as $hello world$ is not a suitable fromt to type text italic.
– David Carlisle
yesterday
|
show 1 more comment
3
I actually find it simpler just to type $delta$ in text mode. Welcome to the site.
– Steven B. Segletes
yesterday
But I would like to make delta in text, it's 2 fewer symbols tho.
– Bast
yesterday
1
If keystrokes were the issue, you couldnewcommand?{ensuremath{delta}}
...but would that really make your document readable? I don't recommend it.
– Steven B. Segletes
yesterday
1
Considerfoo delta{} bar
vsfoo $delta$ bar
. That is the exact same number of keystrokes.
– Henri Menke
yesterday
2
your question isn't clear, do you want to enter a mathematical greek variablem s $delta$ or do you actually want to type Greek Γειά σου Κόσμε the math Greek font is unsuitable for text use just as $hello world$ is not a suitable fromt to type text italic.
– David Carlisle
yesterday
3
3
I actually find it simpler just to type $delta$ in text mode. Welcome to the site.
– Steven B. Segletes
yesterday
I actually find it simpler just to type $delta$ in text mode. Welcome to the site.
– Steven B. Segletes
yesterday
But I would like to make delta in text, it's 2 fewer symbols tho.
– Bast
yesterday
But I would like to make delta in text, it's 2 fewer symbols tho.
– Bast
yesterday
1
1
If keystrokes were the issue, you could
newcommand?{ensuremath{delta}}
...but would that really make your document readable? I don't recommend it.– Steven B. Segletes
yesterday
If keystrokes were the issue, you could
newcommand?{ensuremath{delta}}
...but would that really make your document readable? I don't recommend it.– Steven B. Segletes
yesterday
1
1
Consider
foo delta{} bar
vs foo $delta$ bar
. That is the exact same number of keystrokes.– Henri Menke
yesterday
Consider
foo delta{} bar
vs foo $delta$ bar
. That is the exact same number of keystrokes.– Henri Menke
yesterday
2
2
your question isn't clear, do you want to enter a mathematical greek variablem s $delta$ or do you actually want to type Greek Γειά σου Κόσμε the math Greek font is unsuitable for text use just as $hello world$ is not a suitable fromt to type text italic.
– David Carlisle
yesterday
your question isn't clear, do you want to enter a mathematical greek variablem s $delta$ or do you actually want to type Greek Γειά σου Κόσμε the math Greek font is unsuitable for text use just as $hello world$ is not a suitable fromt to type text italic.
– David Carlisle
yesterday
|
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
2
down vote
What about...
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp}
DeclareUnicodeCharacter{3B4}{ensuremath{delta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
(to find the code, you use a plain δ in your input, and you have the nice error:
lalla.tex|12 error| Package inputenc Error: Unicode char δ (U+3B4)
...letting TeX itself telling you the code).
If what you want is a text-like delta:
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp,upgreek}
DeclareUnicodeCharacter{3B4}{ensuremath{updelta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
Clearly, you need a nice way to input it: I have a personal keymap that let me use AltǴr to emit all the greek unicode letters...
Clearly, this is just for typing the odd Greek letter alone in math mode inside text. For even a bit more complex formulas, using $...$
is better; and for typing Greek extensively, you should use babel
and/or the unicode engines with an appropriate font. (Thanks to David for the tip).
2
you should make it clear that this is only for mathematical Greek, with single letter variables, for textual greek you'd want the LGR font encoding not T1 and probably babel greek support for hyphenation etc.
– David Carlisle
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
What about...
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp}
DeclareUnicodeCharacter{3B4}{ensuremath{delta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
(to find the code, you use a plain δ in your input, and you have the nice error:
lalla.tex|12 error| Package inputenc Error: Unicode char δ (U+3B4)
...letting TeX itself telling you the code).
If what you want is a text-like delta:
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp,upgreek}
DeclareUnicodeCharacter{3B4}{ensuremath{updelta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
Clearly, you need a nice way to input it: I have a personal keymap that let me use AltǴr to emit all the greek unicode letters...
Clearly, this is just for typing the odd Greek letter alone in math mode inside text. For even a bit more complex formulas, using $...$
is better; and for typing Greek extensively, you should use babel
and/or the unicode engines with an appropriate font. (Thanks to David for the tip).
2
you should make it clear that this is only for mathematical Greek, with single letter variables, for textual greek you'd want the LGR font encoding not T1 and probably babel greek support for hyphenation etc.
– David Carlisle
yesterday
add a comment |
up vote
2
down vote
What about...
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp}
DeclareUnicodeCharacter{3B4}{ensuremath{delta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
(to find the code, you use a plain δ in your input, and you have the nice error:
lalla.tex|12 error| Package inputenc Error: Unicode char δ (U+3B4)
...letting TeX itself telling you the code).
If what you want is a text-like delta:
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp,upgreek}
DeclareUnicodeCharacter{3B4}{ensuremath{updelta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
Clearly, you need a nice way to input it: I have a personal keymap that let me use AltǴr to emit all the greek unicode letters...
Clearly, this is just for typing the odd Greek letter alone in math mode inside text. For even a bit more complex formulas, using $...$
is better; and for typing Greek extensively, you should use babel
and/or the unicode engines with an appropriate font. (Thanks to David for the tip).
2
you should make it clear that this is only for mathematical Greek, with single letter variables, for textual greek you'd want the LGR font encoding not T1 and probably babel greek support for hyphenation etc.
– David Carlisle
yesterday
add a comment |
up vote
2
down vote
up vote
2
down vote
What about...
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp}
DeclareUnicodeCharacter{3B4}{ensuremath{delta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
(to find the code, you use a plain δ in your input, and you have the nice error:
lalla.tex|12 error| Package inputenc Error: Unicode char δ (U+3B4)
...letting TeX itself telling you the code).
If what you want is a text-like delta:
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp,upgreek}
DeclareUnicodeCharacter{3B4}{ensuremath{updelta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
Clearly, you need a nice way to input it: I have a personal keymap that let me use AltǴr to emit all the greek unicode letters...
Clearly, this is just for typing the odd Greek letter alone in math mode inside text. For even a bit more complex formulas, using $...$
is better; and for typing Greek extensively, you should use babel
and/or the unicode engines with an appropriate font. (Thanks to David for the tip).
What about...
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp}
DeclareUnicodeCharacter{3B4}{ensuremath{delta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
(to find the code, you use a plain δ in your input, and you have the nice error:
lalla.tex|12 error| Package inputenc Error: Unicode char δ (U+3B4)
...letting TeX itself telling you the code).
If what you want is a text-like delta:
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{textcomp,upgreek}
DeclareUnicodeCharacter{3B4}{ensuremath{updelta}}
% use http://shapecatcher.com/ to find the char
% or https://w3c.github.io/xml-entities/unicode-names.html
begin{document}
This is δ.
end{document}
Clearly, you need a nice way to input it: I have a personal keymap that let me use AltǴr to emit all the greek unicode letters...
Clearly, this is just for typing the odd Greek letter alone in math mode inside text. For even a bit more complex formulas, using $...$
is better; and for typing Greek extensively, you should use babel
and/or the unicode engines with an appropriate font. (Thanks to David for the tip).
edited 20 hours ago
answered yesterday
Rmano
7,33221647
7,33221647
2
you should make it clear that this is only for mathematical Greek, with single letter variables, for textual greek you'd want the LGR font encoding not T1 and probably babel greek support for hyphenation etc.
– David Carlisle
yesterday
add a comment |
2
you should make it clear that this is only for mathematical Greek, with single letter variables, for textual greek you'd want the LGR font encoding not T1 and probably babel greek support for hyphenation etc.
– David Carlisle
yesterday
2
2
you should make it clear that this is only for mathematical Greek, with single letter variables, for textual greek you'd want the LGR font encoding not T1 and probably babel greek support for hyphenation etc.
– David Carlisle
yesterday
you should make it clear that this is only for mathematical Greek, with single letter variables, for textual greek you'd want the LGR font encoding not T1 and probably babel greek support for hyphenation etc.
– David Carlisle
yesterday
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459658%2fthe-best-way-to-define-greek-letters-in-text-mode%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3
I actually find it simpler just to type $delta$ in text mode. Welcome to the site.
– Steven B. Segletes
yesterday
But I would like to make delta in text, it's 2 fewer symbols tho.
– Bast
yesterday
1
If keystrokes were the issue, you could
newcommand?{ensuremath{delta}}
...but would that really make your document readable? I don't recommend it.– Steven B. Segletes
yesterday
1
Consider
foo delta{} bar
vsfoo $delta$ bar
. That is the exact same number of keystrokes.– Henri Menke
yesterday
2
your question isn't clear, do you want to enter a mathematical greek variablem s $delta$ or do you actually want to type Greek Γειά σου Κόσμε the math Greek font is unsuitable for text use just as $hello world$ is not a suitable fromt to type text italic.
– David Carlisle
yesterday