I want to insert emojis in latex table and for this I have followed all steps as done in http://www.thetawelle.de/?p=5539
But the size of emoji is very small. I need help as to how to increase size of emoji in the table.
\usepackage{scalerel}
\def\emojif60d{\scalerel*{\includegraphics{f60d.pdf}}{O}}
In the the table I have used: \emojif60d.
You do not need scalerel. It is mostly useful for scaling text, math, etc.
There is all that is required in the \includegraphics macro.
either scale=<scale_factor>
or width=<desired_width> (or height=<desired_height>)
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\includegraphics[scale=0.5]{1F600}&
\includegraphics[scale=1]{1F600}&
\includegraphics[scale=2]{1F600}&
\includegraphics[scale=4]{1F600}&
\includegraphics[scale=8]{1F600}\\\hline
\includegraphics[width=0.25cm]{1F600}&
\includegraphics[width=0.5cm]{1F600}&
\includegraphics[width=1cm]{1F600}&
\includegraphics[width=2cm]{1F600}&
\includegraphics[width=8cm]{1F600}\\
\hline
\end{tabular}
\end{document}
To scale all occurrences of the emoji, you could include the scale in the definition, e.g.
\documentclass{article}
\usepackage{scalerel}
\def\emojif60d{\includegraphics[width=2em]{1F60D.pdf}}
\begin{document}
\emojif60d
\end{document}
If it should only be scaled sometimes, you could use \scalebox from the graphicx package or use a bigger font size, e.g.
\documentclass{article}
\usepackage{scalerel}
\def\emojif60d{\scalerel*{\includegraphics{1F60D.pdf}}{O}}
\begin{document}
\scalebox{3}{\emojif60d}
\emojif60d
\Huge\emojif60d
\end{document}
The latter approach will have the advantage that you will still be able to use the emoji inside of normal text and the size will be adapted to the font size.
Related
came across FontAwesome icon package. When shifting through the documentation I cam across:
{\color{color-name} text and/or icon }
However, this does not seem to work for me. Anyone know what is the correct format for changing the colour of icons?
Thanks
EDIT:
\documentclass[border=0.1cm]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{fontawesome5}
\usepackage[hidelinks]{hyperref}
\begin{document}
\begin{minipage}[t]{0.275\textwidth} % 27.5% of the page width for the first row of icons
\vspace{-\baselineskip} % Required for vertically aligning minipages
{\color{Blue} \icon{Globe}{12}{\href{someAddress}{someAdd}}}\\
\end{minipage}
\end{document}
if you want to use \href, you must load the hyperref package
you are opening one more { than you are closing
if you want to use an icon from fontawsome5, either use \fa<insert name here> or \faIcon{<insert name here>}, e.g. \fGlobe in your case.
\documentclass[border=1cm]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{hyperref}
\usepackage{fontawesome5}
\begin{document}
\begin{minipage}[t]{0.275\textwidth} % 27.5% of the page width for the first row of icons
\vspace{-\baselineskip} % Required for vertically aligning minipages
{\color{Blue} \faGlobe \faIcon{globe} \href{someAddress}{someAdd} }\\
\end{minipage}
\end{document}
I'm a beginner to latex, I was writing an article. At the end when adding references. I did:
\begin{thebibliography}{100}
Some bibitems here
\end{thebibliography}
After compiling, the word "Reference" appears in pdf, and it is too big in size. I want its font size to be 12pt. How can I do that?
Using the titlesec package, you can temporarily change the size of section headings:
\documentclass[12pt]{article}
\usepackage{titlesec}
\begin{document}
test
\begingroup
\titleformat*{\section}{\fontsize{12pt}{14pt}\bfseries\selectfont}
\begin{thebibliography}{100}
Some bibitems here
\end{thebibliography}
\endgroup
\end{document}
need of a small guidance here.
I am using report class, and I do not need chapter numbers for every chapter, just the chapter names.
Is there a way to increase just the font size of the chapter names?
\documentclass[11pt]{report}
\usepackage[utf8]{inputenc}
\begin{document}
\chapter{Introduction}
\end{document}
Observation:
Chapter number is to be removed. I would really appreciate any guidance to increase the font size of the chapter name.
I tried the following to remove chapter numbers. But font size is causing a little concern
\titleformat{\chapter}[display]
{\normalfont\bfseries}{}{5pt}{\huge}
Thanks
You can control the font size of the chapter title with the third argument of \titleformat. In your example, this was \normalsize, change this to whatever size you like:
\documentclass[11pt]{report}
\usepackage{lmodern}
\usepackage{titlesec}
\titleformat{\chapter}[display]{\fontsize{56pt}{64pt}\bfseries}{}{5pt}{}
\begin{document}
\chapter{Introduction}
text
\end{document}
I want the captions of my figures and table to have the same size as \footnotesize. Is there something to put in the preambule of my document to do this?
Use the caption package to set the font key-value to footnotesize:
\documentclass{article}
\usepackage{caption}
\captionsetup{font=footnotesize}
\begin{document}
Some regular text set in \verb|\normalsize|.
\begin{table}[t]
\caption{A table using \texttt{\string\footnotesize}.}
\end{table}
\begin{figure}[t]
\caption{A figure using \texttt{\string\footnotesize}.}
\end{figure}
\end{document}
It is also possible to adjust the label and text formats individually for figures and tables separately. However, consistency is a better option here.
In a simple latex .tex file, how can i colorize an hline?
I've tried
\hline[color:red]
...and:
\hline{color:red}
...but they don't work
Similarly, how can i increase the thickness (width) of the hline?
You need to use colortbl to colour the default tabular rules (horizontal or vertical):
\documentclass{article}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{c}
\arrayrulecolor{red}\hline
a \\
\arrayrulecolor{green}\hline
\end{tabular}
\end{document}
I inserted hlines outside of the tabular environment and could simply color them by using the xcolor package and then {\color{green} \hline}.