<?xml version="1.0" encoding="UTF-8"?>
<UserMenu>
  <submenu>
    <title>Text</title>
    <menu type="text">
      <title>Insert text</title>
      <text>Hi, I have been inserted ...</text>
    </menu>
    <menu type="text">
      <title>Insert text (replace selection)</title>
      <text>This text has replaced the current selection...</text>
      <needsSelection>true</needsSelection>
      <replaceSelection>true</replaceSelection>
    </menu>
    <menu type="text">
      <title>Bold text (without selection)</title>
      <text>\;textbf{%C}</text>
    </menu>
    <menu type="text">
      <title>Italic text (with selection)</title>
      <text>\;textit{%M}</text>
      <needsSelection>true</needsSelection>
      <useContextMenu>true</useContextMenu>
      <replaceSelection>true</replaceSelection>
    </menu>
    <menu type="text">
      <title>Small caps (with or without selection)</title>
      <text>\;textsc{%M%C}</text>
      <replaceSelection>true</replaceSelection>
    </menu>
    <separator/>
    <menu type="text">
      <title>pageref</title>
      <text>\;pageref{%R}</text>
    </menu>
    <menu type="text">
      <title>cite</title>
      <text>\;cite{%R}</text>
    </menu>
    <separator/>
    <menu type="text">
      <title>Environment (center)</title>
      <text>\;begin{center}\n%E%C\n\;end{center}\n</text>
    </menu>
    <menu type="text">
      <title>Environment (tabular)</title>
      <text>\;begin{tabular}{%B}\n%B\n\;end{tabular}\n</text>
    </menu>
  </submenu>
  <separator/>
  <menu type="file">
    <title>File contents</title>
    <filename>/etc/hostname</filename>
    <selectInsertion>true</selectInsertion>
  </menu>
  <separator/>
  <menu type="program">
    <title>Execute Program</title>
    <filename>/bin/date</filename>
    <parameter>| perl -n -e 'print &quot;Today is $_&quot;'</parameter>
    <insertOutput>true</insertOutput>
  </menu>
  <menu type="program">
    <title>Execute Program (with selection)</title>
    <filename>perl</filename>
    <parameter>-p -e 's/(.)/\($1\)/g' %M</parameter>
    <needsSelection>true</needsSelection>
    <replaceSelection>true</replaceSelection>
    <insertOutput>true</insertOutput>
  </menu>
</UserMenu>
