-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: tableTwoDimensionalArray: New file
* src/common/tableTwoDimensionalArray.tex: New file. Move the common code for the table here. * src/ru/sparc.tex, src/en/sparc.tex: Include it. * src/en/sections/music-and-technology-synthesis-two-dimensional-arrays.tex, src/ru/sections/music-and-technology-synthesis-two-dimensional-arrays.tex: Use it. * Makefile.am (COMMON): Register it.
- Loading branch information
1 parent
4ca6651
commit 444e613
Showing
6 changed files
with
62 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
\newcommand{\tableTwoDimensionalArray}[1]{ | ||
\def\lang{\detokenize{#1}} | ||
\def\langRu{\detokenize{ru}} | ||
\def\langEn{\detokenize{en}} | ||
\def\tableFirstColumn{XXX: No translation.} | ||
\def\tableSecondColumn{XXX: No translation.} | ||
\def\tableCaption{XXX: No translation.} | ||
\ifx \lang\langRu | ||
\def\tableFirstColumn{ | ||
№ строки | ||
} | ||
\def\tableSecondColumn{ | ||
№ столбца | ||
} | ||
\def\tableCaption{ | ||
Графическое отображение двумерного массива. | ||
} | ||
\fi | ||
\ifx \lang\langEn | ||
\def\tableFirstColumn{ | ||
Row number | ||
} | ||
\def\tableSecondColumn{ | ||
Column number | ||
} | ||
\def\tableCaption{ | ||
Graphical representation of a two-dimensional array. | ||
} | ||
\fi | ||
\begin{table}[ht] | ||
\centering | ||
\begin{tabular}{r|l|l|l} | ||
\multicolumn{1}{l}{\tableFirstColumn} | ||
& \multicolumn{2}{l}{\tableSecondColumn} | ||
& \\ | ||
\multicolumn{1}{l}{} & \multicolumn{1}{l}{0} & \multicolumn{1}{l}{1} & \\ | ||
\cline{2-3} | ||
0 & с4 & 4 & \\ | ||
\cline{2-3} | ||
1 & с4 & 4 & \\ | ||
\cline{2-3} | ||
2 & g4 & 4 & \\ | ||
\cline{2-3} | ||
3 & g4 & 4 & \\ | ||
\cline{2-3} | ||
4 & a4 & 4 & \\ | ||
\cline{2-3} | ||
5 & a4 & 4 & \\ | ||
\cline{2-3} | ||
6 & g4 & 2 & \\ | ||
\cline{2-3} | ||
\end{tabular} | ||
\caption{\tableCaption} | ||
\label{table:array-example-2} | ||
\end{table} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters