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
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>
14
14
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 απαιτεί μία ακολουθία σταδίων Επεξεργασίας/Τρεξίματος/Προβολής, η οποία είναι πιο κοντά στη διαδικασία που ακολουθείται με τους μεταγλωττιστές γλωσσών προγραμματισμού. Όπως και στον προγραμματισμό, οι χρήστες μπορεί να κάνουν σφάλματα στην είσοδό τους και έτσι χρειάζεται να ασχοληθούν με τα μηνύματα σφάλματος που αναφέρονται από το σύστημα.
19
16
20
-
## Common errors
17
+
## Κοινά σφάλματα
21
18
22
-
This page gives examples of several common errors. Each error example has some discussion about the form of the error
23
-
message.
19
+
Αυτή η σελίδα δίνει παραδείγματα αρκετών κοινών σφαλμάτων. Κάθε παράδειγμα σφάλματος συνοδεύεται από συζήτηση σχετικά με τη μορφή του μηνύματος σφάλματος.
24
20
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
+
Θα είναι διδακτικό να δοκιμάσετε τα παραδείγματα αλλά και να χρησιμοποιήσετε τις δυνατότητες επεξεργασίας για να προσπαθήσετε να διορθώσετε τα έγγραφα και να δοκιμάσετε ότι μπορείτε να επιλύσετε τα σφάλματα.
28
22
29
-
### pdflatex not found
23
+
### Το pdflatex δεν βρέθηκε
30
24
31
-
A common first error that people see when starting is:
25
+
Ένα κοινό πρώτο σφάλμα που βλέπουν οι χρήστες όταν ξεκινούν είναι:
32
26
33
27
```
34
28
'pdflatex' is not recognized as an internal or external command,
35
29
operable program or batch file.
36
30
```
37
31
{: .noedit :}
38
32
39
-
on Windows or
33
+
σε Windows, ή
40
34
41
35
```
42
36
bash: pdflatex: command not found
43
37
```
44
38
{: .noedit :}
45
39
46
-
on Linux.
40
+
σε Linux.
47
41
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.
53
43
54
-
### Anatomy of a TeX error message
44
+
### Ανατομία ενός μηνύματος σφάλματος του TeX
55
45
56
46
```latex
57
47
\documentclass{article}
@@ -66,7 +56,7 @@ My command is used here \mycommand.
66
56
\end{document}
67
57
```
68
58
69
-
This produces a multi-line message in the log file.
59
+
Αυτό παράγει ένα μήνυμα πολλαπλών γραμμών στο αρχείο καταγραφής.
70
60
71
61
```
72
62
! Undefined control sequence.
@@ -78,38 +68,26 @@ l.8 My command is used here \mycommand
78
68
```
79
69
{: .noedit :}
80
70
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 να συνεχίσει σε αυτή τη λειτουργία αν εργάζεστε διαδραστικά.
89
78
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.
96
79
80
+
Σημειώστε εδώ ότι το TeX δεν βλέπει το σφάλμα στο σημείο που γίνεται ο ορισμός, και στην πραγματικότητα, αν το `\mycommand` είναι ορισμένο αλλά δεν χρησιμοποιηθεί, δεν θα προκύψει κανένα σφάλμα. Έτσι, αν και το σφάλμα αναφέρεται στη γραμμή 8, το «πραγματικό» σφάλμα είναι στον ορισμό στη γραμμή 4, οπότε είναι σημαντικό να δείτε ολόκληρο το μήνυμα σφάλματος.
97
81
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.
0 commit comments