How to make a custom LaTeX symbol [closed] - latex

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I don't suppose anyone can help with a custom TeX symbol? I need a \sqsubset with a \cdot in the middle of the subset symbol.
I tried using some suggestions from other questions I found but they all ruin the spacing of the subset symbol.

You can overlay symbols \sqsubset and \cdot to make them a unit, and vary its size based on the style it's used in.
\documentclass{article}
\usepackage{amssymb}
\newcommand{\sqsubsetcdot}{
\mathchoice
{\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \displaystyle
{\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \textstyle
{\mathrel{\ooalign{$\scriptstyle\sqsubset$\cr\hidewidth$\scriptstyle\cdot$\hidewidth}}}% \scriptstyle
{\mathrel{\ooalign{$\scriptscriptstyle\sqsubset$\cr\hidewidth$\scriptscriptstyle\cdot$\hidewidth}}}% \scriptscriptstyle
}
\begin{document}
$A \sqsubset B_{A \sqsubset B_{A \sqsubset B}}$
$A \sqsubsetcdot B_{A \sqsubsetcdot B_{A \sqsubsetcdot B}}$
\end{document}

Related

How to put lables under each image in LaTex? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed last year.
Improve this question
I am using overleaf to write my paper. I want to put (a)(b)(c)(d) labels under each image. How can I do that?
\begin{figure}[ht!] %!t
\centering
\includegraphics[width=1.5in]{15_6277.png}
\includegraphics[width=1.5in]{16_6277.png}
\\[\smallskipamount]
\includegraphics[width=1.5in]{17_6277.png}
\includegraphics[width=1.5in]{18_6277.png}
\\[\smallskipamount]
\includegraphics[width=1.5in]{19_6277.png}
\includegraphics[width=1.5in]{ensemled_6277.png}
\caption{Experiments Results and Final Ensemble Result}
\label{Compare_S}
\end{figure}
Just put it in a tabular environment inside the figure;
\begin{figure}[!htbp]
\centering
\begin{tabular}{cc}% l,c,r
\includegraphics{} & \includegraphics{}\\
(a) & (b)\\
\includegraphics{} & \includegraphics{}\\
(c) & (d)\\
\end{tabular}
\caption{\label{fig:label}Caption}
\end{figure}

LateX making text look like the url command [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
So I want the formatting of the url command, but not specifically to be an URL. Is that possible?
This is the formatting of the URL command:
\documentclass{article}
\usepackage{url}
\begin{document}
Regular \url{website} text.
\end{document}
To achieve the same output, use
Regular \texttt{website} text.
or
Regular {\ttfamily website} text.
It seems that you'd want to look it like a URL without attaching a URL. You can do this with: \href{run:}{text}.
Executable Example:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{run:}{This is my URL like text}
\end{document}
\usepackage{hyperref}
Output:

Turn off numbering of sections in LaTeX [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I tried to turn off numbering of the sections in my LaTeX documten using \renewcommand\thesection{}.
The numbering did disappear but the title of the section is still indented.
The «Title of the section» should be at the point where the «3» used to be.
How can I do this?
It is much simpler: use the \section*{Some Text} command:
\documentstyle[12pt]{article}
\begin{document}
\section*{Some Text}
Lorum ipsum ...
\end{document}
yields

How can I capitalize the first letter while using '\cref'? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
The community reviewed whether to reopen this question last month and left it closed:
Original close reason(s) were not resolved
Improve this question
I use package cleveref to refercence a figure or table in latex.
\usepackage{hyperref}
\usepackage{cleveref}
\cref{sim_figure}
The result is some like fig. 1, table I.
However, my expected result is Fig. 1 or Table I which is required by IEEEtran. How can I capitalize the first letter?
This is clearly outlines in the cleveref documentation.
You can either use \Cref, or pass the package option capitalise:
\documentclass{ieeetran}
\usepackage{hyperref}
\usepackage[capitalise]{cleveref}
\begin{document}
See \cref{fig:myfigure} or \Cref{fig:myfigure}.
\begin{figure}
\caption{Some figure}\label{fig:myfigure}
\end{figure}
\end{document}
If you wish to customize the way \Cref prints (output Fig. rather than Figure), add
\Crefname{figure}{Fig.}{Figs.}% {<type>}{<singular>}{<plural>}

How to write URLs in Latex? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
How do you write a URL in Latex?
The subscripts and everything else make the font look very strange when it compiles.
You can use \url
\usepackage{hyperref}
\url{http://stackoverflow.com/}
You just need to escape characters that have special meaning: # $ % & ~ _ ^ \ { }
So
http://stack_overflow.com/~foo%20bar#link
would be
http://stack\_overflow.com/\~foo\%20bar\#link
Here is all the information you need in order to format clickable hyperlinks in LaTeX:
http://en.wikibooks.org/wiki/LaTeX/Hyperlinks
Essentially, you use the hyperref package and use the \url or \href tag depending on what you're trying to achieve.
A minimalist implementation of the \url macro that uses only Tex primitives:
\def\url#1{\expandafter\string\csname #1\endcsname}
This url absolutely won't break over lines, though; the hypperef package is better for that.

Resources