Code: Select all
\begin{picture}(\textwidth,\textheight)
Code: Select all
\begin{picture}(\the\textwidth,\the\textheight)
Thanks for any asistance.
Code: Select all
\begin{picture}(\textwidth,\textheight)
Code: Select all
\begin{picture}(\the\textwidth,\the\textheight)
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
\strip@pt
, such as here:Code: Select all
\documentclass{article}
\begin{document}
\the\textwidth
\makeatletter
\strip@pt\textwidth
\strip@pt\dimexpr 0.5\textwidth\relax
\makeatother
\end{document}
Code: Select all
\documentclass{beamer}
\makeatletter
\newcommand{\Tw}{\strip@pt\textwidth}
\newcommand{\Th}{\strip@pt\textheight}
\newcommand{\Thw}{\strip@pt\dimexpr 0.5\textwidth\relax}
\newcommand{\Thh}{\strip@pt\dimexpr 0.5\textheight\relax}
\makeatother
\begin{document}
\begin{frame}
\begin{picture}(\Tw,\Th)
\put(\Thw,\Thh){\includegraphics{FILE}}
\end{picture}
\end{frame}
\end{document}
use the picture package, then there is no need for stripping the dimensionCurious George wrote:How can I get the get the number of points, but not the units, to include in a \begin{picture} command? Bonus would be to display numbers such as "0.5\textwidth" without units also, as arguments to the "\put" command.
Code: Select all
\documentclass{beamer}
\usepackage{picture}
\begin{document}
\begin{frame}{foo}{}
\begin{picture}(\textwidth,\textheight)
\put(\textwidth,\textheight){\circle*{5}}
\end{picture}
\end{frame}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p