can't export to pdf

Asked by Moustafa ABDEL HAFIZ on 2020-09-03

I just installed RedNotebook v 2.20 on Ubuntu 18.04.
I do not have the option of exporting to pdf. On the documentation, it is written that it may be due to a lacking package (pywebkitgtk or named python-webkit).
I tried to get it but:
sudo apt-get install pywebkitgtk says the package does not exist.
sudo apt-get install python-webkit says no version is available, maybe the package is obsolete.
What to do ?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Solved by:
Moustafa ABDEL HAFIZ
Solved:
2020-09-04
Last query:
2020-09-04
Last reply:
2020-09-04
Jendrik Seipp (jendrikseipp) said : #1

Exporting directly to PDF is not possible anymore. Please export to HTML
and then in a browser export to PDF.

Ohhh, what a shame...
Thanks for the fast answer anyway.
What about latex formula ? (see https://github.com/jendrikseipp/rednotebook/issues/162)
I tried the ''$2^x$'' and it does not appear as a latex formula, neither in the preview, nor in the html exported page.
I would like to use RedNotebook as a lab book and it would greatly simplify reading if the formula were nicely displayed, preferably even directly in preview.
I really appreciated the app, by the way !

Jendrik Seipp (jendrikseipp) said : #3

Are you using the latest version? There, Latex formulas should display
fine, e.g., $$a^2$$. (Try two $$.)

Yes, thanks, it worked!
Is there also a way to display it inline ?

Jendrik Seipp (jendrikseipp) said : #5

Should be the same syntax.

I was not clear enough:
if I type " a squared is $$aa^2$$", then on the preview, the a² is isolated in a new line.
The same when I type " a squared is ''$$aa^2$$'' ".
Is there a way to place the a² in the same line as the text ?

Jendrik Seipp (jendrikseipp) said : #7

For HTML exports and the preview, inline formulas are not available. For
Latex exports you can use |

This is my inline formula: ''$a^2$''.|

The double quotes were sufficient for me for Latex exports.

This is my inline formula: ''$a^2$''.

worked fine.
This would be also really appreciable in the preview but of course I have no idea how difficult it can be to be implemented.
Many thanks again!