0

How to write four big size letters in a single line with some text.

See below:

enter image description here

My LaTeX code:

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{real try}

\date{November 2017}

\begin{document}

$$Used data structures = S \hspace{4} S^{'} \hspace{4} T$$

\end{document}
  • Please provide a "Minimal Working Example" (MWE) that starts with \documentclass, includes all relevant \usepackage commands, ends with \end{document} and compiles without errors, even if it does not produce your desired output. It is very hard to tell from your question precisely what you want. What do you mean by "four big size letters"? Your handwritten example only has three. Post your MWE and then say exactly what changes you'd like to make. – Sandy G Nov 19 '17 at 7:21
  • You should use \[ ... \] instead of $$ ... $$. Also, in math mode, S' is probably what you want instead of S^{'}. To have your text appear as text but maintain proper math spacing for the = sign, enclose it in an \mbox. – Sandy G Nov 19 '17 at 7:34
  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. – user36296 Jan 23 '18 at 17:50
1

Is this what you have in mind?

enter image description here

The code is here:

\documentclass{article}
\begin{document}

\[
\begin{array}{rc@{}c@{}c@{}c}
\mbox{Used data structures}&=&\underbrace{S}&\underbrace{S'}&\underbrace{T}\\
&&\downarrow&\downarrow&\downarrow\\
&&\begin{tabular}{c}\scriptsize{Explicit}\\[-.75ex] \scriptsize{Stack}\end{tabular}&
\begin{tabular}{c}\scriptsize{Implicit}\\[-.75ex] \scriptsize{Stack}\end{tabular}&
\begin{tabular}{c}\scriptsize{Trailer}\\[-.75ex] \scriptsize{Stack}\end{tabular}
\end{array}
\]

\end{document}
  • Thanks for the code. I am trying to add pause also to make visually more elegant. I mean one pause before S and one pause before S' etc. Do you have any idea how to do it and also to pause in arrows – new_born Nov 19 '17 at 12:32
  • I don’t know what you mean by pause. – Sandy G Nov 19 '17 at 13:18
  • Do you mean that you want to add space before the S and between S and S'? If so, you can add \hspace{5mm} inside the {} in the \begin{array} command. There are three {} pairs. You can add as much space as you wish for each by replacing 5mm with any length. – Sandy G Nov 19 '17 at 23:05
  • No I mean pause which work when use itemize. – new_born Nov 20 '17 at 6:57
  • There may be a language/translation issue here. I think pause may be the wrong word. Can you describe more specifically what you want? – Sandy G Nov 20 '17 at 13:19
1
\documentclass{article}
\usepackage{amsmath}
\def\Stack#1#2{\underbrace{#1}_{\underset{%
\begin{subarray}{c}
\text{\vphantom{p}#2}\\\text{Stack}
\end{subarray}}
{\downarrow}}}

\begin{document}
\begin{equation*}
\text{Used data structures}=\Stack{S}{Explicit}\ \Stack{S'}{Implicit}\ \Stack{T}{Trailer}
\end{equation*}
\end{document}

enter image description here

  • Thanks for the code. I am trying to add pause also to make visually more elegant. I mean one pause before S and one pause before S' etc. Do you have any idea how to do it and also to pause in arrows – new_born Nov 19 '17 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.