Skip to content

Instantly share code, notes, and snippets.

@kmaed
Created December 16, 2012 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmaed/4312602 to your computer and use it in GitHub Desktop.
Save kmaed/4312602 to your computer and use it in GitHub Desktop.
TikZ で道路の通称名 (119-B),街路の名称 (107-B)
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass{standalone}
\usepackage{fontspec}
\usepackage{tikz}
\setmainfont{M+ 1c}
\definecolor{JISSafetyBlue}{HTML}{0B499D}
\begin{document}
\scalebox{2}{
% 街路の名称 (107-B) 昭和61年10月までの旧式
\begin{tikzpicture}[x=1pt,y=1pt]
\draw[draw=gray,line width=8] (40, 10) -- (40, -26);
\draw[draw=none,fill=JISSafetyBlue] (0, 0) -- (12, 6) -- (68, 6) -- (80, 0) -- (68, -6)
-- (64, -6) .. controls (64, -8) and (63, -9) .. (62, -10) -- (40, -14)
-- (18, -10) .. controls (17, -9) and (16, -8) .. (16, -6) -- (12, -6) -- cycle;
\draw[draw=none,fill=white] (6, 0) -- (12, 5) -- (68, 5) -- (74, 0) -- (68, -5) -- (12, -5) -- cycle;
\node at (40, 0) {\fontsize{8}{8}\selectfont\color{JISSafetyBlue} 四\ \ 条\ \ 通\ \ り};
\node at (40, -9) {\fontsize{5.5}{5.5}\selectfont\color{white} Shijo\ \ dori};
\end{tikzpicture}
}
\end{document}
Display the source blob
Display the rendered blob
Raw
\documentclass{standalone}
\usepackage{fontspec}
\usepackage{tikz}
\setmainfont{M+ 1c}
\definecolor{JISSafetyBlue}{HTML}{0B499D}
\begin{document}
\scalebox{2}{
% 道路の通称名 (119-B)
\begin{tikzpicture}[x=1pt,y=1pt]
\draw[draw=gray,line width=8] (40, 16) -- (40, -20);
\draw[draw=none,fill=JISSafetyBlue] (0, 0) -- (8, 12) -- (72, 12) -- (80, 0) -- (72, -12) -- (8, -12) -- cycle;
\draw[draw=none,fill=white] (8, 0) -- (11, 10) -- (69, 10) -- (72, 0) -- (69, -10) -- (11, -10) -- cycle;
\node[text width=10em] at (40, 0.5) {
\begin{center}
\color{JISSafetyBlue}
\fontsize{10}{10}\selectfont 柳\,馬\,場\,通\\
\fontsize{5}{7}\selectfont Yanaginobanba-dori
\end{center}
};
\end{tikzpicture}
}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment