Skip to content

Commit 6599ab0

Browse files
muttenerdavidcarlisle
authored andcommitted
translate
1 parent 2ce91c5 commit 6599ab0

1 file changed

Lines changed: 41 additions & 48 deletions

File tree

nl/more-15.md

Lines changed: 41 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
layout: "lesson"
33
lang: "nl"
4-
title: "More on: Dealing with errors"
5-
description: "This lesson show a few more common errors in LaTeX and explains about chained errors and silent errors."
6-
toc-anchor-text: "More on: Dealing with errors"
4+
title: "Meer over: Fouten afhandelen"
5+
description: "Deze les toont nog enkele veelvoorkomende fouten in LaTeX en legt uit over geketende fouten en stille fouten."
6+
toc-anchor-text: "Meer over: Fouten afhandelen"
77
---
88

9-
## Errors reported at ends of environments
9+
## Fouten die aan het einde van omgevingen worden gemeld
1010

11-
Some environments (notably `amsmath` alignments and `tabularx` tables)
12-
scan the whole environment body before processing the content. This means that
13-
any error within the environment is reported on the last line. However, as seen in the
14-
main lesson, TeX's display of the error context should still pinpoint the error location.
11+
Sommige omgevingen (met name `amsmath`-uitlijningen en `tabularx`-tabellen) scannen de volledige inhoud van de omgeving voordat ze die verwerken.
12+
Dit betekent dat elke fout binnen de omgeving op de laatste regel wordt gemeld.
13+
Zoals te zien in de hoofdles zou de foutcontext van TeX nog steeds de foutlocatie moeten aangeven.
1514

1615
```latex
1716
\documentclass{article}
1817
\usepackage[T1]{fontenc}
18+
\usepackage[dutch]{babel}
1919
2020
\usepackage{amsmath}
2121
@@ -30,15 +30,14 @@ main lesson, TeX's display of the error context should still pinpoint the error
3030
\end{document}
3131
```
3232

33-
Here the error will be reported on line 12
33+
Hier wordt de fout gemeld op regel 13
3434

3535
```
36-
l.12 \end{align}
36+
l.13 \end{align}
3737
```
3838
{: .noedit :}
3939

40-
Although the real error is on line 10 as shown by the context lines:
41-
40+
Hoewel de echte fout op regel 11 staat, zoals te zien is in de contextregels:
4241

4342
```
4443
! Undefined control sequence.
@@ -47,93 +46,87 @@ Although the real error is on line 10 as shown by the context lines:
4746
```
4847
{: .noedit :}
4948

49+
## Valse fouten door eerdere fouten
5050

51-
## Spurious errors due to earlier errors
52-
53-
When calling LaTeX interactively from the command line it is possible
54-
to stop the processing at the first error with `x`, edit the document
55-
and re-run. However if you scroll past the error or use an editor or
56-
online system that does this for you then TeX will try to recover;
57-
however this may lead to several more errors being reported.
58-
59-
So do not be too concerned about the _number_ of errors reported and
60-
always concentrate on fixing the first reported error.
51+
Wanneer je LaTeX interactief aanroept via de opdrachtregel, kan je
52+
de verwerking stoppen bij de eerste fout met `x`, het document bewerken
53+
en opnieuw uitvoeren.
54+
Maar als je langs de fout scrolt of een tekstbewerker of online systeem gebruikt dat dat automatisch doet, zal TeX zich proberen te herstellen;
55+
dit kan echter leiden tot meerdere foutmeldingen.
6156

57+
Maak je dus niet al te veel zorgen over het _aantal_ gerapporteerde fouten en
58+
richt je altijd op het oplossen van de eerste gemelde fout.
6259

6360
```latex
6461
\documentclass{article}
6562
\usepackage[T1]{fontenc}
63+
\usepackage[dutch]{babel}
6664
6765
\begin{document}
68-
Text_word $\alpha + \beta$.
66+
Tekst_woord $\alpha + \beta$.
6967
70-
More text.
68+
Meer tekst
7169
\end{document}
7270
```
7371

74-
The error here is the underscore `_` which should be entered as `\_`.
72+
De fout hier is de underscore `_`, die als `\_` moet worden ingevoerd.
7573

76-
TeX does report this correctly with the _first_ error message
74+
TeX meldt dit correct met de _eerste_ foutmelding:
7775

7876
```
7977
! Missing $ inserted.
8078
<inserted text>
8179
$
82-
l.5 Text_
83-
word $\alpha + \beta$.
80+
l.6 Tekst_
81+
woord $\alpha + \beta$.
8482
?
8583
```
8684
{: .noedit :}
8785

88-
However if you scroll past the `?` prompt then TeX recovers by adding
89-
a `$` so the `_` is seen in math mode as a subscript. The math mode
90-
then continues until the `$` which ends math, so the following
91-
`\alpha` is seen in text mode generating another error
86+
Als je echter langs de `?`-prompt scrolt, herstelt TeX zich door een `$` toe te voegen zodat de `_` wordt gezien als een subscript in de wiskundige modus.
87+
De wiskundige modus gaat dan door tot de `$`, waarna `\alpha` wordt gezien als tekst, wat een nieuwe fout veroorzaakt:
9288

9389
```
9490
! Missing $ inserted.
9591
<inserted text>
9692
$
97-
l.5 Text_word $\alpha
98-
+ \beta$.
93+
l.6 Tekst_woord $\alpha
94+
+ \beta$.
9995
?
10096
```
10197
{: .noedit :}
10298

99+
## Fouten die geen foutprompt veroorzaken
103100

104-
## Errors that do not trigger an error prompt
101+
Sommige fouten, met name fouten die pas aan het einde van het bestand worden gedetecteerd, genereren geen foutprompt, maar geven alleen een waarschuwing in het logbestand.
105102

106-
Some errors, especially errors that are not detected until the end of the file,
107-
do not generate an error prompt but just give a warning in the log.
108-
109-
If you try this example using the TeXLive.net server it will return a PDF by default;
110-
to see the error message in the log add `%!TeX log`.
103+
Als je dit voorbeeld probeert met de TeXLive.net-server, krijg je standaard een PDF;
104+
om de foutmelding in het logbestand te zien, voeg `%!TeX log` toe.
111105

112106
```latex
113107
\documentclass{article}
114108
\usepackage[T1]{fontenc}
109+
\usepackage[dutch]{babel}
115110
116111
\begin{document}
117112
118-
Text {\large some large text) normal size?
113+
Tekst {\large wat grote tekst) doorsnee grootte?
119114
120115
\end{document}
121116
```
122117

123-
In this example the size change was mistakenly ended with `)` rather
124-
than `}`. This is not detected until the end of the file when TeX
125-
detects that there is still an unclosed group. It reports here the
126-
line at which the group was opened `{`. It can not detect the actual
127-
error as the `)` is seen as "normal text".
118+
In dit voorbeeld is de grootteverandering per ongeluk beëindigd met `)` in plaats van met `}`.
119+
Dit wordt pas aan het einde van het bestand gedetecteerd wanneer TeX merkt dat er nog een niet-gesloten groep is.
120+
TeX meldt dan de regel waarop de groep werd geopend `{`.
121+
De echte fout kan niet worden gedetecteerd omdat `)` wordt gezien als "normale tekst".
128122

129123
```
130124
(\end occurred inside a group at level 1)
131125
132-
### simple group (level 1) entered at line 5 ({)
126+
### simple group (level 1) entered at line 6 ({)
133127
```
134128
{: .noedit :}
135129

136-
137130
<script>
138131
window.addEventListener('load', function(){
139132
rlselectline('pre0',10);

0 commit comments

Comments
 (0)