0

I have paragraphs, I want them to look like in the image (without blank line in between but with an indent)

enter image description here

when I use "\\" a blanc line appears in the pdf file so, how to procede for that ?

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,francais]{babel}
\begin{document}
\section*{Résumé}

Notre projet consiste à la .................., toutes deux connectées à la même base de données.

\par Nous souhaitons à travers .............. le temps nécessaire à les accomplir.

\end{document}

this is how it looks now

enter image description here

  • Can you please add a MWE so that we can help you? – SeRe Aug 12 '16 at 11:48
  • \usepackage{indentfirst} makes an indent after captions – SeRe Aug 12 '16 at 11:49
  • As usual, your not providing any help by posting a MWE :-( – user31729 Aug 12 '16 at 11:51
  • I put a code and a figure, I tried double backslashes and \par but same result with both – Hind Dev Aug 12 '16 at 12:18
  • Running your example, I do not get a blank line – user36296 Aug 12 '16 at 12:19
1

I propose two solutions: one uses the \paragraph sectioning command, the other is based on a convenient version of the description environment and is obtained as a resume environment (might be not a very good naming choice). As I don't know if you want it to use a sans font, I gave examples of both:

\documentclass[a4paper, english,francais]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}

\usepackage{enumitem}

\newenvironment{resume}{%
\sffamily
\newlength\resindent\settowidth{\resindent}{\bfseries Résumé}
\setlist[description]{style=nextline, leftmargin=0pt, listparindent=\resindent, font=\sffamily}
\description%
\item[Résumé]\leavevmode\vspace{-\baselineskip}\par
}%
{\enddescription}

\newcommand\Dotsfor[1]{%
\def\mydotfill{\xleaders\hbox to0.25em{\hfil.\hfil}\hfill}\makebox[#1]{\leavevmode\mydotfill}}

\begin{document}

\paragraph{Résumé}\mbox{}\par

Notre projet consiste à la \Dotsfor{2cm}, toutes deux connectées à la même base de données.

\par Nous souhaitons à travers \Dotsfor{2cm} le temps nécessaire à les accomplir.
\bigskip
\begin{resume}
Notre projet consiste à la \Dotsfor{2cm}, toutes deux connectées à la même base de données.

\par Nous souhaitons à travers \Dotsfor{2cm} le temps nécessaire à les accomplir.
\end{resume}

\end{document} 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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