Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Quoted quotes


From   "Allan Reese (Cefas)" <[email protected]>
To   <[email protected]>
Subject   st: Quoted quotes
Date   Mon, 5 Oct 2009 14:52:16 +0100

This may be trivial but I can't find it in help or manuals.  (Using v10
still), how can I include a quote character in the string of an
added-text on a graph?

The context is that having created a graph command that seems good, an
easy way to record the event is to highlight the command and copy it
inside a note:

scatter y x, ti(Record this) note("scatter y x, ti(Record this)" )

But if the command already includes a quoted string, the note matches
each quote to the preceding one, and doesn't nest them; they turn into
line breaks. It doesn't like Stata's compound quotes `".."' and my only
workaround so far is to replace each quote in the string with
`=char(147)' .. `=char(148)' which seems rather overkill. [147 and 148
actually print the same but might not always.]

Allan
   


***********************************************************************************
This email and any attachments are intended for the named recipient only.  Its unauthorised use, distribution, disclosure, storage or copying is not permitted.  If you have received it in error, please destroy all copies and notify the sender.  In messages of a non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect those of the organisation from which it is sent.  All emails may be subject to monitoring.
***********************************************************************************


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index