Glossaries custom style overfull and underfull alignment












0















I am reusing my custom glossaries style (based on this example) and I found out some issues lately.



I want to have a fixed spacing for both columns for a clean alignment.



This is the style I use:



newglossarystyle{mystyle}{
setglossarystyle{long}
renewenvironment{theglossary}
{begin{longtable}{p{0.25textwidth} p{0.7textwidth}}}
{end{longtable}}
}


Here are two problems. As you can see, the total width of the longtable isn't 1, but 0.95 (otherwise the text will stick out, pretty weird)



The other problem I have is that I get overfull and underfull hbox errors with these kind of glossaries:



newglossaryentry{First}
{
name={A glossary with a long name such as this one},
description={And a small description}
}
newglossaryentry{Second}
{
name={Small name},
description={And a long description, because this is just a test glossary. You know...}
}


The errors I get (don't mind the lines):



Underfull hbox (badness 1303) in paragraph at lines 3--5 output.gls, line 3
Overfull hbox (2.09003pt too wide) in alignment at lines 2--9 output.gls, line 2


How can I fix this?










share|improve this question

























  • Tabulars have also space between, before and after the columns. Use e.g. begin{longtable}{p{0.25textwidth} p{dimexpr0.75textwidth-4tabcolsep}} to get a textwidth wide tabular. For the other question you will have to make a small, complete example.

    – Ulrike Fischer
    Mar 11 at 13:11











  • I fixed it by using {p{0.25textwidth} p{0.65textwidth}} Now it's also aligned with the list of figures and tables

    – FPSUsername
    Mar 11 at 13:26
















0















I am reusing my custom glossaries style (based on this example) and I found out some issues lately.



I want to have a fixed spacing for both columns for a clean alignment.



This is the style I use:



newglossarystyle{mystyle}{
setglossarystyle{long}
renewenvironment{theglossary}
{begin{longtable}{p{0.25textwidth} p{0.7textwidth}}}
{end{longtable}}
}


Here are two problems. As you can see, the total width of the longtable isn't 1, but 0.95 (otherwise the text will stick out, pretty weird)



The other problem I have is that I get overfull and underfull hbox errors with these kind of glossaries:



newglossaryentry{First}
{
name={A glossary with a long name such as this one},
description={And a small description}
}
newglossaryentry{Second}
{
name={Small name},
description={And a long description, because this is just a test glossary. You know...}
}


The errors I get (don't mind the lines):



Underfull hbox (badness 1303) in paragraph at lines 3--5 output.gls, line 3
Overfull hbox (2.09003pt too wide) in alignment at lines 2--9 output.gls, line 2


How can I fix this?










share|improve this question

























  • Tabulars have also space between, before and after the columns. Use e.g. begin{longtable}{p{0.25textwidth} p{dimexpr0.75textwidth-4tabcolsep}} to get a textwidth wide tabular. For the other question you will have to make a small, complete example.

    – Ulrike Fischer
    Mar 11 at 13:11











  • I fixed it by using {p{0.25textwidth} p{0.65textwidth}} Now it's also aligned with the list of figures and tables

    – FPSUsername
    Mar 11 at 13:26














0












0








0








I am reusing my custom glossaries style (based on this example) and I found out some issues lately.



I want to have a fixed spacing for both columns for a clean alignment.



This is the style I use:



newglossarystyle{mystyle}{
setglossarystyle{long}
renewenvironment{theglossary}
{begin{longtable}{p{0.25textwidth} p{0.7textwidth}}}
{end{longtable}}
}


Here are two problems. As you can see, the total width of the longtable isn't 1, but 0.95 (otherwise the text will stick out, pretty weird)



The other problem I have is that I get overfull and underfull hbox errors with these kind of glossaries:



newglossaryentry{First}
{
name={A glossary with a long name such as this one},
description={And a small description}
}
newglossaryentry{Second}
{
name={Small name},
description={And a long description, because this is just a test glossary. You know...}
}


The errors I get (don't mind the lines):



Underfull hbox (badness 1303) in paragraph at lines 3--5 output.gls, line 3
Overfull hbox (2.09003pt too wide) in alignment at lines 2--9 output.gls, line 2


How can I fix this?










share|improve this question
















I am reusing my custom glossaries style (based on this example) and I found out some issues lately.



I want to have a fixed spacing for both columns for a clean alignment.



This is the style I use:



newglossarystyle{mystyle}{
setglossarystyle{long}
renewenvironment{theglossary}
{begin{longtable}{p{0.25textwidth} p{0.7textwidth}}}
{end{longtable}}
}


Here are two problems. As you can see, the total width of the longtable isn't 1, but 0.95 (otherwise the text will stick out, pretty weird)



The other problem I have is that I get overfull and underfull hbox errors with these kind of glossaries:



newglossaryentry{First}
{
name={A glossary with a long name such as this one},
description={And a small description}
}
newglossaryentry{Second}
{
name={Small name},
description={And a long description, because this is just a test glossary. You know...}
}


The errors I get (don't mind the lines):



Underfull hbox (badness 1303) in paragraph at lines 3--5 output.gls, line 3
Overfull hbox (2.09003pt too wide) in alignment at lines 2--9 output.gls, line 2


How can I fix this?







glossaries






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 11 at 12:40









JouleV

6,68521951




6,68521951










asked Mar 11 at 12:27









FPSUsernameFPSUsername

11




11













  • Tabulars have also space between, before and after the columns. Use e.g. begin{longtable}{p{0.25textwidth} p{dimexpr0.75textwidth-4tabcolsep}} to get a textwidth wide tabular. For the other question you will have to make a small, complete example.

    – Ulrike Fischer
    Mar 11 at 13:11











  • I fixed it by using {p{0.25textwidth} p{0.65textwidth}} Now it's also aligned with the list of figures and tables

    – FPSUsername
    Mar 11 at 13:26



















  • Tabulars have also space between, before and after the columns. Use e.g. begin{longtable}{p{0.25textwidth} p{dimexpr0.75textwidth-4tabcolsep}} to get a textwidth wide tabular. For the other question you will have to make a small, complete example.

    – Ulrike Fischer
    Mar 11 at 13:11











  • I fixed it by using {p{0.25textwidth} p{0.65textwidth}} Now it's also aligned with the list of figures and tables

    – FPSUsername
    Mar 11 at 13:26

















Tabulars have also space between, before and after the columns. Use e.g. begin{longtable}{p{0.25textwidth} p{dimexpr0.75textwidth-4tabcolsep}} to get a textwidth wide tabular. For the other question you will have to make a small, complete example.

– Ulrike Fischer
Mar 11 at 13:11





Tabulars have also space between, before and after the columns. Use e.g. begin{longtable}{p{0.25textwidth} p{dimexpr0.75textwidth-4tabcolsep}} to get a textwidth wide tabular. For the other question you will have to make a small, complete example.

– Ulrike Fischer
Mar 11 at 13:11













I fixed it by using {p{0.25textwidth} p{0.65textwidth}} Now it's also aligned with the list of figures and tables

– FPSUsername
Mar 11 at 13:26





I fixed it by using {p{0.25textwidth} p{0.65textwidth}} Now it's also aligned with the list of figures and tables

– FPSUsername
Mar 11 at 13:26










0






active

oldest

votes











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',
autoActivateHeartbeat: false,
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%2f478885%2fglossaries-custom-style-overfull-and-underfull-alignment%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478885%2fglossaries-custom-style-overfull-and-underfull-alignment%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

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?