How to increase pandoc equation resolution












2














I have provided a minimal working example below.



documentclass{article}
usepackage{amsmath}
begin{document}
$x^2$
end{document}


I processed the above LaTeX file using



pandoc --webtex -t html | pandoc -f html -o my.docx


How can I increase the resolution of the resulting embedded equation in Word when using Pandoc to convert a LaTeX file to a Word file?










share|improve this question




















  • 4




    Why not go from TeX to docx directly?
    – Werner
    Dec 7 at 20:45






  • 2




    Indeed as @Werner mentioned pandoc -s yourdocument.tex -o your.docx results in a math image with higher resolution.
    – Marijn
    Dec 7 at 20:53






  • 1




    @Werner I don't want a direct conversion because Word does not correctly format many of my equations. @Marjin, as far as I can tell, running pandoc -s yourdocument.tex -o your.docx does not produce a math image but instead converts mathematical formulae to Word's native math formatting system.
    – Felix Garner
    Dec 7 at 21:12


















2














I have provided a minimal working example below.



documentclass{article}
usepackage{amsmath}
begin{document}
$x^2$
end{document}


I processed the above LaTeX file using



pandoc --webtex -t html | pandoc -f html -o my.docx


How can I increase the resolution of the resulting embedded equation in Word when using Pandoc to convert a LaTeX file to a Word file?










share|improve this question




















  • 4




    Why not go from TeX to docx directly?
    – Werner
    Dec 7 at 20:45






  • 2




    Indeed as @Werner mentioned pandoc -s yourdocument.tex -o your.docx results in a math image with higher resolution.
    – Marijn
    Dec 7 at 20:53






  • 1




    @Werner I don't want a direct conversion because Word does not correctly format many of my equations. @Marjin, as far as I can tell, running pandoc -s yourdocument.tex -o your.docx does not produce a math image but instead converts mathematical formulae to Word's native math formatting system.
    – Felix Garner
    Dec 7 at 21:12
















2












2








2







I have provided a minimal working example below.



documentclass{article}
usepackage{amsmath}
begin{document}
$x^2$
end{document}


I processed the above LaTeX file using



pandoc --webtex -t html | pandoc -f html -o my.docx


How can I increase the resolution of the resulting embedded equation in Word when using Pandoc to convert a LaTeX file to a Word file?










share|improve this question















I have provided a minimal working example below.



documentclass{article}
usepackage{amsmath}
begin{document}
$x^2$
end{document}


I processed the above LaTeX file using



pandoc --webtex -t html | pandoc -f html -o my.docx


How can I increase the resolution of the resulting embedded equation in Word when using Pandoc to convert a LaTeX file to a Word file?







pandoc latex-to-word






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 7 at 19:34

























asked Dec 7 at 19:15









Felix Garner

112




112








  • 4




    Why not go from TeX to docx directly?
    – Werner
    Dec 7 at 20:45






  • 2




    Indeed as @Werner mentioned pandoc -s yourdocument.tex -o your.docx results in a math image with higher resolution.
    – Marijn
    Dec 7 at 20:53






  • 1




    @Werner I don't want a direct conversion because Word does not correctly format many of my equations. @Marjin, as far as I can tell, running pandoc -s yourdocument.tex -o your.docx does not produce a math image but instead converts mathematical formulae to Word's native math formatting system.
    – Felix Garner
    Dec 7 at 21:12
















  • 4




    Why not go from TeX to docx directly?
    – Werner
    Dec 7 at 20:45






  • 2




    Indeed as @Werner mentioned pandoc -s yourdocument.tex -o your.docx results in a math image with higher resolution.
    – Marijn
    Dec 7 at 20:53






  • 1




    @Werner I don't want a direct conversion because Word does not correctly format many of my equations. @Marjin, as far as I can tell, running pandoc -s yourdocument.tex -o your.docx does not produce a math image but instead converts mathematical formulae to Word's native math formatting system.
    – Felix Garner
    Dec 7 at 21:12










4




4




Why not go from TeX to docx directly?
– Werner
Dec 7 at 20:45




Why not go from TeX to docx directly?
– Werner
Dec 7 at 20:45




2




2




Indeed as @Werner mentioned pandoc -s yourdocument.tex -o your.docx results in a math image with higher resolution.
– Marijn
Dec 7 at 20:53




Indeed as @Werner mentioned pandoc -s yourdocument.tex -o your.docx results in a math image with higher resolution.
– Marijn
Dec 7 at 20:53




1




1




@Werner I don't want a direct conversion because Word does not correctly format many of my equations. @Marjin, as far as I can tell, running pandoc -s yourdocument.tex -o your.docx does not produce a math image but instead converts mathematical formulae to Word's native math formatting system.
– Felix Garner
Dec 7 at 21:12






@Werner I don't want a direct conversion because Word does not correctly format many of my equations. @Marjin, as far as I can tell, running pandoc -s yourdocument.tex -o your.docx does not produce a math image but instead converts mathematical formulae to Word's native math formatting system.
– Felix Garner
Dec 7 at 21:12












1 Answer
1






active

oldest

votes


















2














If you absolutely need your formulas as embedded images¹, you have to use a webservice, that lets you specify the output resolution.



One such service is latex.codecogs.com (it's pandoc's standard), it lets you define the solution with dpi{<value>} where value can be 50, 80, 100, 110, 120, 150, 200, and 300.



The url to the png generator is: https://latex.codecogs.com/png.latex?
The backslash () has to be replaced by %5C. So, if you want 300dpi output, you have to give pandoc the following argument:



--webtex='https://latex.codecogs.com/png.latex?%5Cdpi{300}'


––



¹Please. Don't.






share|improve this answer























  • Using your command changes the relative size of the equations in the final output. Is it possible to keep the relative size of the equations the same is in the LaTeX code, only changing their resolution?
    – Felix Garner
    Dec 7 at 21:25












  • @FelixGarner I don't see how. Embedding pictures in word documents is always problematic, do not do it.
    – DG'
    Dec 7 at 21:36













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463727%2fhow-to-increase-pandoc-equation-resolution%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














If you absolutely need your formulas as embedded images¹, you have to use a webservice, that lets you specify the output resolution.



One such service is latex.codecogs.com (it's pandoc's standard), it lets you define the solution with dpi{<value>} where value can be 50, 80, 100, 110, 120, 150, 200, and 300.



The url to the png generator is: https://latex.codecogs.com/png.latex?
The backslash () has to be replaced by %5C. So, if you want 300dpi output, you have to give pandoc the following argument:



--webtex='https://latex.codecogs.com/png.latex?%5Cdpi{300}'


––



¹Please. Don't.






share|improve this answer























  • Using your command changes the relative size of the equations in the final output. Is it possible to keep the relative size of the equations the same is in the LaTeX code, only changing their resolution?
    – Felix Garner
    Dec 7 at 21:25












  • @FelixGarner I don't see how. Embedding pictures in word documents is always problematic, do not do it.
    – DG'
    Dec 7 at 21:36


















2














If you absolutely need your formulas as embedded images¹, you have to use a webservice, that lets you specify the output resolution.



One such service is latex.codecogs.com (it's pandoc's standard), it lets you define the solution with dpi{<value>} where value can be 50, 80, 100, 110, 120, 150, 200, and 300.



The url to the png generator is: https://latex.codecogs.com/png.latex?
The backslash () has to be replaced by %5C. So, if you want 300dpi output, you have to give pandoc the following argument:



--webtex='https://latex.codecogs.com/png.latex?%5Cdpi{300}'


––



¹Please. Don't.






share|improve this answer























  • Using your command changes the relative size of the equations in the final output. Is it possible to keep the relative size of the equations the same is in the LaTeX code, only changing their resolution?
    – Felix Garner
    Dec 7 at 21:25












  • @FelixGarner I don't see how. Embedding pictures in word documents is always problematic, do not do it.
    – DG'
    Dec 7 at 21:36
















2












2








2






If you absolutely need your formulas as embedded images¹, you have to use a webservice, that lets you specify the output resolution.



One such service is latex.codecogs.com (it's pandoc's standard), it lets you define the solution with dpi{<value>} where value can be 50, 80, 100, 110, 120, 150, 200, and 300.



The url to the png generator is: https://latex.codecogs.com/png.latex?
The backslash () has to be replaced by %5C. So, if you want 300dpi output, you have to give pandoc the following argument:



--webtex='https://latex.codecogs.com/png.latex?%5Cdpi{300}'


––



¹Please. Don't.






share|improve this answer














If you absolutely need your formulas as embedded images¹, you have to use a webservice, that lets you specify the output resolution.



One such service is latex.codecogs.com (it's pandoc's standard), it lets you define the solution with dpi{<value>} where value can be 50, 80, 100, 110, 120, 150, 200, and 300.



The url to the png generator is: https://latex.codecogs.com/png.latex?
The backslash () has to be replaced by %5C. So, if you want 300dpi output, you have to give pandoc the following argument:



--webtex='https://latex.codecogs.com/png.latex?%5Cdpi{300}'


––



¹Please. Don't.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 7 at 21:02

























answered Dec 7 at 20:47









DG'

9,13011741




9,13011741












  • Using your command changes the relative size of the equations in the final output. Is it possible to keep the relative size of the equations the same is in the LaTeX code, only changing their resolution?
    – Felix Garner
    Dec 7 at 21:25












  • @FelixGarner I don't see how. Embedding pictures in word documents is always problematic, do not do it.
    – DG'
    Dec 7 at 21:36




















  • Using your command changes the relative size of the equations in the final output. Is it possible to keep the relative size of the equations the same is in the LaTeX code, only changing their resolution?
    – Felix Garner
    Dec 7 at 21:25












  • @FelixGarner I don't see how. Embedding pictures in word documents is always problematic, do not do it.
    – DG'
    Dec 7 at 21:36


















Using your command changes the relative size of the equations in the final output. Is it possible to keep the relative size of the equations the same is in the LaTeX code, only changing their resolution?
– Felix Garner
Dec 7 at 21:25






Using your command changes the relative size of the equations in the final output. Is it possible to keep the relative size of the equations the same is in the LaTeX code, only changing their resolution?
– Felix Garner
Dec 7 at 21:25














@FelixGarner I don't see how. Embedding pictures in word documents is always problematic, do not do it.
– DG'
Dec 7 at 21:36






@FelixGarner I don't see how. Embedding pictures in word documents is always problematic, do not do it.
– DG'
Dec 7 at 21:36




















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463727%2fhow-to-increase-pandoc-equation-resolution%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?