0

I am writing an article by just simply using \documentclass[11pt,a4paper,onesided]{article}. I would like to know how can I put the number 1 that appears at the very beginning of a paragraph in the picture:

enter image description here

This is not a thesis or something related, it is just a simple article containing four pages.

  • An article does not have chapters. – Johannes_B Jun 25 '19 at 4:20
  • You get the idea – NaveganTeX Jun 25 '19 at 4:22
  • 3
  • 1
    @naveganTeX do you want the numbering to be automatic or do you want to provide the number manually? Unrelated: in English the singular of 'matrices' is normally 'matrix' and not 'matrice' (but maybe you have a good reason to use 'matrice', I don't know). – Marijn Jun 25 '19 at 5:49
  • I would love the numbering to be automatic! How can I achieve that? Regarding "Matrice", the text is from a friend of mine, I did not write it. I just took it to illustrate what I wanted. – NaveganTeX Jun 25 '19 at 5:51
3

How about

\documentclass{article}
\usepackage{lettrine}
\usepackage{lipsum}
\begin{document}
\lettrine{\sffamily 1}{} \lipsum[1]
\end{document}

enter image description here

| improve this answer | |
  • Haha, you're the one! Thank you very much! If I could, I would be doing up-voting for you with bots, but I'm afraid it is not possible, is it? haha – NaveganTeX Jun 25 '19 at 5:10
  • @naveganTeX Thanks! But please do not do serial upvoting. Such votes defeat the purpose and will be reversed anyway. Upvote any post which you like, regardless of who wrote it. (See also tex.meta.stackexchange.com/questions/8184/…) – user121799 Jun 25 '19 at 5:13
  • I know! I was only kidding. It is just a way of showing my gratitude to you for the hand you give me. – NaveganTeX Jun 25 '19 at 5:14
  • 1
    @naveganTeX You're welcome! – user121799 Jun 25 '19 at 5:15
1

Extending the nice answer by marmot here a solution with automatic numbering. It works by defining a new counter lettrinectr, initially with value 1, and a macro \lettrinenext is defined to be used for each paragraph that prints the current number and increases the counter by one.

MWE:

\documentclass{article}
\usepackage{lettrine}
\usepackage{lipsum}
\newcounter{lettrinectr}
\setcounter{lettrinectr}{1}
\newcommand{\lettrinenext}{%
\lettrine{\sffamily \thelettrinectr}{} %
\stepcounter{lettrinectr}%
}

\begin{document}
\lettrinenext \lipsum[1]
\lettrinenext \lipsum[1]
\end{document}

Result:

enter image description here

| improve this answer | |

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.