Page Layoutsidebar question

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
comandos
Posts: 15
Joined: Sat Dec 15, 2018 3:46 pm

sidebar question

Post by comandos »

Greetings all,

I have a quick question :)
I’m using the following example code (https://tex.stackexchange.com/questions ... n-headings) and I would like to know is there a way to permanently fix the position of the middle text in the side bar (attached picture for better clarity, but I would like to write the following in the side bar-> chapter title (always far left on the page)…..company name (always in center of the pag) …..rightmark (always far right on the page)).

The attached picture shows the desired effect, my problem is when the chapter title or the section are longer they move the center of the side bar and the company name is moving (up and down) compared to different pages.


Hope I am being clear enough.
Attachments
1.JPG
1.JPG (297.84 KiB) Viewed 5942 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

sidebar question

Post by Stefan Kottwitz »

Hi,

I don't see code for the sidebar at the link you provided. That's about section headings.

Can you post your current code with the sidebar here?

Thanks!

Stefan
LaTeX.org admin
comandos
Posts: 15
Joined: Sat Dec 15, 2018 3:46 pm

sidebar question

Post by comandos »

I'm sorry for the delay I have attached bellow my latest code. And marked where I think the side bar was created, if there is a way to achieve the desired effect with less code I’m all ears :)

Code: Select all

\documentclass[11pt,fleqn]{book}
\usepackage[english]{babel}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{mathtools,amsfonts,amssymb,amsthm}
\usepackage[most]{tcolorbox}
\definecolor{ocre}{RGB}{52,177,201}
\definecolor{ultramarine}{RGB}{0,45,97}
\definecolor{mybluei}{RGB}{0,173,239}
\definecolor{myblueii}{RGB}{63,200,244}
\definecolor{myblueiii}{RGB}{199,234,253}


\usepackage{blindtext}
\usepackage{fourier}
\usepackage[explicit,calcwidth]{titlesec}

\renewcommand\thechapter{\arabic{chapter}}

\newcommand\chapnumfont{%
  \fontsize{38}{13}\color{myblueii}\selectfont%380-130
}

\newcommand\chapnamefont{%
  \normalfont\color{white}\scshape\small\bfseries
}

\titleformat{\chapter}
  {\normalfont\huge\filleft}
  {}
  {0pt}
  {\stepcounter{chapshift}%
  \begin{tikzpicture}[remember picture,overlay]
  \fill[myblueiii]
    (current page.north west) rectangle ([yshift=-2cm]current page.north east); %svetlomodra
  \node[
      fill=mybluei,
      text width=2\paperwidth,
      rounded corners=1cm,
      text depth=2cm,%temnomodra
      anchor=center,
      inner sep=0pt] at (current page.north east) (chaptop)
    {\thechapter};%
  \node[
      anchor=south east,
      inner sep=5pt,%notranji odmik
      outer sep=0pt] (chapnum) at ([xshift=-20pt]chaptop.south)
    {\chapnumfont\thechapter};
  \node[
      anchor=south,
      inner sep=0pt] (chapname) at ([yshift=2pt]chapnum.south)
  {};
  \node[
      anchor=north east,
      align=right,
      inner xsep=0pt] at ([yshift=0.1cm]chapname.east|-chapnum.south) %polozar NASLOVA
  {\parbox{\textwidth}{\raggedleft#1}};%tole poglej da bo cel naslov not
  \end{tikzpicture}%
  }

\titleformat{name=\chapter,numberless}
  {\normalfont\huge\filleft}
  {}
  {0pt}
  {\begin{tikzpicture}[remember picture,overlay]
  \fill[myblueiii]
    (current page.north west) rectangle ([yshift=-13cm]current page.north east);
  \node[%BRISI
      fill=mybluei,
      text width=2\paperwidth,
      rounded corners=6cm,
      text depth=18cm,
      anchor=center,
      inner sep=0pt] at (current page.north east) (chaptop)
    {};%
  \node[ %BRISI
      anchor=south east,minimum width=2in,
      inner sep=0pt,
      outer sep=0pt] (chapnum) at ([xshift=-20pt]chaptop.south)
    {};
  \node[ %BRISI
      anchor=south,
      inner sep=0pt] (chapname) at ([yshift=2pt]chapnum.south)
  {};
  \node[ %BRISI 
      anchor=north east,
      align=right,
      inner xsep=0pt] at ([yshift=-0.5cm]chapname.east|-chapnum.south)
  {\parbox{\textwidth}{\raggedleft#1}};
  \end{tikzpicture}%
  }

\titlespacing*{\chapter}{0pt}{0pt}{0in} %odmik texta
\titlespacing*{name=\chapter,numberless}{0pt}{0pt}{0in}

\titleformat{\section}
  {\addtolength{\titlewidth}{4pc}\normalfont\Large\sffamily\bfseries}
  {\llap{\colorbox{myblueii}{\parbox{2cm}{\strut\color{white}\hfill\thesection}}\hspace{20pt}}}
  {0em}{#1}
  [{\titleline*[l]{\hspace*{\dimexpr-2cm-20pt-2\fboxsep\relax}\color{myblueii}\titlerule[1.5pt]}}]
\titleformat{\subsection}
  {\addtolength{\titlewidth}{2pc}\normalfont\large\sffamily}
  {\llap{\colorbox{myblueii}{\parbox{2cm}{\strut\color{white}\hfill\thesubsection}}\hspace{20pt}}}
  {0em}{#1}
  [{\titleline*[l]{\hspace*{\dimexpr-2cm-20pt-2\fboxsep\relax}\color{myblueii}\titlerule[1.5pt]}}]

\usetikzlibrary{calc}
\pagestyle{plain}

\newcounter{chapshift}
\addtocounter{chapshift}{-1}

\newcommand\BoxColor{myblueii}

\def\subsectiontitle{}
\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize#1}{}}
\renewcommand{\subsectionmark}[1]{\def\subsectiontitle{#1}}


\usepackage{etoolbox,fancyhdr}

\pagestyle{fancy}

\renewcommand{\headrule}{{\color{myblueii}%
\hrule width\headwidth height\headrulewidth depth\headrulewidth}}

\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries \ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize#1}{}}
\fancyhf{} \fancyhead[LE,RO]{\sffamily\normalsize\colorbox{myblueii}{\color{white}\sffamily\bfseries\strut\quad\thepage\quad}}
\fancyhead[LO]{\textcolor{mybluei} \rightmark%

%%%%%%%%%%%%%%%%%%%%%%%%CODE FOR SIDE BAR%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{tikzpicture}[overlay,remember picture]
  \node[fill=\BoxColor,inner sep=-1pt,rectangle,text width=1cm,
    text height=28cm,align=center,anchor=north east]
  at ($ (current page.north east) $)
  {\rotatebox{90}{\parbox{28cm}{%
\centering\textcolor{black}{\bfseries\scshape\thechapter.\leftmark \hspace{2cm}\color{myblueiii} company name }\hspace{2cm}\rightmark}}};
% 	   \raggedright\textcolor{black}{\bfseries\scshape\thechapter.\leftmark \hspace{2cm}\rightmark}\hspace{2cm}\color{myblueiii} company name}}};
  \end{tikzpicture}}
\fancyhead[RE]{\textcolor{mybluei}\leftmark%
  \begin{tikzpicture}[overlay,remember picture]
  \node[fill=\BoxColor,inner sep=0pt,rectangle,text width=1cm,
    text height=28cm,align=center,anchor=north west]
  at ($ (current page.north west) $)
  {\rotatebox{90}{\parbox{28cm}{%
\centering\textcolor{black}{\bfseries\scshape\thechapter.\leftmark \hspace{2cm}\color{myblueiii} company name}\hspace{2cm}\rightmark}}};
  \end{tikzpicture}}


%%%%%%%%%%%%%%%%%%%%%%%% END CODE FOR SIDE BAR%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\headrulewidth}{.5pt}
\addtolength{\headheight}{2.5pt}
\newcommand{\footrulecolor}[1]{\patchcmd{\footrule}{\hrule}{\color{#1}\hrule}{}{}}
\renewcommand{\headrulewidth}{.5pt}
\addtolength{\headheight}{2.5pt}


\fancypagestyle{plain}{%
  \fancyhf{}%
  \renewcommand{\headrulewidth}{0pt}
  \renewcommand{\footrulewidth}{0pt}
}

\makeatletter
\renewcommand{\cleardoublepage}{
\clearpage\ifodd\c@page\else
\hbox{}
\vspace*{\fill}
\thispagestyle{empty}
\newpage
\fi}
\makeatother

\begin{document}
	

	
\chapter{\textcolor{green}{Uvod}}
\section{\textcolor{green}{Zakonodaja}}
\section{\textcolor{green}{Zasnova sistema za pripravo bazenske vode}}

\chapter{Klorirna postaja}
\section{Jama za nevtralizacijo}
\section{Menjava klornih jeklenk}
\section{Opis naprave za doziranje klora} %\section{Dezinfekcija s klorom (kloriranje)}  urska je tuki naporej ime gruntam ce bi pustu kloriranje 
\subsection{Način delovanja}
\subsection{Priključitev injektorja na vod pogonske vode}

\chapter{\textcolor{red}{Klor in reakcija z vodo}} % kr opis

\chapter{Avtomatski vakuumski klorinator - AKN}%General+Complete device description
\section{Tipična uporaba sistema}
\section{Seznam delov ter opis delovanja}

\chapter{Razvoj elektronike}
\section{Mikrokrmilnik - Kinetis KL05 MKL05Z32VFM4}
\section{Senzor tlaka}
\subsection{Piezoelektrilni senzor tlaka}
\subsection{Ničelna napetost}
\subsection{Senzor tlaka - City sensors OC18-104}
\section{Procesorska ploščica} %pr tem delu elektronsko opises zakaj je ksn element na svojem mestu in kaj dosezemo z tem (kako vezje deluje in zakaj)
\subsection{Napajanje/glajenje vhodne napetosti}
xc,nbcxykljbcnxynmbbmbcxmy
\subsection{Nastavitev merilnega območja senzorja (R3/R2)}
\subsection{Invertirajoči ojačevalnik (preračunavanje meritev)}
\subsection{Izhodni signal za kontrolno enoto}
\subsection{Programiranje mikrokrmilinika}
\section{Vhodno-izhodna ploščica} %pr tem delu elektronsko opises zakaj je ksn element na svojem mestu in kaj dosezemo z tem (kako vezje deluje in zakaj)
\subsection{Matrični zaslon (5 $\times$ 7) - HCMS-3903} %kakšen zaslon mamo in kako deluje,...
\subsection{Nastavitev merilnega območja (Tipki HI/LO)}
\subsection{Vizualna predstavitev odčitkov} % ledice na kerem obmocju svetjo,..
\section{\textcolor{blue}{CAD program za risanje tiskanih vezij Eagle}}
\section{Tiskanina ter montažna shema}
\section{Seznam materiala}

\chapter{Razvoj mehanike} 
\blindtext [5]
\section{Prednji del ohišja}
\blindtext [5]
\section{Notranji del ohišja}
\blindtext [5]
\blindtext [5]
\section{Zunanji del ohišja}

\chapter{Razvoj programske opreme} 
\section{Opis programa} %flow chart opises
\section{Opis funkcij} % kako naprava dejansko deluje/kako se jo prizge
\section{Vizualizacija meritev}


\chapter{Testiranje izdelke/meritve}

\chapter{Zaključek}
\includegraphics[width=\textwidth]{example-image} 
\blindtext[5]
\chapter{CAD program za risanje tiskanih vezij Eagle}

\end{document}
comandos
Posts: 15
Joined: Sat Dec 15, 2018 3:46 pm

sidebar question

Post by comandos »

Is there another way to create a sidebar that behaves like this in latex?
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

sidebar question

Post by rais »

Well, instead of a single \parbox inside the \rotatebox, you could use 3 smaller ones:

Code: Select all

{\rotatebox{90}{%
        \parbox{10cm}{%
          \raggedleft\textcolor{black}{\bfseries\scshape\thechapter.\leftmark}%
        }%
        \hspace{2cm}%
        \parbox{4cm}{\centering\color{red!70!black} company name}%
        \hspace{2cm}%
        \parbox{10cm}{\raggedright\rightmark}%
      }};
(the different color for the center part is not really part of my suggestion, it rather made it easier for me to spot where that ends up, exactly)

Or you could use a {tabular} environment, like

Code: Select all

{\rotatebox{90}{%
        \setlength\tabcolsep{1cm}%
        \begin{tabular}{@{}>{\raggedleft}p{10cm}>{\centering}p{4cm}p{10cm}@{}}%
          \textcolor{black}{\bfseries\scshape\thechapter.\leftmark}%
          & \textcolor{myblueiii}{company name}%
          & \rightmark\\
        \end{tabular}}};
(I haven't checked if this changes \tabcolsep throughout the document. If it does, double the braces for the second argument to \rotatebox)

You may need to add the table option to the xcolor package (or load array package yourself) for the > modifier to work in the tabular's column specification.

Both snippets show the last argument to their respective \node commands, the rest I left untouched (with the exception of the aforementioned table option).

BTW: your posted code doesn't work, because you've inserted blank lines into the argument of \fancyhead[LO] when you inserted your comment about `code for side bar'

KR
Rainer
comandos
Posts: 15
Joined: Sat Dec 15, 2018 3:46 pm

sidebar question

Post by comandos »

Greetings,
:S sorry must have missed it and sorry for the delay it has been crazy around here lately.

Yes I would prefer the use of tabular, so it’s scalable depending on page size (A3/A4) could you tell me if tabularX is an feasible solution and what am I doing wrong here:

Code: Select all

\begin{tikzpicture}[overlay,remember picture]
	\node[fill=\BoxColor,inner sep=-1pt,rectangle,text width=1cm,
	text height=28cm,align=center,anchor=north east]
	at ($ (current page.north east) $)
    {\rotatebox{90}{%
		\setlength\tabcolsep{1cm}
		\begin{tabularx}{\textwidth}{XXX}
		\bfseries\scshape\thechapter.\leftmark & company name & \rightmark\\   
		\end{tabularx}}};
	\end{tikzpicture}}
The sidebar is generated but it’s all squished on the bottom side of the page (if I use the X parameter). If I use any other parameter is’s expectable but not ok (c,l,r) because it moves.


If there is a cleaner/simpler solution to achieve this look I’m all ears.


Current COMPLEATE code:

Code: Select all

\documentclass[11pt,fleqn]{book}
\usepackage[english]{babel}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{array}
\usepackage{tabulary}
\usepackage{tabularx}
\usepackage{mathtools,amsfonts,amssymb,amsthm}
\usepackage[most]{tcolorbox}
\definecolor{ocre}{RGB}{52,177,201}
\definecolor{ultramarine}{RGB}{0,45,97}
\definecolor{mybluei}{RGB}{0,173,239}
\definecolor{myblueii}{RGB}{63,200,244}
\definecolor{myblueiii}{RGB}{199,234,253}


\usepackage{blindtext}
\usepackage{fourier}
\usepackage[explicit,calcwidth]{titlesec}


\newcolumntype{Y}{>{\centering\arraybackslash}X} %centrira tabularx

\renewcommand\thechapter{\arabic{chapter}}

\newcommand\chapnumfont{%
	\fontsize{38}{13}\color{myblueii}\selectfont%380-130
}

\newcommand\chapnamefont{%
	\normalfont\color{white}\scshape\small\bfseries
}

\titleformat{\chapter}
{\normalfont\huge\filleft}
{}
{0pt}
{\stepcounter{chapshift}%
	\begin{tikzpicture}[remember picture,overlay]
	\fill[myblueiii]
	(current page.north west) rectangle ([yshift=-2cm]current page.north east); %svetlomodra
	\node[
	fill=mybluei,
	text width=2\paperwidth,
	rounded corners=1cm,
	text depth=2cm,%temnomodra
	anchor=center,
	inner sep=0pt] at (current page.north east) (chaptop)
	{\thechapter};%
	\node[
	anchor=south east,
	inner sep=5pt,%notranji odmik
	outer sep=0pt] (chapnum) at ([xshift=-20pt]chaptop.south)
	{\chapnumfont\thechapter};
	\node[
	anchor=south,
	inner sep=0pt] (chapname) at ([yshift=2pt]chapnum.south)
	{};
	\node[
	anchor=north east,
	align=right,
	inner xsep=0pt] at ([yshift=0.1cm]chapname.east|-chapnum.south) %polozar NASLOVA
	{\parbox{\textwidth}{\raggedleft#1}};%tole poglej da bo cel naslov not
	\end{tikzpicture}%
}

\titleformat{name=\chapter,numberless}
{\normalfont\huge\filleft}
{}
{0pt}
{\begin{tikzpicture}[remember picture,overlay]
	\fill[myblueiii]
	(current page.north west) rectangle ([yshift=-13cm]current page.north east);
	\node[%BRISI
	fill=mybluei,
	text width=2\paperwidth,
	rounded corners=6cm,
	text depth=18cm,
	anchor=center,
	inner sep=0pt] at (current page.north east) (chaptop)
	{};%
	\node[ %BRISI
	anchor=south east,minimum width=2in,
	inner sep=0pt,
	outer sep=0pt] (chapnum) at ([xshift=-20pt]chaptop.south)
	{};
	\node[ %BRISI
	anchor=south,
	inner sep=0pt] (chapname) at ([yshift=2pt]chapnum.south)
	{};
	\node[ %BRISI 
	anchor=north east,
	align=right,
	inner xsep=0pt] at ([yshift=-0.5cm]chapname.east|-chapnum.south)
	{\parbox{\textwidth}{\raggedleft#1}};
	\end{tikzpicture}%
}

\titlespacing*{\chapter}{0pt}{0pt}{0in} %odmik texta
\titlespacing*{name=\chapter,numberless}{0pt}{0pt}{0in}

\titleformat{\section}
{\addtolength{\titlewidth}{4pc}\normalfont\Large\sffamily\bfseries}
{\llap{\colorbox{myblueii}{\parbox{2cm}{\strut\color{white}\hfill\thesection}}\hspace{20pt}}}
{0em}{#1}
[{\titleline*[l]{\hspace*{\dimexpr-2cm-20pt-2\fboxsep\relax}\color{myblueii}\titlerule[1.5pt]}}]
\titleformat{\subsection}
{\addtolength{\titlewidth}{2pc}\normalfont\large\sffamily}
{\llap{\colorbox{myblueii}{\parbox{2cm}{\strut\color{white}\hfill\thesubsection}}\hspace{20pt}}}
{0em}{#1}
[{\titleline*[l]{\hspace*{\dimexpr-2cm-20pt-2\fboxsep\relax}\color{myblueii}\titlerule[1.5pt]}}]

\usetikzlibrary{calc}
\pagestyle{plain}

\newcounter{chapshift}
\addtocounter{chapshift}{-1}

\newcommand\BoxColor{myblueii}

\def\subsectiontitle{}
\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize#1}{}}
\renewcommand{\subsectionmark}[1]{\def\subsectiontitle{#1}}


\usepackage{etoolbox,fancyhdr}

\pagestyle{fancy}

\renewcommand{\headrule}{{\color{myblueii}%
		\hrule width\headwidth height\headrulewidth depth\headrulewidth}}

\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries \ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\sffamily\normalsize#1}{}}
\fancyhf{} \fancyhead[LE,RO]{\sffamily\normalsize\colorbox{myblueii}{\color{white}\sffamily\bfseries\strut\quad\thepage\quad}}
%%%%%%%%%%%%%%%%%%%%%%%%CODE FOR SIDE BAR%%%%%%%%%%%%%%%%%%%%%%%%%
\fancyhead[LO]{\textcolor{mybluei} \rightmark%
	\begin{tikzpicture}[overlay,remember picture]
	\node[fill=\BoxColor,inner sep=-1pt,rectangle,text width=1cm,
	text height=28cm,align=center,anchor=north east]
	at ($ (current page.north east) $)
    {\rotatebox{90}{%
		\setlength\tabcolsep{1cm}
		\begin{tabularx}{\textwidth}{XXX}
		\bfseries\scshape\thechapter.\leftmark & company name & \rightmark\\   
		\end{tabularx}}};
%		\begin{tabular}{@{}>{\raggedleft}p{10cm}>{\centering}p{8cm}p{10cm}@{}}%
%		\textcolor{black}{\bfseries\scshape\thechapter.\leftmark}%
%		& \textcolor{myblueiii}{company name}%
%		& \rightmark\\
%		\end{tabular}}};
	\end{tikzpicture}}
%%%%%%%%%%%%%%%%%%%%%%%% END CODE FOR SIDE BAR%%%%%%%%%%%%%%%%%%%%%%%%%
\fancyhead[RE]{\textcolor{mybluei}\leftmark%
	\begin{tikzpicture}[overlay,remember picture]
	\node[fill=\BoxColor,inner sep=0pt,rectangle,text width=1cm,
	text height=28cm,align=center,anchor=north west]
	at ($ (current page.north west) $)
    {\rotatebox{90}{%
		\setlength\tabcolsep{1cm}
		\begin{tabular}{@{}>{\raggedleft}p{5cm}>{\centering}p{8cm}p{10cm}@{}}%
		\textcolor{black}{\bfseries\scshape\thechapter.\leftmark}%
		& \textcolor{myblueiii}{company name}%
		& \rightmark\\
		\end{tabular}}};
	\end{tikzpicture}}
\renewcommand{\headrulewidth}{.5pt}
\addtolength{\headheight}{2.5pt}
\newcommand{\footrulecolor}[1]{\patchcmd{\footrule}{\hrule}{\color{#1}\hrule}{}{}}
\renewcommand{\headrulewidth}{.5pt}
\addtolength{\headheight}{2.5pt}


\fancypagestyle{plain}{%
	\fancyhf{}%
	\renewcommand{\headrulewidth}{0pt}
	\renewcommand{\footrulewidth}{0pt}
}

\makeatletter
\renewcommand{\cleardoublepage}{
	\clearpage\ifodd\c@page\else
	\hbox{}
	\vspace*{\fill}
	\thispagestyle{empty}
	\newpage
	\fi}
\makeatother

\begin{document}
	
	
	
	\chapter{\textcolor{green}{Uvod}}
	\section{\textcolor{green}{Zakonodaja}}
	\section{\textcolor{green}{Zasnova sistema za pripravo bazenske vode}}
	
	\chapter{Klorirna postaja}
	\section{Jama za nevtralizacijo}
	\section{Menjava klornih jeklenk}
	\section{Opis naprave za doziranje klora} %\section{Dezinfekcija s klorom (kloriranje)}  urska je tuki naporej ime gruntam ce bi pustu kloriranje 
	\subsection{Način delovanja}
	\subsection{Priključitev injektorja na vod pogonske vode}
	
	\chapter{\textcolor{red}{Klor in reakcija z vodo}} % kr opis
	
	\chapter{Avtomatski vakuumski klorinator - AKN}%General+Complete device description
	\section{Tipična uporaba sistema}
	\section{Seznam delov ter opis delovanja}
	
	\chapter{Razvoj elektronike}
	\blindtext[20]
	\section{Mikrokrmilnik - Kinetis KL05 MKL05Z32VFM4}
	\blindtext[20]
	\section{Senzor tlaka}
	\subsection{Piezoelektrilni senzor tlaka}
	\subsection{Ničelna napetost}
	\blindtext[20]
	\subsection{Senzor tlaka - City sensors OC18-104}
	\section{Procesorska ploščica} %pr tem delu elektronsko opises zakaj je ksn element na svojem mestu in kaj dosezemo z tem (kako vezje deluje in zakaj)
	\subsection{Napajanje/glajenje vhodne napetosti}
	xc,nbcxykljbcnxynmbbmbcxmy
	\subsection{Nastavitev merilnega območja senzorja (R3/R2)}
	\subsection{Invertirajoči ojačevalnik (preračunavanje meritev)}
	\subsection{Izhodni signal za kontrolno enoto}
	\subsection{Programiranje mikrokrmilinika}
	\section{Vhodno-izhodna ploščica} %pr tem delu elektronsko opises zakaj je ksn element na svojem mestu in kaj dosezemo z tem (kako vezje deluje in zakaj)
	\subsection{Matrični zaslon (5 $\times$ 7) - HCMS-3903} %kakšen zaslon mamo in kako deluje,...
	\subsection{Nastavitev merilnega območja (Tipki HI/LO)}
	\subsection{Vizualna predstavitev odčitkov} % ledice na kerem obmocju svetjo,..
	\section{\textcolor{blue}{CAD program za risanje tiskanih vezij Eagle}}
	\section{Tiskanina ter montažna shema}
	\section{Seznam materiala}
	
	\chapter{Razvoj mehanike} 
	\blindtext [5]
	\section{Prednji del ohišja}
	\blindtext [5]
	\section{Notranji del ohišja}
	\blindtext [5]
	\blindtext [5]
	\section{Zunanji del ohišja}
	
	\chapter{Razvoj programske opreme} 
	\section{Zunanji del ohišja Razvoj programske opreme }
	\blindtext[20]
	\section{Opis programa} %flow chart opises
	\section{Opis funkcij} % kako naprava dejansko deluje/kako se jo prizge
	\section{Vizualizacija meritev}
	\blindtext[20]
	
	\chapter{Testiranje izdelke/meritve}
	
	\chapter{Zaključek}
	\includegraphics[width=\textwidth]{example-image} 
	\blindtext[5]
	\chapter{CAD program za risanje tiskanih vezij Eagle}

\end{document}
Attachments
1.JPG
1.JPG (28.21 KiB) Viewed 5643 times
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

sidebar question

Post by rais »

comandos wrote:The sidebar is generated but it’s all squished on the bottom side of the page (if I use the X parameter).
You're limiting the `width' of your {tabularx} to \textwidth.
Then you have raised \tabcolsep to 1 cm, which is inserted `left' and `right' of each of the three columns, that leaves \textwidth - 6cm space for the three columns.
Try

Code: Select all

\begin{tabularx}{\paperheight}{XXX}
instead.

If you further change the second column specifier to Y, the company name should be centered at page's height.

KR

Rainer
comandos
Posts: 15
Joined: Sat Dec 15, 2018 3:46 pm

sidebar question

Post by comandos »

Will try
thank you!
Post Reply