Overfull lines in an enumerated-style paragraph
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
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
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
Mar 5 at 21:18
I compiled your code withXeLaTeX
, there is no problem.
– ferahfeza
Mar 5 at 21:24
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
Mar 5 at 21:44
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
Mar 5 at 21:46
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
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
edited Mar 6 at 9:06
JouleV
5,35121242
5,35121242
asked Mar 5 at 21:06
Ole BattingOle Batting
132
132
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
Mar 5 at 21:18
I compiled your code withXeLaTeX
, there is no problem.
– ferahfeza
Mar 5 at 21:24
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
Mar 5 at 21:44
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
Mar 5 at 21:46
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
Mar 5 at 21:18
I compiled your code withXeLaTeX
, there is no problem.
– ferahfeza
Mar 5 at 21:24
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
Mar 5 at 21:44
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
Mar 5 at 21:46
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
Mar 5 at 21:18
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
Mar 5 at 21:18
I compiled your code with
XeLaTeX
, there is no problem.– ferahfeza
Mar 5 at 21:24
I compiled your code with
XeLaTeX
, there is no problem.– ferahfeza
Mar 5 at 21:24
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
Mar 5 at 21:44
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
Mar 5 at 21:44
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
Mar 5 at 21:46
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
Mar 5 at 21:46
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]
.
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
Mar 5 at 21:52
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:02
You're welcome.
– Vinccool96
Mar 7 at 21:19
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}
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:03
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
});
}
});
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]
.
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
Mar 5 at 21:52
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:02
You're welcome.
– Vinccool96
Mar 7 at 21:19
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]
.
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
Mar 5 at 21:52
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:02
You're welcome.
– Vinccool96
Mar 7 at 21:19
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]
.
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]
.
edited Mar 5 at 21:44
answered Mar 5 at 21:39
Vinccool96Vinccool96
1229
1229
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
Mar 5 at 21:52
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:02
You're welcome.
– Vinccool96
Mar 7 at 21:19
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
Mar 5 at 21:52
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:02
You're welcome.
– Vinccool96
Mar 7 at 21:19
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
Mar 5 at 21:52
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
Mar 5 at 21:52
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:02
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:02
You're welcome.
– Vinccool96
Mar 7 at 21:19
You're welcome.
– Vinccool96
Mar 7 at 21:19
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}
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:03
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}
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:03
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 Mar 5 at 22:03
MicoMico
283k31387774
283k31387774
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:03
add a comment |
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:03
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:03
T1 did the trick. Thanks
– Ole Batting
Mar 7 at 9:03
add a comment |
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
Mar 5 at 21:18
I compiled your code with
XeLaTeX
, there is no problem.– ferahfeza
Mar 5 at 21:24
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
Mar 5 at 21:44
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
Mar 5 at 21:46