Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
8f9c0973
Commit
8f9c0973
authored
16 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
[Yrogirg] configurable latex formulas font size. Fixes #3986
parent
d927d260
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/config.py
+1
-0
1 addition, 0 deletions
src/common/config.py
src/conversation_textview.py
+2
-9
2 additions, 9 deletions
src/conversation_textview.py
with
3 additions
and
9 deletions
src/common/config.py
+
1
−
0
View file @
8f9c0973
...
...
@@ -250,6 +250,7 @@ class Config:
'
max_conversation_lines
'
:
[
opt_int
,
500
,
_
(
'
Maximum number of lines that are printed in conversations. Oldest lines are cleared.
'
)],
'
attach_notifications_to_systray
'
:
[
opt_bool
,
False
,
_
(
'
If True, notification windows from notification-daemon will be attached to systray icon.
'
)],
'
check_idle_every_foo_seconds
'
:
[
opt_int
,
2
,
_
(
'
Choose interval between 2 checks of idleness.
'
)],
'
latex_png_dpi
'
:
[
opt_str
,
'
108
'
,
_
(
'
Change the value to change the size of latex formulas displayed. The higher is larger.
'
)
],
}
__options_per_key
=
{
...
...
This diff is collapsed.
Click to expand it.
src/conversation_textview.py
+
2
−
9
View file @
8f9c0973
...
...
@@ -854,15 +854,8 @@ class ConversationTextview:
exitcode
=
p
.
wait
()
if
exitcode
==
0
:
convert_version
=
helpers
.
get_output_of_command
(
'
convert -version
'
)[
0
].
split
()[
2
]
convert_version
=
[
int
(
n
)
for
n
in
convert_version
.
split
(
'
.
'
)]
if
convert_version
>
[
6
,
3
,
4
]:
# -alpha option was added in 6.3.5 release
alpha
=
[
'
-alpha
'
,
'
off
'
]
else
:
alpha
=
[]
p
=
Popen
([
'
convert
'
]
+
alpha
+
[
tmpfile
+
'
.ps
'
,
tmpfile
+
'
.png
'
],
latex_png_dpi
=
gajim
.
config
.
get
(
'
latex_png_dpi
'
)
p
=
Popen
([
'
convert
'
,
'
-background
'
,
'
white
'
,
'
-flatten
'
,
'
-density
'
,
latex_png_dpi
,
tmpfile
+
'
.ps
'
,
tmpfile
+
'
.png
'
],
cwd
=
gettempdir
())
exitcode
=
p
.
wait
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment