* Graphviz and ConTeXt
@ 2022-06-23 12:08 juh via ntg-context
2022-06-23 13:08 ` Taco Hoekwater via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: juh via ntg-context @ 2022-06-23 12:08 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: juh
[-- Attachment #1.1: Type: text/plain, Size: 410 bytes --]
Dear all,
I have a legacy project that I shall convert to a new ConTeXt project.
There are a lot of Graphviz dot-files. What shall I do with these?
Any hints?
juh
--
Autoren-Homepage: ......... http://literatur.hasecke.com
Satiren & Essays: ......... http://www.sudelbuch.de
Privater Blog: ............ http://www.hasecke.eu
Netzliteratur-Projekt: .... http://www.generationenprojekt.de
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Graphviz and ConTeXt
2022-06-23 12:08 Graphviz and ConTeXt juh via ntg-context
@ 2022-06-23 13:08 ` Taco Hoekwater via ntg-context
2022-06-24 11:05 ` juh+ntg-context--- via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater via ntg-context @ 2022-06-23 13:08 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
Hi,
You could just convert these separately to pdf/svg/jpg/png and then load them as \externalfigure.
You could also use the filter module to be able to take them inline into the ConTeXt code:
\usemodule[filter]
\define[1]\ReadFigure{\externalfigure[#1]}
\defineexternalfilter[graphviz]
[cache=yes,
readcommand=\ReadFigure,
output={\externalfilterbasefile.pdf},
filtercommand={dot -Tpdf -o "\externalfilterbasefile.pdf" "\externalfilterinputfile"}]
\starttext
\startTEXpage
\startgraphviz
digraph G {
main -> parse -> execute;
main -> init;
main -> cleanup;
execute -> make_string;
execute -> printf
init -> make_string;
main -> printf;
execute -> compare;
}
\stopgraphviz
\stopTEXpage
\stoptext
See the filter module documentation for more details about that.
Best wishes,
Taco
> On 23 Jun 2022, at 14:08, juh via ntg-context <ntg-context@ntg.nl> wrote:
>
> Dear all,
>
> I have a legacy project that I shall convert to a new ConTeXt project.
>
> There are a lot of Graphviz dot-files. What shall I do with these?
>
> Any hints?
> juh
> --
> Autoren-Homepage: ......... http://literatur.hasecke.com
> Satiren & Essays: ......... http://www.sudelbuch.de
> Privater Blog: ............ http://www.hasecke.eu
> Netzliteratur-Projekt: .... http://www.generationenprojekt.de
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
—
Taco Hoekwater E: taco@bittext.nl
genderfluid (all pronouns)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Graphviz and ConTeXt
2022-06-23 13:08 ` Taco Hoekwater via ntg-context
@ 2022-06-24 11:05 ` juh+ntg-context--- via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: juh+ntg-context--- via ntg-context @ 2022-06-24 11:05 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: juh+ntg-context
Am 23.06.22 um 15:08 schrieb Taco Hoekwater:
> Hi,
>
> You could just convert these separately to pdf/svg/jpg/png and then load them as \externalfigure.
I thought about this solution.
> You could also use the filter module to be able to take them inline into the ConTeXt code:
Thanks for the hint. This looks interesting. I'll try it out.
juh
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-24 11:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23 12:08 Graphviz and ConTeXt juh via ntg-context
2022-06-23 13:08 ` Taco Hoekwater via ntg-context
2022-06-24 11:05 ` juh+ntg-context--- via ntg-context
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).