<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.luatex.org/index.php?action=history&amp;feed=atom&amp;title=Show_the_hyphenation_points</id>
	<title>Show the hyphenation points - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.luatex.org/index.php?action=history&amp;feed=atom&amp;title=Show_the_hyphenation_points"/>
	<link rel="alternate" type="text/html" href="https://wiki.luatex.org/index.php?title=Show_the_hyphenation_points&amp;action=history"/>
	<updated>2026-05-21T18:20:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.luatex.org/index.php?title=Show_the_hyphenation_points&amp;diff=60&amp;oldid=prev</id>
		<title>Patrick: show the disc nodes</title>
		<link rel="alternate" type="text/html" href="https://wiki.luatex.org/index.php?title=Show_the_hyphenation_points&amp;diff=60&amp;oldid=prev"/>
		<updated>2011-01-11T15:35:07Z</updated>

		<summary type="html">&lt;p&gt;show the disc nodes&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This LaTeX example adds a function to the &amp;lt;tt&amp;gt;post_linebreak_filter&amp;lt;/tt&amp;gt; callback. The function iterates through all the nodes in the paragraph (and descends into the vlist and hlist nodes) and inserts a small rule where the discretionary nodes are.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\documentclass[12pt,a4paper]{scrartcl}&lt;br /&gt;
\usepackage[english]{babel}&lt;br /&gt;
\usepackage{blindtext}&lt;br /&gt;
\usepackage{fontspec}&lt;br /&gt;
\directlua{&lt;br /&gt;
show_hyph = function(head)&lt;br /&gt;
  while head do&lt;br /&gt;
    if head.id == 0 or head.id == 1 then % hlist, vlist&lt;br /&gt;
      show_hyph(head.list) % should be head.head in a newer luatex than 0.64&lt;br /&gt;
    elseif head.id == 7 then             % disc&lt;br /&gt;
      local n = node.new(&amp;quot;whatsit&amp;quot;,&amp;quot;pdf_literal&amp;quot;)&lt;br /&gt;
      n.mode = 0&lt;br /&gt;
      n.data = &amp;quot;q 0.3 w 0 2 m 0 7 l S Q&amp;quot;&lt;br /&gt;
      n.next = head.next&lt;br /&gt;
      n.prev = head&lt;br /&gt;
      head.next = n&lt;br /&gt;
      head = n&lt;br /&gt;
    end&lt;br /&gt;
  head = head.next&lt;br /&gt;
  end&lt;br /&gt;
  return true&lt;br /&gt;
end&lt;br /&gt;
luatexbase.add_to_callback(&amp;quot;post_linebreak_filter&amp;quot;,show_hyph,&amp;quot;show_hyph&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
\begin{document}&lt;br /&gt;
\begin{minipage}{5cm}&lt;br /&gt;
\blindtext&lt;br /&gt;
\end{minipage}&lt;br /&gt;
\end{document}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Patrick</name></author>
		
	</entry>
</feed>