You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nl/more-15.md
+41-48Lines changed: 41 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
---
2
2
layout: "lesson"
3
3
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"
7
7
---
8
8
9
-
## Errors reported at ends of environments
9
+
## Fouten die aan het einde van omgevingen worden gemeld
10
10
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.
15
14
16
15
```latex
17
16
\documentclass{article}
18
17
\usepackage[T1]{fontenc}
18
+
\usepackage[dutch]{babel}
19
19
20
20
\usepackage{amsmath}
21
21
@@ -30,15 +30,14 @@ main lesson, TeX's display of the error context should still pinpoint the error
30
30
\end{document}
31
31
```
32
32
33
-
Here the error will be reported on line 12
33
+
Hier wordt de fout gemeld op regel 13
34
34
35
35
```
36
-
l.12 \end{align}
36
+
l.13 \end{align}
37
37
```
38
38
{: .noedit :}
39
39
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:
42
41
43
42
```
44
43
! Undefined control sequence.
@@ -47,93 +46,87 @@ Although the real error is on line 10 as shown by the context lines:
47
46
```
48
47
{: .noedit :}
49
48
49
+
## Valse fouten door eerdere fouten
50
50
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.
61
56
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.
62
59
63
60
```latex
64
61
\documentclass{article}
65
62
\usepackage[T1]{fontenc}
63
+
\usepackage[dutch]{babel}
66
64
67
65
\begin{document}
68
-
Text_word $\alpha + \beta$.
66
+
Tekst_woord $\alpha + \beta$.
69
67
70
-
More text.
68
+
Meer tekst
71
69
\end{document}
72
70
```
73
71
74
-
The error here is the underscore `_` which should be entered as `\_`.
72
+
De fout hier is de underscore `_`, die als `\_` moet worden ingevoerd.
75
73
76
-
TeX does report this correctly with the _first_ error message
74
+
TeX meldt dit correct met de _eerste_ foutmelding:
77
75
78
76
```
79
77
! Missing $ inserted.
80
78
<inserted text>
81
79
$
82
-
l.5 Text_
83
-
word $\alpha + \beta$.
80
+
l.6 Tekst_
81
+
woord $\alpha + \beta$.
84
82
?
85
83
```
86
84
{: .noedit :}
87
85
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:
92
88
93
89
```
94
90
! Missing $ inserted.
95
91
<inserted text>
96
92
$
97
-
l.5 Text_word $\alpha
98
-
+ \beta$.
93
+
l.6 Tekst_woord $\alpha
94
+
+ \beta$.
99
95
?
100
96
```
101
97
{: .noedit :}
102
98
99
+
## Fouten die geen foutprompt veroorzaken
103
100
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.
105
102
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.
111
105
112
106
```latex
113
107
\documentclass{article}
114
108
\usepackage[T1]{fontenc}
109
+
\usepackage[dutch]{babel}
115
110
116
111
\begin{document}
117
112
118
-
Text {\large some large text) normal size?
113
+
Tekst {\large wat grote tekst) doorsnee grootte?
119
114
120
115
\end{document}
121
116
```
122
117
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".
0 commit comments