could not find any, could have used a wrong translation from german

my current assignment ask me that I limit per page about ~40 lines (Zeilen) each about ~60 strokes (Anschläge).

It was mentioned that the font "Courier New (12p)" fits the requirements automatically on a4paper.

As a side note I need to leave space on the left side 4cm and right side 2cm currently I use \usepackage[left=4cm,right=2cm,top=2cm,bottom=2cm]{geometry}

What package or command could I use to make it automatic?

  • Welcome to TeX SX! You can define your own class specifying these margins, but is it worth the work? Unrelated: you can simplify the call to geometry, writing \usepackage[margin=2cm, left=4cm]{geometry} – Bernard May 29 at 15:56
  • This is definitely one of the more bizarre requirements I have seen recently :D what would be the goal of these restrictions? However, since it seems to be a 'soft' limit (~40 lines and ~60 strokes, with the ~) you could probably just test out the font size, maybe set \linespread{some factor} to set the vertical space between two lines. I just counted and a 12pt Times New Roman A4 page satisfies the criteria more or less (when spaces are not counted as an Anschlag). – Marijn May 29 at 16:00

Seem that you want the so-called "standard pages" (Normseiten) with 1800 characters defined by the standard ISO 690, but with 10 lines more (2400 characters).

One option incompatible with geometry is use the stdpage except for the desired margins, as the with and margins is fixed by the number of characters and lines. To testing, in the next example i used \kant*[1-3] dummy text of kantlipsum package. I counted 2628 characters in the pdf (including spaces and hyphens) in this text, so in theory, with this format it should be roughly 44 lines. We can check this easily with the lineno package:

\usepackage[chars=60, lines=40, just=true, hyphen=false]{stdpage}
\kant*[1-3] % 2634 characters ~ 44 complete lines 

This produce a bit more than 46 lines, because the lines cannot be broken exactly every 60 characters.

If margins that you want is a must, and you must limit to, said, 44 lines exactly for this text, to have an average of about 60 characters per line, you can use geometry and tune the line spacing with \linespread as commented, or with \baselineskip but tune also the interword space in this way:

\fontdimen2\font=.72em % interword space
\fontdimen3\font=.15em % interword stretch
\fontdimen4\font=.15em % interword shrink
\fontdimen7\font=.2em % extra space after setence
\hyphenchar\font=`\-} % to allow hyphenation
| 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.