In Anki, the sizes I specify in LaTeX encoding do not match those that are displayed.
MWE: Leaving the header and footer at the Anki default of
\documentclass[12pt]{article}
\special{papersize=3in,5in}
\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsmath}
\pagestyle{empty}
\setlength{\parindent}{0in}
\begin{document}
and
\end{document}
respectively, typing [latex]\rule{1cm}{1cm}[/latex] (and adjusting the note's CSS so that the produced image is not resized with img{max-height:none; max-width:none;}) will display an approximately 1.75cm by 1.75cm square, as opposed to the expected 1cm by 1cm square.
How can I adjust this so that the size I specify in LaTeX is accurately displayed?
The obvious solution would be some way to scale an entire LaTeX document, but my searches for such have been unfruitful.
I would prefer not to resort to re-scaling the actual images produced by Anki (hence the CSS), as this renders them blurry.
What I have tried:
Adjusting the font size will not fix the MWE above, as LaTeX still thinks that 1cm is ~1.75cm.
Adjusting the paper size does not seem to do anything.
What others have suggested, and I have tried:
\scaleboxand\resizebox(after putting\usepackage{graphicx}/\usepackage{graphics}in header) do not resize anything visually, but can cause other LaTeX objects to register them as smaller. For example, with the modified header and default footer,[latex]\scalebox{0.5}{\rule{1cm}{1cm}}foo bar[/latex]will produce a >1cm box blocking the word
foo, followed by the wordbar. (Suggested by @John Kormylo)
Edit: Info on anki LaTeX compile process. Removed, see my answer if you really want to know.
Edit: Semi-failed attempt, Removed, see my answer if you really want to know.