LyXPersonal page settings - create new ducument class?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
vess
Posts: 3
Joined: Mon Sep 20, 2010 1:16 pm

Personal page settings - create new ducument class?

Post by vess »

Hello everybody!
As i wrote in my presentation post, I work for a management and accounting italian company and my employer gave me a hard task: I've never worked with LaTex before, but now I must learn how to produce official documents for our customers using Lyx.
I really have little time, because on sept. 23 I must hand over the first article to the chief! :o

I've written it using the "Article" class, in the Polish Verion by M.W. because I needed no date under the title.
Now I'd like to add the company name and the logo on the top of each page near the page numer, as the "TUGboat article" has the name of the review, the number of the issue and so on. is it possible? How? I think "Myheading" is the correct way, but where can i write the company name to view it in the pdf document?

Then, i need also to put some disclaimer and the company address on the bottom of each page. can I? How? And, if my chief wanted the page numers on the bottom, how could I change it?
thank youf for your reply, I really need them!

Recommended reading 2024:

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

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

west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Personal page settings - create new ducument class?

Post by west.logan »

This should give you some ideas at least. I've put places within the document to change headers and page numbers. You should also really try to read some general documentation on LaTeX.

Code: Select all


\documentclass[12pt]{article}
\usepackage{fullpage} %Makes TeX use full pages
\usepackage[pdftex]{graphicx} %to use images and figures
\usepackage{fancybox} %control over boxes around pages or figures
\usepackage{fancyhdr} %Fancy header

\setcounter{secnumdepth}{5} %set the numbering depth for sections and paragraphs
\setcounter{tocdepth}{3} %set the depth of numbering for table of contents.

\setlength{\headsep}{14pt} %header separation from text

%Create oval around title page
\addtolength{\voffset}{-20pt}
\thisfancypage{%
\setlength{\fboxsep}{8pt}%
\ovalbox}{}

\chead{\bf Doc No.} %center header
\cfoot{}
\title{\sc Testing Styles \\ for \\ My Company}
\author{Logan West}
\date{} %type \today in the box for today's date.

\begin{document}
\maketitle
\begin{center}
\vfill
\copyright\ \MakeUppercase{By my company (\the\year)}
\vfill
Prepared at: \\ \MakeUppercase{\bf Company Name} \\ Company Address \\ Company Address
\end{center}
\renewcommand{\headrulewidth}{0pt}

\thispagestyle{fancy}

%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\chead{}
\cfoot{\thepage}
\lhead{My Company \\ No. xxxx}
\rhead{Doc No. \\ \today} 
\renewcommand{\headrulewidth}{0.4pt}
\pagestyle{fancy}
\  \\
\tableofcontents
\listoffigures
%\listoftables
\pagenumbering{roman}

%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\pagenumbering{arabic}
\section{The Video}
The XYZ has a lot of different functions. It is designed by XXYY and is suitable for many environments. Its main function is etc. etc.

\subsection{The xxyy In Action}
Etc Etc.

\subsection{Go figure}
Why don't you take a look at Figures?

\subsubsection{How low can you go?}
This is a lower section than before. 

\paragraph{This is an interesting paragraph.}
See above.
\subparagraph{This is an interesting sub-paragraph.}
No it's not. Stop fooling yourself.

\subsection{Insert me when ready!}
\subsubsection{Me too!}
\paragraph{This is another interesting paragraph.}
Or perhaps not.
\subparagraph{Sub-paragraph again.} The other sub-paragraph tells only lies.
\subparagraph{Yet another sub-paragraph.} The above sub-paragraph tells only the truth.


%This is a figure:
%\begin{figure}[h] %Figure 1
%	\begin{center}
%		\includegraphics[width=120mm]{test.png}
%	\end{center}
%	\caption{This is a test figure}
%	\label{fig:test}
%\end{figure}


This document contains the following test sections:
\begin{itemize}
	\item Section 1: Introduction
	\item Section 2: Reference Documents
	\item Section 3: Test Preparations
	\item Section 4: Test Description
\end{itemize}
\end{document}    

vess
Posts: 3
Joined: Mon Sep 20, 2010 1:16 pm

Re: Personal page settings - create new ducument class?

Post by vess »

Thank you.
I'm trying to read them, but I haven't found the things I need yet.
You know, I don't even know where to write the change comands you suggested me.
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Re: Personal page settings - create new ducument class?

Post by west.logan »

You're going to have to do a bit of research.
In this example, cfoot is the center portion of the footer. chead is the center portion of the header, lhead is the left portion of the header, etc.
If you need a left header, then add a \lhead{header text} command.
Post Reply