Creating exporter for report in LaTeX format.
This commit is contained in:
parent
f66d93e2ca
commit
bbfae14949
@ -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
|
@ -0,0 +1,11 @@
|
||||
accessing
|
||||
exportOverviewReportLatex
|
||||
|
||||
self
|
||||
exportDefaultReport;
|
||||
externalWordCloud;
|
||||
exportTweetsHistogramWithBars: 5;
|
||||
exportRetweetsHistogramWithBars: 5;
|
||||
exportRepliesHistogramWithBars: 5;
|
||||
exportQuotesHistogramWithBars: 5.
|
||||
^ self folder
|
@ -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]
|
||||
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user