Set fixed number of characters

Asked by KJ

May I ask is it possible or way(s) to configure RedNoteBook always wrap to let's say 80 characters (column of text) regardless the size of window automatically?

When I export my log to pdf format, the long sentences will not wrap to fit the size of document. As the result, font size was reduced and it is really hard to read.

Thank you for your time and suggestion.

Question information

Language:
English Edit question
Status:
Solved
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Solved by:
KJ
Solved:
Last query:
Last reply:
Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#1

normally sentences should wrap in the pdf. If they don't it's a bug and
we'll have to look into that.

Revision history for this message
KJ (jinkeanlim) said :
#2

I see.

Long sentences will not wrap inside the txt2tags markup as shown below:

```
long sentences

```
I encountered this problem all the time.

Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#3

Well, since that's verbatim text, sentences are not supposed to wrap. If
you need raw text, try the """ markup instead, or ''' for tagged input.

Revision history for this message
KJ (jinkeanlim) said :
#4

Dear Jendrik,

Thanks for the input.

If I use the """ markup, all texts will group in a paragraph like this:

# comment comment > c2.keep1 <- rowSum(cpm(c2)>1) >=2 > table(c2.keep1) c2.keep1 FALSE TRUE 39177 37149

instead:

# comment comment
> c2.keep1 <- rowSum(cpm(c2)>1) >=2
> table(c2.keep1)
c2.keep1
FALSE TRUE
39177 37149

May I ask , other than the """ markup, what else I can able to use for raw text (example above) but will be wrapped when export to pdf file?

Thanks.

Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#5

There's ''', """ and ```. There's no setting to wrap text automatically,
but you are free to insert any javascript you like to let javascript do
the warpping for you.

Revision history for this message
KJ (jinkeanlim) said :
#6

Dear Jendrik,

Thanks for the input. Thanks.