Fonts & Character SetsAbbreviation of "Number"

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Abbreviation of "Number"

Post by marie2011 »

Dear forum members,

I was wondering if you could help me with this problem. Actually I should have N.° when giving this command, but it does not work.

Here is my minimal example:

Code: Select all

\documentclass[
12pt,%
%  draft,%
  twoside,%
  BCOR10mm,%
%  bibtotocnumbered,% <= obsolete
toc=listof,
toc=bibliography,
numbers=noenddot
]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,ngerman,catalan,spanish]{babel}

\newcommand*\numer{N"o}
\newcommand*\nume{N"o}

\begin{document}
\numer
\nume
\end{document}
Many thanks in advance.

Cheers and best regards,

Marie

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Abbreviation of "Number"

Post by svend_tveskaeg »

Maybe the following is what you are looking for.

Code: Select all

\documentclass{scrreprt}

\newcommand*\platypus{\textup{\textbf{N.}}\ensuremath{^\circ}}

\begin{document}
\platypus
\end{document}
N.B. I am not sure if swapping the order of \textup and \textbf makes any difference.
Last edited by svend_tveskaeg on Wed Feb 13, 2013 9:58 pm, edited 1 time in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Re: Abbreviation of "Number"

Post by marie2011 »

Hello,

Many thanks for your prompt answer. I am going to do it so.

Regards,

Marie
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Abbreviation of "Number"

Post by localghost »

I know this abbreviation typeset a bit different. What about this?

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{xspace}

\newcommand*{\Num}{N\textsuperscript{o}\xspace}

\begin{document}
  \Num
\end{document}

Thorsten
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Re: Abbreviation of "Number"

Post by marie2011 »

Hello Thorsten,

Many thanks for your contribution. I will try that one as well.

Regards,

Marie
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Abbreviation of "Number"

Post by svend_tveskaeg »

localghost wrote:What about this?...
Thorsten's method is probably better. Use this, Maria.

The \xspace command is a good idea; it gives the correct spacing after the symbol.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Re: Abbreviation of "Number"

Post by marie2011 »

Many thanks to both of you. Everything works fine now.
Post Reply