395 reputation
211
bio website sampablokuper.com
location Cambridge, United Kingdom
age 94
visits member for 1 year, 10 months
seen Mar 19 at 14:32
Interested in web standards, semantics, communication, history of science, and the - uh - universe...

Jul
2
revised Is it possible to use the verbatim environment in an XY-pic node?
Additional correction
Jul
2
comment Is it possible to use the verbatim environment in an XY-pic node?
@Jake, the FAQ says: "To help people answer your question quickly and precisely, remember to ask clear questions and, if possible, to include a small example of code that shows the problem that you want to solve. ... You should only ask practical, answerable questions based on actual problems that you face." I think my question as originally posed met all these criteria (since IMO the code example decreases the clarity in this case). There's no mention in the FAQ of a need to demonstrate original research. Upvotes are nice, but answers matter more.
Jul
2
revised Is it possible to use the verbatim environment in an XY-pic node?
Fleshed out with code
Jul
2
revised Is it possible to use the `verbatim` environment in a dot2tex node?
Forgot \usepackage{verbatim}
Jul
2
revised Is it possible to use the verbatim environment in an XY-pic node?
Clarified
Jul
2
revised Is it possible to use the `verbatim` environment in a dot2tex node?
Excised extraneous remark
Jul
2
revised Is it possible to use the `verbatim` environment in a dot2tex node?
Expanded; provided MWE
Jul
2
comment Is it possible to use the verbatim environment in an XY-pic node?
@mhp, since when was that a criterion for Stack Exchange sites?
Jul
2
comment Edit TikZ Chains to add labels and maintain the option to add individual styles
I've added a feature request to TikZ for this. Feel free to improve it with comments!
Jun
30
awarded  Commentator
Jun
30
comment Is it possible to use the verbatim environment in an XY-pic node?
@UlrikeFischer, surely the whole point of asking a question like this is to find out how (best) to do something. I.e. I want a good solution, but not necessarily a solution based on a failed (and perhaps quite misguided) attempt of my own. So for this sort of question, I'd rather not risk distracting people by providing such.
Jun
30
comment Is it possible to use the verbatim environment in an XY-pic node?
@egreg, "What kind of verbatim?" The \begin{verbatim}...\end{verbatim} kind. This must have been obvious enough, as David Carlisle below was apparently able to infer it without difficulty. "Where?" In an XY-pic node, as clearly stated in the question. I don't see how the size of the XY-pic package, nor the fact that it provides other features besides nodes, makes this part of my question unclear.
Jun
30
comment Is it possible to use the verbatim environment in an XY-pic node?
Thanks for your answer. I tried to turn your snippet into a MWE, but without success. Would you mind expanding it into one? If so, I'll gladly mark this answer as accepted!
Jun
29
comment Is it possible to use the verbatim environment in an XY-pic node?
If the question is clear, concise and answerable, why bloat it with a non-working example?
Jun
29
comment Is it possible to use the `verbatim` environment in a dot2tex node?
I should add that I'm particularly interested in being able to put multi-line code blocks or ASCII art into dot2tex nodes, preferably within a single \begin{verbatim} ... \end{verbatim} pair (or equivalent), instead of having to use \verb|foo|\\\verb|bar|, because the more lines the block contains, the more cumbersome the latter becomes.
Jun
29
revised Is it possible to use the verbatim environment in an XY-pic node?
formatting
Jun
29
comment Is it possible to use the `verbatim` environment in a dot2tex node?
Your example works, but both this: echo 'digraph G {a_0 [texlbl="\begin{verbatim}XY\end{verbatim}"] a_1 [texlbl="$x$"] a_0 -> a_1}' > tmp.dot ; dot2tex tmp.dot > tmp.tex; pdflatex tmp and also this: echo 'digraph G {d2tdocpreamble = "\usepackage{verbatim}"; a_0 [texlbl="\begin{verbatim}XY\end{verbatim}"] a_1 [texlbl="$x$"] a_0 -> a_1}' > tmp.dot ; dot2tex tmp.dot > tmp.tex; pdflatex tmp fail with the message ! LaTeX Error: Something's wrong--perhaps a missing \item. So I'd be grateful for a fuller answer :)
Jun
29
asked Is it possible to use the verbatim environment in an XY-pic node?
Jun
29
awarded  Student
Jun
28
comment Is it possible to use the `verbatim` environment in a dot2tex node?
Interesting. I can't find the example you gave in the dot2tex documentation, nor in the repo. man dot2tex doesn't work for me - although I used easy_install, so wasn't expecting it to work - but I can't see any documentation in the latest ZIP file either (dot2tex-2.8.7.zip) that includes your example. Please could you tell me more about where you found that explanation? Thanks.