Re: Code Samples: Tables or Graphic Frame?
Hi Neil, What advantage do you get by putting the code in a table? Are you putting a background color or shading behind the code? Thanks. Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com Hi all, Just wondering how everyone else handles code samples. I generally just put them in a big one-cell table, which works well...unless the code sample runs into the next page. I could just put it all in graphic frame, but I like the control a table offers (and how it converts to HTML via ePub Pro). Any thoughts on this? Cheers, Neil __ Neil Tubb Senior Technical Writer Solace Systems, Inc. 535 Legget Drive, 6th Floor Ottawa, ON K2K 3B8 Phone: (613) 271-1010, ext. 1066 Fax: (613) 271-2844 Internet: www.solacesystems.com http://www.solacesystems.com Email: [EMAIL PROTECTED] ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: Code Samples: Tables or Graphic Frame?
Yes- shade the background and have a border around it. Actually usually just the border. I want it to stand out...it is pretty standard in sample configurations for those of us in the networking world. -Original Message- From: Rick Quatro [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 11:32 AM To: Neil Tubb; framers@frameusers.com Subject: Re: Code Samples: Tables or Graphic Frame? Hi Neil, What advantage do you get by putting the code in a table? Are you putting a background color or shading behind the code? Thanks. Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com Hi all, Just wondering how everyone else handles code samples. I generally just put them in a big one-cell table, which works well...unless the code sample runs into the next page. I could just put it all in graphic frame, but I like the control a table offers (and how it converts to HTML via ePub Pro). Any thoughts on this? Cheers, Neil __ Neil Tubb Senior Technical Writer Solace Systems, Inc. 535 Legget Drive, 6th Floor Ottawa, ON K2K 3B8 Phone: (613) 271-1010, ext. 1066 Fax: (613) 271-2844 Internet: www.solacesystems.com http://www.solacesystems.com Email: [EMAIL PROTECTED] ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Code Samples: Tables or Graphic Frame?
At 11:29 -0500 6/2/07, Neil Tubb wrote: Just wondering how everyone else handles code samples. I generally just put them in a big one-cell table, which works well...unless the code sample runs into the next page. I could just put it all in graphic frame, but I like the control a table offers (and how it converts to HTML via ePub Pro). Any thoughts on this? Text insets. Anything else is hopeless across page boundaries. At 11:32 -0500 6/2/07, Rick Quatro wrote: What advantage do you get by putting the code in a table? Are you putting a background color or shading behind the code? Thanks. We had a design that used a ruled border around code samples. The only way I could find to do this in FrameMaker was with a one-celled custom table. Although it looked quite nice, we gave up in the end because of the page boundary issue. -- Steve ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Code Samples: Tables or Graphic Frame?
I used to put code in graphic frames. Since moving to HTML delivery, however, they are in the text flow with a custom paragraph format. At 11:29 AM 2/6/2007, Neil Tubb wrote: Hi all, Just wondering how everyone else handles code samples. -- David M. Taylor Email: [EMAIL PROTECTED] Principal Technical Writer Phone:(240) 497-3000 OPNET Technologies, Inc.Fax: (240) 497-3001 -- Register for OPNET's Online Technology Workshops at http://www.opnet.com/TechWorkshops -- ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Code Samples: Tables or Graphic Frame?
I use a one-column table with each line of code in its own cell, so it breaks cleanly. Easy to import too. Art On 2/6/07, Neil Tubb [EMAIL PROTECTED] wrote: Hi all, Just wondering how everyone else handles code samples. I generally just put them in a big one-cell table, which works well...unless the code sample runs into the next page. I could just put it all in graphic frame, but I like the control a table offers (and how it converts to HTML via ePub Pro). Any thoughts on this? -- Art Campbell [EMAIL PROTECTED] ... In my opinion, there's nothing in this world beats a '52 Vincent and a redheaded girl. -- Richard Thompson No disclaimers apply. DoD 358 ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Code Samples: Tables or Graphic Frame?
At 16:42 + 6/2/07, Steve Rickaby wrote: Text insets. Anything else is hopeless across page boundaries. I should point out that it's normally a requirement here for the code to be updatable outside of FrameMaker, hence text insets. Art's method therefore would not work here. -- Steve ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Code Samples: Tables or Graphic Frame?
Hi Neil, Here is another way to do it: http://www.frameexpert.com/Demos/ShadeParagraphs.htm The script adds a shaded, ruled rectangle behind the code paragraphs. This avoids the inconvience of adding code in tables or frames. This is only practical because the script is doing the work. Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com Yes- shade the background and have a border around it. Actually usually just the border. I want it to stand out...it is pretty standard in sample configurations for those of us in the networking world. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Code Samples: Tables or Graphic Frame?
Hi, David, et. al. David Taylor wrote: they are in the text flow with a custom paragraph format. This is how I do it. In a fixed-width font (Courier) for the text to line up. I use two paragraph formats ... one for the lines of the code and one for the last line (for the extra space to the next paragraph). Sidebar: here is where conditional paragraph spacing control would be awesome! If the spacing could be set like if the next paragraph format is CODE, then use a spacing of 0, else use a spacing of 10. Z At 11:29 AM 2/6/2007, Neil Tubb wrote: Hi all, Just wondering how everyone else handles code samples. ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
Re: Code Samples: Tables or Graphic Frame?
This kind of conditional formatting is one of the big benefits of structured FrameMaker. Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com Sidebar: here is where conditional paragraph spacing control would be awesome! If the spacing could be set like if the next paragraph format is CODE, then use a spacing of 0, else use a spacing of 10. Z ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: Code Samples: Tables or Graphic Frame?
Art Campbell wrote: I use a one-column table with each line of code in its own cell, so it breaks cleanly. Easy to import too. Steve Rickaby wrote: I should point out that it's normally a requirement here for the code to be updatable outside of FrameMaker, hence text insets. Art's method therefore would not work here. Actually, you can use Art's method with text insets. Briefly: 1) Create a CodeBlock table format with one column that's the width you want. Set up the ruling/shading, etc. Remember that each pgf (line of code) will become a cell, so set up cell margins to give you the interline spacing desired. 2) Select File Import File, choose the text file containing the code, and import by reference. 3) In the Import Text File by Reference dialog, select Convert to Table. 4) In the Convert to Table dialog, select your CodeBlock format. Under Treat Each Paragraph As, select A Cell, leave Number of Columns set to 1 and Heading Rows set to 0. Your text inset becomes a one-column table that can span pages because each line of code is a cell (you can use the table's Orphan Rows setting to exercise some control over the pagination). There's one gotcha: I can't find any way to *select* the table or its rows or column. Find doesn't find that table. Clicking it or trying to select the anchor always selects the text inset instead. With the text inset selected, you can change the aspects controlled through the Table Designer, but you can't control column width, create straddles, or apply Keep With settings to selected rows. Straddles shouldn't be an issue, and if you need various widths, more table formats solve the problem. But it would be nice to have the Keep With row settings for more control over pagination. Still, it's a good way to address code blocks if you want shading, or you want code blocks of various widths (line lengths) without defining multiple code pgfs. YMMV. HTH! Richard -- Richard G. Combs Senior Technical Writer Polycom, Inc. richardDOTcombs AT polycomDOTcom 303-223-5111 -- rgcombs AT gmailDOTcom 303-777-0436 -- ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
RE: Code Samples: Tables or Graphic Frame?
At 11:27 -0700 6/2/07, Combs, Richard wrote: Actually, you can use Art's method with text insets. Briefly: Wow. This looks stupendously clever. I will experiment with it, and if my head does not explode, try it out on the next application of code insets. (I also need something simple enough for 'ordinary' FrameMaker users to sue without hassle, which this might not be.) -- Steve ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.