summaryrefslogtreecommitdiff
path: root/support/latex2man/latex2man.trans
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/latex2man/latex2man.trans
Initial commit
Diffstat (limited to 'support/latex2man/latex2man.trans')
-rw-r--r--support/latex2man/latex2man.trans67
1 files changed, 67 insertions, 0 deletions
diff --git a/support/latex2man/latex2man.trans b/support/latex2man/latex2man.trans
new file mode 100644
index 0000000000..a3e9ec3f8f
--- /dev/null
+++ b/support/latex2man/latex2man.trans
@@ -0,0 +1,67 @@
+#################################################################################
+# Project: Documentation Tools
+# Descr: Latex --> MAN-page (groff -man), and HTML; example of user macro
+# translations
+# Author: Dr. Jürgen Vollmer, Juergen.Vollmer@informatik-vollmer.de
+# $Id: latex2man.trans,v 1.3 2017/04/11 18:30:56 vollmer Exp $
+#################################################################################
+
+#################################################################################
+# translation for MAN
+#################################################################################
+
+# LaTeX macros without arguments
+$manMacro{'LaTeX'} = 'LaTeX';
+$manMacro{'LATEX'} = 'LaTeX'; # needed, since \LaTeX is contained in a
+ # section name (which are transposed
+ # into uppercase
+
+# LaTeX macros with one argument
+$manMacro1a{'myEmph'} = '\n.IR "'; $manMacro1b{'myEmph'} = '"';
+
+# LaTeX macros with two arguments
+$manMacro2a{'myCmd'} = '\n.I "';
+ $manMacro2b{'myCmd'} = '"\n(';
+ $manMacro2c{'myCmd'} = ')';
+
+#################################################################################
+# translation for HTML
+#################################################################################
+
+# LaTeX macros without arguments
+$htmlMacro{'LaTeX'} = 'LaTeX';
+$htmlMacro{'LATEX'} = 'LaTeX'; # needed, since \LaTeX is contained in a
+ # section name (which are transposed
+ # into uppercase
+
+# LaTeX macros with one argument
+$htmlMacro1a{'myEmph'} = '<em>'; $htmlMacro1b{'myEmph'} = '</em>';
+
+# LaTeX macros with two arguments
+$htmlMacro2a{'Cmymd'} = '<em>';
+ $htmlMacro2b{'myCmd'} = '</em>(';
+ $htmlMacro2c{'myCmd'} = ')';
+
+#################################################################################
+# translation for TexInfo
+#################################################################################
+
+# LaTeX macros without arguments
+$texiMacro{'LaTeX'} = 'LaTeX';
+$texiMacro{'LATEX'} = 'LaTeX'; # needed, since \LaTeX is contained in a
+ # section name (which are transposed
+ # into uppercase
+
+# LaTeX macros with one argument
+$texiMacro1a{'myEmph'} = '@emph{'; $texiMacro1b{'myEmph'} = '}';
+
+# LaTeX macros with two arguments
+$texiMacro2a{'Cmymd'} = '';
+ $texiMacro2b{'myCmd'} = ' (';
+ $texiMacro2c{'myCmd'} = ')';
+
+#################################################################################
+## emacs variables
+## Local Variables: ***
+## mode: perl ***
+## End: ***