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









share|improve this question


















  • 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 vs foo $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















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









share|improve this question


















  • 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 vs foo $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













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









share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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 vs foo $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




    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 vs foo $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










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}


$delta$ !



(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}


enter image description here



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






share|improve this answer



















  • 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













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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
































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}


$delta$ !



(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}


enter image description here



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






share|improve this answer



















  • 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

















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}


$delta$ !



(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}


enter image description here



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






share|improve this answer



















  • 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















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}


$delta$ !



(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}


enter image description here



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






share|improve this answer














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}


$delta$ !



(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}


enter image description here



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







share|improve this answer














share|improve this answer



share|improve this answer








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
















  • 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




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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




















































































Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents