Horizontal list with omitted separator at line end
I have created a new inline list style with enumitem
that has no bullets and separates each item with a middle dot:
documentclass{article}
newcommand{middot}{~textperiodcentered~}
usepackage[inline]{enumitem}
newlist{skills}{itemize*}{1}
setlist[skills]{label={}, afterlabel={}, itemjoin=middot}
begin{document}
begin{skills}
item Something
item Another thing
item Foobar
item etc.
end{skills}
end{document}
This works great, but when the list of items overruns the line width, then it's possible that LaTeX will split on my middot
separator. Which looks a bit like this (imagine my ASCII asterisks are textperiodcentered
characters!):
| Something * Another thing * |
| Foobar * etc. |
I can get around this by judiciously choosing the order and the text in each of the item
s to avoid this. What would be nice, however, is that in this circumstance, LaTeX replaces the hanging middle dot with a line feed automatically (stretching the character spacing of that line, appropriately), without any fussy manual intervention. So the above might look like this (again, use your imagination!):
| Something * Another thing |
| Foobar * etc. |
(The case where the item text itself gets wrapped to the next line is fine. It's just the hanging middle dots that don't look nice.)
How could one achieve this?
line-breaking itemize enumitem
add a comment |
I have created a new inline list style with enumitem
that has no bullets and separates each item with a middle dot:
documentclass{article}
newcommand{middot}{~textperiodcentered~}
usepackage[inline]{enumitem}
newlist{skills}{itemize*}{1}
setlist[skills]{label={}, afterlabel={}, itemjoin=middot}
begin{document}
begin{skills}
item Something
item Another thing
item Foobar
item etc.
end{skills}
end{document}
This works great, but when the list of items overruns the line width, then it's possible that LaTeX will split on my middot
separator. Which looks a bit like this (imagine my ASCII asterisks are textperiodcentered
characters!):
| Something * Another thing * |
| Foobar * etc. |
I can get around this by judiciously choosing the order and the text in each of the item
s to avoid this. What would be nice, however, is that in this circumstance, LaTeX replaces the hanging middle dot with a line feed automatically (stretching the character spacing of that line, appropriately), without any fussy manual intervention. So the above might look like this (again, use your imagination!):
| Something * Another thing |
| Foobar * etc. |
(The case where the item text itself gets wrapped to the next line is fine. It's just the hanging middle dots that don't look nice.)
How could one achieve this?
line-breaking itemize enumitem
it would be easier to test possible answers if you edited the example to be an example of the problem.
– David Carlisle
8 hours ago
add a comment |
I have created a new inline list style with enumitem
that has no bullets and separates each item with a middle dot:
documentclass{article}
newcommand{middot}{~textperiodcentered~}
usepackage[inline]{enumitem}
newlist{skills}{itemize*}{1}
setlist[skills]{label={}, afterlabel={}, itemjoin=middot}
begin{document}
begin{skills}
item Something
item Another thing
item Foobar
item etc.
end{skills}
end{document}
This works great, but when the list of items overruns the line width, then it's possible that LaTeX will split on my middot
separator. Which looks a bit like this (imagine my ASCII asterisks are textperiodcentered
characters!):
| Something * Another thing * |
| Foobar * etc. |
I can get around this by judiciously choosing the order and the text in each of the item
s to avoid this. What would be nice, however, is that in this circumstance, LaTeX replaces the hanging middle dot with a line feed automatically (stretching the character spacing of that line, appropriately), without any fussy manual intervention. So the above might look like this (again, use your imagination!):
| Something * Another thing |
| Foobar * etc. |
(The case where the item text itself gets wrapped to the next line is fine. It's just the hanging middle dots that don't look nice.)
How could one achieve this?
line-breaking itemize enumitem
I have created a new inline list style with enumitem
that has no bullets and separates each item with a middle dot:
documentclass{article}
newcommand{middot}{~textperiodcentered~}
usepackage[inline]{enumitem}
newlist{skills}{itemize*}{1}
setlist[skills]{label={}, afterlabel={}, itemjoin=middot}
begin{document}
begin{skills}
item Something
item Another thing
item Foobar
item etc.
end{skills}
end{document}
This works great, but when the list of items overruns the line width, then it's possible that LaTeX will split on my middot
separator. Which looks a bit like this (imagine my ASCII asterisks are textperiodcentered
characters!):
| Something * Another thing * |
| Foobar * etc. |
I can get around this by judiciously choosing the order and the text in each of the item
s to avoid this. What would be nice, however, is that in this circumstance, LaTeX replaces the hanging middle dot with a line feed automatically (stretching the character spacing of that line, appropriately), without any fussy manual intervention. So the above might look like this (again, use your imagination!):
| Something * Another thing |
| Foobar * etc. |
(The case where the item text itself gets wrapped to the next line is fine. It's just the hanging middle dots that don't look nice.)
How could one achieve this?
line-breaking itemize enumitem
line-breaking itemize enumitem
asked 11 hours ago
XophmeisterXophmeister
1506
1506
it would be easier to test possible answers if you edited the example to be an example of the problem.
– David Carlisle
8 hours ago
add a comment |
it would be easier to test possible answers if you edited the example to be an example of the problem.
– David Carlisle
8 hours ago
it would be easier to test possible answers if you edited the example to be an example of the problem.
– David Carlisle
8 hours ago
it would be easier to test possible answers if you edited the example to be an example of the problem.
– David Carlisle
8 hours ago
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%2f483368%2fhorizontal-list-with-omitted-separator-at-line-end%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%2f483368%2fhorizontal-list-with-omitted-separator-at-line-end%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
it would be easier to test possible answers if you edited the example to be an example of the problem.
– David Carlisle
8 hours ago