Open tuket opened 5 years ago
Hi,
I had the same problem when I started using zim. The straight forward solution is to edit the LaTeX template file used by the plugin. Mine looks like this:
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[usenames]{color}
\DeclareMathSizes{12}{16}{12}{9}
\begin{document}
% No empty lines allowed in math block !
\begin{align*}
[% equation -%]
\end{align*}
\end{document}
I added the \DeclareMathSizes{12}{16}{12}{9}
line.
You can edit templates from the edit menu, and the one your looking for is under plugins/equationeditor
Thanks for your help! Unfortunately this didn't work for me :(
Hey there is a work around which I'm using,
The reason \Huge
didn't work for you is because it is a text command that works in a text mode while the equation is in math mode. So to make it work, it has to be wrapped in a text environment.
Don't edit the equation editor tex file at all. Instead while entering the equation, use the following,
\text{\LARGE{$ <math_tex_code_here> $}}
It is important to add the $$ symbols as they allow editing in math mode.
You can edit \LARGE to suit any of the available options :
\tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge
OR you can edit the tex file and put one of the above just before the align
environment. This will fix the fon't size so you don't have to add the above block every time.
In this case you can simply enter the math latex code as before.
The file you need to edit: ~/.local/share/zim/templates/plugins/equationeditor.tex
For people who'll come to this page
newlines(\\
or \newlines
) don't work inside the \text
area). Suggestions @fanaticode ?
It's possible to scale text with
Ctrl,+
but images and equations remain unchanged.
Related: #65.
Not being able to resize images with ?type
(either using the regular image properties dialog or manually by adding a &width
or &height
) isn't limited to equations as e.g. scores can't be resized either. Jaap's planning on refactoring images into "objects" (see https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1421#issuecomment-810194766) which may allow using the same properties dialog for resizing the aforementioned images of equations etc.
Solution for this should be more specific for how equations are generated, e.g. via equation plugin template or via a preference in the plugin. Generic scaling for images is only planned as downscaling when images do not fit the viewport; not upscaling.
Latest version allows for fontsize and DPI settings for equations. Will take pull requests for further improvements but moving to close this issue.
Hi, thanks for making Zim possible. It's such a great tool. I have a request to make though. Equations seem to be too small and they are hard to read in my opinion. It's possible to scale text with
Ctrl,+
but images and equations remain unchanged. Also I tried using\Huge
in the latex itself but it doesn't seem to work. Thanks.