Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fjen Undso
mathtex
Commits
8f950ddb
Commit
8f950ddb
authored
Sep 10, 2014
by
Fjen Undso
Browse files
render in high dpi and resample
parent
16bd1562
Changes
1
Hide whitespace changes
Inline
Side-by-side
mathtex.c
View file @
8f950ddb
...
@@ -325,7 +325,7 @@ static char *sizedirectives[] = { NULL, /* fontsize directives */
...
@@ -325,7 +325,7 @@ static char *sizedirectives[] = { NULL, /* fontsize directives */
* dpi/density info for dvipng/convert
* dpi/density info for dvipng/convert
* ----------------------------------- */
* ----------------------------------- */
#if !defined(DPI)
#if !defined(DPI)
#define DPI "
12
0"
#define DPI "
60
0"
#endif
#endif
static
char
density
[
256
]
=
DPI
;
/*-D/-density arg for dvipng/convert*/
static
char
density
[
256
]
=
DPI
;
/*-D/-density arg for dvipng/convert*/
/* ---
/* ---
...
@@ -1537,7 +1537,7 @@ char errormsg[1024] = /* latex runs but can't make .dvi */
...
@@ -1537,7 +1537,7 @@ char errormsg[1024] = /* latex runs but can't make .dvi */
"
\\
atop
\\
mbox{an error in your expression.}$}"
;
"
\\
atop
\\
mbox{an error in your expression.}$}"
;
char
usepackage
[
1024
]
=
"
\000
"
;
/* additional \usepackage{}'s */
char
usepackage
[
1024
]
=
"
\000
"
;
/* additional \usepackage{}'s */
char
convertargs
[
1024
]
=
/* args/switches for convert */
char
convertargs
[
1024
]
=
/* args/switches for convert */
" -density %%dpi%% -gamma %%gamma%%"
" -density %%dpi%%
-resample 120
-gamma %%gamma%%"
/*" -border 0% -fuzz 2%"*/
/*" -border 0% -fuzz 2%"*/
" -trim -transparent
\"
#FFFFFF
\"
"
;
" -trim -transparent
\"
#FFFFFF
\"
"
;
char
dvipngargs
[
1024
]
=
/* args/switches for dvipng */
char
dvipngargs
[
1024
]
=
/* args/switches for dvipng */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment