1

My purpose is to create \textdiscount using / and \cdot or .(dot). Can you help me?

======================================

After from Christian Hupfer's Solution

enter image description here

  • What is wrong with \textdiscount? – user31729 Nov 26 '17 at 11:19
  • The format is too dense. It looks bad on page. – Özgür Nov 26 '17 at 11:25
2

Just use a 'proper' combination of \kern and \raisebox with em and ex units that scale accordingly to the currently applied fontsize.

The kerning of -0.2em will shrink the horizontal distance of . and / and the \raisebox will raise or lower the . according to the value. Use ex for vertical raising and em for horizontal shifts.

Adjust the values for best personal tastes -- the given values are just 'arbitrary' ones.

\documentclass{article}
\usepackage{textcomp}


\newcommand{\textdis}{\raisebox{1.2ex}{.}\kern-0.2em/\kern-0.2em\raisebox{-0.5ex}{.}}

\begin{document}


\textdis

{\large \textdis}

{\Large \textdis}

{\LARGE \textdis}

{\huge \textdis}

{\Huge \textdis}

Normal \textdiscount

And now bold:

\bfseries

\textdis

{\large \textdis}

{\Large \textdis}

{\LARGE \textdis}

{\huge \textdis}

{\Huge \textdis}


\end{document} 

enter image description here

  • \textdis means Please turn the page in Turkish. I also want to say hello again. – Özgür Nov 26 '17 at 11:33
  • @Özgür: Do you mean the symbol % has the meaning of 'turn the page' in Turkish? – user31729 Nov 26 '17 at 12:39
  • No, percentage symbol in Turkish is the percent symbol. This means that you only need to 'turn the page' of the new sign that comes from the dots and /. I hope I can express it correctly. I've added a picture. – Özgür Nov 26 '17 at 13:16
  • @Özgur: I just used % since I was too lazy to look the unicode for \textdiscount up – user31729 Nov 26 '17 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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