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.

Bernard
  • 271,350
NaveganTeX
  • 2,630

2 Answers2

3

How about

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

enter image description here

  • 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 05: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 https://tex.meta.stackexchange.com/questions/8184/how-can-one-politely-ask-unknown-users-to-consider-stopping-serial-votings.) –  Jun 25 '19 at 05: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 05:14
  • 1
    @naveganTeX You're welcome! –  Jun 25 '19 at 05: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

Marijn
  • 37,699