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 accessing
exportDefaultReport 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 file exists
ifFalse: [ file ensureCreateFile. ifFalse: [ file ensureCreateFile.
file binaryWriteStreamDo: [ :stream | file binaryWriteStreamDo: [ :stream |
stream nextPutAll: profileImageUrl retrieveContents ]. stream nextPutAll: profileImageUrl asUrl retrieveContents ].
super class inform: 'Exported as: ', String cr, file fullName. super class inform: 'Exported as: ', String cr, file fullName.
^ file] ^ file]

View File

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