-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
204 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- Author : Jingxuan Yang--> | ||
<!-- Program Email: [email protected] --> | ||
|
||
# tanptimes: Making Text, Alphabet, Numbers and Punctuations in Times | ||
|
||
# tanptimes: 文字、字母、数字和标点使用 Times 字体 | ||
|
||
# Introduction to tanptimes | ||
|
||
The `tanptimes` is a package that uses Times font to display Text, Alphabet, Numbers and Punctuations (especially in math environment), while the other math symbols remain the default font (CM). | ||
|
||
# tanptimes 简介 | ||
|
||
`tanptimes` 是一个宏包,其使用 Times 字体显示正文文本、数学环境中的数字、字母与标点,并保留其他数学符号的默认字体,即CM字体。 | ||
|
||
# Quick start | ||
|
||
Use this package simply by adding `\usepackage{tanptimes}` to the preamble. The `main.tex` is given as an example. | ||
|
||
![Example file.](example.png) | ||
|
||
# License | ||
|
||
This material is subject to the [LATEX Project Public License 1.3c](https://ctan.org/license/lppl1.3) or any later version. | ||
|
||
# 协议 | ||
|
||
本模板的发布遵照 [LATEX Project Public License 1.3c](https://ctan.org/license/lppl1.3) 协议或其后版本。 | ||
|
||
# References(参考文献) | ||
|
||
* [LATEX2ε font selection](http://mirrors.ctan.org/macros/latex/base/fntguide.pdf) | ||
* [LATEX font encodings](http://mirrors.ctan.org/macros/latex/base/encguide.pdf) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
\documentclass{article} | ||
|
||
% math | ||
\usepackage{amsmath,amssymb,bm} | ||
|
||
\usepackage{tanptimes} | ||
|
||
\title{Making Text, Alphabet, Numbers and Punctuations in Times} | ||
\author{Jingxuan Yang} | ||
|
||
\begin{document} | ||
|
||
\maketitle | ||
|
||
0123456789, \textit{0123456789} | ||
|
||
abcdefghijklmnopqrstuvwxyz | ||
|
||
ABCDEFGHIJKLMNOPQRSTUVWXYZ | ||
|
||
\begin{equation} | ||
0123456789 | ||
\end{equation} | ||
|
||
\begin{equation} | ||
abcdefghijklmnopqrstuvwxyz | ||
\end{equation} | ||
|
||
\begin{equation} | ||
ABCDEFGHIJKLMNOPQRSTUVWXYZ | ||
\end{equation} | ||
|
||
\begin{equation} | ||
\alpha\beta\gamma\delta\epsilon\varepsilon | ||
\zeta\eta\theta\vartheta\iota\kappa\lambda\mu\nu\xi\pi\varpi | ||
\rho\sigma\varsigma\tau\upsilon\phi\varphi\chi\psi\omega | ||
\end{equation} | ||
|
||
\begin{equation} | ||
\bm{0123456789} | ||
\end{equation} | ||
|
||
\begin{equation} | ||
\bm{abcdefghijklmnopqrstuvwxyz} | ||
\end{equation} | ||
|
||
\begin{equation} | ||
\bm{ABCDEFGHIJKLMNOPQRSTUVWXYZ} | ||
\end{equation} | ||
|
||
\begin{equation} | ||
\bm{\alpha\beta\gamma\delta\epsilon\varepsilon | ||
\zeta\eta\theta\vartheta\iota\kappa\lambda\mu\nu\xi\pi\varpi | ||
\rho\sigma\varsigma\tau\upsilon\phi\varphi\chi\psi\omega} | ||
\end{equation} | ||
|
||
\begin{equation} | ||
\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ} | ||
\end{equation} | ||
|
||
\begin{equation} | ||
\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ} | ||
\end{equation} | ||
|
||
\begin{equation} | ||
R_{z} =\sum_{i=1}^n\int_{i=1}^\infty \frac12 (z \Delta Z)^2,~\text{if}~x>0. | ||
\end{equation} | ||
|
||
\begin{equation} | ||
a_0=1\times2345\times6789+0-2. | ||
\end{equation} | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
% | ||
% Copyright (C) 2024 by Jingxuan Yang <[email protected]> | ||
% | ||
% This work may be distributed and/or modified under the | ||
% conditions of the LaTeX Project Public License, either version 1.3c | ||
% of this license or (at your option) any later version. | ||
% The latest version of this license is in | ||
% http://www.latex-project.org/lppl.txt | ||
% and version 1.3c or later is part of all distributions of LaTeX | ||
% version 2005/12/01 or later. | ||
% | ||
% This work has the LPPL1.3c maintenance status `maintained'. | ||
% | ||
|
||
\ProvidesPackage{tanptimes}[2024/10/23 1.0 Making Text, Alphabet, Numbers and Punctuations in Times] | ||
|
||
% text in times | ||
\renewcommand{\rmdefault}{ptm} | ||
|
||
% ref: http://mirrors.ctan.org/macros/latex/base/fntguide.pdf | ||
% ref: http://mirrors.ctan.org/macros/latex/base/encguide.pdf | ||
|
||
% math numbers in times | ||
\DeclareSymbolFont{tanpnormal}{OT1}{ptm}{m}{n} | ||
\DeclareMathSymbol{0}{\mathalpha}{tanpnormal}{48} | ||
\DeclareMathSymbol{1}{\mathalpha}{tanpnormal}{49} | ||
\DeclareMathSymbol{2}{\mathalpha}{tanpnormal}{50} | ||
\DeclareMathSymbol{3}{\mathalpha}{tanpnormal}{51} | ||
\DeclareMathSymbol{4}{\mathalpha}{tanpnormal}{52} | ||
\DeclareMathSymbol{5}{\mathalpha}{tanpnormal}{53} | ||
\DeclareMathSymbol{6}{\mathalpha}{tanpnormal}{54} | ||
\DeclareMathSymbol{7}{\mathalpha}{tanpnormal}{55} | ||
\DeclareMathSymbol{8}{\mathalpha}{tanpnormal}{56} | ||
\DeclareMathSymbol{9}{\mathalpha}{tanpnormal}{57} | ||
|
||
% math punctuations in times | ||
\DeclareMathSymbol{,}{\mathpunct}{tanpnormal}{44} | ||
\DeclareMathSymbol{.}{\mathpunct}{tanpnormal}{46} | ||
|
||
% math alphabet in times | ||
\DeclareSymbolFont{tanpitalic}{OT1}{ptm}{m}{it} | ||
\DeclareMathSymbol{A}{\mathalpha}{tanpitalic}{65} | ||
\DeclareMathSymbol{B}{\mathalpha}{tanpitalic}{66} | ||
\DeclareMathSymbol{C}{\mathalpha}{tanpitalic}{67} | ||
\DeclareMathSymbol{D}{\mathalpha}{tanpitalic}{68} | ||
\DeclareMathSymbol{E}{\mathalpha}{tanpitalic}{69} | ||
\DeclareMathSymbol{F}{\mathalpha}{tanpitalic}{70} | ||
\DeclareMathSymbol{G}{\mathalpha}{tanpitalic}{71} | ||
\DeclareMathSymbol{H}{\mathalpha}{tanpitalic}{72} | ||
\DeclareMathSymbol{I}{\mathalpha}{tanpitalic}{73} | ||
\DeclareMathSymbol{J}{\mathalpha}{tanpitalic}{74} | ||
\DeclareMathSymbol{K}{\mathalpha}{tanpitalic}{75} | ||
\DeclareMathSymbol{L}{\mathalpha}{tanpitalic}{76} | ||
\DeclareMathSymbol{M}{\mathalpha}{tanpitalic}{77} | ||
\DeclareMathSymbol{N}{\mathalpha}{tanpitalic}{78} | ||
\DeclareMathSymbol{O}{\mathalpha}{tanpitalic}{79} | ||
\DeclareMathSymbol{P}{\mathalpha}{tanpitalic}{80} | ||
\DeclareMathSymbol{Q}{\mathalpha}{tanpitalic}{81} | ||
\DeclareMathSymbol{R}{\mathalpha}{tanpitalic}{82} | ||
\DeclareMathSymbol{S}{\mathalpha}{tanpitalic}{83} | ||
\DeclareMathSymbol{T}{\mathalpha}{tanpitalic}{84} | ||
\DeclareMathSymbol{U}{\mathalpha}{tanpitalic}{85} | ||
\DeclareMathSymbol{V}{\mathalpha}{tanpitalic}{86} | ||
\DeclareMathSymbol{W}{\mathalpha}{tanpitalic}{87} | ||
\DeclareMathSymbol{X}{\mathalpha}{tanpitalic}{88} | ||
\DeclareMathSymbol{Y}{\mathalpha}{tanpitalic}{89} | ||
\DeclareMathSymbol{Z}{\mathalpha}{tanpitalic}{90} | ||
|
||
\DeclareMathSymbol{a}{\mathalpha}{tanpitalic}{97} | ||
\DeclareMathSymbol{b}{\mathalpha}{tanpitalic}{98} | ||
\DeclareMathSymbol{c}{\mathalpha}{tanpitalic}{99} | ||
\DeclareMathSymbol{d}{\mathalpha}{tanpitalic}{100} | ||
\DeclareMathSymbol{e}{\mathalpha}{tanpitalic}{101} | ||
\DeclareMathSymbol{f}{\mathalpha}{tanpitalic}{102} | ||
\DeclareMathSymbol{g}{\mathalpha}{tanpitalic}{103} | ||
\DeclareMathSymbol{h}{\mathalpha}{tanpitalic}{104} | ||
\DeclareMathSymbol{i}{\mathalpha}{tanpitalic}{105} | ||
\DeclareMathSymbol{j}{\mathalpha}{tanpitalic}{106} | ||
\DeclareMathSymbol{k}{\mathalpha}{tanpitalic}{107} | ||
\DeclareMathSymbol{l}{\mathalpha}{tanpitalic}{108} | ||
\DeclareMathSymbol{m}{\mathalpha}{tanpitalic}{109} | ||
\DeclareMathSymbol{n}{\mathalpha}{tanpitalic}{110} | ||
\DeclareMathSymbol{o}{\mathalpha}{tanpitalic}{111} | ||
\DeclareMathSymbol{p}{\mathalpha}{tanpitalic}{112} | ||
\DeclareMathSymbol{q}{\mathalpha}{tanpitalic}{113} | ||
\DeclareMathSymbol{r}{\mathalpha}{tanpitalic}{114} | ||
\DeclareMathSymbol{s}{\mathalpha}{tanpitalic}{115} | ||
\DeclareMathSymbol{t}{\mathalpha}{tanpitalic}{116} | ||
\DeclareMathSymbol{u}{\mathalpha}{tanpitalic}{117} | ||
\DeclareMathSymbol{v}{\mathalpha}{tanpitalic}{118} | ||
\DeclareMathSymbol{w}{\mathalpha}{tanpitalic}{119} | ||
\DeclareMathSymbol{x}{\mathalpha}{tanpitalic}{120} | ||
\DeclareMathSymbol{y}{\mathalpha}{tanpitalic}{121} | ||
\DeclareMathSymbol{z}{\mathalpha}{tanpitalic}{122} | ||
|
||
% bold numbers and alphabet in times | ||
\SetSymbolFont{tanpnormal}{bold}{OT1}{ptm}{b}{n} | ||
\SetSymbolFont{tanpitalic}{bold}{OT1}{ptm}{b}{it} |