Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

i'm using pdflatex and my math font is palatino. i want to change the punctutation into times because apostrophe is so similar derivation symbol. i used the command below but it changed all math into times. what command should i use?

\DeclareSymbolFont{letters}{T1}{ptm}{m}{n}
\SetSymbolFont{letters}{bold}{T1}{ptm}{bx}{n}
\DeclareMathSymbol{;}{\mathpunct}{letters}{59}
\DeclareMathSymbol{,}{\mathpunct}{letters}{44}}

an axample

\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{mathpazo}  


\begin{document}
$x'$'
\end{document}

second should come from times...

share|improve this question
    
Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Christian Hupfer Apr 12 at 8:25
    
Do you want to change the text or math punctuation? –  egreg Apr 12 at 8:26
    
i want to change math punctuation? –  mert Apr 12 at 8:26
add comment

1 Answer 1

up vote 5 down vote accepted

You have to define a new symbol font, not overwrite one already existing:

\DeclareSymbolFont{timespunct}{T1}{ptm}{m}{n}
\SetSymbolFont{timespunct}{bold}{T1}{ptm}{bx}{n}
\DeclareMathSymbol{;}{\mathpunct}{timespunct}{59}
\DeclareMathSymbol{,}{\mathpunct}{timespunct}{44}

Full example

\documentclass{article}
\usepackage{mathpazo}

\DeclareSymbolFont{timespunct}{T1}{ptm}{m}{n}
\SetSymbolFont{timespunct}{bold}{T1}{ptm}{bx}{n}
\DeclareMathSymbol{;}{\mathpunct}{timespunct}{59}
\DeclareMathSymbol{,}{\mathpunct}{timespunct}{44}

\begin{document}
$a,b;c$
\end{document}

Original (with only mathpazo)

enter image description here

With the added code

enter image description here

Comment

I'm not sure to understand why you'd want this. A comma in math would be printed much differently than a comma in text, making the document unbalanced.

share|improve this answer
    
in my language sometimes we use derivation symbol (ctrl 2) and apostrophe consecutively. so they should seem all different. –  mert Apr 12 at 9:03
    
also i need to change apostrophe symbol. if possible i want some greek letters form times. i hope it's not too much:) thanks. –  mert Apr 12 at 9:04
1  
@mert The prime symbol with mathpazo is very different from the apostrophe. Changing the text apostrophe is a much different job. –  egreg Apr 12 at 9:07
    
thanks a lot... –  mert Apr 12 at 9:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.