paragraph

How would I databind a Paragraph to a TextBlock?

How would I take a Paragraph object and databind them to the TextBlock for use in a DataTemplate? A plain bind does nothing, just a ToString() of the Paragraph object. The InLines property would let me add a list of TextRun's that make up the Paragraph manually, but that can't be bound to and I could really do with a binding based solut...

No indent for paragraphs after figures?

The default style for my document is that paragraphs are indented. That's fine. But I need no indentation for paragraphs that follow a figure or other objects. Using \noindent manually does not work well, because you don't know which paragraph will follow the figure in the final output (LaTeX places figures automatically). So I need pa...

How can one number paragraphs in LaTeX?

Given a bunch of paragraphs: Para. A ... Para. B ... Para. C ... How can one have LaTeX automatically number them, i.e. 1. Para. A. ... 2. Para. B. ... 3. Para. C. ... I've seen the following suggested: \newcounter{parnum} \newcommand{\N}{% \noindent\refstepcounter{parnum}% \makebox[\parindent][l]{\textbf{\arabic{parnum...

javascript to get paragraph of selected text in web page

Hi, After highlighting text, I would like to obtain the paragraph in which the selected text resides. var select = window._content.document.getSelection(); Any pointers please? ...

Is the <div> tag ever an undesirable alternative to the <p> tag?

I see the <p> tag used a lot in the code of others but have never used it in my own work. I'm wondering what advantage this gives over using a <div> tag? Are there any benefits I could get from incorporating the <p> tag into my pages? Is there any disadvantage in only using <div> tags without <p>? ...

How to display paragraph marker in Visual Studio 2008?

hi, Is it possible to display paragraph marker in Visual Studio Source Code Editor? Eclipse has this option, is it implemented in Visual Studio? thx ...

Remove paragraph mark when copying from excel cell

Please help me copy a string from a listbox when a user hits ctrl+c. I was using the dataobject but for some reason this worked perfectly some times and gave me an error message other times. If you know why this is, stop reading, as the rest of this question is not necessary. Now I am putting this in a worksheet cell and using range.cop...

Blocked Background on lines within Paragraph Tag

I'm looking for a way to highlight (or fill in background) of lines of text within a paragraph. I am developing in wordpress if that matters. Here is an example code: <p> this is a line This is a line a little longer Just a short one a really really long one that is longer than any a medium sized one to end it</p> I want every line t...

LaTeX: Avoid new paragraph?

I use the \todo command from the \todonotes package. I'd like to layout my source to put \todos separately from the previous paragraph: Some text. \todo{make note} But I don't want \todo to start a new paragraph, or it screws up the spacing of the document. Is there a command to avoid this? If there were a command/package to consum...

Can CSS give me paragraph styling based on the previous heading class?

So I want to rig up some css rules for interview transcripts. The format I have in mind looks something like this: <h2 class="interviewer">Alice: [00:00:00]</h2> <p>Is it ok if I ask you a question now?</p> <h2 class="interviewee">Bob: [00:00:03]</h2> <p>Sure go ahead.</p> I'd like the paragraph to be a particular colour based on th...

Disable a <p> using JQuery

Hi, <p style="" class="closeField float_left" disabled="true"> <a href="/knome2/comments/115/report_abuse" class="btn lbOn"><span class="button_image"> <span class="report_abuse background_16">Close</span></span></a> </p> I am trying to make this <p> as disabled , actually my this <p> tag will displayes like a b...

How to get a single paragraph text from a richtextbox when double clicking on it

I'm having some trouble getting control of the WPF richtextbox control. What I want to is as follows : I have a RichTextBox control called richTextBox1 that I filled up with data from a database. I need to get the text on a single line (meaning - a single paragraph) when I click the control. All I found over the net is a code to copy ...

Make a space between paragraph (x)html, css

Hi, I want space between my <p>content</p> tags. Not before and not after <p> tags. Fx my code is: <div> <h1>A headline</h1> <p>Some text</p> <p>Some text</p> </div> Something I don't want space between h1 and p which is done with zero margin on h1. But I don't want space after the last <p> tag. Is this possible without :las...

How to create a dropdown that contains multiple editable paragraphs (sections) in a Word file?

I need to create a Word template where I can choose from different paragraphs the one I need in the first section of the document. Something like a dropdown just instead of values I need paragraphs. It does not necessarily needs to be a dropdown, but any kind of functionality that will allow me to select from different pharagraphs (somet...

Paragraph.BringIntoView() works only when focused

Hi, I am working on a text editor that is based on RichEditBox. I have implemented functionality "Go to line" which eventually resolves to TextPointer.Paragraph.BringIntoView(); Along with this I also set the caret position. What I found out is that BringIntoView only works when I click on the RichEditBox first (focus it). Otherwise it...

How to increase spacing between paragraphs in Crystal Reports PDF

I have a report that I'm exporting to PDF using the VS2008 version of Crystal Reports. There is a field that displays a product description that contains HTML data pulled from my database so I've set Text Interpretation to HTML for the field. The text displays fine with all the appropriate HTML formatting, however, there is only a singl...

[c#] join lines

on a windows form, i have RichTextBox, with some text, in several lines. and one button on a form. i wolud like when i click on that button, to join all richtextbox of lines in one line, but not to loose text style (like font family, color, etc.) i can not do it with Replace, like \r\n, and not with the Replace(Environment.NewLine, "")...

Limiting characters inside HTML paragraph

I want to make it so there's only 350 characters inside the paragraph, regardless of how many characters are put into it, I only want 350 displayed. How can I do this? The text is just in a div tag in text. Cheers ...

sed stream editor unix linux command : how to keep retain a paragraph with a particular text string

Hi I have managed to put text in a file by separating them by blank lines. I am trying to keep only those paragraphs that have a particular string. Though the Sed FAQ mentions a solution it does not work (see examples below) http://www.catonmat.net/blog/sed-one-liners-explained-part-two/ 58. Print a paragraph that contains “AAA”. (P...

Word Document : List of Heading with associated next paragraph (for executive summary list)

I refer to the link below which offers a very good solution [ using GetCrossReferenceItems(wdRefTypeHeading) ] to generate a list of all headings in the document. However, I would like to take this a step further and include the first paragraph following each heading in the sumamry table. The intended use is to give the reader an overv...