conllu.write
tikz-dep
(tikz-dep sent sel-fn+)format :conllu/index words in sent into lines of tex code to be used with the tikz-dependency package. the text at each node will be selected by sel-fn+ for each word:
[(comp tex-escape name :conllu/xpos)
(comp tex-escape name :conllu/upos)
(comp tex-escape :conllu/form)]
note that each sel-fn needs to escape the string properly for the target tex engine (xelatex recommended).
if a word has an entry of :tikz/style, such as [edge style={red},label
style={fill=red}], that style will be used.
xelatex template:
\documentclass{article}
\usepackage[a0paper,left=0cm,right=0cm,top=4cm,bottom=4cm]{geometry}
\usepackage{tikz-dependency}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\usepackage{xeCJK}
\begin{document}
...
\end{document}
write-file
(write-file sent+ file)writes a conllu file which can be any acceptable input for clojure.java.io/writer.