Overfull lines in an enumerated-style paragraphmicrotype error with lualatex: “attempt to call field...
Why won't the strings command stop?
Was it really inappropriate to write a pull request for the company I interviewed with?
function only contains jump discontinuity but is not piecewise continuous
Should we avoid writing fiction about historical events without extensive research?
How do you say “my friend is throwing a party, do you wanna come?” in german
Where is the fallacy here?
Are all UTXOs locked by an address spent in a transaction?
How does signal strength relate to bandwidth?
Relationship between the symmetry number of a molecule as used in rotational spectroscopy and point group
What is a term for a function that when called repeatedly, has the same effect as calling once?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Where is this quote about overcoming the impossible said in "Interstellar"?
PTIJ: Is all laundering forbidden during the 9 days?
Is there any relevance to Thor getting his hair cut other than comedic value?
Lock enemy's y-axis when using Vector3.MoveTowards to follow the player
Can an earth elemental drown/bury its opponent underground using earth glide?
Are small insurances worth it
3.5% Interest Student Loan or use all of my savings on Tuition?
Is there a way to find out the age of climbing ropes?
How can I highlight parts in a screenshot
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Wardrobe above a wall with fuse boxes
I can't die. Who am I?
Levi-Civita symbol: 3D matrix
Overfull lines in an enumerated-style paragraph
microtype error with lualatex: “attempt to call field warning a nil value”Overfull hbox with British EnglishHow to break words at paragraph width?Why does TeX prefer an overfull box to hyphenating here?Test if paragraph has an overfull lineHow to change margins when using termcalHow to deal with many overfull hboxes in large document?enumerate ignores right margin in items with long wordsHow to set the fonts of the latex file?Mark lines like overfullHow to remove Overfull hbox (12.0pt too wide) in paragraph at lines 11--11 []
The last item in my enumerate in my itemize list oversteps the margin. I have tried bounding it in {} but didn't work.
My code is as follows:
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}

Here you see the resulting list with the very last point stepping outside the margin.
So my big question is: "How do I make it align as the rest does? Have I overlooked something? Is this normal?"
line-breaking margins hyphenation
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
The last item in my enumerate in my itemize list oversteps the margin. I have tried bounding it in {} but didn't work.
My code is as follows:
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}

Here you see the resulting list with the very last point stepping outside the margin.
So my big question is: "How do I make it align as the rest does? Have I overlooked something? Is this normal?"
line-breaking margins hyphenation
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
That is because TeX, I think, does not recognise that word. Therefore, it treats it as a single word. In reality, the margin is not broken, but it is simply following GB inputs;-).
– Raaja
yesterday
I compiled your code withXeLaTeX, there is no problem.
– ferahfeza
yesterday
2
As always it is a good idea to post a full minimal example, not a sniplet. Missing T1 (if under pdflatex) and missing Danish hyphenation patterns are quite important here.
– daleif
yesterday
2
Also remember that latex will generally not hyphen word containing a hyphen. In Danish we have many such words, so under Danish babel we can use"-to get a hyphen that allows the rest of the word to be hyphenated.
– daleif
yesterday
add a comment |
The last item in my enumerate in my itemize list oversteps the margin. I have tried bounding it in {} but didn't work.
My code is as follows:
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}

Here you see the resulting list with the very last point stepping outside the margin.
So my big question is: "How do I make it align as the rest does? Have I overlooked something? Is this normal?"
line-breaking margins hyphenation
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
The last item in my enumerate in my itemize list oversteps the margin. I have tried bounding it in {} but didn't work.
My code is as follows:
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}

Here you see the resulting list with the very last point stepping outside the margin.
So my big question is: "How do I make it align as the rest does? Have I overlooked something? Is this normal?"
line-breaking margins hyphenation
line-breaking margins hyphenation
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 19 hours ago
JouleV
4,91111139
4,91111139
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
Ole BattingOle Batting
61
61
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Ole Batting is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
That is because TeX, I think, does not recognise that word. Therefore, it treats it as a single word. In reality, the margin is not broken, but it is simply following GB inputs;-).
– Raaja
yesterday
I compiled your code withXeLaTeX, there is no problem.
– ferahfeza
yesterday
2
As always it is a good idea to post a full minimal example, not a sniplet. Missing T1 (if under pdflatex) and missing Danish hyphenation patterns are quite important here.
– daleif
yesterday
2
Also remember that latex will generally not hyphen word containing a hyphen. In Danish we have many such words, so under Danish babel we can use"-to get a hyphen that allows the rest of the word to be hyphenated.
– daleif
yesterday
add a comment |
That is because TeX, I think, does not recognise that word. Therefore, it treats it as a single word. In reality, the margin is not broken, but it is simply following GB inputs;-).
– Raaja
yesterday
I compiled your code withXeLaTeX, there is no problem.
– ferahfeza
yesterday
2
As always it is a good idea to post a full minimal example, not a sniplet. Missing T1 (if under pdflatex) and missing Danish hyphenation patterns are quite important here.
– daleif
yesterday
2
Also remember that latex will generally not hyphen word containing a hyphen. In Danish we have many such words, so under Danish babel we can use"-to get a hyphen that allows the rest of the word to be hyphenated.
– daleif
yesterday
That is because TeX, I think, does not recognise that word. Therefore, it treats it as a single word. In reality, the margin is not broken, but it is simply following GB inputs
;-).– Raaja
yesterday
That is because TeX, I think, does not recognise that word. Therefore, it treats it as a single word. In reality, the margin is not broken, but it is simply following GB inputs
;-).– Raaja
yesterday
I compiled your code with
XeLaTeX, there is no problem.– ferahfeza
yesterday
I compiled your code with
XeLaTeX, there is no problem.– ferahfeza
yesterday
2
2
As always it is a good idea to post a full minimal example, not a sniplet. Missing T1 (if under pdflatex) and missing Danish hyphenation patterns are quite important here.
– daleif
yesterday
As always it is a good idea to post a full minimal example, not a sniplet. Missing T1 (if under pdflatex) and missing Danish hyphenation patterns are quite important here.
– daleif
yesterday
2
2
Also remember that latex will generally not hyphen word containing a hyphen. In Danish we have many such words, so under Danish babel we can use
"- to get a hyphen that allows the rest of the word to be hyphenated.– daleif
yesterday
Also remember that latex will generally not hyphen word containing a hyphen. In Danish we have many such words, so under Danish babel we can use
"- to get a hyphen that allows the rest of the word to be hyphenated.– daleif
yesterday
add a comment |
2 Answers
2
active
oldest
votes
It's because Latex doesn't accept your letters. Just add usepackage[T1]{fontenc} after declaring the class
Don't forget to add that UTF-8 encoding is used by writing this: documentclass[utf8]{article}. It's not obligatory to be the class article, but you must specify [utf8].
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Again edited. Don't -1 because of trivial things like that, please, I'm here since yesterday. Also, if he was loading the package, he wouldn't have that problem. The weird margin is caused by the fact that there are errors when it's building the PDF. I had an OT1 error while compiling. I tried it. I had the same result as OP. I solved the OT1 and the margins are respected.
– Vinccool96
yesterday
add a comment |
Especially when writing in a language other than English, it's an excellent idea to load the babel package with a suitable language option (here: danish, right?). That way, you'll be working with the language-appropriate hyphenation patterns. (LaTeX may be forgiven for not knowing how to hyphenate the word strømforsyningerne if it's assumed to be an English-language word.) It's also a good idea to load the microtype package.
If you use pdfLaTeX, please also be sure to load the fontenc package with the option T1.
The following screenshot was compiled under LuaLaTeX and the Calibri sans-serif font.

documentclass{article}
usepackage[danish]{babel}
usepackage{ifluatex}
ifluatex
usepackage{fontspec}
setsansfont{Calibri} % or some other suitable sans-serif font
usepackage{luatexbase} % see https://tex.stackexchange.com/a/476742/5001
else
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc} % not necessary if your TeX distribution is recent
fi
usepackage{microtype} % optional
setlengthtextwidth{10.75cm} % chosen by trial and error...
begin{document}
sffamily
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}
end{document}
add a comment |
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
});
}
});
Ole Batting is a new contributor. Be nice, and check out our Code of Conduct.
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%2f477925%2foverfull-lines-in-an-enumerated-style-paragraph%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It's because Latex doesn't accept your letters. Just add usepackage[T1]{fontenc} after declaring the class
Don't forget to add that UTF-8 encoding is used by writing this: documentclass[utf8]{article}. It's not obligatory to be the class article, but you must specify [utf8].
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Again edited. Don't -1 because of trivial things like that, please, I'm here since yesterday. Also, if he was loading the package, he wouldn't have that problem. The weird margin is caused by the fact that there are errors when it's building the PDF. I had an OT1 error while compiling. I tried it. I had the same result as OP. I solved the OT1 and the margins are respected.
– Vinccool96
yesterday
add a comment |
It's because Latex doesn't accept your letters. Just add usepackage[T1]{fontenc} after declaring the class
Don't forget to add that UTF-8 encoding is used by writing this: documentclass[utf8]{article}. It's not obligatory to be the class article, but you must specify [utf8].
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Again edited. Don't -1 because of trivial things like that, please, I'm here since yesterday. Also, if he was loading the package, he wouldn't have that problem. The weird margin is caused by the fact that there are errors when it's building the PDF. I had an OT1 error while compiling. I tried it. I had the same result as OP. I solved the OT1 and the margins are respected.
– Vinccool96
yesterday
add a comment |
It's because Latex doesn't accept your letters. Just add usepackage[T1]{fontenc} after declaring the class
Don't forget to add that UTF-8 encoding is used by writing this: documentclass[utf8]{article}. It's not obligatory to be the class article, but you must specify [utf8].
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
It's because Latex doesn't accept your letters. Just add usepackage[T1]{fontenc} after declaring the class
Don't forget to add that UTF-8 encoding is used by writing this: documentclass[utf8]{article}. It's not obligatory to be the class article, but you must specify [utf8].
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited yesterday
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered yesterday
Vinccool96Vinccool96
558
558
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Vinccool96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Again edited. Don't -1 because of trivial things like that, please, I'm here since yesterday. Also, if he was loading the package, he wouldn't have that problem. The weird margin is caused by the fact that there are errors when it's building the PDF. I had an OT1 error while compiling. I tried it. I had the same result as OP. I solved the OT1 and the margins are respected.
– Vinccool96
yesterday
add a comment |
Again edited. Don't -1 because of trivial things like that, please, I'm here since yesterday. Also, if he was loading the package, he wouldn't have that problem. The weird margin is caused by the fact that there are errors when it's building the PDF. I had an OT1 error while compiling. I tried it. I had the same result as OP. I solved the OT1 and the margins are respected.
– Vinccool96
yesterday
Again edited. Don't -1 because of trivial things like that, please, I'm here since yesterday. Also, if he was loading the package, he wouldn't have that problem. The weird margin is caused by the fact that there are errors when it's building the PDF. I had an OT1 error while compiling. I tried it. I had the same result as OP. I solved the OT1 and the margins are respected.
– Vinccool96
yesterday
Again edited. Don't -1 because of trivial things like that, please, I'm here since yesterday. Also, if he was loading the package, he wouldn't have that problem. The weird margin is caused by the fact that there are errors when it's building the PDF. I had an OT1 error while compiling. I tried it. I had the same result as OP. I solved the OT1 and the margins are respected.
– Vinccool96
yesterday
add a comment |
Especially when writing in a language other than English, it's an excellent idea to load the babel package with a suitable language option (here: danish, right?). That way, you'll be working with the language-appropriate hyphenation patterns. (LaTeX may be forgiven for not knowing how to hyphenate the word strømforsyningerne if it's assumed to be an English-language word.) It's also a good idea to load the microtype package.
If you use pdfLaTeX, please also be sure to load the fontenc package with the option T1.
The following screenshot was compiled under LuaLaTeX and the Calibri sans-serif font.

documentclass{article}
usepackage[danish]{babel}
usepackage{ifluatex}
ifluatex
usepackage{fontspec}
setsansfont{Calibri} % or some other suitable sans-serif font
usepackage{luatexbase} % see https://tex.stackexchange.com/a/476742/5001
else
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc} % not necessary if your TeX distribution is recent
fi
usepackage{microtype} % optional
setlengthtextwidth{10.75cm} % chosen by trial and error...
begin{document}
sffamily
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}
end{document}
add a comment |
Especially when writing in a language other than English, it's an excellent idea to load the babel package with a suitable language option (here: danish, right?). That way, you'll be working with the language-appropriate hyphenation patterns. (LaTeX may be forgiven for not knowing how to hyphenate the word strømforsyningerne if it's assumed to be an English-language word.) It's also a good idea to load the microtype package.
If you use pdfLaTeX, please also be sure to load the fontenc package with the option T1.
The following screenshot was compiled under LuaLaTeX and the Calibri sans-serif font.

documentclass{article}
usepackage[danish]{babel}
usepackage{ifluatex}
ifluatex
usepackage{fontspec}
setsansfont{Calibri} % or some other suitable sans-serif font
usepackage{luatexbase} % see https://tex.stackexchange.com/a/476742/5001
else
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc} % not necessary if your TeX distribution is recent
fi
usepackage{microtype} % optional
setlengthtextwidth{10.75cm} % chosen by trial and error...
begin{document}
sffamily
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}
end{document}
add a comment |
Especially when writing in a language other than English, it's an excellent idea to load the babel package with a suitable language option (here: danish, right?). That way, you'll be working with the language-appropriate hyphenation patterns. (LaTeX may be forgiven for not knowing how to hyphenate the word strømforsyningerne if it's assumed to be an English-language word.) It's also a good idea to load the microtype package.
If you use pdfLaTeX, please also be sure to load the fontenc package with the option T1.
The following screenshot was compiled under LuaLaTeX and the Calibri sans-serif font.

documentclass{article}
usepackage[danish]{babel}
usepackage{ifluatex}
ifluatex
usepackage{fontspec}
setsansfont{Calibri} % or some other suitable sans-serif font
usepackage{luatexbase} % see https://tex.stackexchange.com/a/476742/5001
else
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc} % not necessary if your TeX distribution is recent
fi
usepackage{microtype} % optional
setlengthtextwidth{10.75cm} % chosen by trial and error...
begin{document}
sffamily
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}
end{document}
Especially when writing in a language other than English, it's an excellent idea to load the babel package with a suitable language option (here: danish, right?). That way, you'll be working with the language-appropriate hyphenation patterns. (LaTeX may be forgiven for not knowing how to hyphenate the word strømforsyningerne if it's assumed to be an English-language word.) It's also a good idea to load the microtype package.
If you use pdfLaTeX, please also be sure to load the fontenc package with the option T1.
The following screenshot was compiled under LuaLaTeX and the Calibri sans-serif font.

documentclass{article}
usepackage[danish]{babel}
usepackage{ifluatex}
ifluatex
usepackage{fontspec}
setsansfont{Calibri} % or some other suitable sans-serif font
usepackage{luatexbase} % see https://tex.stackexchange.com/a/476742/5001
else
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc} % not necessary if your TeX distribution is recent
fi
usepackage{microtype} % optional
setlengthtextwidth{10.75cm} % chosen by trial and error...
begin{document}
sffamily
begin{itemize}
item Hver uafhængig sløjfe tildeles en sløjfestrøm i kredsløb, der
indeholder $N$ sløjfer.
item Hvis kredsløbet kun indeholder uafhængige forsyninger,
opstilles N lineært uafhængige KVL-ligninger, en for hver sløjfe.
Hvis der findes afhængige forsyninger behandles disse som uafhængige,
og ligningen for afhængigheden opstilles.
item Hvis der findes forsyninger i kredsløbet, der indgår i mere end
én sløjfe, kan én af følgende to teknikker anvendes.
begin{enumerate}
item Supermesh; strømforsyningen „fjernes“, og der laves en ny
sløjfe af de to tidligere sløjfer. Hernæst skal KVL-ligningen for
den nye sløjfe opstilles. De to strømme fra de tidligere sløjfer
skal begge indgå i denne ligning.
item Sløjfe teknikken; først laves en KVL-ligning for hver sløjfe
indeholdende en strømforsyning. Herefter afbrydes
strømforsyningerne. Den sidste KVL-ligning er sløjfen, der kan
laves når, strømforsyningerne er „fjernet“. Når „vejen“ gennem
kredsløbet er fundet, sættes strømforsyningerne ind igen, og KVL
ligningen opstilles.
end{enumerate}
end{itemize}
end{document}
answered yesterday
MicoMico
281k31385774
281k31385774
add a comment |
add a comment |
Ole Batting is a new contributor. Be nice, and check out our Code of Conduct.
Ole Batting is a new contributor. Be nice, and check out our Code of Conduct.
Ole Batting is a new contributor. Be nice, and check out our Code of Conduct.
Ole Batting is a new contributor. Be nice, and check out our Code of Conduct.
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%2f477925%2foverfull-lines-in-an-enumerated-style-paragraph%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
That is because TeX, I think, does not recognise that word. Therefore, it treats it as a single word. In reality, the margin is not broken, but it is simply following GB inputs
;-).– Raaja
yesterday
I compiled your code with
XeLaTeX, there is no problem.– ferahfeza
yesterday
2
As always it is a good idea to post a full minimal example, not a sniplet. Missing T1 (if under pdflatex) and missing Danish hyphenation patterns are quite important here.
– daleif
yesterday
2
Also remember that latex will generally not hyphen word containing a hyphen. In Danish we have many such words, so under Danish babel we can use
"-to get a hyphen that allows the rest of the word to be hyphenated.– daleif
yesterday