# Reports normal / italic and bold within a paragraph

**URL:** <https://gramps.discourse.group/t/reports-normal-italic-and-bold-within-a-paragraph/5106>\
**Category:** Development\
**Created:** [March 13, 2024, 1:55pm UTC](https://gramps.discourse.group/t/reports-normal-italic-and-bold-within-a-paragraph/5106 "2024-03-13T13:55:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [March 13, 2024, 6:19pm UTC](https://gramps.discourse.group/t/reports-normal-italic-and-bold-within-a-paragraph/5106/5 "2024-03-13T18:19:45Z")

</div>

> [@eugene](#):
>
> Is there a standard way in Gramps to do this?  
> Is there an example somewhere?

Have a look in the [TextDoc](https://gramps-project.org/docs/gen/gen_plug.html#gramps.gen.plug.docgen.textdoc.TextDoc) documentation. There are methods like `start_bold` and `start_underline` that you can use. I can’t see an equivalent for italics though.

You can also define you own [ParagraphStyle](https://gramps-project.org/docs/gen/gen_plug.html#gramps.gen.plug.docgen.paragraphstyle.ParagraphStyle) containing a [FontStyle](https://gramps-project.org/docs/gen/gen_plug.html#gramps.gen.plug.docgen.fontstyle.FontStyle).

If you want to make these styles user definable options then things can a bit more complex.

The best examples can be found in the code.

---

_[View the full topic](https://gramps.discourse.group/t/reports-normal-italic-and-bold-within-a-paragraph/5106)._
