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...
Post Reply
sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

hello from greece! a new member!

Post by sofiagr »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

hello from greece! a new member!

Post by Stefan Kottwitz »

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
LaTeX.org admin
sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

hello from greece! a new member!

Post by sofiagr »

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

\documentclass[a4paper,12pt]{book}

\usepackage{calc}
\usepackage{eso-pic}

\newlength{\PageFrameTopMargin}
\newlength{\PageFrameBottomMargin}
\newlength{\PageFrameLeftMargin}
\newlength{\PageFrameRightMargin}

\setlength{\PageFrameTopMargin}{2.85cm}
\setlength{\PageFrameBottomMargin}{2.85cm}
\setlength{\PageFrameLeftMargin}{2cm}
\setlength{\PageFrameRightMargin}{2cm}

\makeatletter

\newlength{\Page@FrameHeight}
\newlength{\Page@FrameWidth}

\AddToShipoutPicture{
  \thinlines
  \setlength{\Page@FrameHeight}{\paperheight-\PageFrameTopMargin-\PageFrameBottomMargin}
  \setlength{\Page@FrameWidth}{\paperwidth-\PageFrameLeftMargin-\PageFrameRightMargin}
  \put(\strip@pt\PageFrameLeftMargin,\strip@pt\PageFrameTopMargin){
    \framebox(\strip@pt\Page@FrameWidth, \strip@pt\Page@FrameHeight){}}}

\makeatother

\usepackage[left=4cm,textwidth=12.5cm,right=4.5cm,
textheight=19.5cm,top=4.75cm,bottom=4.95cm,
includehead]{geometry}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[english,greek]{babel}
\usepackage[utf8]{inputenc}
\newcommand{\lat } {\latintext}
\DeclareMathOperator{\rank}{rank}
\newcommand{\gr}{\selectlanguage{greek}}
\usepackage{fancyhdr}
\pagestyle{fancy}
\newcommand{\changefont}{%
    \fontsize{8}{9.5}\selectfont}
\fancyhf{} 
\fancyhead[LO]{\changefont{ΕΙΣΑΓΩΓΗ}}
\fancyhead[RO]{\changefont{\thepage}}
\fancyhead[RE]{\changefont{ΚΕΦΑΛΑΙΟ 1.}}
\fancyhead[LE]{\changefont{\thepage}}

\usepackage[scaled=.90]{helvet}% Helvetica, served as a model for arial
\usepackage{titlesec}
\usepackage{mathptmx}
\newcommand{\chapfnt}{\normalfont text}
\newcommand{\secfnt}{\normalfont text}

\titleformat{\chapter}[display]
  {\fontfamily{phv}\large\bfseries}
  {\filright\chaptertitlename\ \thechapter}{20pt}{\huge\filcenter}
\titleformat{\section}
  {\fontfamily{phv}\large\bfseries}
  {\thesection}{1em}{}

\usepackage{fancyhdr}
\addto\captionsgreek{\renewcommand{\chaptername}{ΚΕΦΑΛΑΙΟ}}
\renewcommand{\thechapter}{\arabic{chapter}.}

\begin{document}
\vspace{5cm}
\chapter{ΕΙΣΑΓΩΓΗ}
\section{Εισαγωγή}

H εισαγωγή περιέχει μια σύντομη επισκόπηση των περιεχομένων του βιβλίου, περιγράφοντας συνοπτικά τα βασικά σημεία κάθε κεφαλαίου.

\section{Σύντομη περίληψη ανά κεφάλαιο}

Το 2ο κεφάλαιο μας εισάγει στους πίνακες και την αντίστοιχη γραμμική άλγεβρα. Πίνακας είναι μια ορθογώνια διάταξη αριθμών, ο οποίος μπορεί να χρησιμοποιηθεί για να αναπαριστά συνοπτικά σύνολα εξισώσεων, συνδέσεις δικτύου, εξελικτικά δυναμικά συστήματα και ούτω καθεξής. Η χρήση των πινάκων γίνεται απαραίτητη για την αποτελεσματική μελέτη των μεγάλων συστημάτων. Το παρακάτω παράδειγμα απεικονίζει το όφελος των πινάκων όταν μεταφερόμαστε από προβλήματα μιας εξίσωσης σε συστήματα εξισώσεων.
Thank you .... and I am sorry for the greek

Sofia
Sofiagr.pdf
(129.62 KiB) Downloaded 395 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

hello from greece! a new member!

Post by Stefan Kottwitz »

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

\titleformat{\chapter}[display]
  {\large\bfseries\sffamily}
  {\filright\chaptertitlename\ \thechapter}{20pt}{\huge\filcenter}
\titleformat{\section}
  {\large\bfseries\sffamily}
  {\thesection}{1em}{}
greek.png
greek.png (46.38 KiB) Viewed 5590 times
Stefan
LaTeX.org admin
sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

hello from greece! a new member!

Post by sofiagr »

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: 640
Joined: Mon Dec 24, 2018 10:12 am

hello from greece! a new member!

Post by Ijon Tichy »

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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
sofiagr
Posts: 8
Joined: Thu Oct 24, 2019 12:04 pm

hello from greece! a new member!

Post by sofiagr »

Thank you,

I will copy my questions to the right section.

Have a nice day!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

hello from greece! a new member!

Post by Stefan Kottwitz »

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
LaTeX.org admin
user49915
Posts: 81
Joined: Wed Apr 17, 2019 12:51 pm

hello from greece! a new member!

Post by user49915 »

sofiagr wrote: hello from greece! [...] and i am very impressed. Although i have so many things to learn.
I suggest you start by learning \MakeUppercase :-). Perhaps, there might be even a package capitalizing all the instances of the words "greece" and "i" in text mode in a LaTeX document :-).
Post Reply