Search found 4 matches

by rotmat
Tue Aug 05, 2025 10:44 pm
Forum: Text Formatting
Topic: Import result from Python into regular sentence
Replies: 4
Views: 8080

Re: Import result from Python into regular sentence

Just found that by adding a wildcard after filecontents it works again. Not sure why
by rotmat
Tue Aug 05, 2025 10:37 pm
Forum: Text Formatting
Topic: Import result from Python into regular sentence
Replies: 4
Views: 8080

Re: Import result from Python into regular sentence

Hi, back here again some years later. But installing again on a new computer below example does not work any longer (neither does the inline example here in the forum). Has anything changed in the datatool package and is it supposed to be used in another way? @Bartman, any suggestions?
by rotmat
Mon Mar 21, 2022 1:25 pm
Forum: Text Formatting
Topic: Import result from Python into regular sentence
Replies: 4
Views: 8080

Import result from Python into regular sentence

Great! Exactly what Ive been looking for, Thanks!
by rotmat
Sun Mar 20, 2022 10:55 pm
Forum: Text Formatting
Topic: Import result from Python into regular sentence
Replies: 4
Views: 8080

Import result from Python into regular sentence

Hi
Im writing a book with Latex and looking for a way to import values calculated outside into a standard sentence.

Pythonscript:
Eriks birthday: 770101
Erik_age =today - 770101

Output from formatted Latexfile:
Erik is 45 years old

I want the age to be formatted as normal text. For the reader it ...