Hi, all. I am looking to create a newspaper like listing of movie showtimes. Initially, I thought of using imagemagickâs annotate command to generate the output. Thinking further, I thought it might be worthwhile to generate a LaTeX file, and render that to a jpg. Then, I thought there might be a better way to do this natively in smalltalk. Does anyone have any idea how I might generate a document that can be converted to an image with a reasonable amount of control of the layout? Thanks!
Christian Haider has PDFtalk, originally in Visual works, but he and others have created ports to GenStone, Squeak, and Pharo. Bob Nemec created Report4PDF to make it easier to generate documents. Also, originally in VW, but also ported to GS, Squeak, and Pharo. On Sat, Jan 13, 2024, 11:37 Sergio Ruiz <sergio.rrd@gmail.com> wrote:
Hi, all.
I am looking to create a newspaper like listing of movie showtimes. Initially, I thought of using imagemagickâs annotate command to generate the output.
Thinking further, I thought it might be worthwhile to generate a LaTeX file, and render that to a jpg.
Then, I thought there might be a better way to do this natively in smalltalk.
Does anyone have any idea how I might generate a document that can be converted to an image with a reasonable amount of control of the layout?
Thanks!
Thanks! I think i am gonna try pdfkit.. or maybe the wkhtomtopdf package.. Thanks!
On Jan 13, 2024, at 4:53â¯PM, Richard Sargent <richard.sargent@gemtalksystems.com> wrote:
Christian Haider has PDFtalk, originally in Visual works, but he and others have created ports to GenStone, Squeak, and Pharo.
Bob Nemec created Report4PDF to make it easier to generate documents. Also, originally in VW, but also ported to GS, Squeak, and Pharo.
---- peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
Hi Sergio, We have a similar need to create high definition images to be shared in social media for the #CandidatosEnDatos[1]Â project. What we did then was to combine Pharo with LaTex via Mustache templates. If I would redo the project today, I would use Typst[2][2a], to decouple PDF creation from the huge LaTeX ecosystem and a nicer syntax with better error messages. In fact, we are using Typst now because of that (but we have not redone the Pharo integration via Mustache templates). [1] https://mutabit.tiddlyhost.com/#CandidatosEnDatos [2] https://typst.app/ [2a] https://github.com/qjcg/awesome-typst Hope this helps, Offray On 13/01/24 14:37, Sergio Ruiz wrote:
Hi, all.
I am looking to create a newspaper like listing of movie showtimes. Initially, I thought of using imagemagickâs annotate command to generate the output.
Thinking further, I thought it might be worthwhile to generate a LaTeX file, and render that to a jpg.
Then, I thought there might be a better way to do this natively in smalltalk.
Does anyone have any idea how I might generate a document that can be converted to an image with a reasonable amount of control of the layout?
Thanks!
OH! This looks VERY cool! I have never seen typst before. My needs are super simple. I am looking at using Aretfact (https://github.com/pharo-contributions/Artefact/blob/development/docs/Guide....) for PDF generation. Mustache seems like it might be a good fit for text generation. Did you use a pharo integration to mustache? Thanks!
On Jan 15, 2024, at 11:45â¯AM, Offray Vladimir Luna Cárdenas <offray.luna@mutabit.com> wrote:
templates. If I would redo the project today, I would use Typst[2][2a], to decouple PDF creation from the huge LaTeX ecosystem and a nicer syntax with better error messages. In fact, we are using Typst now because of that (but we have not redone the Pharo integration via Mustache templates).
---- peace, sergio photographer, journalist, visionary Public Key: https://pgp.key-server.io/pks/lookup?op=get&search=0x69B08F58923AB3A2 #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV @sergio_101@mastodon.social https://sergio101.com http://www.codeandmusic.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
On 15/01/24 12:06, sergio ruiz wrote:
OH! This looks VERY cool! I have never seen typst before. Thanks
My needs are super simple. I am looking at using Aretfact (https://github.com/pharo-contributions/Artefact/blob/development/docs/Guide....) for PDF generation.
Mustache seems like it might be a good fit for text generation.
Did you use a pharo integration to mustache?
Yes. I used: https://github.com/noha/mustache Cheers, Offray
participants (4)
-
Offray Vladimir Luna Cárdenas -
Richard Sargent -
Sergio Ruiz -
sergio ruiz