LaTex 中有對話圖示嗎?

LaTex 中有對話圖示嗎?

我目前正在 LaTex 中尋找“對話圖標”,但在“綜合 LATEX 符號列表”中找不到。有人知道 LaTex 是否有某種對話圖示(如下所示:在此輸入影像描述)?

答案1

您始終可以建立自己的。這樣您就可以根據需要更改詳細資訊。

\documentclass{article}
\usepackage{tikz}
\usepackage{scalerel}
\newcommand\TalkingHead[1][]{\scalerel*{\begin{tikzpicture}[#1]
\draw[xscale=-1,line width=pi*1mm] (-1,-4) to[out=50,in=-90,looseness=1.4] (-1,-3) to[out=-160,in=0]
   (-2,-3.2) to[out=180,in=-120] (-2.7,-2) to[out=120,in=-120] (-2.9,-1.5)
   to[out=120,in=-120] (-2.95,-1.1) to[out=60,in=-30] (-3.2,-0.9)
   to[out=150,in=-120] (-3,0.4) to[out=60,in=-90] (-3,1.2) 
   to[out=90,in=90,looseness=1.8] (3.3,1.2)
   to[out=-90,in=90,looseness=0.8] (2,-2)
   to[out=-90,in=150,looseness=0.8] (3.2,-4) -- cycle;
  \draw[line width=pi*1mm,shift={(pi,-pi/2)}] 
    foreach \X in {1,2,3} {(45:\X) arc[start angle=45,end
  angle=-45,radius=\X]};
\end{tikzpicture}}{Q}}
\begin{document}
\TalkingHead

{\Huge\TalkingHead}
\end{document}

在此輸入影像描述

\scalerel*用於根據字體大小縮放符號。

PS如果你對頭部輪廓的起源感到困惑:這解決了這個難題

有很多方法可以使其更加通用,請參見例如這裡

\documentclass{article}
\usepackage{tikz}
\usepackage{scalerel}
\makeatletter% cf https://tex.stackexchange.com/a/480818
\DeclareRobustCommand{\checkbold}[1]{% https://tex.stackexchange.com/a/24635/121799
 \def#1{0}%
 \edef\@tempa{\f@series}\edef\@tempb{\bfseries@rm}%
 \ifx\@tempa\@tempb%
  \def#1{1}%
 \fi%
 \edef\@tempb{\bfseries@sf}%
 \ifx\@tempa\@tempb%
  \def#1{1}%
 \fi}
\makeatother 
\newcommand\TalkingHead[1][]{\checkbold\tmp%
\scalerel*{\begin{tikzpicture}[line width={(1+0.67*\tmp)*pi*1mm},#1]
\path[use as bounding box] (-3.7,-4.2) rectangle (6.4,4.72);
\draw[xscale=-1] (-1,-4) to[out=50,in=-90,looseness=1.4] (-1,-3) to[out=-160,in=0]
   (-2,-3.2) to[out=180,in=-120] (-2.7,-2) to[out=120,in=-120] (-2.9,-1.5)
   to[out=120,in=-120] (-2.95,-1.1) to[out=60,in=-30] (-3.2,-0.9)
   to[out=150,in=-120] (-3,0.4) to[out=60,in=-90] (-3,1.2) 
   to[out=90,in=90,looseness=1.8] (3.3,1.2)
   to[out=-90,in=90,looseness=0.8] (2,-2)
   to[out=-90,in=150,looseness=0.8] (3.2,-4) -- cycle;
  \draw[shift={(pi,-pi/2)}] 
    foreach \X in {1,2,3} {(45:\X) arc[start angle=45,end
  angle=-45,radius=\X]};
\end{tikzpicture}}{B}}
\begin{document}
Ppf \TalkingHead\space blub\par 
{\bfseries Ppf \TalkingHead\space blub}\par

\bigskip
{\Huge Ppf \TalkingHead\space blub\par
{\bfseries Ppf \TalkingHead\space blub}}

\end{document}

在此輸入影像描述

答案2

對於火星人類學家來說,Unicode 頭像表情符號 (U+1F5E3)(也稱為「強語言評級」)的實施看起來更像是最近一次行星關閉的發起者。

請講

Tikz 版本具有海豚般的聲波,要好得多。

相關內容