LaTeX特殊文字・シンボル
LaTeX ドキュメントに,さまざま文字やシンボル(記号)を表示する方法を紹介します.
目次
特殊文字
LaTeX の特殊文字を出力す場合のコマンドを以下に示します.これらのコマンドの内,「\textsuperscript{引数}」と「\textcircled{引数} 」は引数を取ります.
LaTeX の特殊文字
コマンド |
出力 |
|
コマンド |
出力 |
|
コマンド |
出力 |
\% |
![](special_char/percent.svg) |
|
\# |
![](special_char/number.svg) |
|
\& |
![](special_char/amp.svg) |
|
\$ |
![](special_char/doll.svg) |
|
\pounds |
![](special_char/pounds.svg) |
|
\S |
![](special_char/section.svg) |
|
\dag |
![](special_char/dag.svg) |
|
\ddag |
![](special_char/ddag.svg) |
|
\textexclamdown |
![](special_char/textexclamdown.svg) |
|
\textsuperscript{x} |
![](special_char/textsuperscript.svg) |
|
\{ |
![](special_char/brace_l.svg) |
|
\} |
![](special_char/brace_r.svg) |
|
\texttrademark |
![](special_char/texttrademark.svg) |
|
\textbackslash |
![](special_char/textbackslash.svg) |
|
\textquestiondown |
![](special_char/textquestiondown.svg) |
|
\copyright |
![](special_char/copyright.svg) |
|
\textregistered |
![](special_char/textregistered.svg) |
|
\textcircled{a} |
![](special_char/textcircled.svg) |
|
\_ |
![](special_char/under_score.svg) |
|
\textemdash |
![](special_char/textemdash.svg) |
|
\textendash |
![](special_char/textendash.svg) |
|
\textless |
![](special_char/textless.svg) |
|
\textgreater |
![](special_char/textgreater.svg) |
|
\textbar |
![](special_char/textbar.svg) |
|
テキストシンボル (textcomp.sty)
スタイルファイル「textcomp.sty」を使うと,いろいろなシンボル (表1) を記述できます.TeX Live を使っている場合,テキストシンボルを表示するスタイルファイル「textcomp.sty」のインストールは不要です.
このスタイルファイルを使うためは,プリアンブルに以下を記述します.
\usepackage{textcomp}
\usepackage[T1]{fontenc}
二行目「\usepackage[T1]{fontenc}」が無くても,動作します.表示できないシンボルがある場合,二行目を追加してください.
\usepackage{textcomp}のテキストシンボル(記号)
コマンド |
出力 |
|
コマンド |
出力 |
|
コマンド |
出力 |
\textbaht |
![](symbol_file/textcomp/textbaht.svg) |
|
\textbigcircle |
![](symbol_file/textcomp/textbigcircle.svg) |
|
\textblank |
![](symbol_file/textcomp/textblank.svg) |
|
\textblank |
![](symbol_file/textcomp/textblank.svg) |
|
\textborn |
![](symbol_file/textcomp/textborn.svg) |
|
\textbrokenbar |
![](symbol_file/textcomp/textbrokenbar.svg) |
|
\textbullet |
![](symbol_file/textcomp/textbullet.svg) |
|
\textcent |
![](symbol_file/textcomp/textcent.svg) |
|
\textcentoldstyle |
![](symbol_file/textcomp/textcentoldstyle.svg) |
|
\textcolonmonetary |
![](symbol_file/textcomp/textcolonmonetary.svg) |
|
\textcopyright |
![](symbol_file/textcomp/textcopyright.svg) |
|
\textcurrency |
![](symbol_file/textcomp/textcurrency.svg) |
|
\textdagger |
![](symbol_file/textcomp/textdagger.svg) |
|
\textdaggerdbl |
![](symbol_file/textcomp/textdaggerdbl.svg) |
|
\textdegree |
![](symbol_file/textcomp/textdegree.svg) |
|
\textdied |
![](symbol_file/textcomp/textdied.svg) |
|
\textdivorced |
![](symbol_file/textcomp/textdivorced.svg) |
|
\textdollar |
![](symbol_file/textcomp/textdollar.svg) |
|
\textdollaroldstyle |
![](symbol_file/textcomp/textdollaroldstyle.svg) |
|
\textdong |
![](symbol_file/textcomp/textdong.svg) |
|
\texteightoldstyle |
![](symbol_file/textcomp/texteightoldstyle.svg) |
|
\textfiveoldstyle |
![](symbol_file/textcomp/textfiveoldstyle.svg) |
|
\textflorin |
![](symbol_file/textcomp/textflorin.svg) |
|
\textfouroldstyle |
![](symbol_file/textcomp/textfouroldstyle.svg) |
|
\textguarani |
![](symbol_file/textcomp/textguarani.svg) |
|
\textinterrobang |
![](symbol_file/textcomp/textinterrobang.svg) |
|
\textleaf |
![](symbol_file/textcomp/textleaf.svg) |
|
\textlira |
![](symbol_file/textcomp/textlira.svg) |
|
\textmarried |
![](symbol_file/textcomp/textmarried.svg) |
|
\textmho |
![](symbol_file/textcomp/textmho.svg) |
|
\textmu |
![](symbol_file/textcomp/textmu.svg) |
|
\textmusicalnote |
![](symbol_file/textcomp/textmusicalnote.svg) |
|
\textnaira |
![](symbol_file/textcomp/textnaira.svg) |
|
\textnineoldstyle |
![](symbol_file/textcomp/textnineoldstyle.svg) |
|
\textohm |
![](symbol_file/textcomp/textohm.svg) |
|
\textonehalf |
![](symbol_file/textcomp/textonehalf.svg) |
|
\textoneoldstyle |
![](symbol_file/textcomp/textoneoldstyle.svg) |
|
\textonequarter |
![](symbol_file/textcomp/textonequarter.svg) |
|
\textonesuperior |
![](symbol_file/textcomp/textonesuperior.svg) |
|
\textordfeminine |
![](symbol_file/textcomp/textordfeminine.svg) |
|
\textordmasculine |
![](symbol_file/textcomp/textordmasculine.svg) |
|
\textparagraph |
![](symbol_file/textcomp/textparagraph.svg) |
|
\textperiodcentered |
![](symbol_file/textcomp/textperiodcentered.svg) |
|
\textpertenthousand |
![](symbol_file/textcomp/textpertenthousand.svg) |
|
\textperthousand |
![](symbol_file/textcomp/textperthousand.svg) |
|
\textpeso |
![](symbol_file/textcomp/textpeso.svg) |
|
\textpilcrow |
![](symbol_file/textcomp/textpilcrow.svg) |
|
\textquotedbl |
![](symbol_file/textcomp/textquotedbl.svg) |
|
\textquotesingle |
![](symbol_file/textcomp/textquotesingle.svg) |
|
\textrecipe |
![](symbol_file/textcomp/textrecipe.svg) |
|
\textregistered |
![](symbol_file/textcomp/textregistered.svg) |
|
\textsection |
![](symbol_file/textcomp/textsection.svg) |
|
\textsevenoldstyle |
![](symbol_file/textcomp/textsevenoldstyle.svg) |
|
\textsixoldstyle |
![](symbol_file/textcomp/textsixoldstyle.svg) |
|
\textsterling |
![](symbol_file/textcomp/textsterling.svg) |
|
\textthreeoldstyle |
![](symbol_file/textcomp/textthreeoldstyle.svg) |
|
\textthreequarters |
![](symbol_file/textcomp/textthreequarters.svg) |
|
\textthreequartersemdash |
![](symbol_file/textcomp/textthreequartersemdash.svg) |
|
\textthreesuperior |
![](symbol_file/textcomp/textthreesuperior.svg) |
|
\texttrademark |
![](symbol_file/textcomp/texttrademark.svg) |
|
\texttwelveudash |
![](symbol_file/textcomp/texttwelveudash.svg) |
|
\texttwooldstyle |
![](symbol_file/textcomp/texttwooldstyle.svg) |
|
\texttwosuperior |
![](symbol_file/textcomp/texttwosuperior.svg) |
|
\textwon |
![](symbol_file/textcomp/textwon.svg) |
|
\textyen |
![](symbol_file/textcomp/textyen.svg) |
|
\textzerooldstyle |
![](symbol_file/textcomp/textzerooldstyle.svg) |
|
いろいろなシンボル (ifsym.sty)
メタフォントで書かれたシンボルフォントのセットです.幾何学や電気回路,天候,時計,登山,その他のシンボルを提供します.
インストール
TeX Live を使っている場合,スタイルファイル「ifsym.sty」のインストールは不要です.使っているシステムにない場合,以下の手順でインストールできます.Linux の場合は,スーパーユーザー(ルート)でインストールすることになるでしょう.
- CTAN の ifsym のサイトから,ifsym.zipをダウンロードします.そして,unzip などをつかい,解凍します.
- ディレクトリー「/usr/share/texmf/fonts/source/public/ifsym」を作成します.解凍したファイルのうち拡張子が gen と mf のファイルをこのディレクトリーに移動します.
- ディレクトリー「/usr/share/texmf/ptex/ifsym」を作成します.解凍したファイルのうち拡張子が fd のファイルと ifsym.sty をこのディレクトリーに移動します.
- コマンド「mktexlsr」を実行.
使い方
ドイツ語のマニュアルが有ります.コマンドは分かります.
幾何学シンボル(geometry)
プリアンブルに「\usepackage[geometry]{ifsym}」と記述すれば,表2に示す幾何学シンボルを使うことができます.
\usepackage[geometry]{ifsym}のコマンドと実行結果
コマンド |
実行結果 |
|
コマンド |
実行結果 |
|
コマンド |
実行結果 |
\Circle |
![](symbol_file/ifsym_geometry/Circle.png) |
|
\Square |
![](symbol_file/ifsym_geometry/Square.png) |
|
\Cross |
![](symbol_file/ifsym_geometry/Cross.png) |
|
\TriangleUp |
![](symbol_file/ifsym_geometry/TriangleUp.png) |
|
\TriangleLeft |
![](symbol_file/ifsym_geometry/TriangleLeft.png) |
|
\TriangleDown |
![](symbol_file/ifsym_geometry/TriangleDown.png) |
|
\TriangleRight |
![](symbol_file/ifsym_geometry/TriangleRight.png) |
|
\Diamondshape |
![](symbol_file/ifsym_geometry/Diamondshape.png) |
|
\RightDiamond |
![](symbol_file/ifsym_geometry/RightDiamond.png) |
|
\LowerDiamond |
![](symbol_file/ifsym_geometry/LowerDiamond.png) |
|
\HBar |
![](symbol_file/ifsym_geometry/HBar.png) |
|
\VBar |
![](symbol_file/ifsym_geometry/VBar.png) |
|
\SquareShadowA |
![](symbol_file/ifsym_geometry/SquareShadowA.png) |
|
\SquareShadowB |
![](symbol_file/ifsym_geometry/SquareShadowB.png) |
|
\SquareShadowC |
![](symbol_file/ifsym_geometry/SquareShadowC.png) |
|
\FilledSquareShadowA |
![](symbol_file/ifsym_geometry/FilledSquareShadowA.png) |
|
\FilledSquareShadowC |
![](symbol_file/ifsym_geometry/FilledSquareShadowC.png) |
|
\DiamondShadowA |
![](symbol_file/ifsym_geometry/DiamondShadowA.png) |
|
\DiamondShadowB |
![](symbol_file/ifsym_geometry/DiamondShadowB.png) |
|
\DiamondShadowC |
![](symbol_file/ifsym_geometry/DiamondShadowC.png) |
|
\FilledDiamondShadowA |
![](symbol_file/ifsym_geometry/FilledDiamondShadowA.png) |
|
\FilledDiamondShadowC |
![](symbol_file/ifsym_geometry/FilledDiamondShadowC.png) |
|
\SpinUp |
![](symbol_file/ifsym_geometry/SpinUp.png) |
|
\SpinDown |
![](symbol_file/ifsym_geometry/SpinDown.png) |
|
電気回路シンボル(electronic)
プリアンブルに「\usepackage[electronic]{ifsym}」と記述すれば,表3に示すロジック回路の論理のタイミングを表す記号使うことができます.
\\usepackage[electronic]{ifsym}のコマンドと実行結果
コマンド |
実行結果 |
|
コマンド |
実行結果 |
|
コマンド |
実行結果 |
\RaisingEdge |
![](symbol_file/ifsym_electronic/RaisingEdge.png) |
|
\FallingEdge |
![](symbol_file/ifsym_electronic/FallingEdge.png) |
|
\ShortPulseHigh |
![](symbol_file/ifsym_electronic/ShortPulseHigh.png) |
|
\ShortPulseLow |
![](symbol_file/ifsym_electronic/ShortPulseLow.png) |
|
\PulseHigh |
![](symbol_file/ifsym_electronic/PulseHigh.png) |
|
\PulseLow |
![](symbol_file/ifsym_electronic/PulseLow.png) |
|
\LongPulseHigh |
![](symbol_file/ifsym_electronic/LongPulseHigh.png) |
|
\LongPulseLow |
![](symbol_file/ifsym_electronic/LongPulseLow.png) |
|
天候シンボル(weather)
プリアンブルに「\usepackage[weather]{ifsym}」と記述すれば,表4に示す天候を表す記号使うことができます.
\usepackage[weather]{ifsym}のコマンドと実行結果
コマンド |
実行結果 |
|
コマンド |
実行結果 |
|
コマンド |
実行結果 |
\Sun |
![](symbol_file/ifsym_weather/Sun.png) |
|
\HalfSun |
![](symbol_file/ifsym_weather/HalfSun.png) |
|
\NoSun |
![](symbol_file/ifsym_weather/NoSun.png) |
|
\Fog |
![](symbol_file/ifsym_weather/Fog.png) |
|
\ThinFog |
![](symbol_file/ifsym_weather/ThinFog.png) |
|
\Rain |
![](symbol_file/ifsym_weather/Rain.png) |
|
\WeakRain |
![](symbol_file/ifsym_weather/WeakRain.png) |
|
\Hail |
![](symbol_file/ifsym_weather/Hail.png) |
|
\Sleet |
![](symbol_file/ifsym_weather/Sleet.png) |
|
\Snow |
![](symbol_file/ifsym_weather/Snow.png) |
|
\Lightning |
![](symbol_file/ifsym_weather/Lightning.png) |
|
\Cloud |
![](symbol_file/ifsym_weather/Cloud.png) |
|
\RainCloud |
![](symbol_file/ifsym_weather/RainCloud.png) |
|
\WeakRainCloud |
![](symbol_file/ifsym_weather/WeakRainCloud.png) |
|
\SunCloud |
![](symbol_file/ifsym_weather/SunCloud.png) |
|
\SnowCloud |
![](symbol_file/ifsym_weather/SnowCloud.png) |
|
\FilledCloud |
![](symbol_file/ifsym_weather/FilledCloud.png) |
|
\FilledRainCloud |
![](symbol_file/ifsym_weather/FilledRainCloud.png) |
|
\FilledWeakRainCloud |
![](symbol_file/ifsym_weather/FilledWeakRainCloud.png) |
|
\FilledSunCloud |
![](symbol_file/ifsym_weather/FilledSunCloud.png) |
|
\FilledSnowCloud |
![](symbol_file/ifsym_weather/FilledSnowCloud.png) |
|
\Thermo{3} |
![](symbol_file/ifsym_weather/Thermo{3}.png) |
|
その他(misc)
プリアンブルに「\usepackage[misc]{ifsym}」と記述すれば,表5に示すもろもろの記号使うことができます.この中で,サイコロ(ダイス)を表す「\Cube{5}」が面白いです.引数 (1 -- 6) を変えると,サイコロの目が変わります.
\\usepackage[misc]{ifsym}のコマンドと実行結果
コマンド |
実行結果 |
|
コマンド |
実行結果 |
|
コマンド |
実行結果 |
\SectioningDiamond |
![](symbol_file/ifsym_misc/SectioningDiamond.png) |
|
\FilledSectioningDiamond |
![](symbol_file/ifsym_misc/FilledSectioningDiamond.png) |
|
\PaperPortrait |
![](symbol_file/ifsym_misc/PaperPortrait.png) |
|
\PaperLandscape |
![](symbol_file/ifsym_misc/PaperLandscape.png) |
|
\Cube{5} |
![](symbol_file/ifsym_misc/Cube_5.png) |
|
\Irritant |
![](symbol_file/ifsym_misc/Irritant.png) |
|
\Fire |
![](symbol_file/ifsym_misc/Fire.png) |
|
\Radiation |
![](symbol_file/ifsym_misc/Radiation.png) |
|
\Letter |
![](symbol_file/ifsym_misc/Letter.png) |
|
\Telephone |
![](symbol_file/ifsym_misc/Telephone.png) |
|
\StrokeOne |
![](symbol_file/ifsym_misc/StrokeOne.png) |
|
\StrokeTwo |
![](symbol_file/ifsym_misc/StrokeTwo.png) |
|
\StrokeThree |
![](symbol_file/ifsym_misc/StrokeThree.png) |
|
\StrokeFour |
![](symbol_file/ifsym_misc/StrokeFour.png) |
|
\StrokeFive |
![](symbol_file/ifsym_misc/StrokeFive.png) |
|
ページ作成情報
参考資料
更新履歴
|