02-28-2022
chjones
Calcite | Level 5
Member since
11-04-2016
- 10 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by chjones
Subject Views Posted 657 02-27-2022 11:17 PM 707 02-25-2022 05:44 PM 1229 04-25-2018 03:33 PM 26310 12-19-2017 10:08 PM 26323 12-19-2017 12:52 PM 26376 12-17-2017 10:34 AM 26695 10-11-2017 04:22 PM 2055 09-12-2017 03:01 PM 2086 09-12-2017 01:27 PM 7891 07-20-2017 04:13 PM -
Activity Feed for chjones
- Posted Re: Justification issues using PROC ODSTEXT on SAS Programming. 02-27-2022 11:17 PM
- Posted Justification issues using PROC ODSTEXT on SAS Programming. 02-25-2022 05:44 PM
- Posted TEXTDECORATION not compatible with ODS RTF? on ODS and Base Reporting. 04-25-2018 03:33 PM
- Posted Re: How to add both a subscript and a superscript to a variable in ods rtf text? on ODS and Base Reporting. 12-19-2017 10:08 PM
- Posted Re: How to add both a subscript and a superscript to a variable in ods rtf text? on ODS and Base Reporting. 12-19-2017 12:52 PM
- Posted Re: How to add both a subscript and a superscript to a variable in ods rtf text? on ODS and Base Reporting. 12-17-2017 10:34 AM
- Posted How to add both a subscript and a superscript to a variable in ods rtf text? on ODS and Base Reporting. 10-11-2017 04:22 PM
- Posted Re: Writing mathematical formulas as text in a ODS RTF document on ODS and Base Reporting. 09-12-2017 03:01 PM
- Posted Writing mathematical formulas as text in a ODS RTF document on ODS and Base Reporting. 09-12-2017 01:27 PM
- Posted Re: Remove the header of a ods rtf on ODS and Base Reporting. 07-20-2017 04:13 PM
02-27-2022
11:17 PM
Sorry about the code, here is a text version for you: ODS RTF file = "temp.rtf"; OPTIONS center; PROC ODSTEXT PAGEBREAK = NO ; p 'Executive Report' / style = {font_weight = bold FONT_SIZE=18pt FONT_FACE=Arial background = CXE8E8E8 COLOR = cx006298 width = 7in }; p ' ' /style = {FONT_SIZE=11pt JUST=L FONT_FACE=Arial background = CXE8E8E8 COLOR = cx006298 width = 7in}; p 'Some important text will be input in this one p statement, which will ultimately wrap across multiple lines. I would like the indent to maintain a constant size giving a solid gray box background appearance.' / style = {font_weight = bold FONT_SIZE=18pt FONT_FACE=Arial background = CXE8E8E8 COLOR = cx006298 width = 7in }; RUN; ODS RTF CLOSE; The options center is not giving me the desired output. I appreciate the suggestion and let me know if anything is wrong with the code above. Thanks again!
... View more
02-25-2022
05:44 PM
Greetings All! I am creating an executive report and need the appearance to follow a specific scheme as it is the first page of a report. The desired output has the appearance below (notice the gray is centered on the page, but the test is justified left): Currently I have this, which has the gray box left justified: The code at the moment is this, and the third p statement runs on but is displayed in the above output: I have tried lots of different options including textalign, padding, etc. I am not able to get the desired output. Any suggestions?
... View more
04-25-2018
03:33 PM
Hi Everyone, I am creating an rtf document and am trying to write out a mathematical expression using ods rtf text. I'm trying to generate x-bar, an X with a bar above it. I figured this could be easily acheived using ODS RTF TEXT and a textdecoration = overline styling option. When I run this as a RTF, I do not get the overline; however, the PDF does show the overline. I use many styling options and have not had what appears to be compatibility issues. Seems like textdecoration works with ODS PDF, but not ODS RTF. Am I correct? Is there a workaround for me to create an X-bar (note: I've already tried unicode but was not able to find an x-bar in the character map)? Any suggestions or advice is greatly appreciated. Best, Chris /*RTF creation*/
ODS ESCAPECHAR = '~';
ODS RTF FILE = "Temp.RTF";
ODS RTF TEXT="~{style [just=r textdecoration=overline color=red]Here is some random overlined text.}";
ODS RTF CLOSE;
/*PDF creation*/
ODS ESCAPECHAR = '~';
ODS PDF FILE = "Temp.PDF" ;
ODS PDF TEXT="~{style [just=r textdecoration=overline color=red]Here is some random overlined text.}";
ODS PDF CLOSE;
... View more
12-19-2017
10:08 PM
Cynthia, Your advice and the information you have provided is greatly appreciated. I recently took the Report Writing 1 class and that provided a solid foundation for me to build off of, but I am still learning all of these very specific styling attributes through various sources. Thank you for your time. Best, Chris
... View more
12-19-2017
12:52 PM
Wow, that is perfect! One last question, would you happen to know how to create a fraction, vertically not horizontally (if that makes sense)? Or would you be able to point me to a source where I can learn more about options like textdecoration? Thank You, Chris
... View more
12-17-2017
10:34 AM
Hi Cynthia, Thank you for the reply. Yes, I have tried that, but as Mkeintz has suggested, it leaves an unwanted space. Ideally, I would like for the subscript and the superscript to be directly adjacent to the sigma. The solution that I came up with was to create the equations in an equation editor such as MathType and save them as .png files. Then I could insert the .png into the text of the report when necessary. Another question I have is whether or not we can expand the radical sign so that an equation fits under the radical. I followed the exact procedure above to accomplish this as well, but it would be much simpler if SAS had a way to accomplish this. Again, thank you for the reply and please let me know if you have any info on expanding the radical as well. If not, no biggie. Thanks, Chris
... View more
10-11-2017
04:22 PM
Hi Everyone, I'm trying to get both a subscript and a superscript onto a Unicode variable sigma. The sigma is irrelevant in this question, but I am curious how to add both a subscript and a superscript to the same character. ods escapechar = '^'; p^{sub e(w)} <-this creates my p subscript e(w) p^{super 2} <-this creates my p superscript 2 (or square) How can I have these both placed on the same variable? I've tried combining them as follows: p^{sub e(w)}^{super 2} <- I've tried this and many variations, but have not been successful in getting a result that looks correct. There are always gaps or spacing issues. I'm thinking/hoping there is a command that handles this, but I have not been able to come across it yet. Any ideas/thoughts/solutions are greatly appreciated. Thanks, Chris
... View more
09-12-2017
03:01 PM
Thank You, I will give that a shot. I have never used raw rtf code, so I will have to read up on that, but your approach sounds feasible.
... View more
09-12-2017
01:27 PM
Hi Everyone, I am in the process of report automation,specifically I'm writing an appendix to a journal article using Base SAS 9.4. I have written the code to automate the journal text, tables,page numbering, etc. I now need to write the appendix, which include the formulas used to calculate various items throughout the journal. Is there a way for me to write mathematical expressions to be output into an ods rtf file. I've inserted subscripts using ~unicode(...), but is there something I can do to output something along the lines of the attached file. Also, the attached formula is one that I will ultimately need, I really will be needing to do summations, square roots, squared number, etc. Any info is greatly appreciated. Thank You!
... View more
07-20-2017
04:13 PM
Hi Cynthia, Do you know of a way for me to keep a letterhead across all pages of an rtf, but to also somehow activate the bodytitle option so that my procedure titles appear in the body of the rtf? If I use the bodytitle option in the ods rtf file = '....' line, the procedure titles end up overwriting the letter head. Any ideas? Thank you, Chris
... View more