Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
print-pattern
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabrice Salvaire
print-pattern
Commits
27f20afb
Commit
27f20afb
authored
3 years ago
by
Fabrice Salvaire
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
64b489b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
print-pattern-941.tex
+45
-33
45 additions, 33 deletions
print-pattern-941.tex
with
49 additions
and
33 deletions
.gitignore
0 → 100644
+
4
−
0
View file @
27f20afb
*~
*.log
*.aux
auto/
This diff is collapsed.
Click to expand it.
print-pattern-941.tex
+
45
−
33
View file @
27f20afb
...
...
@@ -6,9 +6,9 @@
\usepackage
[rgb]
{
xcolor
}
% Roll Width
% A0 841x1189 mm
% 914 mm
\usepackage
[
%
% paper=a0paper,%
paperwidth=914mm,
...
...
@@ -29,16 +29,17 @@ luatex,
\begin{document}
\pagestyle
{
empty
}
%
% \setmainfont[Ligatures=TeX]{Latin Modern Sans}
\setmainfont
[Ligatures=TeX,SizeFeatures=
{
Size=16,
Size=24,
Size=32,
Size=64
}
]
{
lmsans12-regular.otf
}
% \setmainfont[Ligatures=TeX,SizeFeatures={Size=64}]{lmsans12-regular.otf}
Size=48,
Size=64,
Size=128
}
]
{
Latin Modern Sans
}
\fontsize
{
24
}{
24
}
\selectfont
%
% Box at Page Corner
\begin{tikzpicture}
[remember picture, overlay]
\node
[shift=
{
(0cm,-10cm)
}
] at (current page.north west)
{
%
...
...
@@ -65,12 +66,12 @@ luatex,
\end{tikzpicture}
}
;
% Draw a page border
\draw
(current page.north west) rectangle (current page.south east);
%
\draw (current page.north west) rectangle (current page.south east);
\end{tikzpicture}
%
\begin{center}
\fontsize
{
64
}{
64
}
\selectfont
Print Pattern 941
\,
mm
\\
[5mm]
Print Pattern
for
941
\,
mm
Roll Width
\\
[5mm]
\fontsize
{
24
}{
24
}
\selectfont
Done with Lua
\LaTeX\
PGF/Tikz 2021 Fabrice Salvaire
\\
[0cm]
\end{center}
...
...
@@ -81,49 +82,60 @@ luatex,
\def\MireSize
{
80
}
\begin{tikzpicture}
\draw
[line width=1mm]
(0,0) rectangle (
\MireSize
,
\MireSize
);
\draw
[step=5cm, line width=1mm]
(0,0) grid (
\MireSize
,
\MireSize
);
\draw
[line width=1mm]
(0,0) -- (
\MireSize
,
\MireSize
);
\draw
[line width=1mm]
(0,
\MireSize
) -- (
\MireSize
,0);
\draw
[step=5cm, line width=0.5mm]
(0,0) grid (
\MireSize
,
\MireSize
);
\draw
[step=10cm, line width=1mm]
(0,0) grid (
\MireSize
,
\MireSize
);
\draw
[line width=0.5mm]
(0,0) -- (
\MireSize
,
\MireSize
);
\draw
[line width=0.5mm]
(0,
\MireSize
) -- (
\MireSize
,0);
\coordinate
(O) at (
\MireSize
/2,
\MireSize
/2);
%
\draw
[line width=1mm]
(O) circle [radius=1cm];
\draw
[line width=1mm]
(O) circle [radius=5cm];
\draw
[line width=1mm]
(O) circle [radius=10cm];
\draw
[line width=1mm]
(O) circle [radius=20cm];
\draw
[line width=1mm]
(O) circle [radius=25cm];
\draw
[line width=1mm]
(O) circle [radius=30cm];
\draw
[line width=1mm]
(O) circle [radius=40cm];
\foreach
\i
in
{
1,5,10,20,30,40
}
{
\draw
[line width=1mm]
(O) circle [radius=
\i
cm];
}
%
\begin{scope}
[xshift=50cm,yshift=70cm]
\draw
[step=1cm, line width=2pt]
(0,0) grid (10,10);
\draw
[step=1mm, line width=0.5pt]
(0,0) grid (10,10);
% \foreach \i in {1,2,...,10} {
% \draw[line width=2pt] (0,\i) -- ++(10,0);
% \draw[line width=2pt] (\i,0) -- ++(0,10);
% }
% \foreach \i in {0.1,0.2,...,10} {
% \draw[line width=0.5pt] (0,\i) -- ++(10,0);
% \draw[line width=0.5pt] (\i,0) -- ++(0,10);
% }
\end{scope}
%
\begin{scope}
[xshift=
1
0cm,yshift=65cm]
\begin{scope}
[xshift=0cm,yshift=65cm]
\foreach
\x
in
{
5,10,...,100
}
{
\draw
[xshift=5mm]
(3/10*
\x
,-1) node
{
\x
}
;
%
\fill
[black!\x]
(3/10*
\x
,0) rectangle ++(1,1);
\fill
[cyan!\x]
(3/10*
\x
,2) rectangle ++(1,1);
\fill
[magenta!\x]
(3/10*
\x
,4) rectangle ++(1,1);
\fill
[yellow!\x]
(3/10*
\x
,6) rectangle ++(1,1);
%
\fill
[red!\x]
(3/10*
\x
,8) rectangle ++(1,1);
\fill
[blue!\x]
(3/10*
\x
,10) rectangle ++(1,1);
\fill
[green!\x]
(3/10*
\x
,12) rectangle ++(1,1);
}
\end{scope}
%
\begin{scope}
[xshift=62cm,yshift=70cm]
\draw
[font=\fontsize{16}{16}\selectfont]
(0,1) node
{
A B C a p m @16pt
}
;
\draw
[font=\fontsize{24}{24}\selectfont]
(0,2) node
{
A B C a p m @24pt
}
;
\draw
[font=\fontsize{32}{32}\selectfont]
(0,4) node
{
A B C a p m @32pt
}
;
\draw
[font=\fontsize{64}{64}\selectfont]
(0,6) node
{
A B C a p m @64pt
}
;
\begin{scope}
[xshift=70cm,yshift=70cm]
\foreach
\i
in
{
16,24,32,48,64
}
{
\draw
[font=\fontsize{\i}{\i}\selectfont]
(0,2/16*
\i
) node
{
A B C a p m @
\i
pt
}
;
}
\end{scope}
%
\begin{scope}
[xshift=
60
cm,yshift=6
0
cm]
\
draw
[line width=0.10mm]
(0,1) -- ++(5,0);
\draw
(6,1) node
{
0.10
}
;
\
draw
[line width=0.25mm]
(0,2) -- ++(5,0);
\draw
(6,2) node
{
0.25
}
;
\draw
[line width=0.50mm]
(0,3) -- ++(5,0);
\draw
(6,3) node
{
0.50
}
;
\draw
[line width=0.75mm]
(0,4) -- ++(5,0);
\draw
(6,4) node
{
0
.75
}
;
\draw
[line width=1.00mm]
(0,5) -- ++(5,0);
\draw
(6,5) node
{
1.00
}
;
\draw
[line width=1.50mm]
(0,6) -- ++(5,0);
\draw
(6,6) node
{
1.50
}
;
\draw
[line width=2.00mm]
(0,7) -- ++(5,0);
\draw
(6,7) node
{
2.00
}
;
\draw
[line width=
2.50
mm]
(
0,8
) -- ++(5,0);
\draw
(
6,8
) node
{
2.50
}
;
\draw
[line width=3.00mm]
(0,9) -- ++(5,0);
\draw
(6,9) node
{
3.00
}
;
\begin{scope}
[xshift=
37
cm,yshift=6
2
cm]
\
fill
[color=white]
(0,0) rectangle (10,15)
;
\
foreach
\i
[count =
\j
] in
{
%
0.10,0.25,0.50,0.75,
%
1.00,1.25,1.50,1
.75
,
%
2.00,2.50,
%
3.00,4.00,5.00
%
}
{
\draw
[line width=
\i
mm]
(
1,
\j
) -- ++(5,0);
\draw
(
7,
\j
) node
{
\i
}
;
}
\end{scope}
\end{tikzpicture}
\end{center}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment