How to change number format of section from number 0.1 to number 1, picture below.
\documentclass[10pt,a6paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[main=slovak,english]{babel}
\usepackage[cm]{fullpage}
\usepackage[a6paper, top=15mm, left=10mm, right=10mm, bottom=10mm,foot=5mm,marginparsep=0mm]{geometry}
%showframe
\usepackage{tipa}
\usepackage{tabularx,booktabs} %\toprule
\usepackage{listings}
\usepackage{multirow}
\usepackage{longtable}
%\usepackage{lscape}
\usepackage{wasysym} % symbols
\usepackage{amssymb} % symbols
%\usepackage{pdflscape}
%\usepackage{lscape}
\usepackage{hyperref}
\usepackage{marvosym}
\usepackage{framed}
\usepackage{wasysym}
\usepackage{pdflscape}
\usepackage{graphicx}
%\usepackage{amsmath}
\usepackage{color}
\usepackage{tabularx,booktabs}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{adjustbox}
\usepackage{array,multirow,graphicx}
\newcommand*{\knihaB}{\fontfamily{bch}\selectfont}
\newcommand*{\knihaA}{\fontfamily{phv}\selectfont}
\newcommand*{\knihaC}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihaM}{\fontfamily{cmr}\selectfont}
\newcommand*{\knihaEa}{\fontfamily{qag}\selectfont}
\newcommand*{\knihaEb}{\fontfamily{phv}\selectfont}
\newcommand*{\knihacc}{\fontfamily{pag}\selectfont}
\newcommand*{\knihaaa}{\fontfamily{ccr}\selectfont}
\newcommand*{\knihabb}{\fontfamily{ccr}\selectfont}
\begin{document}
\catcode`\-=12
\sloppy
\section{{\knihaEa text }}
text text text text text text
\end{document}
Thanks for help.


bookand have no top chapter above\section, so what do you expect\thesectionshould produce? It is usually defined (effectively) as\thechapter.\arabic{section}. None of the packages you are using changes this. So use\renewcommand{\thesection}{\arabic{section}}if this is what you want to have. – Feb 28 '17 at 14:22hyperrefin the middle of the bunch of packages, put it at the end of the preamble – Feb 28 '17 at 14:23