New Reporting more Layout options

dear Community!

I’m currently working on a pdf report with the relatively new reporting functions. However, I’m missing some quite relevant options for the layout of my report.

  1. Is there a way to control the margins of the pdf layout (specifically the side margin)

  2. Is it possible somehow to write text with the text view node in the justify text alignment?

  3. Is there an option to write in the Text view node text with indices (eg. in LaTex: CO\index{2})

thanks!

Hey @PHub ,

welcome to the KNIME Forum.

  1. This is currently not possible.
  2. Aligning text justified is possible, but requires a little workaround. Define a flow variable as follows <p style="text-align:justify">Your text here.</p>. Then use the flow variable in the text view by entering $$["your_variable_name"].
  3. Similar to 2, you can define flow variables like normal<sub>lower</sub> or normal<sup>higher</sup>.

Basically the Text View supports a subset of HTML, though it is not fully accessible via the UI yet.

I hope this helps a bit,
nan

3 Likes

Hi!

Thanks for the tips. Somehow they are not working for me. I’m running Knime 5.2.3, is it possible that i need a more recent version?

And to avoid misconseptions: To use a variable in text view, you have to enter $$[“your_variable_name”]. (lost one $-sign i guess :slight_smile: )

Thanks!

Indeed. two dollar signs are correct for accessing flow variables (I fixed the post above).
I used the current 5.4.3. There has been some work done on the input sanitization done by the Text View in recent versions, so likely 5.2.3 still allows less HTML tags.

2 Likes