This is my first time with this markup language, and it looks like my question has already been asked and answered, but when I try to apply those solutions, they do not work (I assume because I'm using a displaystyle command, but if I do not use that command then the equations don't render!).

I want to render a set of 2 partial differential equations in a large font size, but all I can seem to get is size 10.

Here's my code and the resulting image.



{\displaystyle { {\dot {q}}=+H_{p}}

{\displaystyle { {\dot {p}}=-H_{q}}


Hamilton Mechanics in PDE format

  • try \usepackage{anyfontsize} and \fontsize{15}{18}\selectfont before your equations – koleygr Jul 14 '17 at 3:48

Here is the code that I suppose can do what you want:


$\displaystyle \dot{q}=+H_{p}$

$\displaystyle \dot {p}=-H_{q}$


Be carefull:

  1. You don't need so much brackets ({ and }).
  2. Math code must included in $ my-math-here $ (for inline math) or in $$my-math-here$$ if you want your math to have their own line or better \[my-math-here\] (same as before with own line). Also are options like \begin{equation} my-math-here \end{equation} that gives enumerated equations.
  3. The basic fontsize of your document is been given in documentclass command like \documentclass[12pt]{article} and then you have commands to change it inside your document like \small, \Huge, \footnotesize etc (search for 'latex fontsizes'). But if they are not enough you can use anyfontsize package.
  4. Especially for math sizes take a look here: Make equations large
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.