Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is my minimal working code:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english,french,russian,swedish]{babel}
\begin{document}
  \selectlanguage{french}

  \begin{center}
  \fontsize{23pt}{25pt} \textbf{TH\'{E}SE} \\[8mm]
  \normalsize  PR\'{E}SENT\'{E}E A\\[7mm]
  \Large\textbf{L'UNIVERSIT\'{E} BORDEAUX 1}\\[10mm]
  \end{center}

\end{document}

What I need to do? I need to have exact size of font for every line and distance between bottom of upper line to up of line located below should be fixed. For fisrt two lines it should be 8 mm, then 7 and 10 at last. I've found how to set distances:

text \\[<distance>]

But it does not provide me what I need.

My second question concerns the:

\fontsize{23pt}{25pt}

Why I can not set font size bigger than 23pt, I would like to have bigger. And why second parameter does not effect behavior at all?

Thank you in advance.

share|improve this question
    
For the second question: try loading the anyfontsize pacakge, and it may also be an ise to load fontenc with the T1 option. BTW: If you are using utf8 then why the \'{E}? and not É –  daleif Jan 28 at 20:27
    
This works. Thanks. By the way concerning the my second question, what does second parameter do? –  saldenisov Jan 28 at 20:31
    
It fixes the interline length. Usually, it's 20-25% more than the first. And after \fontsize, you should add \selectfont to validate. For instance, \fontsize{48}{60}\selectfont. If it's only a matter of increasing the interline, you can use the setspace package, and write, say \setstretch{1.06}, which increase the interline by 6%. –  Bernard Jan 28 at 20:44
    
\fontsize sets the fontsize and the baseline skip. Note taht it does not have to be in pt –  daleif Jan 28 at 20:45

3 Answers 3

up vote 8 down vote accepted

You can resort to lower level commands; I'll add some rules to show that the distance is what's expected, although it's not clear whether accents should be taken into account. For arbitrary font size, load fix-cm.

\documentclass[12pt,a4paper]{article}
\usepackage[T2A,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian,swedish,french]{babel}
\usepackage{fix-cm}

\begin{document}

{\centering
\fontsize{23pt}{0pt}\selectfont
\textbf{TH\'{E}SE}\smash{\rlap{\vrule depth 8mm}} \\
\nointerlineskip\vspace{8mm}
\normalsize  PR\'{E}SENT\'{E}E A\smash{\rlap{\vrule depth 7mm}}\\
\nointerlineskip\vspace{7mm}
\Large\textbf{L'UNIVERSIT\'{E} BORDEAUX 1}\smash{\rlap{\vrule depth 10mm}}\\
\nointerlineskip\vspace{10mm}}
Other text to see what's the distance from the last line

\end{document}

enter image description here

share|improve this answer

The default stack of the stackengine package is a "short" stack, in which the vertical gap between adjacent objects is set. So here, I just use a compound stack, specifying that gap with each nesting. By contrast, a long stack (not used here) will set the distance between adjacent baselines.

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english,french,russian,swedish]{babel}
\usepackage[usestackEOL]{stackengine}
\begin{document}
  \selectlanguage{french}
\parskip 10mm
{\centering
  \stackunder[7mm]{%
    \stackunder[8mm]{%
      \fontsize{23pt}{25pt} \textbf{TH\'{E}SE}%
    }{%
      \normalsize  PR\'{E}SENT\'{E}E A%
    }%
  }{%
    \Large\textbf{L'UNIVERSIT\'{E} BORDEAUX 1}%
  }%
\par}

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

\parskip 0mm
YYYYYYYYYYYYYY
\end{document}

enter image description here

share|improve this answer
    
Thank You a lot! This exactly what i was searching for! –  saldenisov Jan 28 at 21:08

The linespacing in TeX is baseline to baseline, not from base of one to top of another (top is a bit undefined do you mean top of the letters used or the position where (say) an accented capital would be)

The linespacing is per paragraph which is why you should normally use {\small xxxx \par} rather than just {\small xxxx} so that the font change is in scope at the end of the paragraph and a suitable baseline used.

Normally \\ does not start a paragraph and

  \fontsize{23pt}{25pt} \textbf{TH\'{E}SE} \\
  \normalsize  PR\'{E}SENT\'{E}E A\\
  \Large\textbf{L'UNIVERSIT\'{E} BORDEAUX 1}\\

would set all the text to the baseline specified by \Large . As it happens center uses a special version of \\ that does internally use \par. so inside a center they do get specified baselines.

The default font sizes of latex for Computer Modern are restricted to the sizes commonly available when these fonts were distributed as bitmap formats. If you use a scalable font such as times then any size may be used, or to tell latex that computer modern is scalable use the fixcm package.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.