2

I want to presents hours and say from hour x to hour y by using sample '~'. Please guide me how I can present the symbol "~"?


In contrast to How does one insert a backslash or a tilde (~) into LaTeX?, I'm particularly interested in controlling the vertical placement of the ~.

6
  • 4
  • If the link given by cmhughes helped, we would close the question as a duplicate, for a clean and structured site.
    – Stefan Kottwitz
    Jan 28, 2013 at 21:58
  • 1
    could you provide a complete MWE that illustrates the problem? :)
    – cmhughes
    Jan 28, 2013 at 22:04
  • 2
    Many people use $x \sim y$.
    – Werner
    Jan 28, 2013 at 22:07
  • 2
    Please try the several methods in cmhughes link, there are variations in vertical position.
    – Stefan Kottwitz
    Jan 28, 2013 at 22:12

1 Answer 1

6

In comments you indicated that it is the height of the ~ that is your concern, perhaps one of these does what you want:

enter image description here

\documentclass{article}

\begin{document}

a\textasciitilde b\raisebox{-1ex}{\textasciitilde}c\raisebox{-1.2ex}{\textasciitilde}d\raisebox{-2ex}{\textasciitilde}e

\end{document}
4
  • I’m assuming this question will be closed; we should then merge it into the other question since this answer would be a great addition to it!
    – doncherry
    Jan 28, 2013 at 22:26
  • @doncherry Not sure it should be closed, if the title were instead "how do you make a low tilde" it would stand on its own. Despite the title I think the problem is more to do with raising/lowering than with ~. Jan 28, 2013 at 23:39
  • @doncherry: As the answer stands now, i.e. with a direct reference to the comments on this question, it's not suitable for merging by a moderator. Jan 30, 2013 at 7:48
  • @DavidCarlisle: It's not just the question title. The body clearly just talks about how to inserting the tilde, which makes it a 100% duplicate. It needs to be rephrased to include the shifting requirement. Then it would make a good follow-up question. Jan 30, 2013 at 7:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .