# Tag Info

27

Really is not a snake, but ... \documentclass{article} \usepackage[text={1.2in,3in}]{geometry} \def\snake{\cleaders\hbox to .5em{\hss\ensuremath\sim\hss% \hspace{-.3em minus -.2em}% }\hfill$^{_\diamond}$\break} \raggedright \begin{document} \noindent Their famous paper on the relationship between \snake deindustrialization and \snake the growth of ...

25

While I couldn't get David Carlisle's answer to work, I made a simple tielable vector version of the xkcd snake: \documentclass{article} \usepackage[text={1.2in,3in}]{geometry} \usepackage[none]{hyphenat} \directlua{ PDF_LITERAL = node.subtype("pdf_literal") WS = node.id("whatsit") GLUE = node.id("glue") add_image = function(line, n, ...

21

this is lualatex only and draws a PDF line w points wide to pad out each line, if you are feeling artistic replace w 0 l by something that draws a snake of the same length \documentclass{article} \directlua{ PDF_LITERAL = node.subtype("pdf_literal") WS=node.id("whatsit") GLUE = node.id("glue") snakefill=function(head) for line in ...

19

The snake could be improved. Also I never know how to do calculations with tikz coordinates, so I use zref instead. Edit Actually I think that my first example didn't work in all cases as the begin and end mark doesn't need to be at the same position even if they were on the same line. So it is better to test if the second mark is at the end of the line. ...

6


1

No, \hfuzz doesn't affect the line breaking decisions. TeX will use a sequence of line breaks so that no line is overfull/underfull, if it's able to find one. Otherwise it will use the sequence the least amount of demerits even if a line is overfull/underfull; the value of \hfuzz only affects the console/log output: if a line is overfull beyond \hfuzz, ...

1

I could not get things to compile, so I converted to Latin text and compiled with pdflatex. But, since your background lines did not require autowrapping, I suggest the use of the stackengine package: \documentclass[12pt,sanskrit]{memoir} \usepackage[b6paper]{geometry} \usepackage{graphicx} \usepackage[pages=some]{background} %\usepackage{xunicode} ...

Only top voted, non community-wiki answers of a minimum length are eligible