Graphics, Figures & TablesVery peculiar tables

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Jayaratna
Posts: 3
Joined: Mon Mar 31, 2014 11:06 pm

Very peculiar tables

Post by Jayaratna »

Dear members,

I'm a first timer here, I apologize if my question should happen to fall in the wrong place.

I have to typeset a book with a lot of music in it, but I'm solving the problem by using lilypond-book and (if I'll be able to install it on my Ubuntu) lilyglyphs.

I need to type some very peculiar tables in it, and I don't know if it would be better to draw them and then import them in Latex or if I really could code them.
First one:
Image
Second one:
Image
Third one:
Image

Thank you for any advice,
Andrea

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Very peculiar tables

Post by Johannes_B »

I have never seen tables/pictures like that. One way to achieve something like that, would be to draw them using TikZ, but that needs some effort in the first place to get to know the basics.
You can have a look at TeXample.net and see how many kinds of graphical visualisation are available.

PSTricks is the alternative to Tikz on the LaTeX side. The decision which one to choose is often just a decicion of taste.

A very different approach would be to use a drawing program like Inkscape, which also has a tikz export feature.
But also Inkscape needs some time to learn.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Jayaratna
Posts: 3
Joined: Mon Mar 31, 2014 11:06 pm

Re: Very peculiar tables

Post by Jayaratna »

Dear Johannes,

thanks for your answer. I'll give a look to tikz and pstricks. I already know a little basic of inkscape and could give that a try. I'll post some results later.

Thanks again,
A
Jayaratna
Posts: 3
Joined: Mon Mar 31, 2014 11:06 pm

Very peculiar tables

Post by Jayaratna »

Here is how I made the first table, using tikz:

Code: Select all

\begin{tikzpicture}[scale=0.5]
\draw (1,0)-- (1,17);
\draw (0, 0)-- (24,0);
\draw (0,17)-- (24,17);
\draw (19,0)-- (19,17);
\draw (2,0)-- (2,17);

\coordinate (a) at (0.2,10.6);
\coordinate (b) at (0.2,16.2);
\draw[decorate,decoration={brace,amplitude=10pt,raise=1pt,mirror},yshift=0pt] (b) -- (a) node [midway,yshift=-15pt]{};


\coordinate (a) at (0.2,6.6);
\coordinate (b) at (0.2,9.8);
\draw[decorate,decoration={brace,amplitude=10pt,raise=1pt,mirror},yshift=0pt] (b) -- (a) node [midway,yshift=-15pt]{};

\coordinate (a) at (0.2,1);
\coordinate (b) at (0.2, 5.8);
\draw[decorate,decoration={brace,amplitude=10pt,raise=1pt,mirror},yshift=0pt] (b) -- (a) node [midway,yshift=-15pt]{};

%\draw (0.5, 1) -- (0.5, 17);
\node at (0.5, 13.5) {\rotatebox{270}{Chiavi acute o doppie}};
\node at (0.56, 8.2)  {\rotatebox{270}{Chiavi medie}};
\node at (0.5, 3.4)  {\rotatebox{270}{Chiavi basse o gravi}};

\node at (1.5,1) {$\Gamma$};\node at (2.5,1) {\textit{ut}}; \node at (10.55,1) {Prima sex vocum deductio.}; \node at (18.5,1) {\textit{ut}}; \draw (3,0.9)-- (6.8, 0.9); \draw (14.2,0.9)-- (18,0.9); \node at (20, 1) {1 nota}; 


\node at (1.5,1.8) {A}; \node at (2.5,1.8) {\textit{re}}; \node at (18.5,1.8) {\textit{re}};  \node at (20, 1.8) {1 nota}; 

\node at (1.5,2.6) {$\natural$}; \node at (2.5,2.6) {\textit{mi}};  \node at (18.5,2.6) {\textit{mi}}; \draw (3,2.5)-- (18, 2.5); \node at (20, 2.6) {1 nota};

\node at (1.5,3.4) {C}; \node at (2.8,3.4) {\textit{fa ut}}; \node at (10.55,3.4) {Secunda deductio.}; \node at (18.2,3.4) {\textit{ut fa}};  \node at (20, 3.4) {2 note}; 

\node at (1.5,4.2) {D}; \node at (2.8,4.2) {\textit{sol re}}; \node at (18.2,4.2) {\textit{re sol}};  \node at (20, 4.2) {2 note}; \draw (3.6,4.1)-- (17.4, 4.1); 

\node at (1.5,5) {E}; \node at (2.8,5) {\textit{la mi}}; \node at (18.2,5) {\textit{mi la}};  \node at (20, 5) {2 note}; 

\node at (1.5,5.8) {F}; \node at (3.5 ,5.8) {\textit{fa ut}}; \node at (10.55,5.8) {Tertia deductio.}; \node at (17.5, 5.8) {\textit{ut fa}}; \draw (4.2, 5.8)-- (8.4, 5.8); \draw (12.6,5.8)-- (16.8, 5.8); \node at (20, 5.8) {2 note}; \draw (2.2, 5.8)-- (2.8, 5.8); \draw (18.2, 5.8)-- (18.8, 5.8); \node at (18.6, 5.65) { \lilyGlyph[scale=0.8, raise=-1]{clefs.petrucci.f} };

\node at (1.5,6.6) {G}; \node at (4 ,6.6) {\textit{sol re ut}}; \node at (10.55,6.6) {Quarta ut prima.}; \node at (17.1, 6.6) {\textit{ut re sol}}; \node at (20, 6.6) {3 note};

\node at (1.5,7.4) {a}; \node at (4 ,7.4) {\textit{la mi re}};  \node at (17.1, 7.4) {\textit{re mi la}};\node at (21.17, 7.4) {2 note, 2 chiavi};  \draw (5.1, 7.3)-- (16, 7.3);   \draw (2.2,7.3)-- (3, 7.3); \draw (18.1, 7.3)-- (18.8, 7.3); 

\node at (1.5,8.2) {b};  \node at (4.6 ,8.2) {\textit{fa $\natural$ mi}}; \node at (16.6, 8.2) {\textit{mi fa}}; \node at (20, 8.2) {2 note};


\node at (1.5,9) {c}; \node at (4.25 ,9) {\textit{sol fa ut}}; \node at (10.55,9) {Quinta ut secunda.}; \node at (16.5, 9) {\textit{ut fa sol}}; \draw (5.4, 9)-- (7.8, 9); \draw (13.2,9)-- (15.4, 9);  \draw (2.2, 9)-- (3.2, 9); \draw (17.6, 9)-- (18.8, 9); \node at (18.3, 9.055) { \lilyGlyph[scale=0.8, raise=0]{clefs.petrucci.c2} }; \node at (20, 9) {3 note};

\node at (1.5,9.8) {d}; \node at (4.25 ,9.8) {\textit{la sol re}};  \node at (16.5, 9.8) {\textit{re sol la}}; \node at (20, 9.8) {3 note};

\node at (1.5,10.6) {e}; \node at (4.75,10.6) {\textit{la mi}}; \node at (16,10.6) {\textit{mi la}};  \node at (20, 10.6) {2 note};  \draw (5.5, 10.5)-- (15.3, 10.5);   \draw (2.2,10.5)-- (4.05, 10.5); \draw (16.7, 10.5)-- (18.8, 10.5); 

\node at (1.5,11.4) {f}; \node at (5.5 ,11.4) {\textit{fa ut}}; \node at (10.55,11.4) {Sexta ut tertia.}; \node at (15.2, 11.4) {\textit{ ut fa}}; \node at (20, 11.4) {2 note};

\node at (1.5,12.2) {g}; \node at (6, 12.2) {\textit{sol re ut}}; \node at (10.55,12.2) {Septima ut prima.}; \node at (14.3, 12.2) {\textit{ut re sol}};   \draw (2.2, 12.1)-- (5, 12.1); \draw (15.4, 12.1)-- (18.8, 12.1); \node at (17.8, 12.255) { \lilyGlyph[scale=0.8, raise=0]{clefs.petrucci.g} }; \node at (20, 12.2) {3 note};

\node at (1.5,13) {aa}; \node at (6 ,13) {\textit{la mi re}};  \node at (14.3, 13) {\textit{re mi la}}; \node at (20, 13) {3 note};

\node at (1.5,13.8) {bb}; \node at (6.65 ,13.8) {\textit{fa $\natural$ mi}}; \node at (13.9, 13.8) {\textit{mi fa}}; \node at (20, 13.8) {2 note};  \draw (7.5, 13.8)-- (13.15, 13.8);   \draw (2.2,13.8)-- (5.7, 13.8); \draw (14.65, 13.8)-- (18.8, 13.8);

\node at (1.5,14.6) {cc}; \node at (6.525 ,14.6) {\textit{ sol \hspace {2.25pt} fa}}; \node at (13.9, 14.6) {\textit{fa sol}}; \node at (21.17, 14.6) {2 note, 2 chiavi};

\node at (1.5,15.4) {dd}; \node at (6.65 ,15.4) {\textit{la sol}}; \node at (13.9, 15.4) {\textit{sol la}}; \node at (20, 15.4) {2 note};  \draw (7.5, 15.4)-- (13.15, 15.4);   \draw (2.2,15.4)-- (5.7, 15.4); \draw (14.65, 15.4)-- (18.8, 15.4);

\node at (1.5,16.2) {ee}; \node at (7 ,16.2) {\textit{ la}}; \node at (13.5, 16.2) {\textit{la}}; \node at (20, 16.2) {1 nota};

\end{tikzpicture}
Tabellatikz.png
Tabellatikz.png (133.44 KiB) Viewed 3039 times
Post Reply