Tamanho do texto no caminho de decoração

Tamanho do texto no caminho de decoração

Eu uso este código para gerar texto ao longo de um caminho (aqui, um caminho circular simples):

% ---  ---   ---   ---   --- QUELQUES TEXTES

\path [postaction={decoration={text along path, text={Tympan d'un astrolabe dans lequel les lignes horaires in{\'e}gales de 1{$^{\text{{\`e}re}}$} esp{\`e}ce
sont des cassiniennes {\`a} 1 p{\^o}le},text align=fit to path,pre length=2em, post length=2em},decorate}]  { (175:\RCapricorne+.15) arc (175:5:\RCapricorne+.15) } ;

\path [postaction={decoration={text along path, text={D. Collin {\copyright} {$2012$}},text align=center},decorate}]   { (200:\RCapricorne+.35) arc (200:228:\RCapricorne+.35) } ;

\path [postaction={decoration={text along path, text={Latitude: {$43^{\circ} 43^{\prime}$} N.},text align=fit to path,pre length=2em, post length=2em},decorate}]     { (252:\RCapricorne+.35) arc (252:290:\RCapricorne+.35) } ;

Mas não sei como alterar o tamanho do texto dentro deste procedimento de postagem. Por exemplo, como o primeiro texto é bastante longo, quero redimensioná-lo. Então é possível? E de que forma?

Este é o código utilizado. Rien não é o carro ideal, é um néófito de TikZ.

(Aqui o código em uso. Nada é ideal neste código, porque sou apenas um novato no TikZ...)

   % Tracé complet  du tympan d'un astrolabe planisphérique
    % Author: Dominique COLLIN
    %==============================================================================================
    % MATERIEL :
    % COMPILATION : nécessite un système Tex complet installé sur le disque dur.
    %   Tex Live 2012 pour macintosh intel. (http://www.tug.org/mactex/)
    %   pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
    %   LaTeX2e version < 2011/06/27 >
    %   TikZ and PGF sont des packages TeX pour la création de graphiques et dessins programmables.
    %   PGF 2012-05-18 CVS build.
    %   GNUPLOT version 4.4 patchlevel 3 pour macintoh intel
    %   Manuel TikZ = http://www.texample.net/media/pgf/builds/pgfmanualCVS2012-05-18.pdf
    %   TeXample.net is a web site dedicated to the wonderful world of TeX and friends.
    %   EDITEUR DE TEXTE = TexShop Version 3.11 pour macintosh Intel. (http://www.texshop.org)
    % ==============================================================================================
    %\documentclass[9pt]{article}%           autres choix : report, book
    \documentclass[8pt,article]{memoir}
    %\documentclass[8pt]{standalone}
    % ==============================================
        \usepackage{etex}%
        \usepackage[T1]{fontenc}
        \usepackage[utf8,applemac]{inputenc}
        \usepackage{lmodern, textcomp}
        \usepackage{mathrsfs,bm}
        \usepackage{amsmath,amssymb,amscd}
        \usepackage{comment,relsize}
        \usepackage[frenchb]{babel}
        % ==============================================
        \usepackage[babel=true,kerning=true]{microtype}%pour le package tikZ et les deux points``:''
        % ------- TikZ packages.
        \usepackage{tikz}
        \usepackage{pgfplots}
        \usetikzlibrary{arrows,calc,fit,through,intersections}
        \usetikzlibrary{decorations} % LATEX and plain TEX when using TikZ
        \usetikzlibrary{decorations.text}% texte le long d'un chemin....
        \pgfplotsset{compat=newest}
        %
        %\pagestyle{empty}
            % ==============================================
    \begin{comment}
    :Title: Tracé du tympan d'un Astrolabe planisphérique
    :Tags: mathematical engine;geometry;mathematics;ancient astronomy
    :Author: Dominique COLLIN
    :Slug: astrolabe
    \end{comment}
    % -- -- -- -- -- -- -- -- -- -- 
    \begin{document}
    % -- -- -- -- -- -- -- -- -- -- 
    \begin{tikzpicture}[line cap=round,line join=round, scale=1]
    % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---
    % DEFINITIONS DES CONSTANTES / PARAMETRES MODIFIABLES
    %  (Define a few constants for easy configuration and computation)
    % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- 
        \pgfmathparse{ 43 + 43/60 +50/3600 }
    \let\latitude\pgfmathresult% Latitude du lieu
    % --
        \pgfmathparse{ 23 + 26/60 }
    \let\epsilon\pgfmathresult% Déclinaison du soleil au solstice d'été
    % --
    \def\rayon{2}% Rayon de la sphère céleste servant à la projection stéréographique
    % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---
    % CALCULS INITIAUX ET DIVERS
    % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- 
    % -- Les rayons des cercles principaux, des colures des solstices, longueur des divers segments...
        \pgfmathparse{ -cot(\latitude) }
    \let\K\pgfmathresult% Constante pour le calcul de l'arc semi-diurne
        \pgfmathparse{ 2*\rayon*tan((180-\latitude)/2) + 2*\rayon*tan(\latitude/2) }
    \let\RHorizon\pgfmathresult% Rayon du cercle horizon
        \pgfmathparse{ 2*\rayon*tan((90-\epsilon)/2) }
    \let\RCancer\pgfmathresult% Rayon du colure d'ete
        \pgfmathparse{ 2*\rayon*tan((90+\epsilon)/2) }
    \let\RCapricorne\pgfmathresult% Rayon du colure d'hiver
        \pgfmathparse{ 2*\rayon*tan((180-\latitude)/2) }
    \let\Rmax\pgfmathresult% Rayon maximal de l'Astrolabe (ou limite des hectémories)
        \pgfmathparse{ 2*\rayon*tan(\latitude/2) }
    \let\Rmin\pgfmathresult% Rayon minimal de l'Astrolabe
        \pgfmathparse{ (\RCapricorne+\RCancer)/2 }
    \let\REcliptique\pgfmathresult% Rayon du cercle de l'écliptique
        \pgfmathparse{ \RHorizon/2-2*\rayon*tan(\latitude/2) }
    \let\yHorizon\pgfmathresult% Ordonnée du centre du cercle horizon
        \pgfmathparse{ \rayon*(1/tan((\latitude+90)/2)-tan((\latitude-90)/2))) }
    \let\yZenith\pgfmathresult% Ordonnée du Zénith
        \pgfmathparse{ -2*\rayon*tan((90+\latitude)/2) }
    \let\yNadir\pgfmathresult% Ordonnée du Nadir
        \pgfmathparse{ -\epsilon+\epsilon/100 }%
    \let\pas\pgfmathresult% Pour créer un pas en déclinaison dans l'intervalle [-epsilon;+epsilon].
    % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---
% TRACES DES CERCLES, DES COURBES ET DES SEGMENTS
% ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- 
\begin{scope}% usage de "scope" afin de limiter l'effet de la commande \clip sur le reste de la figure générale
% -- -- -- -- -- -- -- -- -- -- 
\clip circle(\RCapricorne+1/150); % limitations de tous les tracés à l'intérieur du cercle du tropique du Capricorne (Hiver)
% -- -- -- 
%\draw [color=black] (0,0) circle(\Rmax); % Cercle maximal
%\draw [color=blue] (0,0) circle(\Rmin); % Cercle minimal
\draw [color=black] (0,0) circle(\RCancer); % Cercle du solstice d'été
\draw [color=black] (0,0) circle(\RCapricorne); % Cercle du solstice d'hiver
\draw [color=red] (0,0) circle(2*\rayon); % Cercle de l'équateur
\draw [color=black] (0, \yHorizon ) circle(\RHorizon/2); % Cercle de l'horizon du lieu
%\draw [color=green] (0, \REcliptique-\RCancer ) circle(\REcliptique); % Cercle de l'écliptique
% -- -- --
\draw [ ] (0,-\RCapricorne)--(0,\RCapricorne);% Méridien (ligne nord-sud)
\draw [ ] (-\RCapricorne,0)--(\RCapricorne,0);% ligne Est-Ouest
% -- -- --
\coordinate (H0) at (0, \RHorizon-\Rmax); % Centre du cercle horizon
\coordinate (Zenith) at (0, \yZenith);% Zénith
\coordinate (Nadir) at (0, \yNadir);% Nadir
% -- -- --
\fill [black] (0,0) circle (1.5pt); % Marquage de l'origine, centre du tympan
%\fill [black] (H0) circle (2pt); % Marquage du centre du cercle horizon
\fill [black] (Zenith) circle (1.5pt); % Marquage du Zéntih
%\fill [black] (Nadir) circle (3pt); % Marquage du Nadir
\end{scope}
%-----------------
% ---  ---   ---   ---   --- QUELQUES TEXTES
\path [postaction={decoration={text along path, text={Tympan d'un astrolabe dans lequel les lignes horaires in{\'e}gales de 1{$^{\text{{\`e}re}}$} esp{\`e}ce
sont des cassiniennes {\`a} 1 p{\^o}le},text align=fit to path,pre length=2em, post length=2em},decorate}]  { (175:\RCapricorne+.15) arc (175:5:\RCapricorne+.15) } ;
\path [postaction={decoration={text along path, text={D. Collin {\copyright} {$2012$}},text align=center},decorate}]   { (200:\RCapricorne+.35) arc (200:228:\RCapricorne+.35) } ;
\path [postaction={decoration={text along path, text={Latitude: {$43^{\circ} 43^{\prime}$} N.},text align=fit to path,pre length=2em, post length=2em},decorate}]     { (252:\RCapricorne+.35) arc (252:290:\RCapricorne+.35) } ;
% -- -- -- -- -- -- -- -- -- -- 
\end{tikzpicture}
% -- -- -- -- -- -- -- -- -- -- 
\end{document}
% -- -- -- -- -- -- -- -- -- --

Responder1

Dentro text=você pode usar as opções de fonte padrão ou \fontsize{}{}\selectfontdentro dos delimitadores (personalizáveis) |:

    \documentclass[8pt,article]{memoir}

        \usepackage{etex}%
        \usepackage[T1]{fontenc}
        \usepackage[utf8,applemac]{inputenc}
        \usepackage{lmodern, textcomp}
        \usepackage{mathrsfs,bm}
        \usepackage{amsmath,amssymb,amscd}
        \usepackage{comment,relsize}
        \usepackage[frenchb]{babel}

        \usepackage[babel=true,kerning=true]{microtype}
        \usepackage{tikz}
        \usepackage{pgfplots}
        \usetikzlibrary{arrows,calc,fit,through,intersections}
        \usetikzlibrary{decorations} % LATEX and plain TEX when using TikZ
        \usetikzlibrary{decorations.text}% texte le long d'un chemin....
        \pgfplotsset{compat=newest}


    \begin{document}

    \begin{tikzpicture}[line cap=round,line join=round, scale=1]

        \pgfmathparse{ 43 + 43/60 +50/3600 }
    \let\latitude\pgfmathresult% Latitude du lieu
    % --
        \pgfmathparse{ 23 + 26/60 }
    \let\epsilon\pgfmathresult% Déclinaison du soleil au solstice d'été
    % --
    \def\rayon{2}% Rayon de la sphère céleste servant à la projection stéréographique

        \pgfmathparse{ -cot(\latitude) }
    \let\K\pgfmathresult% Constante pour le calcul de l'arc semi-diurne
        \pgfmathparse{ 2*\rayon*tan((180-\latitude)/2) + 2*\rayon*tan(\latitude/2) }
    \let\RHorizon\pgfmathresult% Rayon du cercle horizon
        \pgfmathparse{ 2*\rayon*tan((90-\epsilon)/2) }
    \let\RCancer\pgfmathresult% Rayon du colure d'ete
        \pgfmathparse{ 2*\rayon*tan((90+\epsilon)/2) }
    \let\RCapricorne\pgfmathresult% Rayon du colure d'hiver
        \pgfmathparse{ 2*\rayon*tan((180-\latitude)/2) }
    \let\Rmax\pgfmathresult% Rayon maximal de l'Astrolabe (ou limite des hectémories)
        \pgfmathparse{ 2*\rayon*tan(\latitude/2) }
    \let\Rmin\pgfmathresult% Rayon minimal de l'Astrolabe
        \pgfmathparse{ (\RCapricorne+\RCancer)/2 }
    \let\REcliptique\pgfmathresult% Rayon du cercle de l'écliptique
        \pgfmathparse{ \RHorizon/2-2*\rayon*tan(\latitude/2) }
    \let\yHorizon\pgfmathresult% Ordonnée du centre du cercle horizon
        \pgfmathparse{ \rayon*(1/tan((\latitude+90)/2)-tan((\latitude-90)/2))) }
    \let\yZenith\pgfmathresult% Ordonnée du Zénith
        \pgfmathparse{ -2*\rayon*tan((90+\latitude)/2) }
    \let\yNadir\pgfmathresult% Ordonnée du Nadir
        \pgfmathparse{ -\epsilon+\epsilon/100 }%
    \let\pas\pgfmathresult% Pour créer un pas en déclinaison dans l'intervalle [-epsilon;+epsilon].
    % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---
% TRACES DES CERCLES, DES COURBES ET DES SEGMENTS
% ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- 
\begin{scope}% usage de "scope" afin de limiter l'effet de la commande \clip sur le reste de la figure générale
% -- -- -- -- -- -- -- -- -- -- 
\clip circle(\RCapricorne+1/150); % limitations de tous les tracés à l'intérieur du cercle du tropique du Capricorne (Hiver)
% -- -- -- 
%\draw [color=black] (0,0) circle(\Rmax); % Cercle maximal
%\draw [color=blue] (0,0) circle(\Rmin); % Cercle minimal
\draw [color=black] (0,0) circle(\RCancer); % Cercle du solstice d'été
\draw [color=black] (0,0) circle(\RCapricorne); % Cercle du solstice d'hiver
\draw [color=red] (0,0) circle(2*\rayon); % Cercle de l'équateur
\draw [color=black] (0, \yHorizon ) circle(\RHorizon/2); % Cercle de l'horizon du lieu
%\draw [color=green] (0, \REcliptique-\RCancer ) circle(\REcliptique); % Cercle de l'écliptique
% -- -- --
\draw [ ] (0,-\RCapricorne)--(0,\RCapricorne);% Méridien (ligne nord-sud)
\draw [ ] (-\RCapricorne,0)--(\RCapricorne,0);% ligne Est-Ouest
% -- -- --
\coordinate (H0) at (0, \RHorizon-\Rmax); % Centre du cercle horizon
\coordinate (Zenith) at (0, \yZenith);% Zénith
\coordinate (Nadir) at (0, \yNadir);% Nadir
% -- -- --
\fill [black] (0,0) circle (1.5pt); % Marquage de l'origine, centre du tympan
%\fill [black] (H0) circle (2pt); % Marquage du centre du cercle horizon
\fill [black] (Zenith) circle (1.5pt); % Marquage du Zéntih
%\fill [black] (Nadir) circle (3pt); % Marquage du Nadir
\end{scope}
%-----------------
% ---  ---   ---   ---   --- QUELQUES TEXTES
\path [postaction={decoration={text along path, text={|\tiny|Tympan d'un astrolabe dans lequel les |\Large|lignes horaires in{\'e}gales de 1{$^{\text{{\`e}re}}$} esp{\`e}ce
sont des |\small|cassiniennes {\`a} 1 p{\^o}le},text align=fit to path,pre length=2em, post length=2em},decorate}]  { (175:\RCapricorne+.15) arc (175:5:\RCapricorne+.15) } ;
\path [postaction={decoration={text along path, text={D. Collin {\copyright} {$2012$}},text align=center},decorate}]   { (200:\RCapricorne+.35) arc (200:228:\RCapricorne+.35) } ;
\path [postaction={decoration={text along path, text={Latitude: {$43^{\circ} 43^{\prime}$} N.},text align=fit to path,pre length=2em, post length=2em},decorate}]     { (252:\RCapricorne+.35) arc (252:290:\RCapricorne+.35) } ;
% -- -- -- -- -- -- -- -- -- -- 
\end{tikzpicture}
% -- -- -- -- -- -- -- -- -- -- 
\end{document}

insira a descrição da imagem aqui

informação relacionada