TexMaths preamble I'm using

Previously, I used the following LaTeX preamble for my TexMaths extension in LibreOffice:

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage[usenames]{color}

\usepackage{amsbsy,amscd,amstext,amsxtra}

\usepackage{mhchem}

\usepackage[amssymb]{SIunits}

% Uncomment these lines for colored equations

% \definecolor{myColor}{RGB}{0,0,255}

% \pagecolor{white}\color{myColor}

% Four kinds of emph style, \alert style and integration symbol `d‘

\newcommand{\empha}[1]{\textcolor{red}{#1}}

\newcommand{\emphb}[1]{\textcolor{green}{#1}}

\newcommand{\emphc}[1]{\textcolor{orange}{#1}}

\newcommand{\emphd}[1]{\textcolor{blue}{#1}}

\newcommand{\alert}[1]{\textcolor{red}{\textbf{#1}}}

\newcommand{\intd}{\,{\rm d}}

\newcommand{\rme}{{\rm e}}

\newcommand{\rmd}{{\rm d}}

\newcommand{\rmi}{{\rm i}}

\newcommand{\diff}{{\rm d}}

\newcommand{\vect}[1]{\boldsymbol{#1}}

\newcommand{\abs}[1]{\lvert#1\rvert}

\newcommand{\norm}[1]{\lVert#1\rVert}

\newcommand{\curl}{\bf{curl}\,}

\newcommand{\grad}{\bf{grad}\,}

\DeclareMathOperator{\sgn}{sgn}

\DeclareMathOperator{\erf}{erf}

\newcommand{\suchthat}{\textit{s.t\;}}

\newcommand{\etal}{{\it et al}}

\newcommand{\alertboxm}[1]{{%

\setlength{\fboxrule}{.4mm}

\color{red}\boxed{{\color{black}#1}}}}

\newcommand{\emboxm}[1]{{\setlength{\fboxrule}{.4mm}\boxed{#1}}}

\newcommand{\alertbox}[1]{{%

\setlength{\fboxrule}{.4mm}

\color{red}\fbox{{\color{black}#1}}}}

\newcommand{\embox}[1]{{\setlength{\fboxrule}{.4mm}\fbox{#1}}}

Since TexMaths 0.38, the preamble has been stored into each document, while the default preamble is hard coded into the macro DefaultPreamble. Its contents should be replaced with my previous preamble which looks like following:

‘ Set default preamble

Sub DefaultPreamble()

‘ Set the preamble to default value

glb_sPreamble = "\usepackage{amsmath}" & chr(10) &_

"\usepackage{amssymb}" & chr(10) &_

"\usepackage[usenames]{color}" & chr(10) &_

"\usepackage{amsbsy,amscd,amstext,amsxtra}" & chr(10) &_

"\usepackage{mhchem}" & chr(10) &_

"\usepackage[amssymb]{SIunits}" & chr(10) &_

"% Uncomment these lines for colored equations" & chr(10) &_

"% \definecolor{myColor}{RGB}{0,0,255}" & chr(10) &_

"% \pagecolor{white}\color{myColor}" & chr(10) &_

"% Four kinds of emph style, \alert style and integration symbol `d‘" & chr(10) &_

"\newcommand{\empha}[1]{\textcolor{red}{#1}}" & chr(10) &_

"\newcommand{\emphb}[1]{\textcolor{green}{#1}}" & chr(10) &_

"\newcommand{\emphc}[1]{\textcolor{orange}{#1}}" & chr(10) &_

"\newcommand{\emphd}[1]{\textcolor{blue}{#1}}" & chr(10) &_

"\newcommand{\alert}[1]{\textcolor{red}{\textbf{#1}}}" & chr(10) &_

"\newcommand{\intd}{\,{\rm d}}" & chr(10) &_

"\newcommand{\rme}{{\rm e}}" & chr(10) &_

"\newcommand{\rmd}{{\rm d}}" & chr(10) &_

"\newcommand{\rmi}{{\rm i}}" & chr(10) &_

"\newcommand{\diff}{{\rm d}}" & chr(10) &_

"\newcommand{\vect}[1]{\boldsymbol{#1}}" & chr(10) &_

"\newcommand{\abs}[1]{\lvert#1\rvert}" & chr(10) &_

"\newcommand{\norm}[1]{\lVert#1\rVert}" & chr(10) &_

"\newcommand{\curl}{\bf{curl}\,}" & chr(10) &_

"\newcommand{\grad}{\bf{grad}\,}" & chr(10) &_

"\DeclareMathOperator{\sgn}{sgn}" & chr(10) &_

"\DeclareMathOperator{\erf}{erf}" & chr(10) &_

"\newcommand{\suchthat}{\textit{s.t\;}}" & chr(10) &_

"\newcommand{\etal}{{\it et al}}" & chr(10) &_

"\newcommand{\alertboxm}[1]{{%" & chr(10) &_

" \setlength{\fboxrule}{.4mm}" & chr(10) &_

" \color{red}\boxed{{\color{black}#1}}}}" & chr(10) &_

"\newcommand{\emboxm}[1]{{\setlength{\fboxrule}{.4mm}\boxed{#1}}}" & chr(10) &_

"\newcommand{\alertbox}[1]{{%" & chr(10) &_

" \setlength{\fboxrule}{.4mm}" & chr(10) &_

" \color{red}\fbox{{\color{black}#1}}}}" & chr(10) &_

"\newcommand{\embox}[1]{{\setlength{\fboxrule}{.4mm}\fbox{#1}}}" & chr(10)

End Sub

TexMaths preamble I'm using,布布扣,bubuko.com

TexMaths preamble I'm using

时间: 2024-12-25 21:20:55

TexMaths preamble I'm using的相关文章

Preamble

最近的目标: 1.NOI OJ AC100达成 2.CodeVS ACin Order 100题达成 3.历届复赛二三题AC达成 Q.为何要开这个博客? A.为了记录自己学习OI的点滴. Q.主要有什么内容? A.刷题记录?解题报告?资料?比赛Record? To Be Continued...

Java并发编程:Concurrent锁机制解析

.title { text-align: center } .todo { font-family: monospace; color: red } .done { color: green } .tag { background-color: #eee; font-family: monospace; padding: 2px; font-size: 80%; font-weight: normal } .timestamp { color: #bebebe } .timestamp-kwd

转载: HDMI 基础知识

转自:http://www.cnblogs.com/TaigaCon/p/3840653.html HDMI,全称为(High Definition Multimedia Interface)高清多媒体接口,主要用于传输高清音视频信号. HDMI引脚: HDMI有A,B,C,D,E五种引脚类型,目前市面中比较常见的就是Type A: 其中 1-9 都是TMDS数据传输实际上用到的引脚,分为0,1,2三组 10-12 为TMDS时钟信号,如当前Video Timing为[email protect

根据76大细分词性对单词进行归组(二)

词性的重要性不言而喻,尤其是对于自然语言处理来说,哪怕就是记单词,根据词性对单词进行归组也是非常有帮助的. superword是一个Java实现的英文单词分析软件,主要研究英语单词音近形似转化规律.前缀后缀规律.词之间的相似性规律等等. 各大词性及其包括的词: 32.N-COUNT-COLL(可数集合名词) (词数:50) 1 aristocracy army array audience band 2 cast chapter command commission committee 3 co

emacs org-mode 常用命令

Table of Contents 1. orgguide 1.1. introduction 1.2. Document Structure   实用 1.3. Tables 1.4. Hyperlinks 1.5. Todo itesm 1.6. Tags 1.7. Properties 1.8. Dates and Times 1.9. Markup for rich exprot 1.10. Working with source code 2. emacs基本操作 2.1. emacs

第二章 TCP/IP 基础知识

? TCP/IP ?transmission control protocol and ip internet protocol 是互联网众多通信协议中最为著名的. ? 2.2 TCP/IP 的标准化 2.2.2 TCP/IP 标准化精髓 TCP/IP 协议始终具有很强的实用性. 相比于TCP/IP ,OSI 之所以未能达到普及,主要原因在于未能尽早的制定可行性较强的协议.未能提出应对技术快速更新的协议以及没有能及时进行后期的改良的方案. 2.2.3 TCP/IP 规范 --RFC 那些需要标准

See the world from the eyes of shell

In this chapter we are going to look at some of the "magic" that occurs on the command line when you press the enter key.While we will examine several interesting and complex features of the shell,we will do it with just one new command: echo -

bstToDoublyList

.title { text-align: center } .todo { font-family: monospace; color: red } .done { color: green } .tag { background-color: #eee; font-family: monospace; padding: 2px; font-size: 80%; font-weight: normal } .timestamp { color: #bebebe } .timestamp-kwd

Springboot系列1_什么是Springboot

.title { text-align: center } .todo { font-family: monospace; color: red } .done { color: green } .tag { background-color: #eee; font-family: monospace; padding: 2px; font-size: 80%; font-weight: normal } .timestamp { color: #bebebe } .timestamp-kwd