This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{filecontents} | |
\usepackage{graphicx} | |
\newcommand{\generateimage}[2]{% | |
\immediate\write18{convert.cmd #1 > #2}} | |
\begin{document} | |
\begin{filecontents*}{myfigure.txt} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem for Windows | |
php convert.php %1 | |
----------------------- | |
# for Linux | |
php convert.php $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Note: this script was written just for testing | |
// purposes. It has no error checking and other | |
// controls. DO NOT RUN THIS COMMAND WITHOUT | |
// REDIRECTING THE OUTPUT TO A FILE, e.g., | |
// convert.php mystring.txt > out.png | |
// open the file | |
$handler = fopen($argv[1], 'r'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
R0lGODlhGgAQAPcAAAB2AhEl/hV0AQd6BQl4AwV7AwlyEQV8AQV7BAV4Af//Cv//AxmDEwh6AgdxEwB1AQB1AAd7AQl6Af//AAByBf//AQB0A///CBWBDhNyBwB4Avz+BAJ2BP//BhlyAQd6A///Df//BxmDEgx4AgBzABlxAQl6BRlxAAcb///+BAdxEkdNvwx6AL29UP//BOHpQYyn45XIDRiCEZ/IDGyvDBiCEwdzEx8y8/39ARcm8wV6Bgt1EmKgDBh6BQYW/wt7AAZ7A9/wDuvuNJbFC9DlEP/8DIWPjuv0BwB3AAJ3AGeFzI2+EgNyFPv8GQoc9aaybBIg/7faEyE06E+dDVZnqP//EO36CP39BlNtwzKPCjWKCLPXCvX7BwF7AAJ4AlScCBIg8wFyA1h1ywN2BgN0Bf77AOvzEO/4DdDmCk9l1R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