From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Putting chord names above the lyrics
Date: Tue, 12 Jan 2010 10:08:40 +0100 [thread overview]
Message-ID: <6faad9f01001120108k680800edt416bc19c63e14b08@mail.gmail.com> (raw)
In-Reply-To: <4B4BE305.8040801@gmail.com>
On Tue, Jan 12, 2010 at 03:48, Vyatcheslav Yatskovsky wrote:
> Hello,
>
> How to put chord names above the lyrics? I have the following in mind
>
> \starttext
> \setupinterlinespace[big]
> \startlines
> \chord[C6]Pardon me, boy
>
> Is that the Chattanooga choo choo?
>
> Track twenty-nin\chord[Gadd9/D]e
> Boy, you can gimme a sh\chord[C6]ine
I'm just copy-pasting some of old songs. (written LaTeX):
The following LaTeX code worked perfectly:
\def\Ch#1{%
\makebox[0pt][l]{%
\raisebox{0.4\baselineskip}{\bf #1}%
}}
\setlength{\baselineskip}{1.8\baselineskip}}
\Ch{E}Cvet dišeč z \Ch{H7}jutrom se od\Ch{cis}pre, \par
\Ch{A}sonce od\Ch{E}pira o\Ch{H}či. \par
\Ch{E}Polje z vetrom v \Ch{H7}plesu ziblje \Ch{cis}se. \par
Gos\Ch{E}pod, pov\Ch{H}sod vidim \Ch{E}Te. \par}
In ConTeXt an approximately the same, but unoptimized solution could be
\def\Ch#1{%
\strut\hbox to 0pt{\raisebox{0.8\baselineskip}\hbox{\bf#1}\hss}}
\setupwhitespace[big]
and then the same lyrics.
Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-01-12 9:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.0.1263207601.24456.ntg-context@ntg.nl>
2010-01-12 2:48 ` Vyatcheslav Yatskovsky
2010-01-12 8:24 ` Wolfgang Schuster
2010-01-12 9:08 ` Mojca Miklavec [this message]
2010-01-12 9:25 ` Wolfgang Schuster
[not found] <mailman.251.1263333743.4207.ntg-context@ntg.nl>
2010-01-12 22:51 ` Vyatcheslav Yatskovsky
2010-01-12 23:09 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6faad9f01001120108k680800edt416bc19c63e14b08@mail.gmail.com \
--to=mojca.miklavec.lists@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).