Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout #187

Closed
WindowsNT opened this issue Jan 5, 2025 · 7 comments
Closed

Layout #187

WindowsNT opened this issue Jan 5, 2025 · 7 comments

Comments

@WindowsNT
Copy link

WindowsNT commented Jan 5, 2025

image

This is the output when using GuidoResizePageToMusic.
How do I tell the formatter to take the entire width before breaking to next line?

Basically, I have difficulties understanding the layout mechanism. When painting on screen and when printing, I want it to take the full width.

@dfober
Copy link
Member

dfober commented Jan 5, 2025

It's quite difficult to control the layout. In your case, I suggest to use the pageFormat tag.

@WindowsNT
Copy link
Author

WindowsNT commented Jan 5, 2025

Yes, but how? I'm trying settings, none of them extends the page to the right. When I enlarge the width/height, the printing becomes smaller.

@dfober
Copy link
Member

dfober commented Jan 5, 2025

Using the left margin (lm) parameter of \pageFormat should help to center the image, you could also set the page width (w) to a lower value. If you really want to extend the rendering width, you might achieve that with the engine settings but that's more difficult to manage.
If you send me your gmn code I can try various options.

@WindowsNT
Copy link
Author

This one for example

{[ \barFormat<"system"> \staff<1> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 ], [ \staff<2> \staffFormat<lineThickness=0.08,color="black"> \clef<"f4"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 ], [ \staff<3> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 ], [ \staff<4> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 ], [ \staff<5> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 ], [ \staff<6> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 ], [ \staff<7> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 ]}

Shows correctly

image

If i add one more measure

{[ \barFormat<"system"> \staff<1> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 _/1 ], [ \staff<2> \staffFormat<lineThickness=0.08,color="black"> \clef<"f4"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 _/1 ], [ \staff<3> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 _/1 ], [ \staff<4> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 _/1 ], [ \staff<5> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 _/1 ], [ \staff<6> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 _/1 ], [ \staff<7> \staffFormat<lineThickness=0.08,color="black"> \clef<"g2"> \key<0> \meter<"C", autoMeasuresNum="off"> _/1 _/1 _/1 _/1 _/1 _/1 ]}

It breaks

image

where it could easily hold more measures. If I increase the width in the Draw description it doesn't take it, still wants to break.
However in the online version it works ... might be my render?

@dfober
Copy link
Member

dfober commented Jan 6, 2025

WIth \pageFormat< w=20cm, h=20cm, tm=1cm, rm=1cm, bm=1cm, lm=1cm> it's rendered on a single line on my side.
Note that height is also important since it constraints the engine on a single page (or not).
Another solution:
in the header add the system variable :
$FORCE=550;

@WindowsNT
Copy link
Author

I managed to do it with the aid of \set<autoSystemBreak="off",autoPageBreak="off"> and \newLine
I will let you know if there are more issues on that.

Btw here is a direct link to the score editor (which auto updates when I update it), if you have Windows >= 10 you can try it.

@dfober
Copy link
Member

dfober commented Jan 6, 2025

Fine!
Sorry I can't try your app, I don't have Windows installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants