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.

I would like in a Latex document making a sub-section and then go back to the level of the section. But I can find out how to do it.

So my code:

\documentclass[a4paper, 10pt]{article}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
%\usepackage{pdfpages} 
%\usepackage[lined]{algorithm2e}
%\usepackage{enumerate}
%\usepackage{moreverb}

\begin{document}
\section{deal}
\subsection{Paramétrisation du tracé}
Il faut faire attention aux valeurs rentrer par l'utilisateur dans ces champs, effectivement
beaucoup de valeurs sont à exclure. Les premières valeurs à exclure, sont à exclure pour tous les
paramètres, il s'agit de tout ce qui n'est pas des nombres.
\subsubsection{Range}
Les valeurs des différents range ($x$ et $y$) doivent absolument être des valeurs positives, car un
range négatif n'a aucun sens.
\subsubsection{Center}
Tous nombres entrés est acceptable comme valeurs.
\subsubsection{Step}
Ici, comme pour le range, seules des valeurs positives peuvent être acceptées.
%there I want to come back to the level of the section
Afin de signaler ces erreurs, le programme utilise le module \emph{tkMessageBox} et affiche donc
des \emph{showwarning} afn de signaler à l'utilisateur ses erreurs.
\end{document}

PS: I'm french so sorry for the french text.

share|improve this question
    
Would some extra white-space or a typographic sign (like a fleuron or three asterisks) be a satisfactory option for you? Then one could create a command that does it (seeing as you can't "end" a subsection semantically). –  ienissei Mar 18 '12 at 10:31
    
Yes of course it would be great –  kasmanit Mar 18 '12 at 10:33
    
See also this question. –  ienissei Mar 30 '12 at 9:10
add comment

1 Answer

up vote 4 down vote accepted

You can try something like this:

\documentclass{article}

\usepackage{lipsum}

\usepackage{fourier-orns}

\newcommand{\fleuron}{
    \par\nopagebreak
    \parbox{\linewidth}{
        \centering\bigskip\aldineleft\par\bigskip
    }
}

\newcommand{\ornament}{
    \par\nopagebreak
    \parbox{\linewidth}{
        \centering\bigskip$\ast$\par$\ast\quad\ast$\par\bigskip
    }
}

\begin{document}

\section{A Section}

\lipsum[1]

\subsection{A Subsection}

\lipsum[2]

\fleuron

\lipsum[3]

\ornament

\lipsum[4]

\end{document}

Fleuron

Asterism

Note that the lipsum package is only used to create dummy text (quite useful when you write a MWE). The fourier-orns package is used by the first command (\fleuron), but there are other available packages. And the second command (\ornament) uses math mode to get the asterisks right because it is easier than in text mode.

Normally, the \parbox should prevent page breaks in the middle of the ornaments.

You can change the amount of vertical space (which is currently \bigskip) to \midskip or \smallskip, or even to an arbitrary length via \vspace{<length>}.

share|improve this answer
    
@kasmanit I have added the links in my answer. Both packages are on CTAN and I think they must ship with most distributions. –  ienissei Mar 18 '12 at 11:11
    
Ok I see the link but I don't catch how to install it (sorry gor thaht) –  kasmanit Mar 18 '12 at 11:16
    
@kasmanit Did you try to compile it and got a warning? If you click "visit fourier's CTAN directory", you get there and you can download a zip file that contains everything. Then you have to copy the folders and their contents to your local texmf directory (there is a read-me file inside). Where to create that folder depends on your operating system, but I am sure there are plenty of tutorials out there. Which OS are you using? –  ienissei Mar 18 '12 at 11:31
    
I'm running on OpenSuse. I'm searching now for my textmf directory so I can try this way –  kasmanit Mar 18 '12 at 11:33
1  
This work really fine Thanks –  kasmanit Mar 18 '12 at 11:57
show 2 more comments

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.