LaTeX forum ⇒ New Membershello from greece! a new member!

You would like to introduce yourself before starting to post? That's a nice idea and here is the forum for you...
sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

hello from greece! a new member!

Postby sofiagr » Thu Oct 24, 2019 12:14 pm

Hello from Greece!
I started using latex a week ago and i am very impressed. Although i have so many things to learn.
I would appreciate your help if you can.
I will post my questions in the right section.
Thank you, I am happy I am a member of your group now.
:D

User avatar
Stefan Kottwitz
Site Admin
Posts: 9495
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Oct 24, 2019 1:18 pm

Hello Sofia,

welcome to the forum!

I was in Greece just 4 days ago, with a cruise ship. But for work. ;-)

Feel free to post all LaTeX questions here!

Stefan
Site admin

sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

Postby sofiagr » Thu Oct 24, 2019 7:58 pm

Thank you so much Stefan!

I hope you find the time again to come back in Greece during summer but for vacation! ;)

I will try to explain what confuses me using latex for the specific assignment that i need to do.

1) The first thing is that i need to put all my "book" (all pages) in a frame of dimensions 17cm width, 24cm height. I found the way it is made but when i printed it i saw that the dimensions were not correct. I asked in a4 paper to leave margins in top and bottom 2.85cm and in left and right 2cm thinking that a4 paper is 21x29.7 and my frame need to be 17x24 but actually this did not happen.
2)The second problem is that i need my text inside the frame to be in 12.5cm width and 19.5cm height, except from the first page that i want 5cm vertical space until the first title. Although the height of 19.5cm appears correctly in the text, the width is less than 12.5cm asked and i don't know why.
3) The third issue is that I need all the titles, the chapter label, the name of the chapter and section to be in bold helvetica and the rest of the text to be the default font but not in bold. When I printed it as well I saw that the titles are not in bold and that everything seem to be the same font, titles and text.
4) The last problem is that I want the title "Chapter 1" to be in capital and with a dot at the number, for example "CHAPTER 1." I made the capital letters but when i managed to put the dot, a dot also appeared in the numbers of the sections making them "1..1 Introduction, 1..2 Brief etc. I would like the dot after the number to be only in the "CHAPTER 1."

Here I will paste the code i wrote for all these and how the pdf looks like.
I am sorry but my assignment is in greek, sorry for the inconvenience.

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[a4paper,12pt]{book}
  2.  
  3. \usepackage{calc}
  4. \usepackage{eso-pic}
  5.  
  6. \newlength{\PageFrameTopMargin}
  7. \newlength{\PageFrameBottomMargin}
  8. \newlength{\PageFrameLeftMargin}
  9. \newlength{\PageFrameRightMargin}
  10.  
  11. \setlength{\PageFrameTopMargin}{2.85cm}
  12. \setlength{\PageFrameBottomMargin}{2.85cm}
  13. \setlength{\PageFrameLeftMargin}{2cm}
  14. \setlength{\PageFrameRightMargin}{2cm}
  15.  
  16. \makeatletter
  17.  
  18. \newlength{\Page@FrameHeight}
  19. \newlength{\Page@FrameWidth}
  20.  
  21. \AddToShipoutPicture{
  22. \thinlines
  23. \setlength{\Page@FrameHeight}{\paperheight-\PageFrameTopMargin-\PageFrameBottomMargin}
  24. \setlength{\Page@FrameWidth}{\paperwidth-\PageFrameLeftMargin-\PageFrameRightMargin}
  25. \put(\strip@pt\PageFrameLeftMargin,\strip@pt\PageFrameTopMargin){
  26. \framebox(\strip@pt\Page@FrameWidth, \strip@pt\Page@FrameHeight){}}}
  27.  
  28. \makeatother
  29.  
  30. \usepackage[left=4cm,textwidth=12.5cm,right=4.5cm,
  31. textheight=19.5cm,top=4.75cm,bottom=4.95cm,
  32. includehead]{geometry}
  33. \usepackage{amsmath}
  34. \usepackage{amsfonts}
  35. \usepackage{amssymb}
  36. \usepackage[english,greek]{babel}
  37. \usepackage[utf8]{inputenc}
  38. \newcommand{\lat } {\latintext}
  39. \DeclareMathOperator{\rank}{rank}
  40. \newcommand{\gr}{\selectlanguage{greek}}
  41. \usepackage{fancyhdr}
  42. \pagestyle{fancy}
  43. \newcommand{\changefont}{%
  44. \fontsize{8}{9.5}\selectfont}
  45. \fancyhf{}
  46. \fancyhead[LO]{\changefont{ΕΙΣΑΓΩΓΗ}}
  47. \fancyhead[RO]{\changefont{\thepage}}
  48. \fancyhead[RE]{\changefont{ΚΕΦΑΛΑΙΟ 1.}}
  49. \fancyhead[LE]{\changefont{\thepage}}
  50.  
  51. \usepackage[scaled=.90]{helvet}% Helvetica, served as a model for arial
  52. \usepackage{titlesec}
  53. \usepackage{mathptmx}
  54. \newcommand{\chapfnt}{\normalfont text}
  55. \newcommand{\secfnt}{\normalfont text}
  56.  
  57. \titleformat{\chapter}[display]
  58. {\fontfamily{phv}\large\bfseries}
  59. {\filright\chaptertitlename\ \thechapter}{20pt}{\huge\filcenter}
  60. \titleformat{\section}
  61. {\fontfamily{phv}\large\bfseries}
  62. {\thesection}{1em}{}
  63.  
  64. \usepackage{fancyhdr}
  65. \addto\captionsgreek{\renewcommand{\chaptername}{ΚΕΦΑΛΑΙΟ}}
  66. \renewcommand{\thechapter}{\arabic{chapter}.}
  67.  
  68. \begin{document}
  69. \vspace{5cm}
  70. \chapter{ΕΙΣΑΓΩΓΗ}
  71. \section{Εισαγωγή}
  72.  
  73. H εισαγωγή περιέχει μια σύντομη επισκόπηση των περιεχομένων του βιβλίου, περιγράφοντας συνοπτικά τα βασικά σημεία κάθε κεφαλαίου.
  74.  
  75. \section{Σύντομη περίληψη ανά κεφάλαιο}
  76.  
  77. Το 2ο κεφάλαιο μας εισάγει στους πίνακες και την αντίστοιχη γραμμική άλγεβρα. Πίνακας είναι μια ορθογώνια διάταξη αριθμών, ο οποίος μπορεί να χρησιμοποιηθεί για να αναπαριστά συνοπτικά σύνολα εξισώσεων, συνδέσεις δικτύου, εξελικτικά δυναμικά συστήματα και ούτω καθεξής. Η χρήση των πινάκων γίνεται απαραίτητη για την αποτελεσματική μελέτη των μεγάλων συστημάτων. Το παρακάτω παράδειγμα απεικονίζει το όφελος των πινάκων όταν μεταφερόμαστε από προβλήματα μιας εξίσωσης σε συστήματα εξισώσεων.


Thank you .... and I am sorry for the greek

Sofia
Sofiagr.pdf
(129.62 KiB) Downloaded 6 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9495
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Oct 25, 2019 12:41 am

Quick thoughts: helvet may not support sans-serif greek.

It works if you remove

\usepackage[scaled=.90]{helvet}

and possibly also replace it by

\usepackage{lmodern}

and then add \sffamily to where you need it, such as

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \titleformat{\chapter}[display]
  2. {\large\bfseries\sffamily}
  3. {\filright\chaptertitlename\ \thechapter}{20pt}{\huge\filcenter}
  4. \titleformat{\section}
  5. {\large\bfseries\sffamily}
  6. {\thesection}{1em}{}


greek.png
greek.png (46.38 KiB) Viewed 437 times


Stefan
Site admin

sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

Postby sofiagr » Fri Oct 25, 2019 8:03 am

Thank you so much Stefan,

I made this change and the paper looked as you showed.

Have you any idea about the distances of the frame and the margins of the text inside it?

Sofia

User avatar
Ijon Tichy
Posts: 132
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Fri Oct 25, 2019 8:11 am

Stefan Kottwitz wrote:Feel free to post all LaTeX questions here!

Maybe not exactly here, but e.g. here. ;)

I usually do not read the »New Members« section (sorry), because I do not expect LaTeX questions there and my time is limited. There are other sections I do not read, but this is more or less because I'm hoping that there are others who can answer the questions of these sections better than I ever could.

sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

Postby sofiagr » Fri Oct 25, 2019 8:13 am

Thank you,

I will copy my questions to the right section.

Have a nice day!

User avatar
Stefan Kottwitz
Site Admin
Posts: 9495
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Nov 02, 2019 9:42 am

Hi Ijon,

Ijon Tichy wrote:I usually do not read the »New Members« section (sorry), because I do not expect LaTeX questions there and my time is limited. There are other sections I do not read, but this is more or less because I'm hoping that there are others who can answer the questions of these sections better than I ever could.


I usually use the "Active topics" button at the top right, so I can see everything new, independent of the forum. And, from time to time, the "Unanswered topics" link at the right side, to take care of even older topics that got 0 answers.

Stefan
Site admin


Return to “New Members”

Who is online

Users browsing this forum: No registered users and 1 guest