* Number all paragraphs (for cross references) @ 2018-07-10 9:30 Sage Mad [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-10 9:30 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1203 bytes --] Hello! In my field (PhD in swiss law), most of the book have notes on the margin of each paragraphs. This then allow to reference them (for ex. "see N. x", when x is the number of the paragraph), which produce more exactitude (than pages). Is there a way to do this with pandoc? I saw that there are issues about side or margin notes, but if I understood right, it's about having kind of footnotes on the side (like tufte-css). My second question would be the same as for my previous one <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> about footnotes : how to cross reference to this notes? Thanks. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e0c3a23c-19a5-49cd-bb70-de04d4b4f336%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1696 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-10 9:34 ` Robert Zenz 2018-07-10 9:44 ` Sage Mad ` (5 subsequent siblings) 6 siblings, 0 replies; 27+ messages in thread From: Robert Zenz @ 2018-07-10 9:34 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Can you give an example of how this would look and work in the finished document? Though, I believe that a Lua filter should be able to achieve such a thing. On 10.07.2018 11:30, Sage Mad wrote: > Hello! > > In my field (PhD in swiss law), most of the book have notes on the margin > of each paragraphs. This then allow to reference them (for ex. "see N. x", > when x is the number of the paragraph), which produce more exactitude (than > pages). Is there a way to do this with pandoc? I saw that there are issues > about side or margin notes, but if I understood right, it's about having > kind of footnotes on the side (like tufte-css). My second question would be > the same as for my previous one > <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> about > footnotes : how to cross reference to this notes? > > Thanks. > ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-10 9:34 ` Robert Zenz @ 2018-07-10 9:44 ` Sage Mad [not found] ` <791d9add-c53b-4adc-b802-084fd6b5230f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 12:09 ` CR ` (4 subsequent siblings) 6 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-10 9:44 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1510 bytes --] Thanks for your concern. Here is an example of a page from a typical law book (in french...). You can see the numbers on the side and also that there are everywhere references like "infra N ..." or "N ... *ad *...". Am Dienstag, 10. Juli 2018 11:30:48 UTC+2 schrieb Sage Mad: > > Hello! > > In my field (PhD in swiss law), most of the book have notes on the margin > of each paragraphs. This then allow to reference them (for ex. "see N. x", > when x is the number of the paragraph), which produce more exactitude (than > pages). Is there a way to do this with pandoc? I saw that there are issues > about side or margin notes, but if I understood right, it's about having > kind of footnotes on the side (like tufte-css). My second question would be > the same as for my previous one > <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> > about footnotes : how to cross reference to this notes? > > Thanks. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/791d9add-c53b-4adc-b802-084fd6b5230f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2408 bytes --] [-- Attachment #2: example.pdf --] [-- Type: application/pdf, Size: 300786 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <791d9add-c53b-4adc-b802-084fd6b5230f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <791d9add-c53b-4adc-b802-084fd6b5230f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-10 9:53 ` Robert Zenz [not found] ` <5B448221.2060807-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Robert Zenz @ 2018-07-10 9:53 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw What's your intended output format? For HTML I'm sure you could achieve that with a Lua filter and some CSS. On 10.07.2018 11:44, Sage Mad wrote: > Thanks for your concern. Here is an example of a page from a typical law > book (in french...). You can see the numbers on the side and also that > there are everywhere references like "infra N ..." or "N ... *ad *...". > > Am Dienstag, 10. Juli 2018 11:30:48 UTC+2 schrieb Sage Mad: >> >> Hello! >> >> In my field (PhD in swiss law), most of the book have notes on the margin >> of each paragraphs. This then allow to reference them (for ex. "see N. x", >> when x is the number of the paragraph), which produce more exactitude (than >> pages). Is there a way to do this with pandoc? I saw that there are issues >> about side or margin notes, but if I understood right, it's about having >> kind of footnotes on the side (like tufte-css). My second question would be >> the same as for my previous one >> <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> >> about footnotes : how to cross reference to this notes? >> >> Thanks. >> > ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <5B448221.2060807-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <5B448221.2060807-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org> @ 2018-07-10 10:12 ` Sage Mad [not found] ` <977fb517-6c66-4a8d-8915-0b0bed9d5495-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-10 10:12 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2418 bytes --] The reason I want to change to markdown is to avoid choosing output format. Concretely, I want to be able to present my work in a "traditional" form for my professor (.docx or .pdf), but also to use my work for an online publishing (html) or even share it and create a collaborative work in the future (in the free software spirit). This said, I make a lot of cross references to footnotes and "margin notes" (as described) and would like to continue to can do it, in the document itself if possible (so filters seems problematic to my approach, if I understand them right). Am Dienstag, 10. Juli 2018 11:53:42 UTC+2 schrieb Robert Zenz: > > What's your intended output format? For HTML I'm sure you could achieve > that > with a Lua filter and some CSS. > > > On 10.07.2018 11:44, Sage Mad wrote: > > Thanks for your concern. Here is an example of a page from a typical law > > book (in french...). You can see the numbers on the side and also that > > there are everywhere references like "infra N ..." or "N ... *ad *...". > > > > Am Dienstag, 10. Juli 2018 11:30:48 UTC+2 schrieb Sage Mad: > >> > >> Hello! > >> > >> In my field (PhD in swiss law), most of the book have notes on the > margin > >> of each paragraphs. This then allow to reference them (for ex. "see N. > x", > >> when x is the number of the paragraph), which produce more exactitude > (than > >> pages). Is there a way to do this with pandoc? I saw that there are > issues > >> about side or margin notes, but if I understood right, it's about > having > >> kind of footnotes on the side (like tufte-css). My second question > would be > >> the same as for my previous one > >> <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> > >> about footnotes : how to cross reference to this notes? > >> > >> Thanks. > >> > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/977fb517-6c66-4a8d-8915-0b0bed9d5495%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3519 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <977fb517-6c66-4a8d-8915-0b0bed9d5495-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <977fb517-6c66-4a8d-8915-0b0bed9d5495-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-10 10:15 ` Robert Zenz [not found] ` <5B448743.5060209-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Robert Zenz @ 2018-07-10 10:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw I don't know how to do it in that case, sorry. On 10.07.2018 12:12, Sage Mad wrote: > The reason I want to change to markdown is to avoid choosing output format. > Concretely, I want to be able to present my work in a "traditional" form > for my professor (.docx or .pdf), but also to use my work for an online > publishing (html) or even share it and create a collaborative work in the > future (in the free software spirit). This said, I make a lot of cross > references to footnotes and "margin notes" (as described) and would like to > continue to can do it, in the document itself if possible (so filters seems > problematic to my approach, if I understand them right). > > Am Dienstag, 10. Juli 2018 11:53:42 UTC+2 schrieb Robert Zenz: >> >> What's your intended output format? For HTML I'm sure you could achieve >> that >> with a Lua filter and some CSS. >> >> >> On 10.07.2018 11:44, Sage Mad wrote: >>> Thanks for your concern. Here is an example of a page from a typical law >>> book (in french...). You can see the numbers on the side and also that >>> there are everywhere references like "infra N ..." or "N ... *ad *...". >>> >>> Am Dienstag, 10. Juli 2018 11:30:48 UTC+2 schrieb Sage Mad: >>>> >>>> Hello! >>>> >>>> In my field (PhD in swiss law), most of the book have notes on the >> margin >>>> of each paragraphs. This then allow to reference them (for ex. "see N. >> x", >>>> when x is the number of the paragraph), which produce more exactitude >> (than >>>> pages). Is there a way to do this with pandoc? I saw that there are >> issues >>>> about side or margin notes, but if I understood right, it's about >> having >>>> kind of footnotes on the side (like tufte-css). My second question >> would be >>>> the same as for my previous one >>>> <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> >>>> about footnotes : how to cross reference to this notes? >>>> >>>> Thanks. >>>> >>> > ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <5B448743.5060209-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <5B448743.5060209-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org> @ 2018-07-10 10:22 ` Sage Mad 0 siblings, 0 replies; 27+ messages in thread From: Sage Mad @ 2018-07-10 10:22 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2784 bytes --] Thanks anyway ;) I still keep in mind the filter idea. Am Dienstag, 10. Juli 2018 12:15:38 UTC+2 schrieb Robert Zenz: > > I don't know how to do it in that case, sorry. > > > On 10.07.2018 12:12, Sage Mad wrote: > > The reason I want to change to markdown is to avoid choosing output > format. > > Concretely, I want to be able to present my work in a "traditional" form > > for my professor (.docx or .pdf), but also to use my work for an online > > publishing (html) or even share it and create a collaborative work in > the > > future (in the free software spirit). This said, I make a lot of cross > > references to footnotes and "margin notes" (as described) and would like > to > > continue to can do it, in the document itself if possible (so filters > seems > > problematic to my approach, if I understand them right). > > > > Am Dienstag, 10. Juli 2018 11:53:42 UTC+2 schrieb Robert Zenz: > >> > >> What's your intended output format? For HTML I'm sure you could achieve > >> that > >> with a Lua filter and some CSS. > >> > >> > >> On 10.07.2018 11:44, Sage Mad wrote: > >>> Thanks for your concern. Here is an example of a page from a typical > law > >>> book (in french...). You can see the numbers on the side and also that > >>> there are everywhere references like "infra N ..." or "N ... *ad > *...". > >>> > >>> Am Dienstag, 10. Juli 2018 11:30:48 UTC+2 schrieb Sage Mad: > >>>> > >>>> Hello! > >>>> > >>>> In my field (PhD in swiss law), most of the book have notes on the > >> margin > >>>> of each paragraphs. This then allow to reference them (for ex. "see > N. > >> x", > >>>> when x is the number of the paragraph), which produce more exactitude > >> (than > >>>> pages). Is there a way to do this with pandoc? I saw that there are > >> issues > >>>> about side or margin notes, but if I understood right, it's about > >> having > >>>> kind of footnotes on the side (like tufte-css). My second question > >> would be > >>>> the same as for my previous one > >>>> <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> > >>>> about footnotes : how to cross reference to this notes? > >>>> > >>>> Thanks. > >>>> > >>> > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3df4701b-686c-42b3-ad57-c7c278a0ce38%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 4202 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-10 9:34 ` Robert Zenz 2018-07-10 9:44 ` Sage Mad @ 2018-07-11 12:09 ` CR 2018-07-11 12:11 ` CR ` (3 subsequent siblings) 6 siblings, 0 replies; 27+ messages in thread From: CR @ 2018-07-11 12:09 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 700 bytes --] OP, have you tried using CSS to number paragraphs? Search here: https://duckduckgo.com/?q=CSS+to+number+paragraphs&t=h_&ia=qa -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9757ba3e-a812-419a-acde-d0969e913a48%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1148 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> ` (2 preceding siblings ...) 2018-07-11 12:09 ` CR @ 2018-07-11 12:11 ` CR 2018-07-11 12:21 ` CR ` (2 subsequent siblings) 6 siblings, 0 replies; 27+ messages in thread From: CR @ 2018-07-11 12:11 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 786 bytes --] With http://jsfiddle.net you can test out CSS with HTML and Javascript if you want. One idea with CSS: https://stackoverflow.com/questions/6244591/css-styled-paragraphs-with-paragraph-numbering-and-sidenotes -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/26f93261-d2bf-4888-b95d-33b2f3d8c620%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1260 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> ` (3 preceding siblings ...) 2018-07-11 12:11 ` CR @ 2018-07-11 12:21 ` CR 2018-07-11 12:30 ` CR 2019-03-15 20:42 ` Sage Mad 6 siblings, 0 replies; 27+ messages in thread From: CR @ 2018-07-11 12:21 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 657 bytes --] Here's the fiddle I made and it numbers paragraphs. http://jsfiddle.net/ynm635u9/ -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1f113cda-1c64-4954-b698-9e3ca40eb814%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1129 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> ` (4 preceding siblings ...) 2018-07-11 12:21 ` CR @ 2018-07-11 12:30 ` CR [not found] ` <c264f411-1587-40e5-84e6-131f394c1d95-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2019-03-15 20:42 ` Sage Mad 6 siblings, 1 reply; 27+ messages in thread From: CR @ 2018-07-11 12:30 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 636 bytes --] You can also use http://cssdeck.com/labs/ to test html and CSS. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c264f411-1587-40e5-84e6-131f394c1d95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1056 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <c264f411-1587-40e5-84e6-131f394c1d95-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <c264f411-1587-40e5-84e6-131f394c1d95-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-11 12:48 ` Sage Mad [not found] ` <0b4556f0-f29a-48ce-a276-bb32333223e8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 12:58 ` Sage Mad 1 sibling, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-11 12:48 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1200 bytes --] Hello CR, Thanks for your answer and proposition. As said, the reason I wanna use pandoc and markdown (or a language based on it, preferably widely used) is to have an open document, which allow me to convert it to html/css (or another "online" format) *and* to "traditional" publishing format, like Word, Latex and PDF. So although I have tried CSS, I easily imagine it works, but I'm quite reluctant using it, because it would "close me in one direction" (the online format). Or am I wrong? Am Mittwoch, 11. Juli 2018 14:30:51 UTC+2 schrieb CR: > > You can also use http://cssdeck.com/labs/ to test html and CSS. > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0b4556f0-f29a-48ce-a276-bb32333223e8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2265 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <0b4556f0-f29a-48ce-a276-bb32333223e8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <0b4556f0-f29a-48ce-a276-bb32333223e8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-11 13:12 ` Joost Kremers [not found] ` <87wou1kjad.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Joost Kremers @ 2018-07-11 13:12 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw On Wed, Jul 11 2018, Sage Mad wrote: > Thanks for your answer and proposition. As said, the reason I > wanna use > pandoc and markdown (or a language based on it, preferably > widely used) is > to have an open document, which allow me to convert it to > html/css (or > another "online" format) *and* to "traditional" publishing > format, like > Word, Latex and PDF. So although I have tried CSS, I easily > imagine it > works, but I'm quite reluctant using it, because it would "close > me in one > direction" (the online format). Or am I wrong? Well, what you want is obviously something that is not supported by Pandoc as is. Some of its output formats support it, or can be made to support it, but Pandoc doesn't have a way to represent it and therefore cannot convert it to your desired output formats. So in order to not be bound to one output format, you would have to implement the missing functionality yourself. Or get someone to do it for you, of course ;-). Note that there are a couple of ways of converting LaTeX to html (tex4ht and lwarp come to mind, specifically), but to what extent they support the features you're interested in, I don't know. And support for e.g., docx is another issue. -- Joost Kremers Life has its moments ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <87wou1kjad.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <87wou1kjad.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org> @ 2018-07-11 14:21 ` Sage Mad [not found] ` <9253f18b-9bb8-4a3b-8977-21bb2f867742-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-11 14:21 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2766 bytes --] Thanks for this hard, but certainly right summary. I would be alright with not being able to convert to docx, but I would really like to can create a "standard" PDF (typically with latex). And I would be ready and glad to contribute, but although I have a bit more skills than the "average" (10 years on ubuntu and now debian helps :)), I have no programming skills (and no idea where to start...). I also wonder if it wouldn't be more judicious (easy) to configure my editor to do this, albeit I have the impression the cross references and, especially, the conversion would then be problematic. I also prefer "universal" solutions, but I guess each editor community could develop similar functionalities. So if anyone interested in my issues with some skills or advices, I'm here =) Am Mittwoch, 11. Juli 2018 15:13:08 UTC+2 schrieb Joost: > > > On Wed, Jul 11 2018, Sage Mad wrote: > > Thanks for your answer and proposition. As said, the reason I > > wanna use > > pandoc and markdown (or a language based on it, preferably > > widely used) is > > to have an open document, which allow me to convert it to > > html/css (or > > another "online" format) *and* to "traditional" publishing > > format, like > > Word, Latex and PDF. So although I have tried CSS, I easily > > imagine it > > works, but I'm quite reluctant using it, because it would "close > > me in one > > direction" (the online format). Or am I wrong? > > Well, what you want is obviously something that is not supported > by Pandoc as is. Some of its output formats support it, or can be > made to support it, but Pandoc doesn't have a way to represent it > and therefore cannot convert it to your desired output formats. So > in order to not be bound to one output format, you would have to > implement the missing functionality yourself. Or get someone to do > it for you, of course ;-). > > Note that there are a couple of ways of converting LaTeX to html > (tex4ht and lwarp come to mind, specifically), but to what extent > they support the features you're interested in, I don't know. And > support for e.g., docx is another issue. > > -- > Joost Kremers > Life has its moments > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9253f18b-9bb8-4a3b-8977-21bb2f867742%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3517 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <9253f18b-9bb8-4a3b-8977-21bb2f867742-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <9253f18b-9bb8-4a3b-8977-21bb2f867742-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-11 14:33 ` CR [not found] ` <c241eba7-d964-47ab-8cb1-db30ce3cecbf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 14:35 ` CR 1 sibling, 1 reply; 27+ messages in thread From: CR @ 2018-07-11 14:33 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 836 bytes --] By using CSS, when you generate HTML from your Pandoc Markdown, you could number paragraphs in the resulting HTML. But each output document format is different in how it will handle the paragraph numbering. So it appears Pandoc does not support what you want. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c241eba7-d964-47ab-8cb1-db30ce3cecbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1289 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <c241eba7-d964-47ab-8cb1-db30ce3cecbf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <c241eba7-d964-47ab-8cb1-db30ce3cecbf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-11 14:55 ` Sage Mad [not found] ` <a59bff9e-c9b0-4fea-943e-2ed61dd469c2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-11 14:55 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1717 bytes --] Thanks for this same kind of answer, but although I haven't the programing skills, it seems to me that if pandoc's markdown format allow to put footnotes, which are recognized in all the output formats, it should be possible also with "margin notes" (understand numbered paragraphs). I saw that there was a proposition to include sidenotes in this form : [>1]. The proposition was actually about footnotes in the margins, but the same could be done for "my" margin notes. The [>"number"] next to each paragraph would be ordered like the footnotes at the conversion moment and it would also allow me to cross reference them (assuming a solution is found for my cross reference-footnotes <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> issue, which would basically be the same). Am Mittwoch, 11. Juli 2018 16:33:40 UTC+2 schrieb CR: > > By using CSS, when you generate HTML from your Pandoc Markdown, you could > number paragraphs in the resulting HTML. But each output document format is > different in how it will handle the paragraph numbering. > > So it appears Pandoc does not support what you want. > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a59bff9e-c9b0-4fea-943e-2ed61dd469c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2356 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <a59bff9e-c9b0-4fea-943e-2ed61dd469c2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <a59bff9e-c9b0-4fea-943e-2ed61dd469c2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-12 2:32 ` John MacFarlane [not found] ` <m2muuxtc8g.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: John MacFarlane @ 2018-07-12 2:32 UTC (permalink / raw) To: Sage Mad, pandoc-discuss There's no native pandoc construction that renders in uniformly as a margin note. To get the result you want, you'd need to use filters or a custom writer, and this would require some hand-coding for each format you want to support. One filter might put each paragraph in a Div with an identifier giving the unique number (in order). For HTML output, you might then just need to add some CSS (and possibly JS) that displays the identifier in the margin as needed. For LaTeX, you'd need another filter (or it could be part of the same one) that adds a bit of custom LaTeX to do this, for each appropriately marked Div. This isn't super-hard to do, but it's not "out of the box." Sage Mad <sagemad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Thanks for this same kind of answer, but although I haven't the programing > skills, it seems to me that if pandoc's markdown format allow to put > footnotes, which are recognized in all the output formats, it should be > possible also with "margin notes" (understand numbered paragraphs). I saw > that there was a proposition to include sidenotes in this form : [>1]. The > proposition was actually about footnotes in the margins, but the same could > be done for "my" margin notes. The [>"number"] next to each paragraph would > be ordered like the footnotes at the conversion moment and it would also > allow me to cross reference them (assuming a solution is found for my cross > reference-footnotes > <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> issue, > which would basically be the same). > > Am Mittwoch, 11. Juli 2018 16:33:40 UTC+2 schrieb CR: >> >> By using CSS, when you generate HTML from your Pandoc Markdown, you could >> number paragraphs in the resulting HTML. But each output document format is >> different in how it will handle the paragraph numbering. >> >> So it appears Pandoc does not support what you want. >> >> > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a59bff9e-c9b0-4fea-943e-2ed61dd469c2%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <m2muuxtc8g.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <m2muuxtc8g.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org> @ 2018-07-12 10:12 ` Sage Mad [not found] ` <c099bc20-ce0c-41fd-954c-15a956338003-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-12 10:12 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 4686 bytes --] Thanks for the answer (also on my other post). I understand that there is maybe no need from the community, at least at the moment, to implement such a feature. Nevertheless, I don't see why my suggestion wouldn't be feasible. If I would have proposed an automated system of numbering *in* the md file (which of course would be the best, but I can maybe configure my editor for this), then ok. But I "simply" proposed to add (manually) a footnote like note (for ex. [>1]), that would then be ordered at the conversion level. I suppose it would be needed to create a code or template for each output format, but it should be exactly what is done for the footnotes. So I guess the system could be somehow copied. Again, I understand that the skilled and in the project involved ones don't want to do this just for me and I have no idea how much time this "simple" copy work can take, but it should be possible (according me...). Then the cross references is another issue, certainly more complicated (and/or work), but there also, I don't see why the (foot/magin) notes can't automatically get an id, like the headers, or be given one. This could allow to make the references in the document to the notes (something like "see fn [5](#^5) ?). And then, a filter could do the automatic numbering and adjust the (cross) references. Am Donnerstag, 12. Juli 2018 04:33:04 UTC+2 schrieb John MacFarlane: > > > There's no native pandoc construction that renders in > uniformly as a margin note. > > To get the result you want, you'd need to use filters > or a custom writer, and this would require some > hand-coding for each format you want to support. > > One filter might put each paragraph in a Div with > an identifier giving the unique number (in order). > > For HTML output, you might then just need to add some > CSS (and possibly JS) that displays the identifier in > the margin as needed. > > For LaTeX, you'd need another filter (or it could be > part of the same one) that adds a bit of custom LaTeX > to do this, for each appropriately marked Div. > > This isn't super-hard to do, but it's not "out of the box." > > Sage Mad <sag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> writes: > > > Thanks for this same kind of answer, but although I haven't the > programing > > skills, it seems to me that if pandoc's markdown format allow to put > > footnotes, which are recognized in all the output formats, it should be > > possible also with "margin notes" (understand numbered paragraphs). I > saw > > that there was a proposition to include sidenotes in this form : [>1]. > The > > proposition was actually about footnotes in the margins, but the same > could > > be done for "my" margin notes. The [>"number"] next to each paragraph > would > > be ordered like the footnotes at the conversion moment and it would also > > allow me to cross reference them (assuming a solution is found for my > cross > > reference-footnotes > > <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> > issue, > > which would basically be the same). > > > > Am Mittwoch, 11. Juli 2018 16:33:40 UTC+2 schrieb CR: > >> > >> By using CSS, when you generate HTML from your Pandoc Markdown, you > could > >> number paragraphs in the resulting HTML. But each output document > format is > >> different in how it will handle the paragraph numbering. > >> > >> So it appears Pandoc does not support what you want. > >> > >> > > > > -- > > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <javascript:>. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/a59bff9e-c9b0-4fea-943e-2ed61dd469c2%40googlegroups.com. > > > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c099bc20-ce0c-41fd-954c-15a956338003%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 7212 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <c099bc20-ce0c-41fd-954c-15a956338003-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <c099bc20-ce0c-41fd-954c-15a956338003-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-12 11:46 ` CR [not found] ` <d32a87ed-8c33-4a30-a37b-9d1341e38956-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: CR @ 2018-07-12 11:46 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1173 bytes --] The numbering of paragraphs is a great idea. If this feature was added, more people would use this feature in a legal brief context. I think this is a case where if the feature was added it would attract more users. As a programmer, I know this should not be too hard. I know John M (the author of Pandoc) is an excellent programmer simply by the results he gets. It just depends if he has time to do it. There are websites where people can vote on features for the next release. I could dig one up of the Pandoc author wants to get votes on new features. Those websites are normally free. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d32a87ed-8c33-4a30-a37b-9d1341e38956%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1654 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <d32a87ed-8c33-4a30-a37b-9d1341e38956-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <d32a87ed-8c33-4a30-a37b-9d1341e38956-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-12 16:06 ` Sage Mad 0 siblings, 0 replies; 27+ messages in thread From: Sage Mad @ 2018-07-12 16:06 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1545 bytes --] Definitely would be in :) Thanks to share the address of this website here. That said, the best would probably be to have this on pandoc.org (and if not, at least a link to it there, to make it visible) or the Github page. Maybe just a new topic on pandoc-discuss could also make it :) Am Donnerstag, 12. Juli 2018 13:46:35 UTC+2 schrieb CR: > > The numbering of paragraphs is a great idea. If this feature was added, > more people would use this feature in a legal brief context. I think this > is a case where if the feature was added it would attract more users. > > As a programmer, I know this should not be too hard. I know John M (the > author of Pandoc) is an excellent programmer simply by the results he gets. > It just depends if he has time to do it. > > There are websites where people can vote on features for the next release. > I could dig one up of the Pandoc author wants to get votes on new features. > Those websites are normally free. > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/16249978-b9ed-40b0-beee-a81dc46374bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2152 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <9253f18b-9bb8-4a3b-8977-21bb2f867742-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 14:33 ` CR @ 2018-07-11 14:35 ` CR [not found] ` <0b1087c8-b99a-4ebd-a832-2c3114083945-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 1 sibling, 1 reply; 27+ messages in thread From: CR @ 2018-07-11 14:35 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1017 bytes --] If you create an HTML file first, where each paragraph is numbered, you can convert that to PDF easy enough but maybe not with Pandoc (I think). So your document flow might change slightly and be this: Markdown -> HTML -> several other formats. The extra step is simply making an HTML document, which can be converted to .DOCX, or PDF, or maybe Latex. By using batch files this step becomes trivial once the batch file process is set up. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0b1087c8-b99a-4ebd-a832-2c3114083945%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1481 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <0b1087c8-b99a-4ebd-a832-2c3114083945-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <0b1087c8-b99a-4ebd-a832-2c3114083945-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-11 15:05 ` Sage Mad [not found] ` <82554a2f-0529-4435-ae1f-e23c2413a154-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2018-07-11 15:05 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1442 bytes --] I was already thinking about this .md -> .html -> .pdf solution, but besides the fact that I would loose the openness I'm holding to (again, I know I'm a bit "headstrong" :)), I red the conversion html2latex is not unproblematic and, as far as I know, you can't get a "classic" PDF (like with latex or word/libreoffice) from an html format. Or? Am Mittwoch, 11. Juli 2018 16:35:45 UTC+2 schrieb CR: > > If you create an HTML file first, where each paragraph is numbered, you > can convert that to PDF easy enough but maybe not with Pandoc (I think). > So your document flow might change slightly and be this: Markdown -> HTML > -> several other formats. > > The extra step is simply making an HTML document, which can be converted > to .DOCX, or PDF, or maybe Latex. By using batch files this step becomes > trivial once the batch file process is set up. > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/82554a2f-0529-4435-ae1f-e23c2413a154%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2092 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <82554a2f-0529-4435-ae1f-e23c2413a154-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <82554a2f-0529-4435-ae1f-e23c2413a154-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-12 16:45 ` John Muccigrosso [not found] ` <b89b0bc1-cef0-450c-8aa7-f7bfc1cc443e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 27+ messages in thread From: John Muccigrosso @ 2018-07-12 16:45 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1106 bytes --] I did html with css to handle this, then "printed" that to PDF. I blogged about it http://jmuccigr.github.io/blog/2015/06/10/self-publishing-with-pandoc-etc/ . It's not a great solution, but it does what I wanted. Note that you'll need to be careful about what counts as a paragraph in your markdown. For example, let's say I have a blockquote inside a long bit of text. Is that surrounding text a single paragraph, or is it two? (Opinions may differ.) My method therefore involved manually labeling the individual paragraphs. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b89b0bc1-cef0-450c-8aa7-f7bfc1cc443e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1534 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <b89b0bc1-cef0-450c-8aa7-f7bfc1cc443e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <b89b0bc1-cef0-450c-8aa7-f7bfc1cc443e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2018-07-13 9:38 ` Sage Mad 0 siblings, 0 replies; 27+ messages in thread From: Sage Mad @ 2018-07-13 9:38 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1870 bytes --] Thanks! Your solution definitely works and is quite easy. I still think it would be good to have proper "margin" notes, for the sake of visibility/clarity and to keep the already limited headers, but it's a good workaround. And I agree with your remark about what is a paragraph or not. Therefore I think a solution like I proposed (add [>1]) is good, because you can make a macro to automatize it in your editor (ex. Ctrl+Enter create a new paragraph and add a margin note at the beginning of it) and you keep the control. If the notes would be numbered in the editor, like the footnotes, it would even allow more easily cross references (this issue remains...). Am Donnerstag, 12. Juli 2018 18:45:39 UTC+2 schrieb John Muccigrosso: > > I did html with css to handle this, then "printed" that to PDF. I blogged > about it > http://jmuccigr.github.io/blog/2015/06/10/self-publishing-with-pandoc-etc/ > . It's not a great solution, but it does what I wanted. Note that you'll > need to be careful about what counts as a paragraph in your markdown. For > example, let's say I have a blockquote inside a long bit of text. Is that > surrounding text a single paragraph, or is it two? (Opinions may differ.) > My method therefore involved manually labeling the individual paragraphs. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4d72cbbd-6c34-4cdb-9f2b-0a8c4ce51492%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3047 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <c264f411-1587-40e5-84e6-131f394c1d95-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 12:48 ` Sage Mad @ 2018-07-11 12:58 ` Sage Mad 1 sibling, 0 replies; 27+ messages in thread From: Sage Mad @ 2018-07-11 12:58 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1222 bytes --] Hello CR, Thanks for your answer and proposition. As said, the reason I wanna use pandoc and markdown (or a language based on it, preferably widely used) is to have an open document, which allow me to convert it to html/css (or another "online" format) *and* to "traditional" publishing format, like Word, Latex and PDF. So although I haven't tried CSS, I easily imagine it works, but I'm (a priori) quite reluctant using it, because I think it would "close me in one direction" (the online format). Or am I wrong? Am Mittwoch, 11. Juli 2018 14:30:51 UTC+2 schrieb CR: > > You can also use http://cssdeck.com/labs/ to test html and CSS. > > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/247b39c3-3bc9-4f7b-a715-79a4046db58b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2294 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: Number all paragraphs (for cross references) [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> ` (5 preceding siblings ...) 2018-07-11 12:30 ` CR @ 2019-03-15 20:42 ` Sage Mad [not found] ` <e9519591-a2cf-46ba-ba36-56a82c11a530-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 6 siblings, 1 reply; 27+ messages in thread From: Sage Mad @ 2019-03-15 20:42 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1567 bytes --] Hello, As said on my other bound post <https://groups.google.com/forum/#!topic/pandoc-discuss/qwN6zBWo-Xw> (cross reference to footnotes), I was long time not on this, and my solution here will be the same kind. I intend, if possible/time, to create an extension that automatically assign an identifier to margin notes, which I need to see to can cross reference them during the writing process. So here also, I would be happy to hear if someone has a technically/compatibility inspired proposition. My idea so far is to put, just before each paragraph I want numbered, something like "[§1]". I changed my mind about "[>1]", because the ">" is already used for block quotes (even if not in brackets) and in general in html, which will be the preferred output. If someone think about a better idea, I'm all ears. I would also like to know if better to put a space or not just after. So : [§1] Blablabla VS [§1]Blablabla or even : [§1] Blablabla? -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e9519591-a2cf-46ba-ba36-56a82c11a530%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2120 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <e9519591-a2cf-46ba-ba36-56a82c11a530-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Number all paragraphs (for cross references) [not found] ` <e9519591-a2cf-46ba-ba36-56a82c11a530-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2019-04-19 17:22 ` Клуб Ингрия 0 siblings, 0 replies; 27+ messages in thread From: Клуб Ингрия @ 2019-04-19 17:22 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1675 bytes --] perjantai 15. maaliskuuta 2019 22.42.11 UTC+2 Sage Mad kirjoitti: > > create an extension that automatically assign an identifier to margin notes > I am using paragraph identifier by using awk to add a random number as the identifier `<p>` to `<p id="Id-1507" align="justify">` However. If I regenerate the document, ALL the identifiers change and any previous link is lost. At the moment I am working on a solution to mark any paragraph by ######### (more than 6 #'s) which produces `<p id="at-the-moment-i-am-working-on-a-solution-to-mark-any-paragraph-by-more-than-6-s-which-produces">At the moment I am working on a solution to mark any paragraph by ######### (more than 6 #'s) which produces</p>` The bad side of this solution is that the ID is too long as a reference. At the moment I am trying to somehow cut the end of the ID. `cut -c1-13` or possibly first convert the long id to its md5-sum (or something like that) and then cut the string to a shorter one `cut -c1-5` Now the ID would be practically unique and it would change only if the contents of the paragraph change. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/205bdf92-8c1c-48ea-ae8f-a597b0dbaa24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 4092 bytes --] ^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2019-04-19 17:22 UTC | newest] Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-07-10 9:30 Number all paragraphs (for cross references) Sage Mad [not found] ` <e0c3a23c-19a5-49cd-bb70-de04d4b4f336-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-10 9:34 ` Robert Zenz 2018-07-10 9:44 ` Sage Mad [not found] ` <791d9add-c53b-4adc-b802-084fd6b5230f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-10 9:53 ` Robert Zenz [not found] ` <5B448221.2060807-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org> 2018-07-10 10:12 ` Sage Mad [not found] ` <977fb517-6c66-4a8d-8915-0b0bed9d5495-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-10 10:15 ` Robert Zenz [not found] ` <5B448743.5060209-q1xk7osDwJUWQnjQ7V0W7w@public.gmane.org> 2018-07-10 10:22 ` Sage Mad 2018-07-11 12:09 ` CR 2018-07-11 12:11 ` CR 2018-07-11 12:21 ` CR 2018-07-11 12:30 ` CR [not found] ` <c264f411-1587-40e5-84e6-131f394c1d95-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 12:48 ` Sage Mad [not found] ` <0b4556f0-f29a-48ce-a276-bb32333223e8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 13:12 ` Joost Kremers [not found] ` <87wou1kjad.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org> 2018-07-11 14:21 ` Sage Mad [not found] ` <9253f18b-9bb8-4a3b-8977-21bb2f867742-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 14:33 ` CR [not found] ` <c241eba7-d964-47ab-8cb1-db30ce3cecbf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 14:55 ` Sage Mad [not found] ` <a59bff9e-c9b0-4fea-943e-2ed61dd469c2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-12 2:32 ` John MacFarlane [not found] ` <m2muuxtc8g.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org> 2018-07-12 10:12 ` Sage Mad [not found] ` <c099bc20-ce0c-41fd-954c-15a956338003-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-12 11:46 ` CR [not found] ` <d32a87ed-8c33-4a30-a37b-9d1341e38956-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-12 16:06 ` Sage Mad 2018-07-11 14:35 ` CR [not found] ` <0b1087c8-b99a-4ebd-a832-2c3114083945-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-11 15:05 ` Sage Mad [not found] ` <82554a2f-0529-4435-ae1f-e23c2413a154-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-12 16:45 ` John Muccigrosso [not found] ` <b89b0bc1-cef0-450c-8aa7-f7bfc1cc443e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2018-07-13 9:38 ` Sage Mad 2018-07-11 12:58 ` Sage Mad 2019-03-15 20:42 ` Sage Mad [not found] ` <e9519591-a2cf-46ba-ba36-56a82c11a530-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2019-04-19 17:22 ` Клуб Ингрия
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).