Skip to content

Commit 51e5f9e

Browse files
committed
lesson-15 + more-15
1 parent 26a307e commit 51e5f9e

2 files changed

Lines changed: 75 additions & 105 deletions

File tree

el/lesson-15.md

Lines changed: 48 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,47 @@
11
---
22
layout: "lesson"
33
lang: "el"
4-
title: "Dealing with errors"
5-
description: "This lesson shows some common errors in LaTeX documents, what they mean, and how to work around them."
6-
toc-anchor-text: "Error handling"
7-
toc-description: "Dealing with unexpected behaviors."
4+
title: "Αντιμετώπιση σφαλμάτων"
5+
description: "Αυτό το μάθημα παρουσιάζει μερικά κοινά σφάλματα σε έγγραφα LaTeX, τι σημαίνουν και πώς να τα ξεπεράσετε."
6+
toc-anchor-text: "Χειρισμός σφαλμάτων"
7+
toc-description: "Αντιμετώπιση απροσδόκητων συμπεριφορών."
88
---
99

10-
# Dealing with errors
10+
# Αντιμετώπιση σφαλμάτων
1111

1212
<span
13-
class="summary">This lesson shows some common errors in LaTeX documents, what they mean, and how to work around them.</span>
13+
class="summary">Αυτό το μάθημα παρουσιάζει μερικά κοινά σφάλματα σε έγγραφα LaTeX, τι σημαίνουν και πώς να τα ξεπεράσετε.</span>
1414

15-
Unlike a typical word processing system, LaTeX has an Edit/Run/View cycle
16-
closer to working with programming language compilers, and as in programming
17-
users may make errors in their input and so need to deal with error messages
18-
reported by the system.
15+
Σε αντίθεση με έναν τυπικό επεξεργαστή κειμένου, το LaTeX απαιτεί μία ακολουθία σταδίων Επεξεργασίας/Τρεξίματος/Προβολής, η οποία είναι πιο κοντά στη διαδικασία που ακολουθείται με τους μεταγλωττιστές γλωσσών προγραμματισμού. Όπως και στον προγραμματισμό, οι χρήστες μπορεί να κάνουν σφάλματα στην είσοδό τους και έτσι χρειάζεται να ασχοληθούν με τα μηνύματα σφάλματος που αναφέρονται από το σύστημα.
1916

20-
## Common errors
17+
## Κοινά σφάλματα
2118

22-
This page gives examples of several common errors. Each error example has some discussion about the form of the error
23-
message.
19+
Αυτή η σελίδα δίνει παραδείγματα αρκετών κοινών σφαλμάτων. Κάθε παράδειγμα σφάλματος συνοδεύεται από συζήτηση σχετικά με τη μορφή του μηνύματος σφάλματος.
2420

25-
It may be instructive to try the examples but also use the
26-
edit features to try to fix the documents and test that you can
27-
resolve the errors.
21+
Θα είναι διδακτικό να δοκιμάσετε τα παραδείγματα αλλά και να χρησιμοποιήσετε τις δυνατότητες επεξεργασίας για να προσπαθήσετε να διορθώσετε τα έγγραφα και να δοκιμάσετε ότι μπορείτε να επιλύσετε τα σφάλματα.
2822

29-
### pdflatex not found
23+
### Το pdflatex δεν βρέθηκε
3024

31-
A common first error that people see when starting is:
25+
Ένα κοινό πρώτο σφάλμα που βλέπουν οι χρήστες όταν ξεκινούν είναι:
3226

3327
```
3428
'pdflatex' is not recognized as an internal or external command,
3529
operable program or batch file.
3630
```
3731
{: .noedit :}
3832

39-
on Windows or
33+
σε Windows, ή
4034

4135
```
4236
bash: pdflatex: command not found
4337
```
4438
{: .noedit :}
4539

46-
on Linux.
40+
σε Linux.
4741

48-
This is
49-
not a TeX error but an operating system error saying that TeX is not
50-
installed or not found. A common mistake is to install an _editor_
51-
such as TeXworks or TeXShop but without installing a TeX system such as
52-
TeX Live or MiKTeX.
42+
Αυτό δεν είναι σφάλμα του TeX αλλά του λειτουργικού συστήματος, και λέει ότι το TeX δεν είναι εγκατεστημένο ή δεν βρέθηκε. Ένα κοινό λάθος είναι να εγκαταστήσετε έναν _επεξεργαστή_ όπως το TeXworks ή το TeXShop αλλά χωρίς να εγκαταστήσετε ένα σύστημα TeX όπως το TeX Live ή το MiKTeX.
5343

54-
### Anatomy of a TeX error message
44+
### Ανατομία ενός μηνύματος σφάλματος του TeX
5545

5646
```latex
5747
\documentclass{article}
@@ -66,7 +56,7 @@ My command is used here \mycommand.
6656
\end{document}
6757
```
6858

69-
This produces a multi-line message in the log file.
59+
Αυτό παράγει ένα μήνυμα πολλαπλών γραμμών στο αρχείο καταγραφής.
7060

7161
```
7262
! Undefined control sequence.
@@ -78,38 +68,26 @@ l.8 My command is used here \mycommand
7868
```
7969
{: .noedit :}
8070

81-
* The first line, marked with `!`, gives the general nature of the error (undefined command in this case).
82-
* The second pair of lines show the line that TeX was processing, with a line break marking the point
83-
that TeX had reached. The undefined command is the last token read so the last word before the line break,
84-
`\textbold` here. After the line break are the remaining tokens `{hmmm}` that have possibly been read as
85-
an argument but have not yet been executed by TeX.
86-
* There may in general be some additional lines at this point, showing more context of the error message,
87-
* The final line starts with `l.` followed by a line number, and then the line in the source file where the
88-
error is detected.
71+
* Η πρώτη γραμμή, που σημειώνεται με `!`, δίνει τη γενική φύση του σφάλματος (μη καθορισμένη εντολή, σε αυτή την περίπτωση).
72+
* Το δεύτερο ζεύγος γραμμών δείχνει τη γραμμή που επεξεργαζόταν το TeX, με μια αλλαγή γραμμής να επισημαίνει το σημείο στο οποίο είχε φτάσει το TeX. Η μη καθορισμένη εντολή είναι η λέξη που διαβάστηκε τελευταία, η τελευταία λέξη πριν από την αλλαγή γραμμής, εδώ η `\textbold`. Μετά την αλλαγή γραμμής υπάρχουν τα υπόλοιπα στοιχεία `{hmmm}` που ενδεχομένως έχουν διαβαστεί ως παράμετροι αλλά δεν έχουν χρησιμοποιηθεί ακόμη από το TeX.
73+
* Γενικά, μπορεί να υπάρχουν μερικές επιπλέον γραμμές σε αυτό το σημείο, που δείχνουν περισσότερα συμφραζόμενα του μηνύματος σφάλματος,
74+
* Η τελευταία γραμμή ξεκινάει με `l.` ακολουθούμενη από έναν αριθμό γραμμής, και στη συνέχεια τη γραμμή στο αρχείο του κώδικα όπου ανιχνεύτηκε το σφάλμα.
75+
76+
* Η τελευταία γραμμή είναι ένα `?`. Εάν χρησιμοποιείτε το TeX διαδραστικά (σε τερματικό), είναι δυνατή η εισαγωγή εντολών στο TeX σε αυτό το σημείο, αλλά οι περισσότεροι επεξεργαστές και διαδικτυακά συστήματα εκτελούν το TeX σε μια λειτουργία που δεν σταματά σε σφάλματα αλλά τα προσπερνάει και προσπαθεί να επεξεργαστεί το υπόλοιπο του εγγράφου. Πληκτρολογώντας
77+
`s` στο σημείο αυτό θα δώσετε εντολή στο TeX να συνεχίσει σε αυτή τη λειτουργία αν εργάζεστε διαδραστικά.
8978

90-
* The final line is a `?`. If using TeX interactively it is possible to
91-
enter instructions to TeX at this point, but most editors and online
92-
systems run TeX in a mode that does not stop at errors but will
93-
scroll past this and try to process the rest of the document. Typing
94-
`s` to the prompt will instruct TeX to carry on in this mode if you
95-
are working interactively.
9679

80+
Σημειώστε εδώ ότι το TeX δεν βλέπει το σφάλμα στο σημείο που γίνεται ο ορισμός, και στην πραγματικότητα, αν το `\mycommand` είναι ορισμένο αλλά δεν χρησιμοποιηθεί, δεν θα προκύψει κανένα σφάλμα. Έτσι, αν και το σφάλμα αναφέρεται στη γραμμή 8, το «πραγματικό» σφάλμα είναι στον ορισμό στη γραμμή 4, οπότε είναι σημαντικό να δείτε ολόκληρο το μήνυμα σφάλματος.
9781

98-
Note here that TeX does not see the error at the point that
99-
the definition is made; and in fact if `\mycommand` is defined but not
100-
used, no error would be raised. So although the error is reported on
101-
line 8, the "real" error is in the definition on line 4, so it is
102-
important to see the whole error message.
103-
104-
Beware that some editors show one line "summaries" of the error log.
105-
This can be particularly misleading if shown as
82+
Προσοχή: ορισμένοι επεξεργαστές εμφανίζουν «περιλήψεις» μίας γραμμής του αρχείου καταγραφής σφαλμάτων.
83+
Αυτό μπορεί να είναι ιδιαίτερα παραπλανητικό αν εμφανίζεται ως
10684

10785
`line 8: undefined command: ...\mycommand`
10886

109-
as it makes it appear that `\mycommand` is not defined.
87+
καθώς φαίνεται σαν η εντολή `\mycommand` να μην είναι ορισμένη.
11088

11189

112-
### Mismatched braces
90+
### Άγκιστρα που δεν ταιριάζουν
11391

11492

11593
```latex
@@ -123,18 +101,18 @@ as it makes it appear that `\mycommand` is not defined.
123101
\end{document}
124102
```
125103

126-
Here the error is a mismatched `}` used to end the optional
127-
argument. The closing brace causes LaTeX's option parsing
128-
to fail and you get an internal and not that helpful error:
104+
Εδώ το σφάλμα είναι ένα `}` που χρησιμοποιείται για να κλείσει το προαιρετικό
105+
όρισμα, και το οποίο δεν έχει αντίστοιχο `{`. Αυτό οδηγεί σε αποτυχία την ανάλυση του κώδικα από το LaTeX
106+
και λαμβάνετε ένα εσωτερικό και όχι πολύ χρήσιμο σφάλμα:
129107

130108
```
131109
! Argument of \@fileswith@ptions has an extra }.
132110
```
133111
{: .noedit :}
134112

135-
While the error description is unhelpful; the following two
136-
lines do accurately display the location of the error by the use of
137-
the linebreak showing how far TeX had read:
113+
Αν και η περιγραφή του σφάλματος δεν είναι χρήσιμη, οι επόμενες δύο
114+
γραμμές δείχνουν με ακρίβεια τη θέση του σφάλματος με τη χρήση
115+
της αλλαγής γραμμής που δείχνει πόσο είχε διαβάσει το TeX:
138116

139117
```
140118
l.4 \usepackage[leqno}
@@ -143,7 +121,7 @@ l.4 \usepackage[leqno}
143121
{: .noedit :}
144122

145123

146-
### Missing files
124+
### Αρχεία που λείπουν
147125

148126
```latex
149127
\documentclass{article}
@@ -156,19 +134,19 @@ l.4 \usepackage[leqno}
156134
\end{document}
157135
```
158136

159-
This produces the error
137+
Αυτό προκαλεί το σφάλμα
160138

161139
```
162140
! LaTeX Error: File `amsmathz.sty' not found.
163141
```
164142
{: .noedit :}
165143

166-
Note: the same error may be caused by two different causes; a simple
167-
typo as here, which may be corrected by fixing the package name, or
168-
that the file really is missing and needs to be installed on the
169-
current system.
144+
Σημείωση: το ίδιο σφάλμα μπορεί να προκληθεί από δύο διαφορετικές αιτίες:
145+
από ένα απλό ορθογραφικό λάθος, όπως εδώ, το οποίο μπορεί να διορθωθεί εισάγοντας το σωστό όνομα του πακέτου,
146+
ή επειδή το αρχείο όντως δεν υπάρχει και πρέπει να εγκατασταθεί
147+
στο σύστημά μας.
170148

171-
### Blank lines in display math
149+
### Κενές γραμμές σε μαθηματικά περιβάλλοντα
172150

173151
```latex
174152
\documentclass{article}
@@ -186,21 +164,21 @@ Some text
186164
\end{document}
187165
```
188166

189-
Produces the slightly mysterious error
167+
Αυτό παράγει το ελαφρώς παράξενο σφάλμα
190168

191169
```
192170
! Missing $ inserted.
193171
```
194172
{: .noedit :}
195173

196-
But the fix is simple, blank lines are not allowed in math
197-
environments and should be deleted.
174+
Όμως η διόρθωση είναι απλή, δεν επιτρέπονται κενές γραμμές μέσα
175+
σε μαθηματικά περιβάλλοντα και πρέπει να διαγραφούν.
198176

199-
## Exercise
177+
## Ασκήσεις
200178

201-
Attempt to fix the errors in the supplied examples.
179+
Δοκιμάστε να διορθώσετε τα σφάλματα στα παρεχόμενα παραδείγματα.
202180

203-
Produce small documents with different errors and note the form of the error messages.
181+
Φτιάξτε μικρά έγγραφα με διαφορετικά σφάλματα και παρατηρήστε τη μορφή των μηνυμάτων σφάλματος.
204182

205183
<script>
206184
window.addEventListener('load', function(){

0 commit comments

Comments
 (0)