* Latex and numprint package @ 2021-11-28 9:52 Vin Cent [not found] ` <c9d650c8-0a08-45bc-8b58-d80e2b584b2dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Vin Cent @ 2021-11-28 9:52 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 939 bytes --] Hi, This is pandoc 2.14.2. I am trying to parse tex files where the numprint package has been used. This is : https://www.ctan.org/pkg/numprint Unfortunately, pandoc seems to not only ignore what \numprint{} provides, but also to mask numbers entirely. For instance, a document containing : I have \numprint{5000} roses in my yard. ends up parsed as : "I have roses in my yard" This seems to occur regardless of the output format (I have tried epub, HTML and even latex output yet). Any suggestions ? Cheers, Vincent -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c9d650c8-0a08-45bc-8b58-d80e2b584b2dn%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1465 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <c9d650c8-0a08-45bc-8b58-d80e2b584b2dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: [SOCIAL]Latex and numprint package [not found] ` <c9d650c8-0a08-45bc-8b58-d80e2b584b2dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-11-28 13:12 ` Denis Bitouzé [not found] ` <87o8641l1v.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Denis Bitouzé @ 2021-11-28 13:12 UTC (permalink / raw) To: pandoc-discuss Le 28/11/21 à 01h52, Vin Cent a écrit : > Hi, Hi, > This is pandoc 2.14.2. Here, with pandoc 2.16.2, but I guess it doesn't matter. > Any suggestions ? No really, except that `\num` from `siunitx` package, which plays the same role as `\numprint` from `numprint` package, works well. This LaTeX MCE (`test.tex`): --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage{numprint} \usepackage{siunitx} \begin{document} I have \numprint{5000} roses in my yard. I have \num{5000} roses in my yard. I have \num{15000} roses in my yard. \end{document} --8<---------------cut here---------------end--------------->8--- processed with: --8<---------------cut here---------------start------------->8--- pandoc -o test.html test.tex --8<---------------cut here---------------end--------------->8--- gives: ┌──── │ <p>I have roses in my yard.</p> │ <p>I have 5000 roses in my yard.</p> │ <p>I have 15000 roses in my yard.</p> └──── Cheers. -- Denis -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/87o8641l1v.fsf%40example.com. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <87o8641l1v.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>]
* Re: [SOCIAL]Latex and numprint package [not found] ` <87o8641l1v.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> @ 2021-11-28 13:37 ` Vin Cent 0 siblings, 0 replies; 3+ messages in thread From: Vin Cent @ 2021-11-28 13:37 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1752 bytes --] Hi Denis, Thanks, that's a perfect workaround. I'll use \num{} from now on. Regards, Vincent On Sunday, November 28, 2021 at 2:12:19 PM UTC+1 Denis Bitouzé wrote: > Le 28/11/21 à 01h52, Vin Cent a écrit : > > > Hi, > > Hi, > > > This is pandoc 2.14.2. > > Here, with pandoc 2.16.2, but I guess it doesn't matter. > > > Any suggestions ? > > No really, except that `\num` from `siunitx` package, which plays the > same role as `\numprint` from `numprint` package, works well. > > This LaTeX MCE (`test.tex`): > > --8<---------------cut here---------------start------------->8--- > \documentclass{article} > \usepackage{numprint} > \usepackage{siunitx} > \begin{document} > I have \numprint{5000} roses in my yard. > > I have \num{5000} roses in my yard. > > I have \num{15000} roses in my yard. > \end{document} > --8<---------------cut here---------------end--------------->8--- > > processed with: > > --8<---------------cut here---------------start------------->8--- > pandoc -o test.html test.tex > --8<---------------cut here---------------end--------------->8--- > > gives: > > ┌──── > │ <p>I have roses in my yard.</p> > │ <p>I have 5000 roses in my yard.</p> > │ <p>I have 15000 roses in my yard.</p> > └──── > > Cheers. > -- > Denis > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1efadfc7-473c-43e8-b3da-29ad64b986f3n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 2501 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-28 13:37 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-11-28 9:52 Latex and numprint package Vin Cent [not found] ` <c9d650c8-0a08-45bc-8b58-d80e2b584b2dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-11-28 13:12 ` [SOCIAL]Latex " Denis Bitouzé [not found] ` <87o8641l1v.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> 2021-11-28 13:37 ` Vin Cent
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).