Skip to content

Instantly share code, notes, and snippets.

@atsuyaw
Last active April 27, 2024 07:40
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 atsuyaw/a1659cf40108b2998091d3b5272cfaac to your computer and use it in GitHub Desktop.
Save atsuyaw/a1659cf40108b2998091d3b5272cfaac to your computer and use it in GitHub Desktop.
試薬ラベル Label for chemical substance
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[fontsize=7pt,landscape]{jlreq}
\usepackage{jlreq-trimmarks}
\usepackage[deluxe]{luatexja-preset}
\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\kanjifamilydefault}{\gtdefault}
\usepackage{ifxetex,ifluatex}
\ifxetex
\usepackage{xltxtra}
\setmainfont[Mapping=tex-text]{TeX Gyre Termes}
\setsansfont[Mapping=tex-text]{TeX Gyre Heros}
\setmonofont[Mapping=tex]{Inconsolatazi4}
\else\ifluatex
\setmainfont[Ligatures=TeX]{TeXGyreTermes}
\setsansfont[Ligatures=TeX]{TeXGyreHeros}
\setmonofont{Inconsolatazi4}
\else
\usepackage[T1]{fontenc}
\usepackage{tgtermes}
\usepackage{tgheros}
\usepackage{inconsolata}
\newcommand{\symbf}[1]{\mbox{\boldmath $#1$}}
\fi\fi
\ExplSyntaxOn
\cs_new:Npn \chemmacros_load_module:n #1 {}
\ExplSyntaxOff
\usepackage{ghsystem}
\ghssetup{language=Japanese}% https://github.com/atsuyaw/ghsystem/tree/feat/Japanese
\usepackage[newdimens]{labels}
\LabelCols=2
\LabelRows=2
\LabelGridtrue
\usepackage[
code=Code39,
X=.3mm,
% ratio=5,
H=7mm,
]{makebarcode}
\newcommand{\chemcode}[1]{\rotatebox{270}{\hspace{35mm}\barcode{#1}\hspace{1ex}\Large\texttt{#1}}}
\newcommand{\keikoku}{{\color{red}{\textbf{警告}}}}
\newcommand{\kiken}{{\color{red}{\textbf{\huge 危険}}}}
\newcommand{\geki}{{\color{red}\fbox{\textbf{医薬用外劇物}}}}
\newcommand{\anzen}{%
\textbf{安全作業の励行}\par
使用時/廃棄時はシステム登録を徹底のこと。
使用前に所定のリスクアセスメント及び安全教育を実施すること。混合物につき単体のSDSを参照せよ。
}
\newcommand{\displayname}{%
\textbf{表示をする者}\par
大阪公立大学 工学研究科マテリアル工学分野\\
信頼性材料研究G (\today{} 渡邉)
}
\begin{document}
\begin{labels}
\parbox{8mm}{
\chemcode{99999}
}%
\parbox{.03\textwidth}{\hspace{\textwidth}}%
\parbox{.42\textwidth}{
\geki\par
\textbf{\huge キリンス処理液
Nitric acid mixture}
20\, vol.\% 硝酸+40\, vol.\% 硫酸+2\, vol.\% 塩酸
500\, mL
CAS RN: \texttt{51602-38-1}
\ghspic{skull}\ghspic{health}\ghspic{aqpol}\ghspic{acid}\\
注意喚起語: \kiken
\footnotesize
\ghs{H}{290}
\ghs{H}{314}
\ghs{H}{318}
\ghs{H}{330}
\ghs{H}{370}
\ghs{H}{372}
\ghs{H}{402}\par
\displayname
}%
\parbox{.50\textwidth}{\footnotesize
\textbf{貯蔵又は取扱い上の注意}
\ghs{P}{234}
\ghs{P}{260}
\ghs[dots={汚染された恐れのある部位}]{P}{264}
\ghs{P}{270}
\ghs{P}{271}
\ghs{P}{280}
\ghs{P}{284}
\ghs{P}{301+330+331}
\ghs{P}{303+361+353}
\ghs{P}{304+340}
\ghs{P}{305+351+338}
\ghs{P}{308+316}
\ghs{P}{363}
\ghs{P}{390}
\ghs[dots=]{P}{406}
\ghs{P}{403+233}
\ghs{P}{405}
\ghs[dots={当局の指示に従って}]{P}{501}\par
\anzen
}
\parbox{8mm}{
\chemcode{99999}
}%
\parbox{.03\textwidth}{\hspace{\textwidth}}%
\parbox{.42\textwidth}{
\geki\par
\textbf{\huge 過硝酸
Peroxynitric acid}
10\, vol.\% 硝酸+10\, vol.\% 過酸化水素水
300\, mL
CAS RN: \texttt{26404-66-0}
\ghspic{flame}\ghspic{skull}\ghspic{health}\ghspic{acid}\\
注意喚起語: \kiken
\footnotesize
\ghs{H}{272}
\ghs{H}{302}
\ghs{H}{314}
\ghs{H}{318}
\ghs{H}{330}
\ghs{H}{351}
\ghs{H}{370}
\ghs{H}{372}
\ghs{H}{401}
\ghs{H}{402}\par
\displayname
}%
\parbox{.50\textwidth}{\footnotesize
\textbf{貯蔵又は取扱い上の注意}
\ghs{P}{234}
\ghs{P}{260}
\ghs[dots={汚染された恐れのある部位}]{P}{264}
\ghs{P}{270}
\ghs{P}{271}
\ghs{P}{280}
\ghs{P}{301+330+331}
\ghs{P}{303+361+353}
\ghs{P}{304}
\ghs{P}{305+351+338}
\ghs{P}{308+316}
\ghs{P}{363}
\ghs{P}{390}
\ghs[dots=]{P}{406}
\ghs{P}{403+233}
\ghs{P}{405}
\ghs[dots={当局の指示に従って}]{P}{501}\par
\anzen
}
\end{labels}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment