I starting to make a table which print out all for me relevant document information in one table like

  • actual paper width,
  • count of words,
  • actual font size
  • actual font type
  • ...

Is there maybe a package available for this? Or anyone know where I can find the missing commands (print out count fo words, print out current font, current font size)

Feature & Value\\
actual paper width in [cm] &  \printinunitsof{cm}\prntlen{\textwidth}  \\
actual font size & <??> \\   \bottomrule 
  • 1
    The current font size is stored in \f@size (this is not a length but a macro storing the size in pt you can access it with either \makeatletter\f@size\makeatother or \csname f@size\endcsname.). – Skillmon likes topanswers.xyz Aug 21 '18 at 18:03
  • You can also access the paper width, but the word count seems to require additional software. – user121799 Aug 21 '18 at 18:05
  • And (if you didn't know yet), there are the dimensions \textheight, \paperheight, \paperwidth, \marginparwidth, ... The wikibook has a bit of information about all the lengths related to page layout. – Skillmon likes topanswers.xyz Aug 21 '18 at 20:16
  • And this question might be of interest: tex.stackexchange.com/questions/14377/… – Skillmon likes topanswers.xyz Aug 21 '18 at 20:17
  • the count of words does not really fit there, all the other things are tex defined lengths, but tex has no idea about the number of words in the docuemnt – David Carlisle Aug 21 '18 at 20:33

I made a listing in a tabular environment with some information which are helpful for me. Maybe this can help someone else:

\documentclass {scrbook}

%//Colour definitions\\%


% display some document properties
\edef\defaultsize{\csname f@size\endcsname}  
\newcommand{\currentsize}{\csname f@size\endcsname}


Feature & Value \\
PaperWidth in [cm]& \printinunitsof{cm}\prntlen{\paperwidth}\\
PaperHeight in [cm]& \printinunitsof{cm}\prntlen{\paperheight}\\
TextWidth in [cm] &  \printinunitsof{cm}\prntlen{\textwidth}  \\
TextHeight in [cm] & \printinunitsof{cm}\prntlen{\textheight}\\
MarginParSep in [cm] & \printinunitsof{cm}\prntlen{\marginparsep}\\
MarginParWidth in [cm] & \printinunitsof{cm}\prntlen{\marginparwidth}\\
FootSkip in [cm]& \printinunitsof{cm}\prntlen{\footskip}\\
Default Font &  \defaultfont \\
Default Size   & \defaultsize \\
Current Font &  \currentfont \\
Current Size &  \currentsize \\
Colour1 & \fillOne & \begin{tikzpicture} \draw[fill=\fillOne, draw=none] (0,0) rectangle (1,.2); \end{tikzpicture}\\
Colour2 & \fillTwo & \begin{tikzpicture} \draw[fill=\fillTwo, draw=none] (0,0) rectangle (1,.2); \end{tikzpicture}\\
Colour3 & \fillThree & \begin{tikzpicture} \draw[fill=\fillThree, draw=none] (0,0) rectangle (1,.2); \end{tikzpicture}\\
Colour4 & \fillFour & \begin{tikzpicture} \draw[fill=\fillFour, draw=none] (0,0) rectangle (1,.2); \end{tikzpicture}\\



Which results in:

enter image description here

| 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.