mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] detecting the amsmath package


Chronological Thread 
  • From: Kostas Oikonomou <address@hidden>
  • To: TeXmacs <address@hidden>
  • Subject: [TeXmacs] detecting the amsmath package
  • Date: Thu, 04 Sep 2008 13:56:45 -0400
  • Organization: AT&T Labs Research

I want to modify some of the Scheme code for the Latex converter (i.e.
TeXmacs/progs/convert/latex/tmtex.scm).

My question is: how can I detect in my code when TeXmacs is going to export the document to LaTeX and include the amsmath package?

Here is an example where TeXmacs does this:

\documentclass{article}
\usepackage{geometry,amsmath,amssymb,color}
\geometry{letterpaper}

%%%%%%%%%% Start TeXmacs macros
\newcommand{\email}[1]{{\textit{Email:} \texttt{#1}}}
\newcommand{\tmem}[1]{{\em #1\/}}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newenvironment{descriptioncompact}{\begin{description} }{\end{description}}
\definecolor{grey}{rgb}{0.75,0.75,0.75}
\definecolor{orange}{rgb}{1.0,0.5,0.5}
\definecolor{brown}{rgb}{0.5,0.25,0.0}
\definecolor{pink}{rgb}{1.0,0.5,0.5}
%%%%%%%%%% End TeXmacs macros


Kostas



Archive powered by MHonArc 2.6.19.

Top of page