* How to enclose reference list entries in a latex environment? @ 2015-03-26 19:57 nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <ce053b54-950b-497b-ba33-f0a43c0dd559-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-26 19:57 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 802 bytes --] Is there any way – a filter, e.g. – that would let me enclose just the reference list entries – *without* the "References" section header – in latex environment such as `\begin{hangparas} ... \end{hangparas}`? -- 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/ce053b54-950b-497b-ba33-f0a43c0dd559%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1206 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <ce053b54-950b-497b-ba33-f0a43c0dd559-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <ce053b54-950b-497b-ba33-f0a43c0dd559-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-27 4:05 ` John MacFarlane [not found] ` <20150327040534.GC35873-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: John MacFarlane @ 2015-03-27 4:05 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Sure. After the pandoc-citeproc filter is done, your document will end with a Div ("",["references"],[]) [...list of blocks...] So you could write a filter that adds a bit of raw latex "\begin{hangparas}" at the beginning of ...list of blocks... and another bit "\end{hangparas}" at the end. Something like (untested): import Text.Pandoc.JSON main :: IO () main = toJSONFilter addHangPara addHangPara :: Maybe Format -> Block -> Block addHangPara (Format "latex") (Div ("",["references"],[]) blocks) = Div ("",["references"],[]) ( [latex "\\begin{hangparas}"] ++ blocks ++ [latex "\\end{hangparas}"] ) where latex = RawBlock (Format "latex") addHangPara _ x = x Just make sure you use this filter *after* pandoc-citeproc: -F pandoc-citeproc -F ./addhangpara.hs +++ nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 26 15 12:57 ]: >Is there any way – a filter, e.g. – that would let me enclose just the >reference list entries – *without* the "References" section header – in >latex environment such as `\begin{hangparas} ... \end{hangparas}`? > >-- >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/ce053b54-950b-497b-ba33-f0a43c0dd559%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/20150327040534.GC35873%40localhost.hsd1.ca.comcast.net. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <20150327040534.GC35873-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <20150327040534.GC35873-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> @ 2015-03-27 8:19 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <4cd4b00d-3b34-4c19-8b2c-59b6e66eee7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-27 8:19 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 3211 bytes --] Thanks a lot. – However, this encloses the "References" section header, too – and doesn't work since the \section command cancels out the effects of \begin{hangparas}. Actual output: \begin{hangparas} \section*{References}\label{references} \addcontentsline{toc}{section}{References} \hyperdef{}{ref-item2}{} Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 (2006): 33--34. \end{hangparas} Expected output: \section*{References}\label{references} \addcontentsline{toc}{section}{References} \begin{hangparas} \hyperdef{}{ref-item2}{} Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 (2006): 33--34. \end{hangparas} On Friday, 27 March 2015 04:05:49 UTC, John MacFarlane wrote: > > Sure. After the pandoc-citeproc filter is done, your document will > end with a > > Div ("",["references"],[]) [...list of blocks...] > > So you could write a filter that adds a bit of raw > latex "\begin{hangparas}" at the beginning of ...list of blocks... > and another bit "\end{hangparas}" at the end. > > Something like (untested): > > import Text.Pandoc.JSON > > main :: IO () > main = toJSONFilter addHangPara > > addHangPara :: Maybe Format -> Block -> Block > addHangPara (Format "latex") (Div ("",["references"],[]) blocks) = > Div ("",["references"],[]) ( [latex "\\begin{hangparas}"] ++ > blocks ++ [latex "\\end{hangparas}"] ) > where latex = RawBlock (Format "latex") > addHangPara _ x = x > > Just make sure you use this filter *after* pandoc-citeproc: > > -F pandoc-citeproc -F ./addhangpara.hs > > +++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:> [Mar 26 15 12:57 ]: > >Is there any way – a filter, e.g. – that would let me enclose just the > >reference list entries – *without* the "References" section header – in > >latex environment such as `\begin{hangparas} ... \end{hangparas}`? > > > >-- > >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/ce053b54-950b-497b-ba33-f0a43c0dd559%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/4cd4b00d-3b34-4c19-8b2c-59b6e66eee7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 5153 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <4cd4b00d-3b34-4c19-8b2c-59b6e66eee7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <4cd4b00d-3b34-4c19-8b2c-59b6e66eee7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-27 11:17 ` Nick Yakimov [not found] ` <e881c6dc-b3ad-425d-a1d5-7e030adb9d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-27 18:20 ` John MacFarlane 1 sibling, 1 reply; 20+ messages in thread From: Nick Yakimov @ 2015-03-27 11:17 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 4276 bytes --] It will be a little more fragile, but if you're *sure* that you will use heading at the end of document, then you can skip over it, like this: import Text.Pandoc.JSON > > >> main :: IO () > > main = toJSONFilter addHangPara > > >> addHangPara :: Maybe Format -> Block -> Block > > addHangPara (Just (Format "latex")) (Div ("",["references"],[]) >> (h:blocks)) = > > Div ("",["references"],[]) ( [h , latex "\\begin{hangparas}"] ++ > > blocks ++ [latex "\\end{hangparas}"] ) > > where latex = RawBlock (Format "latex") > > addHangPara _ x = x > > It is of course possible to handle cases with no heading as well by pattern-matching "h" as "h@(Header 1 _ _)", and adding handler for other cases, if you need to, but that tends to be unnecessarily verbose. пятница, 27 марта 2015 г., 11:19:17 UTC+3 пользователь nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org написал: > > Thanks a lot. – However, this encloses the "References" section header, > too – and doesn't work since the \section command cancels out the effects > of \begin{hangparas}. > > Actual output: > > \begin{hangparas} > > \section*{References}\label{references} > \addcontentsline{toc}{section}{References} > > \hyperdef{}{ref-item2}{} > Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 > (2006): 33--34. > > \end{hangparas} > > > Expected output: > > \section*{References}\label{references} > \addcontentsline{toc}{section}{References} > > \begin{hangparas} > > \hyperdef{}{ref-item2}{} > Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 > (2006): 33--34. > > \end{hangparas} > > > On Friday, 27 March 2015 04:05:49 UTC, John MacFarlane wrote: >> >> Sure. After the pandoc-citeproc filter is done, your document will >> end with a >> >> Div ("",["references"],[]) [...list of blocks...] >> >> So you could write a filter that adds a bit of raw >> latex "\begin{hangparas}" at the beginning of ...list of blocks... >> and another bit "\end{hangparas}" at the end. >> >> Something like (untested): >> >> import Text.Pandoc.JSON >> >> main :: IO () >> main = toJSONFilter addHangPara >> >> addHangPara :: Maybe Format -> Block -> Block >> addHangPara (Format "latex") (Div ("",["references"],[]) blocks) = >> Div ("",["references"],[]) ( [latex "\\begin{hangparas}"] ++ >> blocks ++ [latex "\\end{hangparas}"] ) >> where latex = RawBlock (Format "latex") >> addHangPara _ x = x >> >> Just make sure you use this filter *after* pandoc-citeproc: >> >> -F pandoc-citeproc -F ./addhangpara.hs >> >> +++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 26 15 12:57 ]: >> >Is there any way – a filter, e.g. – that would let me enclose just the >> >reference list entries – *without* the "References" section header – in >> >latex environment such as `\begin{hangparas} ... \end{hangparas}`? >> > >> >-- >> >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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/ce053b54-950b-497b-ba33-f0a43c0dd559%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/e881c6dc-b3ad-425d-a1d5-7e030adb9d68%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 8226 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <e881c6dc-b3ad-425d-a1d5-7e030adb9d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <e881c6dc-b3ad-425d-a1d5-7e030adb9d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-27 14:46 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <d6015803-4bdd-4cab-bb75-3d502ef8cb08-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-27 14:46 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 4938 bytes --] Thanks, Nick. Tried your version, but \begin{hangparas} still appears before \section*{References}. @jgm: Since this doesn't seem to be so easy, couldn't the latex writer be patched to enclose all references (but excluding the section heading!) in an environment, e.g., `\begin{references}` ... `\end{references}`, which could then be defined by users according to their needs – or, even better, as a default be defined according to what the CSL style file says? On Friday, 27 March 2015 11:17:41 UTC, Nick Yakimov wrote: > > It will be a little more fragile, but if you're *sure* that you will use > heading at the end of document, then you can skip over it, like this: > > import Text.Pandoc.JSON >> >> >>> main :: IO () >> >> main = toJSONFilter addHangPara >> >> >>> addHangPara :: Maybe Format -> Block -> Block >> >> addHangPara (Just (Format "latex")) (Div ("",["references"],[]) >>> (h:blocks)) = >> >> Div ("",["references"],[]) ( [h , latex "\\begin{hangparas}"] ++ >> >> blocks ++ [latex "\\end{hangparas}"] ) >> >> where latex = RawBlock (Format "latex") >> >> addHangPara _ x = x >> >> > It is of course possible to handle cases with no heading as well by > pattern-matching "h" as "h@(Header 1 _ _)", and adding handler for other > cases, if you need to, but that tends to be unnecessarily verbose. > > пятница, 27 марта 2015 г., 11:19:17 UTC+3 пользователь nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > написал: >> >> Thanks a lot. – However, this encloses the "References" section header, >> too – and doesn't work since the \section command cancels out the effects >> of \begin{hangparas}. >> >> Actual output: >> >> \begin{hangparas} >> >> \section*{References}\label{references} >> \addcontentsline{toc}{section}{References} >> >> \hyperdef{}{ref-item2}{} >> Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 >> (2006): 33--34. >> >> \end{hangparas} >> >> >> Expected output: >> >> \section*{References}\label{references} >> \addcontentsline{toc}{section}{References} >> >> \begin{hangparas} >> >> \hyperdef{}{ref-item2}{} >> Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 >> (2006): 33--34. >> >> \end{hangparas} >> >> >> On Friday, 27 March 2015 04:05:49 UTC, John MacFarlane wrote: >>> >>> Sure. After the pandoc-citeproc filter is done, your document will >>> end with a >>> >>> Div ("",["references"],[]) [...list of blocks...] >>> >>> So you could write a filter that adds a bit of raw >>> latex "\begin{hangparas}" at the beginning of ...list of blocks... >>> and another bit "\end{hangparas}" at the end. >>> >>> Something like (untested): >>> >>> import Text.Pandoc.JSON >>> >>> main :: IO () >>> main = toJSONFilter addHangPara >>> >>> addHangPara :: Maybe Format -> Block -> Block >>> addHangPara (Format "latex") (Div ("",["references"],[]) blocks) = >>> Div ("",["references"],[]) ( [latex "\\begin{hangparas}"] ++ >>> blocks ++ [latex "\\end{hangparas}"] ) >>> where latex = RawBlock (Format "latex") >>> addHangPara _ x = x >>> >>> Just make sure you use this filter *after* pandoc-citeproc: >>> >>> -F pandoc-citeproc -F ./addhangpara.hs >>> >>> +++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 26 15 12:57 ]: >>> >Is there any way – a filter, e.g. – that would let me enclose just the >>> >reference list entries – *without* the "References" section header – in >>> >latex environment such as `\begin{hangparas} ... \end{hangparas}`? >>> > >>> >-- >>> >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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> >To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> >To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/ce053b54-950b-497b-ba33-f0a43c0dd559%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/d6015803-4bdd-4cab-bb75-3d502ef8cb08%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 8742 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <d6015803-4bdd-4cab-bb75-3d502ef8cb08-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <d6015803-4bdd-4cab-bb75-3d502ef8cb08-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-27 18:26 ` John MacFarlane 0 siblings, 0 replies; 20+ messages in thread From: John MacFarlane @ 2015-03-27 18:26 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 27 15 07:46 ]: >Thanks, Nick. Tried your version, but \begin{hangparas} still appears >before \section*{References}. > >@jgm: Since this doesn't seem to be so easy, couldn't the latex writer be >patched to enclose all references (but excluding the section heading!) in >an environment, e.g., `\begin{references}` ... `\end{references}`, which >could then be defined by users according to their needs – or, even better, >as a default be defined according to what the CSL style file says? Yes, this should be possible. We'd also need to make sure the relevant default environment definition was added to the default latex template. (And, if this is going to be generated from CSL, it would have to be provided by pandoc-citeproc via another function.) -- 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/20150327182650.GC37676%40localhost.hsd1.ca.comcast.net. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to enclose reference list entries in a latex environment? [not found] ` <4cd4b00d-3b34-4c19-8b2c-59b6e66eee7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-27 11:17 ` Nick Yakimov @ 2015-03-27 18:20 ` John MacFarlane [not found] ` <20150327182009.GB37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 1 sibling, 1 reply; 20+ messages in thread From: John MacFarlane @ 2015-03-27 18:20 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 27 15 01:19 ]: >Thanks a lot. – However, this encloses the "References" section header, too >– and doesn't work since the \section command cancels out the effects of >\begin{hangparas}. Sorry. Easy fix: addHangPara :: Maybe Format -> Block -> Block addHangPara (Format "latex") (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) = Div ("",["references"],[]) ( [latex "\\begin{hangparas}"] ++ blocks ++ [h, latex "\\end{hangparas}"] ) where latex = RawBlock (Format "latex") addHangPara _ x = x -- 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/20150327182009.GB37676%40localhost.hsd1.ca.comcast.net. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <20150327182009.GB37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <20150327182009.GB37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> @ 2015-03-27 18:27 ` John MacFarlane [not found] ` <20150327182752.GD37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: John MacFarlane @ 2015-03-27 18:27 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ John MacFarlane [Mar 27 15 11:20 ]: Sorry again, I put that in the wrong place. Fix to the fix: addHangPara :: Maybe Format -> Block -> Block addHangPara (Format "latex") (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) = Div ("",["references"],[]) ( [h, latex "\\begin{hangparas}"] ++ blocks ++ [latex "\\end{hangparas}"] ) where latex = RawBlock (Format "latex") addHangPara _ x = x ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <20150327182752.GD37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <20150327182752.GD37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> @ 2015-03-27 22:22 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <584f68ea-db87-4c21-9c13-10d8f6a9118f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-27 22:22 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 2804 bytes --] Ok, John's latest version works after replacing `addHangPara (Format "latex")` by `addHangPara (Just (Format "latex"))`. Nick Yakimov’s code worked too when I tried that again. Thank you both! Unfortunately, this wasn't all. It turns out that the hangparas environment from hanging.sty does not work well and frequently leads to underfull pages in the bibliography (sometimes just half full). A better solution for a hangparas environment requires the scrartcl package (which is nice anyway) or at least the scrextend package, and looks like this: \newenvironment{hangparas}[1][2em]{% \addmargin[#1]{0pt}\setlength{\parindent}{-#1}\hspace*{-#1}% \ignorespaces }{% \endaddmargin } This, however, leads to extra vertical space in the pdf output between the section header and the first entry unless the empty line between \begin{hangparas} and the first reference list entry is removed. There's also a horizontal space before the first entry; this can be fixed by inserting a `%` at the end of the `\hyperdef{}{ref-item2}{}` line (inserting `%` signs at the ends of lines is a routine precaution in latex anyway). This means that the beginning of a References section should look like this: ~~~~ \section*{References}\label{references} \addcontentsline{toc}{section}{References} \begin{hangparas} \hyperdef{}{ref-item2}{}% Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 (2006): 33--34. ~~~~ So, (1) can the filter be modified to remove the empty line after `\begin{hangparas}`? And (2), can the latex writer be patched to insert a `%` after each `\hyperdef{}{ref-...}{}%` line? On Friday, March 27, 2015 at 6:28:07 PM UTC, John MacFarlane wrote: > > +++ John MacFarlane [Mar 27 15 11:20 ]: > > Sorry again, I put that in the wrong place. Fix to the fix: > > addHangPara :: Maybe Format -> Block -> Block > addHangPara (Format "latex") (Div ("",["references"],[]) (h@(Header _ > _ _) : blocks)) = > Div ("",["references"],[]) ( [h, latex "\\begin{hangparas}"] ++ > blocks ++ [latex "\\end{hangparas}"] ) > where latex = RawBlock (Format "latex") > addHangPara _ x = x > -- 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/584f68ea-db87-4c21-9c13-10d8f6a9118f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3481 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <584f68ea-db87-4c21-9c13-10d8f6a9118f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <584f68ea-db87-4c21-9c13-10d8f6a9118f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-28 1:15 ` Nikolay Yakimov 2015-03-28 3:17 ` John MacFarlane 1 sibling, 0 replies; 20+ messages in thread From: Nikolay Yakimov @ 2015-03-28 1:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 4552 bytes --] import Text.Pandoc.JSON main :: IO () main = toJSONFilter addHangPara addHangPara :: Maybe Format -> Block -> Block addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header _ _ _):(Para ils):rest)) = Div ("",["references"],[]) $ h : (Para (RawInline (Format "latex") "\\begin{hangpara}\n" : ils)) : rest ++ [RawBlock (Format "latex") "\\end{hangpara}"] addHangPara _ x = x That would add \begin{hangpara} at the beginning of first paragraph following reference section header. But honestly, at this point, it's easier to use sed. Not sure where did you get \hyperdef{}{ref-item2}{} -- to my knowledge, pandoc-citeproc does not produce this. сб, 28 марта 2015 г. в 1:23, <nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > Ok, John's latest version works after replacing `addHangPara (Format > "latex")` by `addHangPara (Just (Format "latex"))`. Nick Yakimov’s code > worked too when I tried that again. Thank you both! > > Unfortunately, this wasn't all. It turns out that the hangparas > environment from hanging.sty does not work well and frequently leads to > underfull pages in the bibliography (sometimes just half full). > > A better solution for a hangparas environment requires the scrartcl > package (which is nice anyway) or at least the scrextend package, and looks > like this: > > \newenvironment{hangparas}[1][2em]{% > \addmargin[#1]{0pt}\setlength{\parindent}{-#1}\hspace*{-#1}% > \ignorespaces > }{% > \endaddmargin > } > > This, however, leads to extra vertical space in the pdf output between the > section header and the first entry unless the empty line between > \begin{hangparas} and the first reference list entry is removed. There's > also a horizontal space before the first entry; this can be fixed by > inserting a `%` at the end of the `\hyperdef{}{ref-item2}{}` line > (inserting `%` signs at the ends of lines is a routine precaution in latex > anyway). > > This means that the beginning of a References section should look like > this: > > ~~~~ > > \section*{References}\label{references} > \addcontentsline{toc}{section}{References} > > \begin{hangparas} > \hyperdef{}{ref-item2}{}% > > Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 (2006): > 33--34. > > ~~~~ > > So, (1) can the filter be modified to remove the empty line after > `\begin{hangparas}`? > > And (2), can the latex writer be patched to insert a `%` after each > `\hyperdef{}{ref-...}{}%` line? > > > > On Friday, March 27, 2015 at 6:28:07 PM UTC, John MacFarlane wrote: >> >> +++ John MacFarlane [Mar 27 15 11:20 ]: >> >> Sorry again, I put that in the wrong place. Fix to the fix: >> >> addHangPara :: Maybe Format -> Block -> Block >> addHangPara (Format "latex") (Div ("",["references"],[]) (h@(Header >> _ _ _) : blocks)) = >> Div ("",["references"],[]) ( [h, latex "\\begin{hangparas}"] ++ >> blocks ++ [latex "\\end{hangparas}"] ) >> where latex = RawBlock (Format "latex") >> addHangPara _ x = x >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/ghOOvbHByLk/unsubscribe. > To unsubscribe from this group and all its topics, 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/584f68ea-db87-4c21-9c13-10d8f6a9118f%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/584f68ea-db87-4c21-9c13-10d8f6a9118f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/CA%2BhqrpXKM4mE7BBph71oc%2BGzE0PRbd51%2Buu-bkFkne7XdDg8bA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 6111 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to enclose reference list entries in a latex environment? [not found] ` <584f68ea-db87-4c21-9c13-10d8f6a9118f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 1:15 ` Nikolay Yakimov @ 2015-03-28 3:17 ` John MacFarlane [not found] ` <20150328031718.GD37821-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 1 sibling, 1 reply; 20+ messages in thread From: John MacFarlane @ 2015-03-28 3:17 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 27 15 15:22 ]: >So, (1) can the filter be modified to remove the empty line after >`\begin{hangparas}`? The writer puts blank lines between block elements. But would it suffice to use `\begin{hangparas}%`? >And (2), can the latex writer be patched to insert a `%` after each >`\hyperdef{}{ref-...}{}%` line? This comes from line 316 of the LaTeX writer, now that each reference is enclosed in a Div (this is a new feature and may not even be in the released version of pandoc-citeproc, btw). So, yes, this could be changed. ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <20150328031718.GD37821-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <20150328031718.GD37821-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> @ 2015-03-28 9:52 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <08aa7ab5-40b2-45f2-8a86-635c75018bb9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-28 9:52 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 2401 bytes --] > Would it suffice to use `\begin{hangparas}%`? No, Latex would still see a paragraph break. > `\hyperdef{}{ref-...}{}` Is it safe to assume that the Latex writer always puts this on a line of its own? Should I submit a pull request? > [Nick Y.'s new filter] Tried that carefully, but no `\begin{hangparas}`/`\end{hangparas}` pair seems to appear in the output. Am I doing something wrong? Does it work for anyone else here? Actually, a workaround can be used in Latex to remove the first paragraph break following `\begin{hangparas}`, using \@gobble (though I'd much prefer an improved filter which would make this superfluous): \makeatletter \newcommand\gobblepars{\@ifnextchar\par{\expandafter\gobblepars\@gobble}{}} \makeatother \newenvironment{hangparas}[1][1.5em]{% \addmargin[#1]{0pt}\setlength{\parindent}{-#1}\hspace*{-#1}% \ignorespaces\gobblepars% }{% \endaddmargin } I'll also note that the biblatex package itself seems to use latex *lists* to format the bibliography; this might be worth exploring, too, not only for hanging but also for numbered and "block" bibliography formats. On Saturday, 28 March 2015 03:17:34 UTC, John MacFarlane wrote: > > +++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:> [Mar 27 15 15:22 ]: > >So, (1) can the filter be modified to remove the empty line after > >`\begin{hangparas}`? > > The writer puts blank lines between block elements. But would it > suffice to use `\begin{hangparas}%`? > > >And (2), can the latex writer be patched to insert a `%` after each > >`\hyperdef{}{ref-...}{}%` line? > > This comes from line 316 of the LaTeX writer, now that each reference > is enclosed in a Div (this is a new feature and may not even be in > the released version of pandoc-citeproc, btw). > So, yes, this could be changed. > > -- 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/08aa7ab5-40b2-45f2-8a86-635c75018bb9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 6388 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <08aa7ab5-40b2-45f2-8a86-635c75018bb9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <08aa7ab5-40b2-45f2-8a86-635c75018bb9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-28 10:05 ` Nikolay Yakimov [not found] ` <CA+hqrpVmrGj7a4G2Ss1FdXkgn=QQXNiK9Smg7aGYxyH2naYdiw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: Nikolay Yakimov @ 2015-03-28 10:05 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 3906 bytes --] Sorry, but this keeps getting more fragile by the minute. I don't think I can help much at this point -- even if I manage to make something that somewhat works, it will likely break more often than not. As I said, at this point you'll have better luck using sed, perl or other regex engine to modify pandoc-produced latex directly. Filters are a great tool for modifying AST, but they have their limits. сб, 28 марта 2015 г. в 12:52, <nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > Would it suffice to use `\begin{hangparas}%`? > > No, Latex would still see a paragraph break. > > > `\hyperdef{}{ref-...}{}` > > Is it safe to assume that the Latex writer always puts this on a line of > its own? Should I submit a pull request? > > > [Nick Y.'s new filter] > > Tried that carefully, but no `\begin{hangparas}`/`\end{hangparas}` pair > seems to appear in the output. Am I doing something wrong? Does it work for > anyone else here? > > > Actually, a workaround can be used in Latex to remove the first paragraph > break following `\begin{hangparas}`, using \@gobble (though I'd much > prefer an improved filter which would make this superfluous): > > \makeatletter > \newcommand\gobblepars{\@ifnextchar\par{\expandafter\gobblepars\@gobble > }{}} > \makeatother > > \newenvironment{hangparas}[1][1.5em]{% > > \addmargin[#1]{0pt}\setlength{\parindent}{-#1}\hspace*{-#1}% > > \ignorespaces\gobblepars% > }{% > \endaddmargin > } > > I'll also note that the biblatex package itself seems to use latex *lists* > to format the bibliography; this might be worth exploring, too, not only > for hanging but also for numbered and "block" bibliography formats. > > On Saturday, 28 March 2015 03:17:34 UTC, John MacFarlane wrote: >> >> +++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 27 15 15:22 ]: >> > >So, (1) can the filter be modified to remove the empty line after >> >`\begin{hangparas}`? >> >> The writer puts blank lines between block elements. But would it >> suffice to use `\begin{hangparas}%`? >> >> >And (2), can the latex writer be patched to insert a `%` after each >> >`\hyperdef{}{ref-...}{}%` line? >> >> This comes from line 316 of the LaTeX writer, now that each reference >> is enclosed in a Div (this is a new feature and may not even be in >> the released version of pandoc-citeproc, btw). >> So, yes, this could be changed. >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/ghOOvbHByLk/unsubscribe. > To unsubscribe from this group and all its topics, 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/08aa7ab5-40b2-45f2-8a86-635c75018bb9%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/08aa7ab5-40b2-45f2-8a86-635c75018bb9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/CA%2BhqrpVmrGj7a4G2Ss1FdXkgn%3DQQXNiK9Smg7aGYxyH2naYdiw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #2: Type: text/html, Size: 7374 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CA+hqrpVmrGj7a4G2Ss1FdXkgn=QQXNiK9Smg7aGYxyH2naYdiw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <CA+hqrpVmrGj7a4G2Ss1FdXkgn=QQXNiK9Smg7aGYxyH2naYdiw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-03-28 12:22 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <472e1709-92d6-4c1d-961d-edad2b55bfd0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-28 12:22 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 5391 bytes --] Ok, different approach: Biblatex uses latex lists for formatting the bibliography, and there's probably a good reason for that. (Latex, btw, uses lists for all kinds of environments, even unlikely ones such as quote, verse, etc.). Using the following environment (modelled after what biblatex uses) actually works much better than everything I tried before: \newenvironment{references} {\list{}{% \leftmargin2em% \itemindent-\leftmargin}} {\endlist} … no half-filled pages, much less orphans and widows, and no additional packages required. What this does require is, of course an `\item` in front of each item in the reference list. So my new question: What would be needed to make the following filter – which works nicely so far – additionally insert `\item ` in front of every paragraph in the "references" Div? #!/usr/bin/env runhaskell import Text.Pandoc.JSON main :: IO () main = toJSONFilter addHangPara addHangPara :: Maybe Format -> Block -> Block addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) = Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ blocks ++ [latex "\\end{references}"] ) where latex = RawBlock (Format "latex") addHangPara _ x = x On Saturday, March 28, 2015 at 10:05:51 AM UTC, Nick Yakimov wrote: > > Sorry, but this keeps getting more fragile by the minute. I don't think I > can help much at this point -- even if I manage to make something that > somewhat works, it will likely break more often than not. As I said, at > this point you'll have better luck using sed, perl or other regex engine to > modify pandoc-produced latex directly. Filters are a great tool for > modifying AST, but they have their limits. > > сб, 28 марта 2015 г. в 12:52, <nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>>: > >> > Would it suffice to use `\begin{hangparas}%`? >> >> No, Latex would still see a paragraph break. >> >> > `\hyperdef{}{ref-...}{}` >> >> Is it safe to assume that the Latex writer always puts this on a line of >> its own? Should I submit a pull request? >> >> > [Nick Y.'s new filter] >> >> Tried that carefully, but no `\begin{hangparas}`/`\end{hangparas}` pair >> seems to appear in the output. Am I doing something wrong? Does it work for >> anyone else here? >> >> >> Actually, a workaround can be used in Latex to remove the first paragraph >> break following `\begin{hangparas}`, using \@gobble (though I'd much >> prefer an improved filter which would make this superfluous): >> >> \makeatletter >> \newcommand\gobblepars{\@ifnextchar\par{\expandafter\gobblepars\@gobble >> }{}} >> \makeatother >> >> \newenvironment{hangparas}[1][1.5em]{% >> >> \addmargin[#1]{0pt}\setlength{\parindent}{-#1}\hspace*{-#1}% >> >> \ignorespaces\gobblepars% >> }{% >> \endaddmargin >> } >> >> I'll also note that the biblatex package itself seems to use latex >> *lists* to format the bibliography; this might be worth exploring, too, not >> only for hanging but also for numbered and "block" bibliography formats. >> >> On Saturday, 28 March 2015 03:17:34 UTC, John MacFarlane wrote: >>> >>> +++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 27 15 15:22 ]: >>> >> >So, (1) can the filter be modified to remove the empty line after >>> >`\begin{hangparas}`? >>> >>> The writer puts blank lines between block elements. But would it >>> suffice to use `\begin{hangparas}%`? >>> >>> >And (2), can the latex writer be patched to insert a `%` after each >>> >`\hyperdef{}{ref-...}{}%` line? >>> >>> This comes from line 316 of the LaTeX writer, now that each reference >>> is enclosed in a Div (this is a new feature and may not even be in >>> the released version of pandoc-citeproc, btw). >>> So, yes, this could be changed. >>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/pandoc-discuss/ghOOvbHByLk/unsubscribe. >> To unsubscribe from this group and all its topics, 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/08aa7ab5-40b2-45f2-8a86-635c75018bb9%40googlegroups.com >> <https://groups.google.com/d/msgid/pandoc-discuss/08aa7ab5-40b2-45f2-8a86-635c75018bb9%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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/472e1709-92d6-4c1d-961d-edad2b55bfd0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 18205 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <472e1709-92d6-4c1d-961d-edad2b55bfd0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <472e1709-92d6-4c1d-961d-edad2b55bfd0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-28 13:10 ` Nick Yakimov [not found] ` <9f84082a-3ad0-40f2-b0f5-ad564cbe5d24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: Nick Yakimov @ 2015-03-28 13:10 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 1159 bytes --] Something like this should probably work. #!/usr/bin/env runhaskell import Text.Pandoc.JSON main :: IO () main = toJSONFilter addHangPara addHangPara :: Maybe Format -> Block -> Block addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) = Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ map addItem blocks ++ [latex "\\end{references}"] ) where latex = RawBlock (Format "latex") addHangPara _ x = x addItem :: Block -> Block addItem (Para ils) = Para $ RawInline (Format "latex") "\\item" : Space : ils addItem x = x -- 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/9f84082a-3ad0-40f2-b0f5-ad564cbe5d24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 10440 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <9f84082a-3ad0-40f2-b0f5-ad564cbe5d24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <9f84082a-3ad0-40f2-b0f5-ad564cbe5d24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-28 14:28 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <46a6f65e-a2fe-4207-bbf2-0c96524ebe7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-28 14:28 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 1417 bytes --] Thank you, much appreciated – but doesn't work with the new `Div ("ref-item1",[],[]) [Para [ ... ]]` setup. On Saturday, March 28, 2015 at 1:10:44 PM UTC, Nick Yakimov wrote: > > Something like this should probably work. > > #!/usr/bin/env runhaskell > > import Text.Pandoc.JSON > main :: IO () > main = toJSONFilter addHangPara > > addHangPara :: Maybe Format -> Block -> Block > addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header > _ _ _) : blocks)) = > Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ > map addItem blocks ++ [latex "\\end{references}"] ) > where latex = RawBlock (Format "latex") > addHangPara _ x = x > > addItem :: Block -> Block > addItem (Para ils) = Para $ RawInline (Format "latex") "\\item" : Space : > ils > addItem x = x > > > -- 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/46a6f65e-a2fe-4207-bbf2-0c96524ebe7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 6673 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <46a6f65e-a2fe-4207-bbf2-0c96524ebe7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <46a6f65e-a2fe-4207-bbf2-0c96524ebe7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-28 14:40 ` Nick Yakimov [not found] ` <8efa389a-8880-491d-8f18-7e8ae1b38669-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 20+ messages in thread From: Nick Yakimov @ 2015-03-28 14:40 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 2339 bytes --] Oh, so that's how it works. Ok. As I said, I have literally no knowledge on new pandoc-citeproc format. Well, I suppose it's safe to use walk here anyway, so here: import Text.Pandoc.JSON import Text.Pandoc.Walk main :: IO () main = toJSONFilter addHangPara addHangPara :: Maybe Format -> Block -> Block addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) = Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ walk addItem blocks ++ [latex "\\end{references}"] ) where latex = RawBlock (Format "latex") addHangPara _ x = x addItem :: Block -> Block addItem (Para ils) = Para $ RawInline (Format "latex") "\\item" : Space : ils addItem x = x суббота, 28 марта 2015 г., 17:28:02 UTC+3 пользователь nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org написал: > > Thank you, much appreciated – but doesn't work with the new `Div > ("ref-item1",[],[]) [Para [ ... ]]` setup. > > On Saturday, March 28, 2015 at 1:10:44 PM UTC, Nick Yakimov wrote: >> >> Something like this should probably work. >> >> #!/usr/bin/env runhaskell >> >> import Text.Pandoc.JSON >> main :: IO () >> main = toJSONFilter addHangPara >> >> addHangPara :: Maybe Format -> Block -> Block >> addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@( >> Header _ _ _) : blocks)) = >> Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ >> map addItem blocks ++ [latex "\\end{references}"] ) >> where latex = RawBlock (Format "latex") >> addHangPara _ x = x >> >> addItem :: Block -> Block >> addItem (Para ils) = Para $ RawInline (Format "latex") "\\item" : Space : >> ils >> addItem x = x >> >> >> -- 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/8efa389a-8880-491d-8f18-7e8ae1b38669%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 16719 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <8efa389a-8880-491d-8f18-7e8ae1b38669-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <8efa389a-8880-491d-8f18-7e8ae1b38669-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2015-03-28 15:19 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w 2015-03-28 15:27 ` John MacFarlane 1 sibling, 0 replies; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-28 15:19 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 2748 bytes --] Nice, thank you again – but \item must come before \hyperdef, not after it … Actual latex output now: \begin{references} \hyperdef{}{ref-item2}{} \item Doe, John. ``Article.'' \emph{Journal of Generic Studies} 6, no. 4 (2006): 33--34. On Saturday, March 28, 2015 at 2:40:17 PM UTC, Nick Yakimov wrote: > > Oh, so that's how it works. Ok. As I said, I have literally no knowledge > on new pandoc-citeproc format. Well, I suppose it's safe to use walk here > anyway, so here: > > import Text.Pandoc.JSON > import Text.Pandoc.Walk > > main :: IO () > main = toJSONFilter addHangPara > > addHangPara :: Maybe Format -> Block -> Block > addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header > _ _ _) : blocks)) = > Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ > walk addItem blocks ++ [latex "\\end{references}"] ) > where latex = RawBlock (Format "latex") > addHangPara _ x = x > > addItem :: Block -> Block > addItem (Para ils) = Para $ RawInline (Format "latex") "\\item" : Space : > ils > addItem x = x > > > > > суббота, 28 марта 2015 г., 17:28:02 UTC+3 пользователь nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > написал: >> >> Thank you, much appreciated – but doesn't work with the new `Div >> ("ref-item1",[],[]) [Para [ ... ]]` setup. >> >> On Saturday, March 28, 2015 at 1:10:44 PM UTC, Nick Yakimov wrote: >>> >>> Something like this should probably work. >>> >>> #!/usr/bin/env runhaskell >>> >>> import Text.Pandoc.JSON >>> main :: IO () >>> main = toJSONFilter addHangPara >>> >>> addHangPara :: Maybe Format -> Block -> Block >>> addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@( >>> Header _ _ _) : blocks)) = >>> Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ >>> map addItem blocks ++ [latex "\\end{references}"] ) >>> where latex = RawBlock (Format "latex") >>> addHangPara _ x = x >>> >>> addItem :: Block -> Block >>> addItem (Para ils) = Para $ RawInline (Format "latex") "\\item" : Space >>> : ils >>> addItem x = x >>> >>> >>> -- 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/7b13319a-9db7-4fac-88f3-3f696b2a5b5f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 16480 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to enclose reference list entries in a latex environment? [not found] ` <8efa389a-8880-491d-8f18-7e8ae1b38669-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 15:19 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-28 15:27 ` John MacFarlane [not found] ` <20150328152704.GC49524-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 1 sibling, 1 reply; 20+ messages in thread From: John MacFarlane @ 2015-03-28 15:27 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw As far as I can see, there's no problem having a blank line after `\item` in latex. So, something like this? import Text.Pandoc.JSON import Text.Pandoc.Walk main :: IO () main = toJSONFilter addHangPara addHangPara :: Maybe Format -> Block -> Block addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) = Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ concatMap addItem blocks ++ [latex "\\end{references}"] ) where latex = RawBlock (Format "latex") addHangPara _ x = x addItem :: Block -> [Block] addItem x = [RawBlock (Format "latex") "\\item", x] ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <20150328152704.GC49524-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org>]
* Re: How to enclose reference list entries in a latex environment? [not found] ` <20150328152704.GC49524-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> @ 2015-03-28 17:02 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w 0 siblings, 0 replies; 20+ messages in thread From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-28 17:02 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1.1: Type: text/plain, Size: 2804 bytes --] Great, thank you – this filter: #!/usr/bin/env runhaskell -- addRefEnvItem.hs import Text.Pandoc.JSON import Text.Pandoc.Walk main :: IO () main = toJSONFilter addRefEnvItem addRefEnvItem :: Maybe Format -> Block -> Block addRefEnvItem (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header _ _ _) : blocks)) = Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ concatMap addItem blocks ++ [latex "\\end{references}"] ) where latex = RawBlock (Format "latex") addRefEnvItem _ x = x addItem :: Block -> [Block] addItem x = [RawBlock (Format "latex") "\\item", x] together with this definition: \newenvironment{references} {\list{}{% \leftmargin1.5em% \itemindent-\leftmargin% %\itemsep0pt% %\parsep0pt% }} {\endlist} give very nice results now. I'll try this out a bit more and report back. Anyway, my feeling is that using lists for bibliographies (at least in latex, not sure about html etc.) is probably the way to go for pandoc in general. Using lists, it wouldn't seem too difficult to make numbered styles (e.g.., nature.csl) work properly, too. pandoc would just have to move the first field in a CSL style file bibliography definition into an item label (`\item[firstfield]`), and adjust the list definition to the width of the widest label, of course. I'll try and figure out some of the details. Thanks again for all suggestions so far! On Saturday, 28 March 2015 15:27:19 UTC, John MacFarlane wrote: > > As far as I can see, there's no problem having a blank line after > `\item` in latex. So, something like this? > > import Text.Pandoc.JSON > import Text.Pandoc.Walk > > main :: IO () > main = toJSONFilter addHangPara > > addHangPara :: Maybe Format -> Block -> Block > addHangPara (Just (Format "latex")) (Div ("",["references"],[]) (h@(Header > _ _ _) : blocks)) = > Div ("",["references"],[]) ( [h, latex "\\begin{references}"] ++ > concatMap addItem blocks ++ [latex "\\end{references}"] ) > where latex = RawBlock (Format "latex") > addHangPara _ x = x > > addItem :: Block -> [Block] > addItem x = [RawBlock (Format "latex") "\\item", x] > > -- 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/135f56b1-9ca7-4f33-9216-a09c01e88518%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 14614 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2015-03-28 17:02 UTC | newest] Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-03-26 19:57 How to enclose reference list entries in a latex environment? nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <ce053b54-950b-497b-ba33-f0a43c0dd559-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-27 4:05 ` John MacFarlane [not found] ` <20150327040534.GC35873-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 2015-03-27 8:19 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <4cd4b00d-3b34-4c19-8b2c-59b6e66eee7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-27 11:17 ` Nick Yakimov [not found] ` <e881c6dc-b3ad-425d-a1d5-7e030adb9d68-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-27 14:46 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <d6015803-4bdd-4cab-bb75-3d502ef8cb08-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-27 18:26 ` John MacFarlane 2015-03-27 18:20 ` John MacFarlane [not found] ` <20150327182009.GB37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 2015-03-27 18:27 ` John MacFarlane [not found] ` <20150327182752.GD37676-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 2015-03-27 22:22 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <584f68ea-db87-4c21-9c13-10d8f6a9118f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 1:15 ` Nikolay Yakimov 2015-03-28 3:17 ` John MacFarlane [not found] ` <20150328031718.GD37821-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 2015-03-28 9:52 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <08aa7ab5-40b2-45f2-8a86-635c75018bb9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 10:05 ` Nikolay Yakimov [not found] ` <CA+hqrpVmrGj7a4G2Ss1FdXkgn=QQXNiK9Smg7aGYxyH2naYdiw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-03-28 12:22 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <472e1709-92d6-4c1d-961d-edad2b55bfd0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 13:10 ` Nick Yakimov [not found] ` <9f84082a-3ad0-40f2-b0f5-ad564cbe5d24-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 14:28 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <46a6f65e-a2fe-4207-bbf2-0c96524ebe7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 14:40 ` Nick Yakimov [not found] ` <8efa389a-8880-491d-8f18-7e8ae1b38669-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2015-03-28 15:19 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w 2015-03-28 15:27 ` John MacFarlane [not found] ` <20150328152704.GC49524-bi+AKbBUZKbivNSvqvJHCtPlBySK3R6THiGdP5j34PU@public.gmane.org> 2015-03-28 17:02 ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w
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).