2

Anyone can help me write a latex for this? enter image description here

Except there should be no space between the letters because they are one word (ex. no space between d,e,and f).

Thank you for your help!

  • 3
    Although there is already an answer: Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Jun 21 '14 at 6:25
4

Looks rather strange, but if you wish...

\documentclass{article}

\begin{document}

Here are some examples: \begin{minipage}[t]{52mm}
a\hfill = \hfill b\hfill ${}=1$ 

c\hfill= \hfill def\hfill =\hfill g \hfill ${}=2$

h\hfill = \hfill ijkl \hfill = \hfill mn \hfill ${}=3$

o \hfill = \hfill p \hfill = \hfill  qr \hfill = \hfill stuv \hfill = \hfill wxy \hfill ${}=4$
\end{minipage}
\end{document} 

I can assume from your example, that there should be equal spacing around equal signs in a line, with an exception of the final one.

enter image description here

  • Thanks! But how do I make 'Here are some examples:' to be on the first line, not on the middle? – user55882 Jun 21 '14 at 6:01
  • @user55882 Oh, it is also important? Please see the corrected version (the option t as top in minipage). I hope that changing the picture is not necessary. – Przemysław Scherwentke Jun 21 '14 at 6:06
  • dziękuję! I appreciate your help – user55882 Jun 21 '14 at 6:09
  • @user55882 O! Czyżby Polak? (I have asked OP, if (s)he is a Pole). – Przemysław Scherwentke Jun 21 '14 at 6:12
  • No, just a beginner in Polish lol. – user55882 Jun 21 '14 at 6:15
4

The equals signs make me suspect this is math; in this case here's a solution with a simple syntax:

\documentclass{article}
\usepackage{array}

\newcolumntype{s}{>{\thickmuskip=1\thickmuskip plus 1fill\relax}c}

\begin{document}
\[
\begin{array}{s@{}>{{}}l}
a = b &=1 \\
c = def = g &=2 \\
h = ijkl = mn &=3 \\
o = p = qr = stuv = wxy &=4
\end{array}
\]
\end{document}

enter image description here

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.