Numbering like equations for regular textNumber every line of pagesCross referencing to any reference counter without adding labelsNumbering theorem-like environmentsNumbering sequent proofs like equationsChoosing numbering on equationsSection numbering with numbering like 1.11Numbering equationsNumbering equations in AppendixNumbering for a whole system of equations

First aid scissors confiscated by Dubai airport security

UK PM is taking his proposal to EU but has not proposed to his own parliament - can he legally bypass the UK parliament?

SQL server backup message

Fill a bowl with alphabet soup

How long should a test wait to assume that the result remains fixed

Reference request: Long-term behaviour of the heat equation for bounded initial data

My name was added to manuscript as co-author without my consent; how to get it removed?

Can you use wish to cast a level 9 spell?

Are there any privately owned large commercial airports?

Can I use I2C over 2m cables?

If the law cited as the reason for an impeachment article is rendered unconstitutional, does that nullify the impeachment article?

A variant of the Shortest Path Problem

How to remind myself to lock my doors

Prove the inequality is true

What good is Divine Sense?

What is the meaning of "shop-wise" in "… and talk turned shop-wise"?

5v home network

Transferring 9 pegs on a 9x9 grid

Should a grammatical article be a part of a web link anchor

Applying rules on rules

"Kept that sister of his quiet" meaning

Why is coffee provided during big chess events when it contains a banned substance?

Why is lying to Congress a crime?

Numbering like equations for regular text



Numbering like equations for regular text


Number every line of pagesCross referencing to any reference counter without adding labelsNumbering theorem-like environmentsNumbering sequent proofs like equationsChoosing numbering on equationsSection numbering with numbering like 1.11Numbering equationsNumbering equations in AppendixNumbering for a whole system of equations






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









3

















I want to use have numbering like equations for some regular text. So I am using equation environment. I am not writing any mathematics in it, so I'll also use textrm.



This is my basic code -



documentclass[fleqn]article
setlengthmathindent0pt

begindocument
noindent Select an\
Select apple\
beginequation
textrmMerge an & apple.
endequation
enddocument


If I am not wrong the equation comes as a new paragraph as it has an indent and it also leaves some space in between. (Please correct me if I'm wrong.) Basically I don't want this paragraph & I want this change globally. I've already removed the indent by modifying the mathindent Is there any way to change something like mathpar?




Screenshot of the desired output - (but with the equation number)
1




Code with the help of the solution provided by leandriis -



documentclass[fleqn]article
usepackageamsmath
setlengthmathindent0pt
newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument
noindent Select an\
Select apple\
Merge an & apple. mynofirst\

Now merge eqreffirst
enddocument


This code produced -



2










share|improve this question




























  • Could you please explain the purpose of an equation environment if there will be no math in it?

    – leandriis
    10 hours ago











  • Probably a screenshot of the desired layout (and a bit of background info) might be useful.

    – leandriis
    10 hours ago






  • 1





    Are you writing an algorithm where a special line need to be numbered and referenced?

    – Ruixi Zhang
    10 hours ago







  • 2





    Possible duplicate of Number every line of pages

    – Teepeemm
    8 hours ago






  • 1





    Specifically, usepackagelinenomakeLineNumberRight and linelabelmylabel. But also, (1) An algorithm is not regular text is definitely not an equation. (2) It would have been very helpful to have mentioned why you want this.

    – Teepeemm
    8 hours ago

















3

















I want to use have numbering like equations for some regular text. So I am using equation environment. I am not writing any mathematics in it, so I'll also use textrm.



This is my basic code -



documentclass[fleqn]article
setlengthmathindent0pt

begindocument
noindent Select an\
Select apple\
beginequation
textrmMerge an & apple.
endequation
enddocument


If I am not wrong the equation comes as a new paragraph as it has an indent and it also leaves some space in between. (Please correct me if I'm wrong.) Basically I don't want this paragraph & I want this change globally. I've already removed the indent by modifying the mathindent Is there any way to change something like mathpar?




Screenshot of the desired output - (but with the equation number)
1




Code with the help of the solution provided by leandriis -



documentclass[fleqn]article
usepackageamsmath
setlengthmathindent0pt
newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument
noindent Select an\
Select apple\
Merge an & apple. mynofirst\

Now merge eqreffirst
enddocument


This code produced -



2










share|improve this question




























  • Could you please explain the purpose of an equation environment if there will be no math in it?

    – leandriis
    10 hours ago











  • Probably a screenshot of the desired layout (and a bit of background info) might be useful.

    – leandriis
    10 hours ago






  • 1





    Are you writing an algorithm where a special line need to be numbered and referenced?

    – Ruixi Zhang
    10 hours ago







  • 2





    Possible duplicate of Number every line of pages

    – Teepeemm
    8 hours ago






  • 1





    Specifically, usepackagelinenomakeLineNumberRight and linelabelmylabel. But also, (1) An algorithm is not regular text is definitely not an equation. (2) It would have been very helpful to have mentioned why you want this.

    – Teepeemm
    8 hours ago













3












3








3








I want to use have numbering like equations for some regular text. So I am using equation environment. I am not writing any mathematics in it, so I'll also use textrm.



This is my basic code -



documentclass[fleqn]article
setlengthmathindent0pt

begindocument
noindent Select an\
Select apple\
beginequation
textrmMerge an & apple.
endequation
enddocument


If I am not wrong the equation comes as a new paragraph as it has an indent and it also leaves some space in between. (Please correct me if I'm wrong.) Basically I don't want this paragraph & I want this change globally. I've already removed the indent by modifying the mathindent Is there any way to change something like mathpar?




Screenshot of the desired output - (but with the equation number)
1




Code with the help of the solution provided by leandriis -



documentclass[fleqn]article
usepackageamsmath
setlengthmathindent0pt
newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument
noindent Select an\
Select apple\
Merge an & apple. mynofirst\

Now merge eqreffirst
enddocument


This code produced -



2










share|improve this question
















I want to use have numbering like equations for some regular text. So I am using equation environment. I am not writing any mathematics in it, so I'll also use textrm.



This is my basic code -



documentclass[fleqn]article
setlengthmathindent0pt

begindocument
noindent Select an\
Select apple\
beginequation
textrmMerge an & apple.
endequation
enddocument


If I am not wrong the equation comes as a new paragraph as it has an indent and it also leaves some space in between. (Please correct me if I'm wrong.) Basically I don't want this paragraph & I want this change globally. I've already removed the indent by modifying the mathindent Is there any way to change something like mathpar?




Screenshot of the desired output - (but with the equation number)
1




Code with the help of the solution provided by leandriis -



documentclass[fleqn]article
usepackageamsmath
setlengthmathindent0pt
newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument
noindent Select an\
Select apple\
Merge an & apple. mynofirst\

Now merge eqreffirst
enddocument


This code produced -



2







numbering






share|improve this question















share|improve this question













share|improve this question




share|improve this question



share|improve this question








edited 9 hours ago







Niranjan

















asked 10 hours ago









NiranjanNiranjan

41812 bronze badges




41812 bronze badges















  • Could you please explain the purpose of an equation environment if there will be no math in it?

    – leandriis
    10 hours ago











  • Probably a screenshot of the desired layout (and a bit of background info) might be useful.

    – leandriis
    10 hours ago






  • 1





    Are you writing an algorithm where a special line need to be numbered and referenced?

    – Ruixi Zhang
    10 hours ago







  • 2





    Possible duplicate of Number every line of pages

    – Teepeemm
    8 hours ago






  • 1





    Specifically, usepackagelinenomakeLineNumberRight and linelabelmylabel. But also, (1) An algorithm is not regular text is definitely not an equation. (2) It would have been very helpful to have mentioned why you want this.

    – Teepeemm
    8 hours ago

















  • Could you please explain the purpose of an equation environment if there will be no math in it?

    – leandriis
    10 hours ago











  • Probably a screenshot of the desired layout (and a bit of background info) might be useful.

    – leandriis
    10 hours ago






  • 1





    Are you writing an algorithm where a special line need to be numbered and referenced?

    – Ruixi Zhang
    10 hours ago







  • 2





    Possible duplicate of Number every line of pages

    – Teepeemm
    8 hours ago






  • 1





    Specifically, usepackagelinenomakeLineNumberRight and linelabelmylabel. But also, (1) An algorithm is not regular text is definitely not an equation. (2) It would have been very helpful to have mentioned why you want this.

    – Teepeemm
    8 hours ago
















Could you please explain the purpose of an equation environment if there will be no math in it?

– leandriis
10 hours ago





Could you please explain the purpose of an equation environment if there will be no math in it?

– leandriis
10 hours ago













Probably a screenshot of the desired layout (and a bit of background info) might be useful.

– leandriis
10 hours ago





Probably a screenshot of the desired layout (and a bit of background info) might be useful.

– leandriis
10 hours ago




1




1





Are you writing an algorithm where a special line need to be numbered and referenced?

– Ruixi Zhang
10 hours ago






Are you writing an algorithm where a special line need to be numbered and referenced?

– Ruixi Zhang
10 hours ago





2




2





Possible duplicate of Number every line of pages

– Teepeemm
8 hours ago





Possible duplicate of Number every line of pages

– Teepeemm
8 hours ago




1




1





Specifically, usepackagelinenomakeLineNumberRight and linelabelmylabel. But also, (1) An algorithm is not regular text is definitely not an equation. (2) It would have been very helpful to have mentioned why you want this.

– Teepeemm
8 hours ago





Specifically, usepackagelinenomakeLineNumberRight and linelabelmylabel. But also, (1) An algorithm is not regular text is definitely not an equation. (2) It would have been very helpful to have mentioned why you want this.

– Teepeemm
8 hours ago










2 Answers
2






active

oldest

votes


















6


















Probably you could use something like the following:



enter image description here



The blue lines indicate the text width. The red box around the reference is caused by hyperref.



documentclass[fleqn]article

usepackagetabularx
usepackagehyperref
setlengthparindent0pt

newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument

begintabularxtextwidth@Xr@
Select an \
Select apple \
Merge an & apple. & mynolabel\
endtabularx

Here comes a reference: reflabel

enddocument





share|improve this answer


























  • Yes this is a good solution for me. Actually the tabular package is not needed for my purpose, but your definitions helped me. Thank you so much.

    – Niranjan
    9 hours ago











  • Hey! I am sorry, I said this worked for me, but I want the number to come on the extreme right of the page as it comes in the equation environment. Please tell me how to do it.

    – Niranjan
    8 hours ago











  • @Niranjan: As you can see from my screenshot, the numbers are in fact already at the right margin. This is due to me using tabularx. If you insist on not using a table, you probably can use something like Merge an & apple. hfill mynolabel instead.

    – leandriis
    8 hours ago











  • Oh yes. Thanks!

    – Niranjan
    7 hours ago


















6


















I guess you want something like this:



documentclassarticle
usepackageamsmath

usepackagelipsum % for context

begindocument

lipsum[1][1-3]
beginflalign
begintabular@l@
Select an\
Select apple\
Merge an & apple.
endtabular&&labelwhatever
endflalign
lipsum*[2][1-3]

Reference to the thing above is refwhatever.

enddocument


enter image description here






share|improve this answer




























  • Thanks, but this is probably not what I want, because I also want to refer them. Answer provided by @leandriis works fine for me.

    – Niranjan
    9 hours ago











  • @Niranjan You just add labelwhatever outside the tabular and use refwhatever. I added it.

    – egreg
    9 hours ago












  • Yes please see the edit. I've changed the question as I just realized equation was not a right choice.

    – Niranjan
    9 hours ago












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f510794%2fnumbering-like-equations-for-regular-text%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









6


















Probably you could use something like the following:



enter image description here



The blue lines indicate the text width. The red box around the reference is caused by hyperref.



documentclass[fleqn]article

usepackagetabularx
usepackagehyperref
setlengthparindent0pt

newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument

begintabularxtextwidth@Xr@
Select an \
Select apple \
Merge an & apple. & mynolabel\
endtabularx

Here comes a reference: reflabel

enddocument





share|improve this answer


























  • Yes this is a good solution for me. Actually the tabular package is not needed for my purpose, but your definitions helped me. Thank you so much.

    – Niranjan
    9 hours ago











  • Hey! I am sorry, I said this worked for me, but I want the number to come on the extreme right of the page as it comes in the equation environment. Please tell me how to do it.

    – Niranjan
    8 hours ago











  • @Niranjan: As you can see from my screenshot, the numbers are in fact already at the right margin. This is due to me using tabularx. If you insist on not using a table, you probably can use something like Merge an & apple. hfill mynolabel instead.

    – leandriis
    8 hours ago











  • Oh yes. Thanks!

    – Niranjan
    7 hours ago















6


















Probably you could use something like the following:



enter image description here



The blue lines indicate the text width. The red box around the reference is caused by hyperref.



documentclass[fleqn]article

usepackagetabularx
usepackagehyperref
setlengthparindent0pt

newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument

begintabularxtextwidth@Xr@
Select an \
Select apple \
Merge an & apple. & mynolabel\
endtabularx

Here comes a reference: reflabel

enddocument





share|improve this answer


























  • Yes this is a good solution for me. Actually the tabular package is not needed for my purpose, but your definitions helped me. Thank you so much.

    – Niranjan
    9 hours ago











  • Hey! I am sorry, I said this worked for me, but I want the number to come on the extreme right of the page as it comes in the equation environment. Please tell me how to do it.

    – Niranjan
    8 hours ago











  • @Niranjan: As you can see from my screenshot, the numbers are in fact already at the right margin. This is due to me using tabularx. If you insist on not using a table, you probably can use something like Merge an & apple. hfill mynolabel instead.

    – leandriis
    8 hours ago











  • Oh yes. Thanks!

    – Niranjan
    7 hours ago













6














6










6









Probably you could use something like the following:



enter image description here



The blue lines indicate the text width. The red box around the reference is caused by hyperref.



documentclass[fleqn]article

usepackagetabularx
usepackagehyperref
setlengthparindent0pt

newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument

begintabularxtextwidth@Xr@
Select an \
Select apple \
Merge an & apple. & mynolabel\
endtabularx

Here comes a reference: reflabel

enddocument





share|improve this answer














Probably you could use something like the following:



enter image description here



The blue lines indicate the text width. The red box around the reference is caused by hyperref.



documentclass[fleqn]article

usepackagetabularx
usepackagehyperref
setlengthparindent0pt

newcountermynumber
newcommandmyno[1]refstepcountermynumber(arabicmynumber)label#1

begindocument

begintabularxtextwidth@Xr@
Select an \
Select apple \
Merge an & apple. & mynolabel\
endtabularx

Here comes a reference: reflabel

enddocument






share|improve this answer













share|improve this answer




share|improve this answer



share|improve this answer










answered 10 hours ago









leandriisleandriis

21.1k1 gold badge11 silver badges40 bronze badges




21.1k1 gold badge11 silver badges40 bronze badges















  • Yes this is a good solution for me. Actually the tabular package is not needed for my purpose, but your definitions helped me. Thank you so much.

    – Niranjan
    9 hours ago











  • Hey! I am sorry, I said this worked for me, but I want the number to come on the extreme right of the page as it comes in the equation environment. Please tell me how to do it.

    – Niranjan
    8 hours ago











  • @Niranjan: As you can see from my screenshot, the numbers are in fact already at the right margin. This is due to me using tabularx. If you insist on not using a table, you probably can use something like Merge an & apple. hfill mynolabel instead.

    – leandriis
    8 hours ago











  • Oh yes. Thanks!

    – Niranjan
    7 hours ago

















  • Yes this is a good solution for me. Actually the tabular package is not needed for my purpose, but your definitions helped me. Thank you so much.

    – Niranjan
    9 hours ago











  • Hey! I am sorry, I said this worked for me, but I want the number to come on the extreme right of the page as it comes in the equation environment. Please tell me how to do it.

    – Niranjan
    8 hours ago











  • @Niranjan: As you can see from my screenshot, the numbers are in fact already at the right margin. This is due to me using tabularx. If you insist on not using a table, you probably can use something like Merge an & apple. hfill mynolabel instead.

    – leandriis
    8 hours ago











  • Oh yes. Thanks!

    – Niranjan
    7 hours ago
















Yes this is a good solution for me. Actually the tabular package is not needed for my purpose, but your definitions helped me. Thank you so much.

– Niranjan
9 hours ago





Yes this is a good solution for me. Actually the tabular package is not needed for my purpose, but your definitions helped me. Thank you so much.

– Niranjan
9 hours ago













Hey! I am sorry, I said this worked for me, but I want the number to come on the extreme right of the page as it comes in the equation environment. Please tell me how to do it.

– Niranjan
8 hours ago





Hey! I am sorry, I said this worked for me, but I want the number to come on the extreme right of the page as it comes in the equation environment. Please tell me how to do it.

– Niranjan
8 hours ago













@Niranjan: As you can see from my screenshot, the numbers are in fact already at the right margin. This is due to me using tabularx. If you insist on not using a table, you probably can use something like Merge an & apple. hfill mynolabel instead.

– leandriis
8 hours ago





@Niranjan: As you can see from my screenshot, the numbers are in fact already at the right margin. This is due to me using tabularx. If you insist on not using a table, you probably can use something like Merge an & apple. hfill mynolabel instead.

– leandriis
8 hours ago













Oh yes. Thanks!

– Niranjan
7 hours ago





Oh yes. Thanks!

– Niranjan
7 hours ago













6


















I guess you want something like this:



documentclassarticle
usepackageamsmath

usepackagelipsum % for context

begindocument

lipsum[1][1-3]
beginflalign
begintabular@l@
Select an\
Select apple\
Merge an & apple.
endtabular&&labelwhatever
endflalign
lipsum*[2][1-3]

Reference to the thing above is refwhatever.

enddocument


enter image description here






share|improve this answer




























  • Thanks, but this is probably not what I want, because I also want to refer them. Answer provided by @leandriis works fine for me.

    – Niranjan
    9 hours ago











  • @Niranjan You just add labelwhatever outside the tabular and use refwhatever. I added it.

    – egreg
    9 hours ago












  • Yes please see the edit. I've changed the question as I just realized equation was not a right choice.

    – Niranjan
    9 hours ago















6


















I guess you want something like this:



documentclassarticle
usepackageamsmath

usepackagelipsum % for context

begindocument

lipsum[1][1-3]
beginflalign
begintabular@l@
Select an\
Select apple\
Merge an & apple.
endtabular&&labelwhatever
endflalign
lipsum*[2][1-3]

Reference to the thing above is refwhatever.

enddocument


enter image description here






share|improve this answer




























  • Thanks, but this is probably not what I want, because I also want to refer them. Answer provided by @leandriis works fine for me.

    – Niranjan
    9 hours ago











  • @Niranjan You just add labelwhatever outside the tabular and use refwhatever. I added it.

    – egreg
    9 hours ago












  • Yes please see the edit. I've changed the question as I just realized equation was not a right choice.

    – Niranjan
    9 hours ago













6














6










6









I guess you want something like this:



documentclassarticle
usepackageamsmath

usepackagelipsum % for context

begindocument

lipsum[1][1-3]
beginflalign
begintabular@l@
Select an\
Select apple\
Merge an & apple.
endtabular&&labelwhatever
endflalign
lipsum*[2][1-3]

Reference to the thing above is refwhatever.

enddocument


enter image description here






share|improve this answer
















I guess you want something like this:



documentclassarticle
usepackageamsmath

usepackagelipsum % for context

begindocument

lipsum[1][1-3]
beginflalign
begintabular@l@
Select an\
Select apple\
Merge an & apple.
endtabular&&labelwhatever
endflalign
lipsum*[2][1-3]

Reference to the thing above is refwhatever.

enddocument


enter image description here







share|improve this answer















share|improve this answer




share|improve this answer



share|improve this answer








edited 9 hours ago

























answered 9 hours ago









egregegreg

773k92 gold badges2017 silver badges3378 bronze badges




773k92 gold badges2017 silver badges3378 bronze badges















  • Thanks, but this is probably not what I want, because I also want to refer them. Answer provided by @leandriis works fine for me.

    – Niranjan
    9 hours ago











  • @Niranjan You just add labelwhatever outside the tabular and use refwhatever. I added it.

    – egreg
    9 hours ago












  • Yes please see the edit. I've changed the question as I just realized equation was not a right choice.

    – Niranjan
    9 hours ago

















  • Thanks, but this is probably not what I want, because I also want to refer them. Answer provided by @leandriis works fine for me.

    – Niranjan
    9 hours ago











  • @Niranjan You just add labelwhatever outside the tabular and use refwhatever. I added it.

    – egreg
    9 hours ago












  • Yes please see the edit. I've changed the question as I just realized equation was not a right choice.

    – Niranjan
    9 hours ago
















Thanks, but this is probably not what I want, because I also want to refer them. Answer provided by @leandriis works fine for me.

– Niranjan
9 hours ago





Thanks, but this is probably not what I want, because I also want to refer them. Answer provided by @leandriis works fine for me.

– Niranjan
9 hours ago













@Niranjan You just add labelwhatever outside the tabular and use refwhatever. I added it.

– egreg
9 hours ago






@Niranjan You just add labelwhatever outside the tabular and use refwhatever. I added it.

– egreg
9 hours ago














Yes please see the edit. I've changed the question as I just realized equation was not a right choice.

– Niranjan
9 hours ago





Yes please see the edit. I've changed the question as I just realized equation was not a right choice.

– Niranjan
9 hours ago


















draft saved

draft discarded















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f510794%2fnumbering-like-equations-for-regular-text%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown