Page layout and margins · סידוד דפים ושוליים
Controlling the page
- LaTeX's default page has generous, book-like margins. Sometimes you want more space.
- The
geometrypackage lets you set margins in one line:
- That gives a one-inch margin on all four sides. Try
2cm,1.5in, and see the text reflow.
שליטה בעמוד
- הגודל המובלף של עמוד ב-Latex הוא רחב ודומה לספר. לעיתים תרצה יותר מקום.
- חבילת
geometryמאפשרת לך להגדיר שוליים בקו אחד:
\usepackage[margin=1in]{geometry}
- הדבר נותן שוליים בגודל אינץ' מכל ארבע הצדדים. נסה
2cm,1.5in, והערה את טקסט המסמך.
Fine control
- You can set sides separately:
- Useful when a binding needs extra room on the left, for example.
שליטה מדויקת
- ניתן להגדיר צדדים בנפרד:
\usepackage[top=2cm, bottom=2cm, left=3cm, right=2cm]{geometry}
- שימושי כאשר קיטור זקוק למקום נוסף בצד שמאל, לדוגמה.
Other handy commands
\newpageforces a page break;\todayprints the current date.\begin{center} ... \end{center}centres a block of text or an image.- These small tools let you shape a document to look exactly how you want.
פקודות נוספות נוחות
\newpageמחייב מעבר לעמוד חדש;\todayמדפיס את התאריך הנוכחי.\begin{center} ... \end{center}ממקם במרכז בלוק טקסט או תמונה.- כלים קטנים אלו מאפשרים לעצב מסמך כך שיתאים בדיוק לרצונך.
Common mistakes
- Load the
geometrypackage to change the margins. - Let LaTeX handle spacing — avoid forcing it with manual blank lines.
טעויות נפוצות
- טעון את
geometryכדי לשנות את השוליים. - תן ל-Latex להתמודד עם רווחים — הימנע מהכפלתם באמצעות שורות ריקות ידניות.
The default margins are wide. Load the geometry package in the preamble with a one-inch margin: \usepackage[margin=1in]{geometry}. Run and watch the text spread out. · השוליים ברירת המחדל הם רחבים. טעון את חבילת geometry בפreamble עם שוליים של אינץ' אחד: \usepackage[margin=1in]{geometry}. הרץ וצפה כיצד הטקסט מתפשט.
Control the flow of pages. Force the second section onto a fresh page with \newpage, and centre the title line with a center environment. · שלוט בזרימת הדפים. הכרח את החלק השני לעמוד חדש עם \newpage, והמרכז את קו הכותרת באמצעות סביבת center.