I am wondering what is a good way to use Python to generate an arithmetic worksheet consisting only of 2-digit numbers squared. Specifically I want to be able to call upon a Python program in which it asks me for parameters such as the range of the numbers in can call upon to square and the number of questions I want to generate. Once that is done the program will generate the numbers and then automatically open up a .tex file (already with preamble and customizations) and basically do a loop for each question like this:\begin{exer}n^2\end{exer...Read more

What commands would be the best way to put numbers above, below, left, and right of a symbol in math-mode, as in the following image:Would the tensor package be useful here, or possibly another package? Thank you.Edit:It looks like David's \mathop workaround works for display style, but not inline math mode. How would one fix it to work for inline, or perhaps use two different commands for inline and display mode?Secondly, how would I shrink the size of the numbers with respect to the central symbol?...Read more

Here is more information about the unicode math-package:http://ctan.mackichan.com/macros/latex/contrib/unicode-math/unicode-math.pdfA great pro for using unicode math, is that your code is much more readable. But typing all those symbols using alt+xxxx doesn't seem to be a very fast solution.I was thinking, in theory it could be possible to have a math keyboard ( i mean in hardware form), where you see all those math characters at your keyboard. Would be quite cool, but I have no idea if this already exist.On the other hand, just designing hotk...Read more

This question already has an answer here: How can I force resized mathmode symbols to respect fontsize changes? 2 answers...Read more

Consider this MWE:\documentclass{article}\usepackage[utf8]{inputenc}\usepackage[T2A, T1]{fontenc}\usepackage{amsmath}\usepackage{lmodern}\usepackage{siunitx}\usepackage{mathpazo}\usepackage{trace}% https://tex.stackexchange.com/questions/19255/using-declaremathversion% note: mathpazo.sty, lmodern.sty overrides normal, bold!%%% New math versions\DeclareMathVersion{lmnormal}\DeclareMathVersion{lmbold}\DeclareMathVersion{mpazonormal}\DeclareMathVersion{mpazobold}\newcommand\lmmath{\mathversion{lmnormal}}\newcommand\lmboldmath{\mathversion{lmbold}}...Read more

I am very, very new to LaTeX, and I've been trying to understand fonts but as far as I can tell, it is too complicated for me at this point.All I really want to do, is change the amssymb version of \mathbb{R, N, C, etc.} for the kpfonts one. Can anyone help? Please keep in mind, that I'm a dumbo :)...Read more

I'm trying to find a very simple calculator for lyx.for now, I just want to do something like this:1+1-50+30*5= \ansand let lyx to calculate this.I could not find something to do that, may you know?...Read more

Could someone explain to me why some of the text in math mode breaks out of the margins?Edit: Sorry for the bad question formatting. Why is it that when I paste things it runs on like a single sentence?\documentclass[a4paper,12pt]{extarticle}\usepackage[utf8]{inputenc}\usepackage{amsthm}\usepackage{amsmath}\usepackage{amssymb}\newtheorem{manualtheoreminner}{Theorem}\newenvironment{manualtheorem}[1]{% \renewcommand\themanualtheoreminner{#1}% \manualtheoreminner}{\endmanualtheoreminner}\begin{document}\begin{manualtheorem}{2.3 (Dimension Theore...Read more

I want to add \Rightarrow into my align environment (or something similar) all the way to the left of a specific line. However whenever I try to do this I either get that the arrow sticks with the line or it pushes the rest of the line all the way to the right instead of the preferred behaviour.\documentclass{article}\usepackage{mathtools}\usepackage[utf8]{inputenc}\begin{document}\begin{align*}y &= mx+c \\\leftalign{\Rightarrow} \\y - c &= mx \\\leftalign{\Rightarrow}\\&\text{blah...blah...blah...}\end{align*}\end{document}...Read more

I would like to use latex to produce math output like this:Please, no scolding about how this looks like a ransom note, makes your eyeballs bleed, etc. This is for didactic purposes in specific situations in teaching physics. The first one is meant to focus the student's eyes on the main physical relationship, so they're not distracted by the coupling constants. The second one (for students at a much lower mathematical level) is to express the idea that when a force is applied to a small mass, the result is a big acceleration.I've tried three m...Read more

Can I make a matrix from just a parts of the cells?i.e. not all the cells just some of it, like here: It possible to make something like this?Thank you!!P.S. I'm using LyX....Read more

In functional analysis, one occasionally considers a so-called dual pair (a pair of vector spaces tied together by a non-degenerate bilinear map to the ground field). I usually typeset these using \langle and \rangle, but it seems that all textbooks in functional analysis use a slightly different symbol for this. (See samples below.) The shape is very similar to \langle and \rangle, but the angle between the two legs is noticeably smaller. Consequently, the glyph is a bit wider.How do I reproduce this symbol in LaTeX?Samples:LaTeX with \langle ...Read more

I am trying to center text in an array of two rows inside a math mode environment so that the text in the second column of the array appears half way between the first and second row of the first column. Here's an example of what I have done so far.\documentclass{article}\usepackage{amsmath}\begin{document} \[ A = \left[ \begin{array}{c|c} B & \\ a^{T} & b \\ \end{array} \right] \]\end{document}This is how I would like it to appear:Any help/suggestions on how to do this would be appreciated....Read more

\documentclass{article}\usepackage{amsmath,amssymb,amsthm} \begin{document}let $\begin{array}{cccc}f: & \mathbb{R}&\longrightarrow &]-1,1[\\&x&\mapsto & \dfrac{x}{1+|x|}\end{array}$ be a continuous function \end{document}can I put $f$ in the same line of the texte ?...Read more

NOTE: This question is specifically about adding vertical space that increases to compensate for tall symbols. Thus, it is not a duplicate of How can I change the whitespace above and below math displays?.I'm trying to revise my university's thesis class to produce spacing with displayed math that works a little bit better with double spacing (which is required). What I have in mind is this:The distance above and below a displayed math environment should be the same as the distance between the top of a typical line of text and the bottom of the...Read more