* typst writer @ 2023-06-10 5:37 Aaron Leonard [not found] ` <8634f40f-135b-4b6c-8b95-810d4506c351n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Aaron Leonard @ 2023-06-10 5:37 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1338 bytes --] hello everyone, im having trouble setting up the typst writer on pandoc. note im a new user so its likely my issue is extremely simple and an easy fix (fingers crossed!) I downloaded this: https://github.com/lvignoli/typst-pandoc when I run the command "pandoc -t writer.lua input.tex -o output.typ" for my relevant files I was getting the error that no file or directory is found. I changed the path to ~/writer.lua but now am getting the error : Error running Lua: No render function for Inline value 'Note'; define a function `Writer.Inline.Note` that returns a string or Doc. stack traceback: ~/writer.lua:75: in function 'pandoc.scaffolding.Writer.Block.Para' [C]: in function 'pandoc.scaffolding.Writer.Blocks' [C]: in function 'pandoc.scaffolding.Writer.Pandoc' while rendering Block `Para` while rendering Blocks while rendering Pandoc stack traceback: Is anyone able to help with this? 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8634f40f-135b-4b6c-8b95-810d4506c351n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 5074 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <8634f40f-135b-4b6c-8b95-810d4506c351n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: typst writer [not found] ` <8634f40f-135b-4b6c-8b95-810d4506c351n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2023-06-10 5:39 ` Aaron Leonard [not found] ` <7696e6b2-40ee-4f75-a487-a3853db56edbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-06-10 15:18 ` John MacFarlane 1 sibling, 1 reply; 6+ messages in thread From: Aaron Leonard @ 2023-06-10 5:39 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1646 bytes --] note that im running this on my terminal and followed the basic pandoc intstructions to convert a rtf to latex file as an example On Saturday, June 10, 2023 at 1:37:05 AM UTC-4 Aaron Leonard wrote: > hello everyone, im having trouble setting up the typst writer on pandoc. > note im a new user so its likely my issue is extremely simple and an easy > fix (fingers crossed!) > > I downloaded this: https://github.com/lvignoli/typst-pandoc > > when I run the command "pandoc -t writer.lua input.tex -o output.typ" for > my relevant files I was getting the error that no file or directory is > found. > > I changed the path to ~/writer.lua but now am getting the error : > > Error running Lua: > > No render function for Inline value 'Note'; > > define a function `Writer.Inline.Note` that returns a string or Doc. > > stack traceback: > > ~/writer.lua:75: in function 'pandoc.scaffolding.Writer.Block.Para' > > [C]: in function 'pandoc.scaffolding.Writer.Blocks' > > [C]: in function 'pandoc.scaffolding.Writer.Pandoc' > > while rendering Block `Para` > > while rendering Blocks > > while rendering Pandoc > > stack traceback: > > > Is anyone able to help with this? 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7696e6b2-40ee-4f75-a487-a3853db56edbn%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 5615 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <7696e6b2-40ee-4f75-a487-a3853db56edbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: typst writer [not found] ` <7696e6b2-40ee-4f75-a487-a3853db56edbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2023-06-10 5:47 ` Aaron Leonard [not found] ` <0bc1003d-c941-431f-a742-930e92ec0d30n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Aaron Leonard @ 2023-06-10 5:47 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1948 bytes --] follow up to this! is the custom lua on GitHub different than just using something like: "pandoc input.tex -t markdown -t typst -s -o output.typ" in the terminal? thanks! On Saturday, June 10, 2023 at 1:39:32 AM UTC-4 Aaron Leonard wrote: > note that im running this on my terminal and followed the basic pandoc > intstructions to convert a rtf to latex file as an example > > On Saturday, June 10, 2023 at 1:37:05 AM UTC-4 Aaron Leonard wrote: > >> hello everyone, im having trouble setting up the typst writer on pandoc. >> note im a new user so its likely my issue is extremely simple and an easy >> fix (fingers crossed!) >> >> I downloaded this: https://github.com/lvignoli/typst-pandoc >> >> when I run the command "pandoc -t writer.lua input.tex -o output.typ" >> for my relevant files I was getting the error that no file or directory is >> found. >> >> I changed the path to ~/writer.lua but now am getting the error : >> >> Error running Lua: >> >> No render function for Inline value 'Note'; >> >> define a function `Writer.Inline.Note` that returns a string or Doc. >> >> stack traceback: >> >> ~/writer.lua:75: in function 'pandoc.scaffolding.Writer.Block.Para' >> >> [C]: in function 'pandoc.scaffolding.Writer.Blocks' >> >> [C]: in function 'pandoc.scaffolding.Writer.Pandoc' >> >> while rendering Block `Para` >> >> while rendering Blocks >> >> while rendering Pandoc >> >> stack traceback: >> >> >> Is anyone able to help with this? 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0bc1003d-c941-431f-a742-930e92ec0d30n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 6329 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <0bc1003d-c941-431f-a742-930e92ec0d30n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: typst writer [not found] ` <0bc1003d-c941-431f-a742-930e92ec0d30n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2023-06-10 5:50 ` Aaron Leonard 0 siblings, 0 replies; 6+ messages in thread From: Aaron Leonard @ 2023-06-10 5:50 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2162 bytes --] lastly, if so, is there any better writer for dealing with math symbols in latex? On Saturday, June 10, 2023 at 1:47:55 AM UTC-4 Aaron Leonard wrote: > follow up to this! is the custom lua on GitHub different than just using > something like: "pandoc input.tex -t markdown -t typst -s -o output.typ" > in the terminal? thanks! > > > On Saturday, June 10, 2023 at 1:39:32 AM UTC-4 Aaron Leonard wrote: > >> note that im running this on my terminal and followed the basic pandoc >> intstructions to convert a rtf to latex file as an example >> >> On Saturday, June 10, 2023 at 1:37:05 AM UTC-4 Aaron Leonard wrote: >> >>> hello everyone, im having trouble setting up the typst writer on pandoc. >>> note im a new user so its likely my issue is extremely simple and an easy >>> fix (fingers crossed!) >>> >>> I downloaded this: https://github.com/lvignoli/typst-pandoc >>> >>> when I run the command "pandoc -t writer.lua input.tex -o output.typ" >>> for my relevant files I was getting the error that no file or directory is >>> found. >>> >>> I changed the path to ~/writer.lua but now am getting the error : >>> >>> Error running Lua: >>> >>> No render function for Inline value 'Note'; >>> >>> define a function `Writer.Inline.Note` that returns a string or Doc. >>> >>> stack traceback: >>> >>> ~/writer.lua:75: in function 'pandoc.scaffolding.Writer.Block.Para' >>> >>> [C]: in function 'pandoc.scaffolding.Writer.Blocks' >>> >>> [C]: in function 'pandoc.scaffolding.Writer.Pandoc' >>> >>> while rendering Block `Para` >>> >>> while rendering Blocks >>> >>> while rendering Pandoc >>> >>> stack traceback: >>> >>> >>> Is anyone able to help with this? 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f693f518-cab6-4571-8f0f-21231c0bd05dn%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 6677 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: typst writer [not found] ` <8634f40f-135b-4b6c-8b95-810d4506c351n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-06-10 5:39 ` Aaron Leonard @ 2023-06-10 15:18 ` John MacFarlane 1 sibling, 0 replies; 6+ messages in thread From: John MacFarlane @ 2023-06-10 15:18 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Since that custom writer was released, pandoc has developed built-in support for output to typst. Unlike the custom writer, this includes support for translating the math. So, all you should need to do is: pandoc -f latex -t typst input.tex -o output.typ > On Jun 9, 2023, at 10:37 PM, Aaron Leonard <aj.leonard8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > hello everyone, im having trouble setting up the typst writer on pandoc. note im a new user so its likely my issue is extremely simple and an easy fix (fingers crossed!) > > I downloaded this: https://github.com/lvignoli/typst-pandoc > > when I run the command "pandoc -t writer.lua input.tex -o output.typ" for my relevant files I was getting the error that no file or directory is found. > > I changed the path to ~/writer.lua but now am getting the error : > > Error running Lua: > No render function for Inline value 'Note'; > define a function `Writer.Inline.Note` that returns a string or Doc. > stack traceback: > ~/writer.lua:75: in function 'pandoc.scaffolding.Writer.Block.Para' > [C]: in function 'pandoc.scaffolding.Writer.Blocks' > [C]: in function 'pandoc.scaffolding.Writer.Pandoc' > while rendering Block `Para` > while rendering Blocks > while rendering Pandoc > stack traceback: > > Is anyone able to help with this? 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8634f40f-135b-4b6c-8b95-810d4506c351n%40googlegroups.com. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Typst writer @ 2023-03-31 23:45 Norman Lorrain 0 siblings, 0 replies; 6+ messages in thread From: Norman Lorrain @ 2023-03-31 23:45 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 92 bytes --] Thanks for the quick support of Typst. It's like a shiny new blade on a Swiss-army knife. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-06-10 15:18 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-06-10 5:37 typst writer Aaron Leonard [not found] ` <8634f40f-135b-4b6c-8b95-810d4506c351n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-06-10 5:39 ` Aaron Leonard [not found] ` <7696e6b2-40ee-4f75-a487-a3853db56edbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-06-10 5:47 ` Aaron Leonard [not found] ` <0bc1003d-c941-431f-a742-930e92ec0d30n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2023-06-10 5:50 ` Aaron Leonard 2023-06-10 15:18 ` John MacFarlane -- strict thread matches above, loose matches on Subject: below -- 2023-03-31 23:45 Typst writer Norman Lorrain
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).