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: el/lesson-05.md
+41-70Lines changed: 41 additions & 70 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,60 +1,51 @@
1
1
---
2
2
layout: "lesson"
3
3
lang: "el"
4
-
title: "Using document classes to influence design"
5
-
description: "This lesson explains what a document class is and how it can influence a document layout, and lists the main classes you can find in a TeX distribution."
6
-
toc-anchor-text: "Document classes"
7
-
toc-description: "Setting the general document layout."
4
+
title: "Χρήση τύπων εγγράφων για τη διαμόρφωση της σχεδίασης"
5
+
description: "Αυτό το μάθημα εξηγεί τι είναι ένας τύπος εγγράφων και πώς μπορεί να επηρεάσει τη διάταξη του εγγράφου, και απαριθμεί τους κυριότερους τύπους εγγράφων που μπορείτε να βρείτε σε μία διανομή TeX."
6
+
toc-anchor-text: "Τύποι εγγράφων"
7
+
toc-description: "Διαμόρφωση της γενικής διάταξης εγγράφου."
8
8
---
9
9
10
-
# Document classes
10
+
# Τύποι εγγράφων
11
11
12
12
<span
13
-
class="summary">This lesson explains what a document class is and how it can influence a document layout and design. It lists the main classes you can find in a TeX distribution.</span>
13
+
class="summary">Αυτό το μάθημα εξηγεί τι είναι ένας τύπος εγγράφων και πώς μπορεί να επηρεάσει τη διάταξη του εγγράφου, και απαριθμεί τους κυριότερους τύπους εγγράφων που μπορείτε να βρείτε σε μία διανομή TeX.</span>
14
14
15
-
You might have noticed that all of the LaTeX documents we have created
16
-
so far have started with a `\documentclass` line, and that
17
-
`\documentclass{article}` has been the far most common choice. (We needed
18
-
`\documentclass{report}` in [the previous lesson](lesson-04) to try out the
19
-
`\chapter` command.) This line is required in all LaTeX documents, and is
20
-
(almost) always the first command you should have.
15
+
Ίσως θα έχετε παρατηρήσει ότι όλα τα έγγραφα LaTeX που έχουμε δημιουργήσει μέχρι τώρα ξεκινούν με μία γραμμή `\documentclass`, και ότι η πιο συνηθισμένη επιλογή ήταν `\documentclass{article}`. (Χρειαστήκαμε την `\documentclass{report}` στο [προηγούμενο μάθημα](lesson-04) για να δοκιμάσουμε την εντολή `\chapter`.) Αυτή η γραμμή είναι απαραίτητη σε όλα τα έγγραφα LaTeX, και είναι (σχεδόν) πάντα η πρώτη εντολή που πρέπει να έχετε.
21
16
22
-
## What a document class does
17
+
## Τι κάνει ένας τύπος εγγράφων
23
18
24
-
The document class sets up the general layout of the document, for example
19
+
Ο τύπος εγγράφων ρυθμίζει τη γενική διάταξη του εγγράφου, για παράδειγμα
25
20
26
-
-design: margins, fonts, spacing, etc.
27
-
-whether chapters are available
28
-
-if the title should be on a separate page
21
+
-σχεδίαση: περιθώρια, γραμματοσειρές, διάστιχο μεταξύ γραμμών κ.λπ.
22
+
-αν είναι διαθέσιμα κεφάλαια
23
+
-αν ο τίτλος θα πρέπει να είναι σε ξεχωριστή σελίδα
29
24
30
-
Document classes can also add new commands more generally; that's particularly
31
-
true for specialist cases like creating presentation slides.
25
+
Οι τύποι εγγράφων μπορούν επίσης να προσθέτουν πιο γενικά νέες εντολές· αυτό ισχύει ιδιαίτερα για ειδικές περιπτώσεις όπως η δημιουργία διαφανειών παρουσιάσεων.
32
26
33
-
The document class line can also set _global options_: things that apply to
34
-
the document as a whole. These are given in square brackets:
35
-
`\documentclass[<options>]{<name>}`. This syntax, with optional information
36
-
given first in square brackets, is used in many LaTeX commands.
27
+
Η γραμμή με τον τύπο εγγράφου μπορεί να θέσει _γενικές επιλογές_: στοιχεία που εφαρμόζονται συνολικά στο έγγραφο. Αυτές δίνονται μέσα σε αγκύλες:
28
+
`\documentclass[<options>]{<name>}`. Αυτή η σύνταξη, με προαιρετικές πληροφορίες που δίνονται πρώτες μέσα σε αγκύλες, χρησιμοποιείται σε πολλές εντολές του LaTeX.
37
29
38
-
## The base classes
30
+
## Οι βασικοί τύποι εγγράφων
39
31
40
-
LaTeX is supplied with a set of standard classes, all of which look similar
41
-
but with some variations:
32
+
Το LaTeX παρέχει ένα σύνολο βασικών τύπων εγγράφων, οι οποίοι μοιάζουν μεταξύ τους αλλά με κάποιες παραλλαγές:
42
33
43
34
-`article`
44
-
short documents without chapters
35
+
σύντομα έγγραφα χωρίς κεφάλαια
45
36
-`report`
46
-
longer documents with chapters, single-sided printing
37
+
μεγαλύτερα έγγραφα με κεφάλαια, εκτύπωση μονής όψης
47
38
-`book`
48
-
longer documents with chapters, double-sided printing, with front- and
49
-
back-matter (for example an index)
39
+
μεγαλύτερα έγγραφα με κεφάλαια, εκτύπωση διπλής όψης, με προκαταρκτικά και
40
+
τελικά τμήματα (για παράδειγμα, ένα ευρετήριο)
50
41
-`letter`
51
-
correspondence with no sections
42
+
αλληλογραφία, χωρίς ενότητες
52
43
-`slides`
53
-
for presentations (but see below)
44
+
για παρουσιάσεις (αλλά δείτε παρακάτω)
54
45
55
-
The `article`, `report`and`book`classes have very similar commands available,
56
-
as we've already seen. When writing a`letter`, the commands available are
57
-
a bit different
46
+
Οι τύποι `article`, `report`και`book`διαθέτουν πολύ παρόμοιες εντολές,
47
+
όπως έχουμε ήδη δει. Όταν γράφετε ένα`letter`, οι διαθέσιμες εντολές είναι
48
+
λίγο διαφορετικές.
58
49
59
50
```latex
60
51
\documentclass{letter}
@@ -74,48 +65,28 @@ The text goes Here
74
65
\end{document}
75
66
```
76
67
77
-
See how ``\\`` is used to separate lines of the address; we'll look at line
78
-
breaking [a bit later](lesson-11). Also see how the `letter` class creates a
79
-
new environment for each letter and has specialized commands.
68
+
Παρατηρήστε πώς το ``\\`` χρησιμοποιείται για να διαχωρίσει τις γραμμές της διεύθυνσης· θα ασχοληθούμε με τον διαχωρισμό γραμμών [λίγο αργότερα](lesson-11). Επίσης, παρατηρήστε ότι ο τύπος `letter` δημιουργεί ένα νέο περιβάλλον για κάθε επιστολή και διαθέτει εξειδικευμένες εντολές.
80
69
81
-
The standard `article`, `report` and `book` classes take the options `10pt`,
82
-
`11pt` and `12pt` to change font size, and `twocolumn` to make a two-column
83
-
document.
70
+
Οι τύποι `article`, `report` και `book` διαθέτουν τις επιλογές `10pt`,
71
+
`11pt` και `12pt` για να αλλάξουν το μέγεθος της γραμματοσειράς, και `twocolumn` για να δημιουργήσουν ένα έγγραφο δύο στηλών.
84
72
85
-
## Function-rich classes
73
+
## Εμπλουτισμένοι τύποι εγγράφων
86
74
87
-
The core classes are very stable, but that means they are also quite
88
-
conservative in both design and the range of commands available. Over time, a
89
-
number of more powerful classes have been written, that let you alter the design
90
-
without having to do things manually (which we'll mention [a bit
91
-
later](lesson-11)).
75
+
Οι βασικοί τύποι εγγράφων είναι πολύ σταθεροί, αλλά αυτό σημαίνει ότι είναι επίσης αρκετά συντηρητικοί τόσο ως προς τη σχεδίαση όσο και ως προς τη γκάμα εντολών που παρέχουν. Με τον καιρό, έχουν γραφτεί αρκετοί πιο ισχυροί τύποι εγγράφων, οι οποίοι σας επιτρέπουν να αλλάξετε τη σχεδίαση χωρίς να χρειάζεται να κάνετε τα πράγματα χειροκίνητα (όπως θα δούμε [λίγο αργότερα](lesson-11)).
92
76
93
-
The American Mathematical Society provide variants of the standard
94
-
classes (`amsart`, `amsbook`) with a more traditional design closer to
95
-
that used in mathematics journal publications.
77
+
Η Αμερικανική Μαθηματική Εταιρεία παρέχει παραλλαγές των τυπικών κλάσεων (`amsart`, `amsbook`) με μια πιο παραδοσιακή σχεδίαση που πλησιάζει αυτή που χρησιμοποιείται στις δημοσιεύσεις μαθηματικών περιοδικών.
96
78
97
-
The two largest and most popular 'extended' classes are the KOMA-Script bundle
98
-
and the memoir class. KOMA-Script offers a set of classes which 'parallel' the
99
-
standard ones: `scrartcl`, `scrreprt`, `scrbook`, and `scrlttr2`, while there is
100
-
a single `memoir` class that is most like an extension of `book`.
79
+
Οι δύο μεγαλύτεροι και πιο δημοφιλείς «εμπλουτισμένοι» τύποι εγγράφων είναι το πακέτο KOMA-Script και η κλάση `memoir`. Το πακέτο KOMA-Script προσφέρει ένα σύνολο τύπων αντίστοιχων με τους βασικούς: `scrartcl`, `scrreprt`, `scrbook` και `scrlttr2`, ενώ ο τύπος `memoir` μοιάζει περισσότερο με μια επέκταση της κλάσης `book`.
101
80
102
-
These extended classes have lots of customisation hooks, which we'll explore a
103
-
bit in an exercise. You might wonder how we can know about the hooks they
104
-
provide; we will cover that [in a later lesson](lesson-16), but you can always
105
-
jump ahead!
81
+
Αυτές οι επεκτάσεις διαθέτουν πολλές δυνατότητες προσαρμογής, τις οποίες θα εξερευνήσουμε λίγο σε μια άσκηση. Ίσως να αναρωτιέστε πώς μπορούμε να γνωρίζουμε για τις δυνατότητες που παρέχουν· θα το καλύψουμε [σε ένα επόμενο μάθημα](lesson-16), αλλά μπορείτε να το δείτε ήδη!
106
82
107
-
## Presentations
83
+
## Παρουσιάσεις
108
84
109
-
The `slides` class was developed for making physical slides in the mid-1980s, so
110
-
doesn't have any features for creating interactive PDF-based presentations.
111
-
There are modern classes that do exactly that: they are somewhat specialist
112
-
compared to general LaTeX documents, so we've [covered them in the additional
113
-
information](more-05).
85
+
Ο τύπος `slides` αναπτύχθηκε για τη δημιουργία φυσικών διαφανειών στα μέσα της δεκαετίας του 1980, επομένως δεν διαθέτει καμία δυνατότητα για τη δημιουργία διαδραστικών παρουσιάσεων PDF. Υπάρχουν σύγχρονες κλάσεις που κάνουν ακριβώς αυτό: είναι κάπως εξειδικευμένες σε σύγκριση με τα συνηθισμένα έγγραφα LaTeX, οπότε τις [καλύπτουμε στο επιπλέον μάθημα](more-05).
114
86
115
-
## Exercises
87
+
## Ασκήσεις
116
88
117
-
Explore how changing the document class between the standard ones, the KOMA
118
-
bundle and `memoir` affects the appearance of the document.
89
+
Εξερευνήστε πώς η αλλαγή του τύπου εγγράφου μεταξύ των βασικών, αυτών του πακέτου KOMA και του `memoir` επηρεάζει την εμφάνιση του εγγράφου.
119
90
120
91
```latex
121
92
\documentclass{article} % Change the class here
@@ -133,10 +104,10 @@ document have two columns.
133
104
\end{document}
134
105
```
135
106
136
-
Add the class option `twocolumn`and see how the layout changes.
107
+
Προσθέστε την επιλογή `twocolumn`και δείτε πώς αλλάζει η διάταξη.
137
108
138
-
Change the `\section`above to`\chapter`and find out what effect the
139
-
following class options have when using the `scrreprt` class.
109
+
Αλλάξτε την εντολή `\section`παραπάνω σε`\chapter`και ανακαλύψτε ποιο είναι το αποτέλεσμα των
110
+
ακόλουθων επιλογών όταν χρησιμοποιείτε την κλάση `scrreprt`.
Copy file name to clipboardExpand all lines: el/more-05.md
+22-30Lines changed: 22 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,27 @@
1
1
---
2
2
layout: "lesson"
3
3
lang: "el"
4
-
title: "More on: Using document classes to influence design"
5
-
description: "This lesson gives information on more specialized document classes for LaTeX."
6
-
toc-anchor-text: "More on: Using document classes to influence design"
4
+
title: "Περισσότερα σχετικά με: Χρήση τύπων εγγράφων για τη διαμόρφωση της σχεδίασης"
5
+
description: "Αυτό το μάθημα παρέχει πληροφορίες σχετικά με πιο εξειδικευμένους τύπους εγγράφων για το LaTeX."
6
+
toc-anchor-text: "Περισσότερα σχετικά με: Χρήση τύπων εγγράφων για τη διαμόρφωση της σχεδίασης"
7
7
---
8
8
9
-
## Journal-specific classes
9
+
## Τύποι εγγράφων για επιστημονικά περιοδικά
10
10
11
-
Many academic journals provide LaTeX classes for submissions. These
12
-
typically set up the layout to be similar to the final journal,
13
-
although that does depend on font usage, etc. If there is a class
14
-
available, it is normally provided directly by the editorial office,
15
-
who should give appropriate detail on what features it has. Many of
16
-
these are also available on [CTAN](https://ctan.org) and in standard TeX
17
-
distributions.
11
+
Πολλά επιστημονικά περιοδικά παρέχουν τύπους εγγράφων LaTeX για υποβολές. Αυτοί
12
+
συνήθως ρυθμίζουν τη διάταξη ώστε να είναι παρόμοια με την τελική έκδοση του περιοδικού,
13
+
αν και αυτό εξαρτάται από τη χρήση γραμματοσειρών κ.λπ. Αν υπάρχει διαθέσιμος τύπος,
14
+
συνήθως παρέχεται απευθείας από τη συντακτική επιτροπή του περιοδικού, η οποία θα πρέπει να δίνει και πληροφορίες σχετικά με τις δυνατότητές του. Πολλοί τέτοιοι τύποι
15
+
είναι επίσης διαθέσιμοι στο [CTAN](https://ctan.org) και σε τυπικές διανομές TeX.
18
16
19
-
## Classes for presentations
17
+
## Τύποι εγγράφων για παρουσιάσεις
20
18
21
-
One area that needs a lot of special treatment is creating presentations. The`slides`
22
-
class was written for making 'classical' printed slides, and it does not
23
-
have any special support for on-screen presentations. Two classes
24
-
have been developed to do just that, and that are widely used:
25
-
`beamer`and`powerdot`. As `beamer`is probably the more common one, we will
26
-
give you an example of how it works:
19
+
Ένας τομέας που χρειάζεται ειδική μεταχείριση είναι η δημιουργία παρουσιάσεων. Ο τύπος`slides`
20
+
γράφτηκε για να δημιουργεί «κλασικές» εκτυπωμένες διαφάνειες, και δεν έχει
21
+
καμία ειδική υποστήριξη για παρουσιάσεις σε οθόνη. Δύο τύποι
22
+
έχουν αναπτυχθεί ακριβώς για αυτό το σκοπό, και είναι ευρέως χρησιμοποιούμενοι:
23
+
`beamer`και`powerdot`. Καθώς ο τύπος `beamer`είναι πιθανώς ο πιο κοινός, θα σας
24
+
δώσουμε ένα παράδειγμα του πώς λειτουργεί:
27
25
28
26
```latex
29
27
\documentclass{beamer}
@@ -47,20 +45,14 @@ give you an example of how it works:
47
45
\end{document}
48
46
```
49
47
50
-
This shows two important ideas. First, `beamer` divides a document into frames,
51
-
each of which can make more than one slide (page). Second, `beamer` adds to the
52
-
normal LaTeX syntax to allow parts of the source to appear 'a bit at a time'.
53
-
This is powerful but more complicated than we can cover here: take a look at
54
-
[this blog
55
-
entry](https://www.texdev.net/2014/01/17/the-beamer-slide-overlay-concept/) for
56
-
more.
48
+
Αυτό επιδεικνύει δύο σημαντικές ιδέες. Πρώτον, το `beamer` διαιρεί ένα έγγραφο σε «καρέ» (frames), το καθένα από τα οποία μπορεί να δημιουργήσει περισσότερες από μία διαφάνειες (σελίδες). Δεύτερον, το `beamer` προσθέτει στη σύνταξη του LaTeX στοιχεία για να επιτρέπει σε μέρη του κειμένου να εμφανίζονται σταδιακά. Αυτό είναι μία ισχυρή δυνατότητα αλλά πιο περίπλοκο από ό,τι μπορούμε να καλύψουμε εδώ: ρίξτε μια ματιά σε [αυτή την ανάρτηση](https://www.texdev.net/2014/01/17/the-beamer-slide-overlay-concept/) για περισσότερα.
57
49
58
-
## A class for images
50
+
## Ένας τύπος εγγράφων για εικόνες
59
51
60
-
There are occasions when you need to make an image (which might be text-heavy)
61
-
using LaTeX. Often, you do not want anything other than the content itself on
62
-
the 'page'. That is easiest to do using the [`standalone`](https://ctan.org/pkg/standalone)
63
-
class. It automatically sets the size of the page to surround the printed content.
52
+
Μερικές φορές χρειάζεται να δημιουργήσετε μία εικόνα (που μπορεί να περιέχει και αρκετό κείμενο)
53
+
χρησιμοποιώντας το LaTeX. Συχνά, δεν θέλετε τίποτα άλλο εκτός από το περιεχόμενο
54
+
αυτό καθαυτό στη «σελίδα». Αυτό είναι πιο εύκολο να γίνει χρησιμοποιώντας τον τύπο [`standalone`](https://ctan.org/pkg/standalone).
55
+
Αυτός ρυθμίζει αυτόματα το μέγεθος της σελίδας ώστε να περιβάλλει ακριβώς το εκτυπωμένο περιεχόμενο.
0 commit comments