<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks, Ryan. The tutorial is really good and to-the-point. <br>
    <br>
    By the way, it looks like haskintex has a more general approach to
    integrating Haskell in LaTeX. It seems that in principle it could
    just use that to enable including diagrams in latex, without
    `diagrams-latex`.<br>
    <br>
    And the same question about including a Haskell source instead of
    inlining applies. To me, having a standalone Haskell file is
    superior since I can get syntax highlighting, typechecking and even
    quick REPL debugging of diagrams that way. While with the inlined
    one needs to re-pdflatex the whole thing to get type errors (do they
    even show up in the latex output?) and reflect the changes. I guess,
    that could be done with the PGF backend for diagrams and a suitable
    Makefile, though.<br>
    <br>
    <div class="moz-cite-prefix">On 10/09/2015 07:48 PM, Ryan Yates
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAO27hRoDoyBH9HNNp-poTAiedy69QCiE4gyj-Z+D=+sZ1a1qpg@mail.gmail.com"
      type="cite">
      <div dir="ltr">You can incorporate diagrams from the `diagrams`
        package inline in LaTeX using diagrams-builder.  We have a
        tutorial written up here:
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
            href="http://projects.haskell.org/diagrams/doc/latex.html">http://projects.haskell.org/diagrams/doc/latex.html</a></div>
        <div><br>
        </div>
        <div>I imagine haskintex has a more sophisticated technique and
          it would be interesting to integrate diagrams with that
          approach too.<br>
          <div><br>
          </div>
          <div>Ryan</div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Oct 9, 2015 at 3:32 PM, Andrey
          Chudnov <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:achudnov@gmail.com" target="_blank">achudnov@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Daniel,<br>
              Can this be used in conjunction with the `diagrams`
              package to generate diagrams in LaTeX instead of suffering
              through Tikz?<br>
              Is it possible to include a Haskell source file instead of
              inlining it in the tex file?
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 10/09/2015 12:33 PM, Daniel Díaz Casanueva
                    wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Dear Haskell users,
                      <div><br>
                      </div>
                      <div>I just released a new version of haskintex,
                        the program that runs Haskell code inside LaTeX
                        documents.</div>
                      <div><br>
                      </div>
                      <div><a moz-do-not-send="true"
                          href="http://hackage.haskell.org/package/haskintex"
                          target="_blank">http://hackage.haskell.org/package/haskintex</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div># More about haskintex</div>
                      <div><br>
                      </div>
                      <div>For those who don't know the program yet,
                        _haskintex_ is a tool that executes Haskell code
                        inside LaTeX documents, creating a new LaTeX
                        document where each Haskell expression has been
                        replaced by its result. Furthermore, since
                        haskintex has a special command for using the
                        HaTeX library, you will be able to write Haskell
                        code that generates LaTeX code. Find more
                        details in the haskintex documentation page:</div>
                      <div><br>
                      </div>
                      <div><a moz-do-not-send="true"
                          href="http://daniel-diaz.github.io/projects/haskintex"
                          target="_blank">http://daniel-diaz.github.io/projects/haskintex</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div># What's new?</div>
                      <div><br>
                      </div>
                      <div>One of the main issues when evaluating
                        Haskell code with haskintex was that haskintex
                        was not aware of sandbox environments, so it had
                        to rely on user or global package databases.
                        From version 0.6.0.0, haskintex can now detect
                        and use sandbox package databases, with no
                        additional effort required from you. The
                        -nosandbox flag has been added in case you still
                        want the old behavior.</div>
                      <div><br>
                      </div>
                      <div>Another addition is the -autotexy flag.
                        Without the flag, every expression contained in
                        a \hatex command is required to have type LaTeX.
                        When the flag is enabled, this restriction is
                        relaxed to any type that is an instance of the
                        Texy typeclass. This typeclass contains
                        instances for types that can be rendered to
                        LaTeX syntax. Could be some text, numbers, or
                        even matrices. You can create your own instances
                        too.</div>
                      <div><br>
                      </div>
                      <div>Suggestions, bugs, questions? Head to the
                        haskintex issue tracker:</div>
                      <div><br>
                      </div>
                      <div><a moz-do-not-send="true"
                          href="https://github.com/Daniel-Diaz/haskintex/issues"
                          target="_blank">https://github.com/Daniel-Diaz/haskintex/issues</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Happy texing,</div>
                      <div>Daniel Díaz.</div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Haskell-Cafe mailing list
<a moz-do-not-send="true" href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a>
<a moz-do-not-send="true" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Haskell-Cafe mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
            <a moz-do-not-send="true"
              href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe"
              rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>