Skip to content

Instantly share code, notes, and snippets.

@doraTeX
Last active January 2, 2016 09:49
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 doraTeX/8285552 to your computer and use it in GitHub Desktop.
Save doraTeX/8285552 to your computer and use it in GitHub Desktop.
TeXで絵文字を入出力する (1) 〜 白黒絵文字編 http://doratex.hatenablog.jp/entry/20140107/1389033238
% ptex2pdf -u -l emoji
\documentclass[uplatex]{jsarticle}
\DeclareKanjiFamily{JY2}{emoji}{}
\DeclareKanjiFamily{JT2}{emoji}{}
\DeclareFontShape{JY2}{emoji}{m}{n}{<->s*[0.924690]emoji-h}{}
\DeclareFontShape{JT2}{emoji}{m}{n}{<->s*[0.924690]emoji-v}{}
\DeclareRobustCommand*{\emojifamily}{\usekanji{JY2}{emoji}{m}{n}}
\DeclareTextFontCommand{\textemoji}{\emojifamily}
\AtBeginDvi{\special{pdf:mapline emoji-h unicode wlmaru2004emojip.ttf}}
\AtBeginDvi{\special{pdf:mapline emoji-v unicode wlmaru2004emojip.ttf -w 1}}
\title{\textemoji{😄} \TeX で絵文字を出してみる \textemoji{🍉}}
\author{\textemoji{🍔} 寺田 侑祐 \textemoji{✋}}
\begin{document}
\maketitle
\tableofcontents
\parindent0zw
\section{\textemoji{😊} 人々}
{\emojifamily 😄😃😀😊☺😉😍😘😚😗😙😜😝😛😳😁😔😌😒😞😣😢😂😭😪😥😰😅😓😩😫😨😱😠😡😤😖😆😋😷😎😴😵😲😟😦😧😈👿😮😬😐😕😯😶😇😏😑👲👳👮👷💂👶👦👧👨👩👴👵👱👼👸😺😸😻😽😼🙀😿😹😾👹👺🙈🙉🙊💀👽💩🔥✨🌟💫💥💢💦💧💤💨👂👀👃👅👄👍👎👌👊✊✌👋✋👐👆👇👉👈🙌🙏☝👏💪🚶🏃💃👫👪👬👭💏💑👯🙆🙅💁🙋💆💇💅👰🙎🙍🙇🎩👑👒👟👞👡👠👢👕👔👚👗🎽👖👘👙💼👜👝👛👓🎀🌂💄💛💙💜💚❤💔💗💓💕💖💞💘💌💋💍💎👤👥💬👣💭}
\section{\textemoji{🌸} 自然}
{\emojifamily 🐶🐺🐱🐭🐹🐰🐸🐯🐨🐻🐷🐽🐮🐗🐵🐒🐴🐑🐘🐼🐧🐦🐤🐥🐣🐔🐍🐢🐛🐝🐜🐞🐌🐙🐚🐠🐟🐬🐳🐋🐄🐏🐀🐃🐅🐇🐉🐎🐐🐓🐕🐖🐁🐂🐲🐡🐊🐫🐪🐆🐈🐩🐾💐🌸🌷🍀🌹🌻🌺🍁🍃🍂🌿🌾🍄🌵🌴🌲🌳🌰🌱🌼🌐🌞🌝🌚🌑🌒🌓🌔🌕🌖🌗🌘🌜🌛🌙🌍🌎🌏🌋🌌🌠⭐☀⛅☁⚡☔❄⛄🌀🌁🌈🌊}
\section{\textemoji{🔔} 物}
{\emojifamily 🎍💝🎎🎒🎓🎏🎆🎇🎐🎑🎃👻🎅🎄🎁🎋🎉🎊🎈🎌🔮🎥📷📹📼💿📀💽💾💻📱☎📞📟📠📡📺📻🔊🔉🔈🔇🔔🔕📢📣⏳⌛⏰⌚🔓🔒🔏🔐🔑🔎💡🔦🔆🔅🔌🔋🔍🛁🛀🚿🚽🔧🔩🔨🚪🚬💣🔫🔪💊💉💰💴💵💷💶💳💸📲📧📥📤✉📩📨📯📫📪📬📭📮📦📝📄📃📑📊📈📉📜📋📅📆📇📁📂✂📌📎✒✏📏📐📕📗📘📙📓📔📒📚📖🔖📛🔬🔭📰🎨🎬🎤🎧🎼🎵🎶🎹🎻🎺🎷🎸👾🎮🃏🎴🀄🎲🎯🏈🏀⚽⚾🎾🎱🏉🎳⛳🚵🚴🏁🏇🏆🎿🏂🏊🏄🎣☕🍵🍶🍼🍺🍻🍸🍹🍷🍴🍕🍔🍟🍗🍖🍝🍛🍤🍱🍣🍥🍙🍘🍚🍜🍲🍢🍡🍳🍞🍩🍮🍦🍨🍧🎂🍰🍪🍫🍬🍭🍯🍎🍏🍊🍋🍒🍇🍉🍓🍑🍈🍌🍐🍍🍠🍆🍅🌽}
\section{\textemoji{🏫} 場所}
{\emojifamily 🏠🏡🏫🏢🏣🏥🏦🏪🏩🏨💒⛪🏬🏤🌇🌆🏯🏰⛺🏭🗼🗾🗻🌄🌅🌃🗽🌉🎠🎡⛲🎢🚢⛵🚤🚣⚓🚀✈💺🚁🚂🚊🚉🚞🚆🚄🚅🚈🚇🚝🚋🚃🚎🚌🚍🚙🚘🚗🚕🚖🚛🚚🚨🚓🚔🚒🚑🚐🚲🚡🚟🚠🚜💈🚏🎫🚦🚥⚠🚧🔰⛽🏮🎰♨🗿🎪🎭📍🚩}
※国旗絵文字は結合文字列なので,その国を表す2文字に分解される。
{\emojifamily 🇯🇵🇰🇷🇩🇪🇨🇳🇺🇸🇫🇷🇪🇸🇮🇹🇷🇺🇬🇧}
\section{\textemoji{💯} 記号}
{\emojifamily 🔟🔢🔣⬆⬇⬅➡🔠🔡🔤↗↖↘↙↔↕🔄◀▶🔼🔽↩↪ℹ⏪⏩⏫⏬⤵⤴🆗🔀🔁🔂🆕🆙🆒🆓🆖📶🎦🈁🈯🈳🈵🈴🈲🉐🈹🈺🈶🈚🚻🚹🚺🚼🚾🚰🚮🅿♿🚭🈷🈸🈂Ⓜ🛂🛄🛅🛃🉑㊙㊗🆑🆘🆔🚫🔞📵🚯🚱🚳🚷🚸⛔✳❇❎✅✴💟🆚📳📴🅰🅱🆎🅾🅾➿♻♈♉♊♋♌♍♎♏♐♑♒♓⛎🔯🏧💹💲💱©®™❌‼⁉❗❓❕❔⭕🔝🔚🔙🔛🔜🔃🕛🕧🕐🕜🕑🕝🕒🕞🕓🕟🕔🕠🕕🕖🕗🕘🕙🕚🕡🕢🕣🕤🕥🕦✖➕➖➗♠♥♣♦💮💯✔☑🔘🔗➰〰〽🔱◼◻◾◽▪▫🔺🔲🔳⚫⚪🔴🔵🔻⬜⬛🔶🔷🔸🔹}
※番号ボタン絵文字は結合文字列なので,数字と枠に分解される。
{\emojifamily 1⃣2⃣3⃣4⃣5⃣6⃣7⃣8⃣9⃣0⃣\string#⃣}
\section{\textemoji{🍺} 縦組}
\mbox{\tate 縦組中での{\emojifamily 😄😃😀😊☺😉😍😘😚😗😙😜😝😛😳😁😔😌😒😞😣}絵文字。}
\end{document}
@doraTeX
Copy link
Author

doraTeX commented Jan 9, 2014

使用法は TeXで絵文字を入出力する (1) 〜 白黒絵文字編 をご参照ください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment