d{} adjust height











up vote
6
down vote

favorite












I need to put a single dot below some letters as diacritical signs. That's what I found d{<text>} for. Though, the dot is not placed at the exact same height/depth below every letter (indeed it's Greek letters). Just try the following MWE.



I've already found some kind of solution for my problem (https://tex.stackexchange.com/a/437174/164672).



Though, this is not very comfortable. So my question is: Is there an easier way to adjust the height/depth of these dots below the greek letters? (Perhaps defining a new length that can be changed later...)



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}
d{greek{a}} d{greek{b}}
end{document}









share|improve this question














bumped to the homepage by Community 44 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Did you check stackengine package?
    – Sina Ahmadi
    Nov 13 at 18:31















up vote
6
down vote

favorite












I need to put a single dot below some letters as diacritical signs. That's what I found d{<text>} for. Though, the dot is not placed at the exact same height/depth below every letter (indeed it's Greek letters). Just try the following MWE.



I've already found some kind of solution for my problem (https://tex.stackexchange.com/a/437174/164672).



Though, this is not very comfortable. So my question is: Is there an easier way to adjust the height/depth of these dots below the greek letters? (Perhaps defining a new length that can be changed later...)



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}
d{greek{a}} d{greek{b}}
end{document}









share|improve this question














bumped to the homepage by Community 44 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Did you check stackengine package?
    – Sina Ahmadi
    Nov 13 at 18:31













up vote
6
down vote

favorite









up vote
6
down vote

favorite











I need to put a single dot below some letters as diacritical signs. That's what I found d{<text>} for. Though, the dot is not placed at the exact same height/depth below every letter (indeed it's Greek letters). Just try the following MWE.



I've already found some kind of solution for my problem (https://tex.stackexchange.com/a/437174/164672).



Though, this is not very comfortable. So my question is: Is there an easier way to adjust the height/depth of these dots below the greek letters? (Perhaps defining a new length that can be changed later...)



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}
d{greek{a}} d{greek{b}}
end{document}









share|improve this question













I need to put a single dot below some letters as diacritical signs. That's what I found d{<text>} for. Though, the dot is not placed at the exact same height/depth below every letter (indeed it's Greek letters). Just try the following MWE.



I've already found some kind of solution for my problem (https://tex.stackexchange.com/a/437174/164672).



Though, this is not very comfortable. So my question is: Is there an easier way to adjust the height/depth of these dots below the greek letters? (Perhaps defining a new length that can be changed later...)



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}
d{greek{a}} d{greek{b}}
end{document}






fonts symbols greek






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 at 17:29









rsa-krypto

5716




5716





bumped to the homepage by Community 44 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 44 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Did you check stackengine package?
    – Sina Ahmadi
    Nov 13 at 18:31


















  • Did you check stackengine package?
    – Sina Ahmadi
    Nov 13 at 18:31
















Did you check stackengine package?
– Sina Ahmadi
Nov 13 at 18:31




Did you check stackengine package?
– Sina Ahmadi
Nov 13 at 18:31










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Following the response that you linked to, if you want to be able to change the gap between the diacritical marks and the letter, you can use stackengine package. Here is a minimal working example:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
usepackage{stackengine}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}

defalphael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{a}}}
defbetael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{b}}}
defdeltael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{d}}}
defgammael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{g}}}

alphael betael deltael gammael

end{document}


Which yields the following output:



enter image description here



Your original MWE produces the following:



enter image description here






share|improve this answer





















  • Thanks for your quick response. How did you find these values (-7.5pt and -5 pt)? If I use the template that my publisher gave me, your solutions does not work anymore. The dots are not typeset at the same height/depth. I guess this is due to a different font, that is used in the template. Isn't there a sfaer way to really make sure that the dots are all at the same level --- indepent on what font is used? Maybe something that uses the current baseline...
    – rsa-krypto
    Nov 14 at 14:29












  • @rsa-krypto Well, as the output shows, in terms of usefulness, this answer solves your problem but still needs a few setups based on your template and your font. Do you need to add diacritical signs in this way to a large set of letters?
    – Sina Ahmadi
    Nov 15 at 12:54










  • In total it's 95 letters. Some of them contain diacritics above.
    – rsa-krypto
    Nov 15 at 13:04











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%2f459815%2fd-adjust-height%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Following the response that you linked to, if you want to be able to change the gap between the diacritical marks and the letter, you can use stackengine package. Here is a minimal working example:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
usepackage{stackengine}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}

defalphael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{a}}}
defbetael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{b}}}
defdeltael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{d}}}
defgammael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{g}}}

alphael betael deltael gammael

end{document}


Which yields the following output:



enter image description here



Your original MWE produces the following:



enter image description here






share|improve this answer





















  • Thanks for your quick response. How did you find these values (-7.5pt and -5 pt)? If I use the template that my publisher gave me, your solutions does not work anymore. The dots are not typeset at the same height/depth. I guess this is due to a different font, that is used in the template. Isn't there a sfaer way to really make sure that the dots are all at the same level --- indepent on what font is used? Maybe something that uses the current baseline...
    – rsa-krypto
    Nov 14 at 14:29












  • @rsa-krypto Well, as the output shows, in terms of usefulness, this answer solves your problem but still needs a few setups based on your template and your font. Do you need to add diacritical signs in this way to a large set of letters?
    – Sina Ahmadi
    Nov 15 at 12:54










  • In total it's 95 letters. Some of them contain diacritics above.
    – rsa-krypto
    Nov 15 at 13:04















up vote
0
down vote













Following the response that you linked to, if you want to be able to change the gap between the diacritical marks and the letter, you can use stackengine package. Here is a minimal working example:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
usepackage{stackengine}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}

defalphael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{a}}}
defbetael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{b}}}
defdeltael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{d}}}
defgammael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{g}}}

alphael betael deltael gammael

end{document}


Which yields the following output:



enter image description here



Your original MWE produces the following:



enter image description here






share|improve this answer





















  • Thanks for your quick response. How did you find these values (-7.5pt and -5 pt)? If I use the template that my publisher gave me, your solutions does not work anymore. The dots are not typeset at the same height/depth. I guess this is due to a different font, that is used in the template. Isn't there a sfaer way to really make sure that the dots are all at the same level --- indepent on what font is used? Maybe something that uses the current baseline...
    – rsa-krypto
    Nov 14 at 14:29












  • @rsa-krypto Well, as the output shows, in terms of usefulness, this answer solves your problem but still needs a few setups based on your template and your font. Do you need to add diacritical signs in this way to a large set of letters?
    – Sina Ahmadi
    Nov 15 at 12:54










  • In total it's 95 letters. Some of them contain diacritics above.
    – rsa-krypto
    Nov 15 at 13:04













up vote
0
down vote










up vote
0
down vote









Following the response that you linked to, if you want to be able to change the gap between the diacritical marks and the letter, you can use stackengine package. Here is a minimal working example:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
usepackage{stackengine}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}

defalphael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{a}}}
defbetael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{b}}}
defdeltael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{d}}}
defgammael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{g}}}

alphael betael deltael gammael

end{document}


Which yields the following output:



enter image description here



Your original MWE produces the following:



enter image description here






share|improve this answer












Following the response that you linked to, if you want to be able to change the gap between the diacritical marks and the letter, you can use stackengine package. Here is a minimal working example:



documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[greek, english]{babel}
usepackage{stackengine}
newcommand{greek}[1]{begin{otherlanguage*}{greek}#1end{otherlanguage*}}
begin{document}

defalphael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{a}}}
defbetael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{b}}}
defdeltael{stackinset{c}{0pt}{b}{-7.5pt}{.}{greek{d}}}
defgammael{stackinset{c}{0pt}{b}{-5pt}{.}{greek{g}}}

alphael betael deltael gammael

end{document}


Which yields the following output:



enter image description here



Your original MWE produces the following:



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 at 18:41









Sina Ahmadi

55228




55228












  • Thanks for your quick response. How did you find these values (-7.5pt and -5 pt)? If I use the template that my publisher gave me, your solutions does not work anymore. The dots are not typeset at the same height/depth. I guess this is due to a different font, that is used in the template. Isn't there a sfaer way to really make sure that the dots are all at the same level --- indepent on what font is used? Maybe something that uses the current baseline...
    – rsa-krypto
    Nov 14 at 14:29












  • @rsa-krypto Well, as the output shows, in terms of usefulness, this answer solves your problem but still needs a few setups based on your template and your font. Do you need to add diacritical signs in this way to a large set of letters?
    – Sina Ahmadi
    Nov 15 at 12:54










  • In total it's 95 letters. Some of them contain diacritics above.
    – rsa-krypto
    Nov 15 at 13:04


















  • Thanks for your quick response. How did you find these values (-7.5pt and -5 pt)? If I use the template that my publisher gave me, your solutions does not work anymore. The dots are not typeset at the same height/depth. I guess this is due to a different font, that is used in the template. Isn't there a sfaer way to really make sure that the dots are all at the same level --- indepent on what font is used? Maybe something that uses the current baseline...
    – rsa-krypto
    Nov 14 at 14:29












  • @rsa-krypto Well, as the output shows, in terms of usefulness, this answer solves your problem but still needs a few setups based on your template and your font. Do you need to add diacritical signs in this way to a large set of letters?
    – Sina Ahmadi
    Nov 15 at 12:54










  • In total it's 95 letters. Some of them contain diacritics above.
    – rsa-krypto
    Nov 15 at 13:04
















Thanks for your quick response. How did you find these values (-7.5pt and -5 pt)? If I use the template that my publisher gave me, your solutions does not work anymore. The dots are not typeset at the same height/depth. I guess this is due to a different font, that is used in the template. Isn't there a sfaer way to really make sure that the dots are all at the same level --- indepent on what font is used? Maybe something that uses the current baseline...
– rsa-krypto
Nov 14 at 14:29






Thanks for your quick response. How did you find these values (-7.5pt and -5 pt)? If I use the template that my publisher gave me, your solutions does not work anymore. The dots are not typeset at the same height/depth. I guess this is due to a different font, that is used in the template. Isn't there a sfaer way to really make sure that the dots are all at the same level --- indepent on what font is used? Maybe something that uses the current baseline...
– rsa-krypto
Nov 14 at 14:29














@rsa-krypto Well, as the output shows, in terms of usefulness, this answer solves your problem but still needs a few setups based on your template and your font. Do you need to add diacritical signs in this way to a large set of letters?
– Sina Ahmadi
Nov 15 at 12:54




@rsa-krypto Well, as the output shows, in terms of usefulness, this answer solves your problem but still needs a few setups based on your template and your font. Do you need to add diacritical signs in this way to a large set of letters?
– Sina Ahmadi
Nov 15 at 12:54












In total it's 95 letters. Some of them contain diacritics above.
– rsa-krypto
Nov 15 at 13:04




In total it's 95 letters. Some of them contain diacritics above.
– rsa-krypto
Nov 15 at 13:04


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459815%2fd-adjust-height%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Entries order in /etc/network/interfaces

新発田市

Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)