Glossaries custom style overfull and underfull alignment
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
add a comment |
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
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
add a comment |
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
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
glossaries
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
add a comment |
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
add a comment |
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
});
}
});
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
Required, but never shown
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
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.
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
Required, but never shown
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
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
Required, but never shown
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
Required, but never shown
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
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
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