1

XeTeX knows the side bearings, if OpenType(/TrueType) fonts are used (PFB fonts do not work): \XeTeXglyphbounds1\XeTeXglyphindex"H" Applied to the "preferred method" of the question: \documentclass{standalone} \usepackage{standalone} \usepackage{fontspec}% OpenType of Latin Modern fonts \usepackage{tikz} \usetikzlibrary{backgrounds,calc,positioning} \...


1

Like this? % !TEX TS-program = xelatex \documentclass[border=3mm, tikz]{standalone} \usetikzlibrary{backgrounds,calc,positioning} \begin{document} % preferred method \begin{tikzpicture}[ here/.style = {font=\Huge, inner xsep=-1.2pt,% <-- here is the trick inner ysep=0.03in, outer sep=0pt}, framed ] \...


1

With the help of @JPi and the answer to this question : Background image from tikzpicture does not fit the whole page, I made my background image fit the margin as I wish : (...) \usepackage[paperheight=5cm, paperwidth=9cm, left=0mm, bottom=0mm]{geometry} (...) \begin{tikzpicture}[remember picture,overlay,shift={(current page.center)}] \node[inner sep=0] {...


1

Like so? \documentclass[10pt,landscape]{article} \usepackage{graphicx} \usepackage{tikz} \usepackage{tikzpagenodes} \begin{document} \begin{tikzpicture}[remember picture,overlay,shift={(current page.south west)}] \node[anchor=south west] (0,0) {\includegraphics[width=\paperwidth,height=\paperheight]{pig}}; \end{tikzpicture} \end{document} I'm using ...


Only top voted, non community-wiki answers of a minimum length are eligible