is possible make a command like this?
\fontsize{2\normalsize}{2\normalsize}\selectfont
fontsize
is possible make a command like this?
\fontsize{2\normalsize}{2\normalsize}\selectfont
\renewcommand*{\UrlFont}{\normalsize}
does not make the font size smaller:
Normal text has normal size: \normalsize
. Thus you get the same size.
\normalsize
is a fixed size, thus the size does not adopt to different environments such as footnotes.
It removes \ttfamily
, thus you get the same font as in the context.
If you want to have the same font for the URLs as the text before, then it can be set by \urlstyle{same}
:
\documentclass[a6paper,11pt]{memoir}
\usepackage{url}
\usepackage{hyperref}
\usepackage[svgnames]{xcolor}
\hypersetup{
colorlinks,
urlcolor=Blue}
\urlstyle{same}
\begin{document}
Text Text Text Text Text\footnote{WWW: \url{http://www.google.com/}}
Text Text Text Text Text Text Text\footnote{Homepage: \url{Homepage}} Text Text Text Text Text Text TextText Text Text Text Text Text TextText Text Text Text Text Text Text \url{Text}
\end{document}
If you only want to have smaller font sizes for URLs, then package relsize
helps. \relsize{-1}
or \smaller\relax
can be used (the \relax
prevents \smaller
from searching for its optional argument in the next input tokens).
\documentclass[a6paper,11pt]{memoir}
\usepackage{url}
\usepackage{relsize}
\usepackage{hyperref}
\usepackage[svgnames]{xcolor}
\hypersetup{
colorlinks,
urlcolor=Blue}
\renewcommand*{\UrlFont}{\ttfamily\smaller\relax}
\begin{document}
Text Text Text Text Text\footnote{WWW: \url{http://www.google.com/}}
Text Text Text Text Text Text Text\footnote{Homepage: \url{Homepage}} Text
Text Text Text Text Text TextText Text Text Text Text Text TextText Text
Text Text Text Text Text \url{Text}
\end{document}
Here's one solution: if you are using the default article class at 10 pt (default), you can copy the relevant parts of size12.clo
into your double-duplex.sty
and change everything to a \renewcommand
:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{double-duplex.sty}
\ProvidesPackage{double-duplex}
% REnewed from size12.clo
\renewcommand\normalsize{%
\@setfontsize\normalsize\@xiipt{14.5}%
\abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
\belowdisplayskip \abovedisplayskip
\let\@listi\@listI}
\normalsize
\renewcommand\small{%
\@setfontsize\small\@xipt{13.6}%
\abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
\def\@listi{\leftmargin\leftmargini
\topsep 9\p@ \@plus3\p@ \@minus5\p@
\parsep 4.5\p@ \@plus2\p@ \@minus\p@
\itemsep \parsep}%
\belowdisplayskip \abovedisplayskip }
\renewcommand\footnotesize{%
\@setfontsize\footnotesize\@xpt\@xiipt
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
\def\@listi{\leftmargin\leftmargini
\topsep 6\p@ \@plus2\p@ \@minus2\p@
\parsep 3\p@ \@plus2\p@ \@minus\p@
\itemsep \parsep}%
\belowdisplayskip \abovedisplayskip }
\renewcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
\renewcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
\renewcommand\large{\@setfontsize\large\@xivpt{18}}
\renewcommand\Large{\@setfontsize\Large\@xviipt{22}}
\renewcommand\LARGE{\@setfontsize\LARGE\@xxpt{25}}
\renewcommand\huge{\@setfontsize\huge\@xxvpt{30}}
\end{filecontents*}
\usepackage[T1]{fontenc}
\usepackage{lipsum} % For filler text
%\usepackage{double-duplex}
\begin{document}
\section{A Section}
\lipsum*[1-3]%
\footnote{\lipsum[4]}
\end{document}
Uncomment \usepackage{double-duplex}
to 'switch' to 12 pt.
The following, however, would be my choice:
\newif\ifxiipt
% \xiipttrue
\ifxiipt
\documentclass[12pt]{article}
\else
\documentclass{article}
\fi
\usepackage[T1]{fontenc}
\usepackage{geometry}
\ifxiipt
\geometry{<smaller margin settings>}
\else
\geometry{<normal margin settings>}
\fi
\usepackage{lipsum} % For filler text
\begin{document}
\section{A Section}
\lipsum*[1-3]%
\footnote{\lipsum[4]}
\end{document}
To effect the same changes, simply uncomment the \xiipttrue
. (The reason I prefer this solution is that it will probably make it easier to do different things for the bigger-font-smaller-margins version or the normal version beside just changing the margins or the font size.)
Best Answer
Your request isn't directly possible. The command
\normalsize
isn't a dimension, but a command that performs several actions.Of course the command
\normalsize
depends on the font size. But it also depends on the class. The standard classes define the command related to the selected font size in the filessize1X.clo
. TheX
stands forIn the file
size10.clo
\normalsize
is defined aswhere
\@setfontsize\normalsize\@xpt\@xiipt
means:To detect the current font size see How to display the font size in use in the final output
There you can find that the command
\f@size
represent the current font size. To save the standard font size use:I can imagine the following example: