Editing TeX without TeX

From LuaTeXWiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 86: Line 86:
 
In the example code we use black squares as the contents of the pages and not normal text, because character handling takes more code and will be covered later on.
 
In the example code we use black squares as the contents of the pages and not normal text, because character handling takes more code and will be covered later on.
  
Save the following file into <tt>myprogram.lua</tt> and use the TeX stub from above (or get the source [https://gist.github.com/pgundlach/1062041 here]).
+
Save the following file into <tt>myprogram.lua</tt> and use the TeX stub from above (or get the source [https://raw.github.com/gist/1062041/d3de082e955f6535f3820742cef76fe9e50d5a6f/myprogram.lua here]).
 
<pre>
 
<pre>
 
do
 
do
Line 193: Line 193:
 
start_link.link_attr = "/C [0.9 1 0] /Border [0 0 2]"
 
start_link.link_attr = "/C [0.9 1 0] /Border [0 0 2]"
  
--start_link.action = node.new("action")
+
start_link.action = node.new("action")
--there has been an update of the luatex
 
start_link.action = node.new("whatsit","pdf_action")
 
 
start_link.action.action_type = 1
 
start_link.action.action_type = 1
 
start_link.action.action_id  = dest
 
start_link.action.action_id  = dest

Please note that all contributions to LuaTeXWiki are considered to be released under the GNU Free Documentation License 1.3 (see LuaTeXWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)