mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-22 07:11:55 +00:00
fix font size in therion protractor
This commit is contained in:
parent
759aefbd1f
commit
bd2ecce0f4
@ -1,4 +1,5 @@
|
||||
\documentclass[12pt,a4paper]{article}
|
||||
%\documentclass[12pt,a4paper]{article}
|
||||
\documentclass[12pt,letter]{article}
|
||||
|
||||
% Change the scale using the value on line 24, and the size of the divisions on line 27
|
||||
% The protractors are 4cm in radius
|
||||
@ -28,7 +29,7 @@
|
||||
\pgfmathsetmacro{\majordivision}{1} % size in meters
|
||||
|
||||
% Size of the text numbers
|
||||
\newcommand{\textsize}{\tiny}
|
||||
\newcommand{\textsize}{\footnotesize}
|
||||
|
||||
% Intrinisc dimensions and conversion factors
|
||||
\pgfmathsetmacro{\convert}{100} % conversion from meters to centimeters
|
||||
@ -159,7 +160,7 @@
|
||||
% Draw the angle numbers
|
||||
% ********************************************************************************
|
||||
|
||||
\foreach \theta in {10,20,...,80}
|
||||
\foreach \theta in {10,30,...,70}
|
||||
{
|
||||
\pgfmathsetmacro{\thetaopposite}{\theta+180}
|
||||
|
||||
@ -172,7 +173,20 @@
|
||||
};
|
||||
}
|
||||
|
||||
\foreach \theta in {90,100,...,170}
|
||||
\foreach \theta in {20,40,...,80}
|
||||
{
|
||||
\pgfmathsetmacro{\thetaopposite}{\theta+180}
|
||||
|
||||
\draw[black] (O) ++ (\theta:\rad) -- ++ (\theta:-5*\majtick) node[anchor=north,near start,sloped,rotate=-90,text=black] {
|
||||
\textsize
|
||||
\begin{tabular}{c}
|
||||
\contour{white}{\pgfmathprintnumber{\theta}}\\
|
||||
\contour{white}{\color{red}\pgfmathprintnumber{\thetaopposite}}
|
||||
\end{tabular}
|
||||
};
|
||||
}
|
||||
|
||||
\foreach \theta in {90,110,...,170}
|
||||
{
|
||||
\pgfmathsetmacro{\thetaopposite}{\theta+180}
|
||||
|
||||
@ -185,12 +199,27 @@
|
||||
};
|
||||
};
|
||||
|
||||
\foreach \theta in {100,120,...,160}
|
||||
{
|
||||
\pgfmathsetmacro{\thetaopposite}{\theta+180}
|
||||
|
||||
\draw[black] (O) ++ (\theta:\rad) -- ++ (\theta:-5*\majtick) node[anchor=north,near start,sloped,rotate=90,text=black] {
|
||||
\textsize
|
||||
\begin{tabular}{c}
|
||||
\contour{white}{\pgfmathprintnumber{\theta}}\\
|
||||
\contour{white}{\color{red}\pgfmathprintnumber{\thetaopposite}}
|
||||
\end{tabular}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
% ********************************************************************************
|
||||
% Draw the linear numbers
|
||||
% ********************************************************************************
|
||||
|
||||
\pgfmathsetmacro{\labmax}{\radius-\majordivision}
|
||||
%\pgfmathsetmacro{\labmax}{\radius-\majordivision}
|
||||
\pgfmathsetmacro{\labmax}{7} %hardcode as 7 so things fit right
|
||||
\pgfmathsetmacro{\labsecond}{\majordivision+\majordivision}
|
||||
|
||||
\foreach \var in {\majordivision,\labsecond,...,\labmax}
|
||||
|
Loading…
Reference in New Issue
Block a user