jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
56 stars 11 forks source link

included score is not horizontally centered. #320

Closed kureta closed 7 months ago

kureta commented 7 months ago

I have been trying to figure this out for hours but couldn't find a solution. I am using the Beethoven example ly file from this repository. This is the result:

Screenshot from 2024-01-17 18-10-43

and this is my tex file:

% set document class
\documentclass[a4paper]{article}

% Sets page size and margins
\usepackage[a4paper]{geometry}

%% Useful packages
\usepackage{float}
\usepackage{lyluatex}

% === DOCUMENT START ===
\begin{document}
% this creates the title page with title, author and date give above

% asterisk after section makes it unnumbered
\section{Introduction}
This is just for testing purposes.

\begin{figure}[htp]
  \lilypondfile[insert=systems, staffsize=9]{ly/beethoven.ly}
  \caption{bla bla}
  \label{tab:foo}
\end{figure}

\end{document}
leomcf commented 7 months ago

Hi, I haven't used lyluatex in a while, but I remember that this was an issue when I was using it. It was also driving me nuts, at the time. If I remember correctly, you need to comment out the title information in the lilypond file. I do love the idea of Lylualatex though. It's a new package; I'm sure these bugs will be sorted out in time. Kudos to the developer for making it.

kureta commented 7 months ago

@leomcf thank you very very much! There is no way I could have been able to find it on my own. Closing the issue now. Thanks again

on second thought maybe this is a bug and the issue should stay open but I'm not sure...

rpspringuel commented 7 months ago

This is a duplicate of #307.

leomcf commented 7 months ago

HTH @kureta!

kureta commented 7 months ago

@rpspringuel Thanks. I couldn't find it before. I'll subscribe to it now.