Creating exporter for report in LaTeX format.

This commit is contained in:
ruidajo 2022-04-21 12:11:53 -05:00
parent f66d93e2ca
commit bbfae14949
4 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,5 @@
accessing
exportDefaultReport
^ self exportWithTemplate: TweetsCollection dataStore / 'templates' / 'template.mus.tex' into: self folder
self installTemplate.
^ self exportWithTemplate: (TweetsCollection dataStore / 'templates' / 'template.mus.tex') into: self folder

View File

@ -0,0 +1,11 @@
accessing
exportOverviewReportLatex
self
exportDefaultReport;
externalWordCloud;
exportTweetsHistogramWithBars: 5;
exportRetweetsHistogramWithBars: 5;
exportRepliesHistogramWithBars: 5;
exportQuotesHistogramWithBars: 5.
^ self folder

View File

@ -6,7 +6,7 @@ exportProfileImageOn: fileReference
file exists
ifFalse: [ file ensureCreateFile.
file binaryWriteStreamDo: [ :stream |
stream nextPutAll: profileImageUrl retrieveContents ].
stream nextPutAll: profileImageUrl asUrl retrieveContents ].
super class inform: 'Exported as: ', String cr, file fullName.
^ file]

View File

@ -5,7 +5,7 @@ externalWordCloud
self areCommonFilesInstalled
ifFalse: [ self installExternalWordCloudCommons ].
self writeWordsFile.
outputFile := (self folder / 'nube.png') fullName.
outputFile := (self folder / 'wordcloud.png') fullName.
text := (self folder / 'words', 'txt') fullName.
OSSUnixSubprocess new
command: 'wordcloud_cli';