GeneralPaper specifications

LaTeX specific issues not fitting into one of the other forums of this category.
Humberto Munoz
Posts: 15
Joined: Fri May 16, 2008 3:07 pm

Paper specifications

Post by Humberto Munoz »

Stefan_K wrote:Hi Humberto,

important is to write \thispagestyle{empty} at the right place. Not in the preamble. After \begin{document} and before the second page starts.
But as you don't need plain pagestyle at all you can set it to be equal to empty. Write into your preamble before \begin{document}:

Code: Select all

\makeatletter
\let\ps@plain\ps@empty
\makeatother
Stefan
Stefan,

Thanks it works very well. The last question that I have is how I can change the heading References to 6. REFERENCES and centered. I am using:

\begin{thebibliography}{9}
\bibitem{Clarke}
F. H. Clarke,
\newblock {\em Optimization and Nonsmooth Analysis},
SIAM, Classics in Applied Mathematics, Philadelphia, 1990.
\end{thebibliography}

Humberto

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Paper specifications

Post by Stefan Kottwitz »

Hi Humberto,

how are your other headings? Centered and capitalized too?
How do you make the other headings? Using fancyhdr?
With the answers to the questions and if you show us you preamble for clarifying we should be able to provide a solution that fits.

Stefan
LaTeX.org admin
Humberto Munoz
Posts: 15
Joined: Fri May 16, 2008 3:07 pm

Paper specifications

Post by Humberto Munoz »

Stefan_K wrote:Hi Humberto,

how are your other headings? Centered and capitalized too?
How do you make the other headings? Using fancyhdr?
With the answers to the questions and if you show us you preamble for clarifying we should be able to provide a solution that fits.

Stefan
Yes, the other heading are centered and capitalized, by using the code

\begin{center}
{\bf 5. CONCLUSIONS}
\end{center}

However for the references the square brackets leave an extra space inside. I want to know if I can eliminate the extra space.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Paper specifications

Post by Stefan Kottwitz »

Hi Humberto,

that's an unusual (LaTeX) way to define the headings, usually one uses \chapter or \section etc. Perhaps you will use them later.
To help you with a quick solution, write directly before \begin{thebibliography}{9}:

Code: Select all

\def\chapter*#1{\begin{center}\bfseries\MakeUppercase{#1}\end{center}}
I don't like that but it should work. ;) Tell me if something is not ok.

Regarding the references and square brackets show some example code, I don't have unwanted space in references.

Stefan
LaTeX.org admin
Humberto Munoz
Posts: 15
Joined: Fri May 16, 2008 3:07 pm

Paper specifications

Post by Humberto Munoz »

Stefan_K wrote:Hi Humberto,

that's an unusual (LaTeX) way to define the headings, usually one uses \chapter or \section etc. Perhaps you will use them later.
To help you with a quick solution, write directly before \begin{thebibliography}{9}:

Code: Select all

\def\chapter*#1{\begin{center}\bfseries\MakeUppercase{#1}\end{center}}
I don't like that but it should work. ;) Tell me if something is not ok.

Regarding the references and square brackets show some example code, I don't have unwanted space in references.

Stefan
Stefan,
I have tried \section before, but it does not centered the headings. Then I decided to make the headings with the code
\begin{center}
{\bf 1. REFERENCES}
\end{center}

It works, but I get the extra space in the square brackets. I also tried your quick solution but it does not work.

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

Paper specifications

Post by Stefan Kottwitz »

Ah, you are using article, then the code above has to be changed slightly:

Code: Select all

\def\section*#1{\begin{center}\bfseries\MakeUppercase{#1}\end{center}}
Try this right before \begin{thebibliography}{9}.

I cannot see what you mean with the extra space in square brackets. Can you post a screenshot or small example pdf? Or have a look at this minmal example, compile it and look at the result:

Code: Select all

\documentclass[a4paper,10pt]{article}
\begin{document}
\begin{center}
{\bf 5. CONCLUSIONS}
\end{center}
See \cite{Clarke}.
\def\section*#1{\begin{center}\bfseries\MakeUppercase{#1}\end{center}}
\begin{thebibliography}{9}
\bibitem{Clarke}
F. H. Clarke,
\newblock {\em Optimization and Nonsmooth Analysis},
SIAM, Classics in Applied Mathematics, Philadelphia, 1990.
\end{thebibliography}
\end{document}
Stefan
LaTeX.org admin
Humberto Munoz
Posts: 15
Joined: Fri May 16, 2008 3:07 pm

Paper specifications

Post by Humberto Munoz »

Stefan_K wrote:Ah, you are using article, then the code above has to be changed slightly:

Code: Select all

\def\section*#1{\begin{center}\bfseries\MakeUppercase{#1}\end{center}}
Try this right before \begin{thebibliography}{9}.

I cannot see what you mean with the extra space in square brackets. Can you post a screenshot or small example pdf? Or have a look at this minmal example, compile it and look at the result:

Code: Select all

\documentclass[a4paper,10pt]{article}
\begin{document}
\begin{center}
{\bf 5. CONCLUSIONS}
\end{center}
See \cite{Clarke}.
\def\section*#1{\begin{center}\bfseries\MakeUppercase{#1}\end{center}}
\begin{thebibliography}{9}
\bibitem{Clarke}
F. H. Clarke,
\newblock {\em Optimization and Nonsmooth Analysis},
SIAM, Classics in Applied Mathematics, Philadelphia, 1990.
\end{thebibliography}
\end{document}
Stefan
The extra space ocurred when I use
\begin{center}
{\bf 6. REFERENCES}
\end{center}

\begin{itemize}
\item[[1]] F. H. Clarke, {\bf Optimization and Nonsmooth Analysis},
SIAM, Classics in Applied Mathematics, Philadelphia, 1990.
\end{itemize}

How can I number the heading references, 6. REFERENCES?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Paper specifications

Post by Stefan Kottwitz »

Hi Humberto,
Humberto Munoz wrote:The extra space ocurred when I use

Code: Select all

\begin{itemize}
  \item[[1]] F. H. Clarke, {\bf Optimization and Nonsmooth Analysis},
SIAM, Classics in Applied Mathematics, Philadelphia, 1990.
\end{itemize}
If you use thebibliography and \bibitem again, then it should go away.
Humberto Munoz wrote:How can I number the heading references, 6. REFERENCES?
the quick way:

Code: Select all

\renewcommand*\refname{6. REFERENCES}
In general it's not good LaTeX style to number manually etc. instead of using \section etc. If you want to customize your sectioning titles like centering the titlesec package helps.

Stefan
LaTeX.org admin
Humberto Munoz
Posts: 15
Joined: Fri May 16, 2008 3:07 pm

Paper specifications

Post by Humberto Munoz »

Stefan_K wrote:Hi Humberto,
Humberto Munoz wrote:The extra space ocurred when I use

Code: Select all

\begin{itemize}
  \item[[1]] F. H. Clarke, {\bf Optimization and Nonsmooth Analysis},
SIAM, Classics in Applied Mathematics, Philadelphia, 1990.
\end{itemize}
If you use thebibliography and \bibitem again, then it should go away.
Humberto Munoz wrote:How can I number the heading references, 6. REFERENCES?
the quick way:

Code: Select all

\renewcommand*\refname{6. REFERENCES}
In general it's not good LaTeX style to number manually etc. instead of using \section etc. If you want to customize your sectioning titles like centering the titlesec package helps.

Stefan
Stefan,
It works. You have helped me a lot to finish my paper specifications. I will use your advices to improve my LaTex style.
Thanks so much
Humberto
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Paper specifications

Post by Stefan Kottwitz »

No problem, I understand if you have to finish your work and perhaps you have not yet enough time to read through a lot of documentation, but that will come. I just had to recommend titlesec - if I don't do it then somebody else would probably. ;)

After including titlesec the sectioning format can be changed with one line, for example:

Code: Select all

\titleformat*{\section}{\centering\large\bfseries\scshape}
For illustration one complete example follows. Not perfect, just illustrating titlesec.

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage{titlesec,bold-extra,blindtext}
\titleformat*{\section}{\centering\large\bfseries\scshape}
\begin{document}
\tableofcontents
\section{Introduction} \blindtext
\section{More} \blindtext
\section{And More} \blindtext
\section{Still More} \blindtext
\section{Conclusions} \blindtext
See \cite{Clarke}.
\let\stdsection\section% workaround for numbering:
\def\section*#1{\stdsection{#1}}
\begin{thebibliography}{9}
\bibitem{Clarke}
F. H. Clarke,
\newblock {\em Optimization and Nonsmooth Analysis},
SIAM, Classics in Applied Mathematics, Philadelphia, 1990.
\end{thebibliography}
\end{document}
Just in case you don't have bold-extra or blindtext yet etc. I will attach a pdf file for demonstration and remove it later.

Stefan
Attachments
demo.pdf
(38.51 KiB) Downloaded 441 times
LaTeX.org admin
Post Reply