Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Placing graphics with absolute sizes
Post Body

I am trying to have an irregular but repeating grid-like pattern, in absolute scale, in my LaTeX output (think hexagonal grid with fixed edge width of 1 cm when printed; but hundreds/thousands of variations).

What I have tried is to build an SVG with <pattern> using absolute metrics (these I can prepare programmatically),

<svg width="50mm" height="50mm" xmlns="http://www.w3.org/2000/svg">
  <pattern
    id="p3"
    x="0"
    y="0"
    width="5mm"
    height="5mm"
    patternUnits="userSpaceOnUse">
    <circle cx="1mm" cy="1mm" r="1mm" />
    <circle cx="3mm" cy="3mm" r="1mm" />
  </pattern>

  <rect x="0" y="0" stroke="red" width="100%" height="100%" fill="url(#p3)" />
</svg>

then include the graphics (this goes through an intermediary PDF since LaTeX doesn't take SVG).

\includegraphics[page=1, width=3cm]{Figures/fixed_pattern.pdf}
\includegraphics[page=1, width=6cm]{Figures/fixed_pattern.pdf}

The output here is

https://preview.redd.it/mynzc3khbuzb1.png?width=1512&format=png&auto=webp&s=c46f6e39e695ed521633f8d325e7747b231c573b

but I was hoping for a result where the red rectangle is scaled up, yet the size of the dots do not grow bigger (but there is just more repeating units being shown).

Any suggestions for achieving this? (Or other ways of going about flexible "tiling images with *absolute (real-world)* scale", LaTeX or otherwise?)

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
6,835
Link Karma
1,070
Comment Karma
5,765
Profile updated: 4 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 months ago