Creating exporter for report in LaTeX format.
This commit is contained in:
parent
f66d93e2ca
commit
bbfae14949
@ -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
|
@ -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
|
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]
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user